WO2019001229A1 - Method and device for realizing virtual resource customization - Google Patents

Method and device for realizing virtual resource customization Download PDF

Info

Publication number
WO2019001229A1
WO2019001229A1 PCT/CN2018/089941 CN2018089941W WO2019001229A1 WO 2019001229 A1 WO2019001229 A1 WO 2019001229A1 CN 2018089941 W CN2018089941 W CN 2018089941W WO 2019001229 A1 WO2019001229 A1 WO 2019001229A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual resource
image
custom
terminal
image acquisition
Prior art date
Application number
PCT/CN2018/089941
Other languages
French (fr)
Chinese (zh)
Inventor
刘金来
胡耀斌
刘冬冬
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019001229A1 publication Critical patent/WO2019001229A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2543Billing, e.g. for subscription services
    • H04N21/25435Billing, e.g. for subscription services involving characteristics of content or additional data, e.g. video resolution or the amount of advertising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics

Definitions

  • the present invention relates to the field of Internet application technologies, and in particular, to a method and apparatus for implementing virtual resource customization, a terminal, and a computer readable storage medium.
  • the live broadcast room provides users with an exchange channel, and each user interacts through the live broadcast room.
  • a user in the live broadcast room can be used as an anchor to post video, audio, and other information in the live broadcast room.
  • Other users in the live room can view this information as the viewer of the anchor.
  • the audience is interested in these, they can give virtual gifts such as electronic gifts to the anchor.
  • the live room presents the virtual gifts presented to the anchor, thereby better realizing the interaction between the users.
  • the virtual resources are pre-set, and the user can only select among the preset virtual resources, that is, the existing virtual resources can only be used for sending and sharing, and the existing virtual
  • the resource form is not rich enough, and the virtual resource cannot be customized.
  • the development cycle of the virtual resource is long and the update speed is slow, which greatly affects the enthusiasm of the user.
  • the present invention provides a method and device for realizing the virtual resource customization.
  • the present disclosure provides a method for implementing virtual resource customization, including:
  • Extracting a custom virtual resource from image content output by the specified image acquisition hardware Extracting a custom virtual resource from image content output by the specified image acquisition hardware.
  • the method further includes:
  • a translucent mask layer is created in the background region.
  • the forming an image area in the image output area in the display interface with respect to the image capturing hardware includes:
  • a background area is formed in the image output area in the live video display interface with respect to the image acquisition hardware.
  • the step of performing extraction of the customized virtual resource from the image content output by the specified image collection hardware includes:
  • the step of performing optimization processing on the image content to generate a customized virtual resource includes:
  • the method further includes:
  • the step of performing the transmission process of the custom virtual resource according to the target user identifier, and the step of sharing the customized virtual resource to the terminal corresponding to the target user identifier includes:
  • the push notification of the customized virtual resource is sent according to the target user identifier.
  • the receiving the virtual resource custom triggering instruction includes:
  • a virtual resource custom trigger instruction is received.
  • the present invention provides another method for implementing virtual resource customization, the method is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast, the method includes:
  • the present disclosure further provides an apparatus for implementing virtual resource customization, including:
  • the trigger instruction receiving module is configured to receive a trigger instruction of the virtual resource customization
  • control loading triggering module configured to trigger loading of the image capturing control according to the triggering instruction
  • An image capturing hardware opening module is configured to perform opening of the specified image capturing hardware by loading the image capturing control
  • a virtual resource extraction module configured to extract a custom virtual resource from the image content output by the specified image collection hardware.
  • the device further includes:
  • a background area forming module configured to form a background area with respect to the image output area of the image capturing hardware in the display interface
  • a mask layer generating module is configured to generate a translucent mask layer in the background area.
  • the virtual resource extraction module includes:
  • An image acquisition unit configured to control the collection of image content by the specified image acquisition hardware on a real scene
  • An image optimization unit is configured to optimize the image content to generate a custom virtual resource.
  • the image optimization unit includes:
  • a texture generation subunit configured to generate a texture according to the image content
  • the special effect processing sub-unit is configured to control multiple shaders to perform the special effect processing of the texture in parallel to generate a custom virtual resource.
  • the present disclosure further provides another device for implementing virtual resource customization, where the device is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast.
  • the device includes:
  • a notification receiving module configured to receive a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal
  • a resource downloading module configured to download a corresponding custom virtual resource from the virtual resource server in response to the push notification
  • a resource display module configured to display the customized virtual resource on a display interface of the terminal.
  • the disclosure provides a terminal, where the terminal includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of implementing virtual resource customization described above.
  • the present disclosure also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the method of virtual resource customization described above.
  • the virtual resource custom triggering instruction is received, the image capturing control is triggered according to the triggering instruction, the specified image capturing hardware is turned on by the loading of the image capturing control, and the image outputted from the specified image capturing hardware is outputted.
  • the content is extracted from the customized virtual resources, so that the virtual resources cannot be re-developed through a long development cycle, and the virtual resources can be customized according to actual needs, thereby greatly improving the richness of the virtual resources.
  • FIG. 1 is a schematic diagram of an implementation environment in accordance with an embodiment of the present invention.
  • FIG. 2 is a flow chart of a method for implementing virtual resource customization, according to an exemplary embodiment.
  • FIG. 3 is a schematic diagram of an electronic gift, according to an exemplary embodiment.
  • FIG. 4 is a flow chart showing the operational steps of an image capture control, according to an exemplary embodiment.
  • FIG. 5 is another method of implementing virtual resource customization according to the corresponding embodiment of FIG.
  • FIG. 6 is a schematic diagram of a background area shown in accordance with an exemplary embodiment.
  • FIG. 7 is a specific implementation flowchart of step S140 in the method for implementing virtual resource customization according to the embodiment shown in FIG. 2 .
  • FIG. 8 is a flow chart showing an optimization process of image content, according to an exemplary embodiment.
  • FIG. 9 is a specific implementation flowchart of step S142 in the method for implementing virtual resource customization according to the embodiment shown in FIG. 7.
  • FIG. 10 is a schematic diagram of image filter processing by GLProcessFramework, according to an exemplary embodiment.
  • FIG. 11 is a flowchart of another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2.
  • FIG. 12 is a specific implementation flowchart of step S220 in the method for implementing virtual resource customization according to the embodiment shown in FIG.
  • FIG. 13 is a flow chart showing interaction of a custom virtual resource, according to an exemplary embodiment.
  • FIG. 14 is a flowchart of another method for implementing virtual resource customization, according to an exemplary embodiment.
  • FIG. 15 is a schematic diagram of a scenario for implementing virtual resource customization in a live broadcast room.
  • FIG. 16 is a block diagram of an apparatus for implementing virtual resource customization, according to an exemplary embodiment.
  • FIG. 17 is a block diagram of another apparatus for implementing virtual resource customization according to the embodiment of FIG. 16.
  • FIG. 18 is a block diagram of the virtual resource extraction module 140 shown in the corresponding embodiment of FIG. 16.
  • FIG. 19 is a block diagram of an image optimization unit 142 shown in the corresponding embodiment of FIG. 18.
  • FIG. 20 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16.
  • FIG. 21 is a block diagram of the resource transfer module 220 in the device for customizing the virtual resource shown in the embodiment of FIG. 20.
  • FIG. 22 is a block diagram of another apparatus for implementing virtual resource customization, according to an exemplary embodiment.
  • FIG. 23 is a structural block diagram of a terminal according to an exemplary embodiment.
  • FIG. 1 is a schematic diagram of an implementation environment in accordance with an embodiment of the present invention. As shown in FIG. 1, the implementation environment includes a terminal 10 and a server 20 that performs data transmission with the terminal 10.
  • the manner of association between the terminal 10 and the server 20 includes, but is not limited to, a data association manner between the terminal and the wireless network, such as WiFi, and the like.
  • the specific association manner is not limited by this embodiment.
  • the terminal 10 uploads the customized virtual resource to the server 20.
  • the terminal 10 can be a computer device such as a smart phone or a computer.
  • the specific implementation is not limited by this embodiment.
  • FIG. 2 is a flow chart of a method for implementing virtual resource customization, according to an exemplary embodiment. As shown in FIG. 2, the method for implementing virtual resource customization may include the following steps.
  • step S110 a virtual resource customized trigger instruction is received.
  • a virtual resource is an electronic resource stored in the form of data in an Internet or a computer device, such as an electronic gift in the form of a picture or video, an electronic animation, or the like.
  • virtual resources are pre-made. After a long period of design and development, the produced virtual resources are stored in the Internet or computer equipment for selection.
  • interaction of virtual resources is performed by selecting one or more transmissions among pre-made virtual resources.
  • FIG. 3 is a schematic diagram of an electronic gift when a live video is shown, according to an exemplary embodiment.
  • each electronic gift will be displayed in the lower area of the terminal display interface, such as 301, in the form of a gift identification.
  • 301 in FIG. 3 is selected, that is, when the electronic gift is selected as a cake, the electronic gift is transmitted to the designated terminal.
  • the trigger instruction is a command that indicates the customization of the virtual resource.
  • the virtual instruction can be customized by the trigger instruction, and the ideal virtual resource can be created in real time according to the requirement, so as to better meet the user's needs, improve the richness of the virtual resource, and enhance the user's participation.
  • the present invention can be applied to trigger the customization of the virtual resource in the live broadcast, and can also trigger the customization of the virtual resource in the game, or can trigger the customization of the virtual resource in the video session.
  • the application scenario of the present invention is not limited.
  • step S120 the loading of the image acquisition control is triggered according to the triggering instruction.
  • the image acquisition control is a set of instructions that control the acquisition process of the image acquisition hardware.
  • FIG. 4 is a flow chart showing the operational steps of an image capture control, according to an exemplary embodiment.
  • the image acquisition control determines whether the terminal supports the specified image acquisition hardware. For example, when the image acquisition hardware is specified as the camera, it is determined whether the camera is compatible with the terminal. If it is compatible, the camera is turned on. If it is not supported, a prompt message is displayed on the display interface of the terminal. Then, by obtaining the image content in the specified image acquisition hardware. Again, the image content in the specified image acquisition hardware is optimized to generate a custom virtual resource that meets the requirements. Finally, preview the generated custom virtual assets.
  • step S130 the opening of the specified image acquisition hardware is performed by the loading of the image acquisition control.
  • the specified image acquisition hardware is an image acquisition device that is specified by image acquisition to provide material for a custom virtual resource.
  • a camera For example, a camera, a scanner, and the like.
  • image acquisition hardware there are multiple image acquisition hardware that are signaled to the terminal.
  • the collection of image content is more convenient by specifying one or more image acquisition hardware.
  • the image acquisition control is controlled to control the opening of the specified image acquisition hardware, and the image is collected.
  • step S140 extraction of the custom virtual resource is performed from the image content output by the specified image acquisition hardware.
  • the image content specified by the image acquisition hardware can be dynamic, static, or a dynamic image containing audio.
  • the image content of a specific area may be selected from the image content output by the specified image acquisition hardware as a custom virtual resource, or the image content of the image content output by the specified image acquisition hardware may be beautified.
  • the virtual content of the image content output by the specified image acquisition hardware may be extracted by other means.
  • FIG. 5 is another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2.
  • the method for implementing the virtual resource customization may further include the following steps.
  • step S160 a background area is formed with respect to the image output area in the display interface with respect to the image acquisition hardware.
  • the image output area is a display area of the image content collected by the image acquisition hardware on the display interface.
  • the background area is a peripheral area other than the image output area of the image capturing hardware in the display interface of the terminal.
  • FIG. 6 is a schematic diagram of a background area shown in accordance with an exemplary embodiment.
  • the area 501 is an image output area of the image acquisition hardware in the display interface
  • the area 502 is a background area.
  • a translucent mask layer is generated in the background area.
  • the background area is covered by a translucent mask layer so as not to affect the display of the original content in the display interface.
  • the original content in the display interface may be a statically displayed image or a video image being played.
  • the original content in the display interface is not limited herein, and the mask layer does not affect the screen to which the mask is masked. The running of the application.
  • the live broadcast of the video is performed in the display interface of the terminal.
  • the background area formed by the image output area of the image capture hardware is displayed in the display interface.
  • a translucent mask layer is generated, and after the mask layer is generated, the live video is still played in the display interface of the terminal.
  • the image output area of the image acquisition hardware in the display interface is controlled by the image acquisition control.
  • the image output area of the image acquisition hardware is displayed in the image output area. Size adjustment.
  • the image output area of the predetermined position size is set in advance in the display interface of the terminal relative to the image acquisition hardware, and the image content located in the predetermined area is extracted from the image content collected by the specified image acquisition hardware, and a custom virtual resource is generated and outputted in the image.
  • the area displays the custom virtual resource, thereby ensuring the consistency of the size of the custom virtual resource and facilitating image processing.
  • a semi-transparent mask layer is generated by generating a translucent mask layer with respect to a background area formed by the image output area of the image acquisition hardware in the display interface, without affecting the playback of the original content. Display, thus avoiding the stability of interaction between terminals due to custom virtual resources.
  • FIG. 7 is a description of the details of step S140, which may include the following steps, according to an exemplary embodiment.
  • step S141 the control specifies that the image acquisition hardware performs image content acquisition on the real scene in which it is located.
  • the image acquisition control is used to control the image acquisition hardware to collect the image content of the real scene.
  • the image acquisition hardware is specified as a camera, and when the camera is controlled to capture image content, the focus processing is automatically performed in advance.
  • the preset autofocus time is 2 seconds. After step S130 is completed, 2 seconds of autofocus will be taken before shooting, to avoid blurring of the captured image due to unfinished focus, thereby affecting the custom virtual resource. quality.
  • phase detection by Focus Pixels technology provides depth information to achieve continuous autofocus.
  • the specified image acquisition hardware has an optical image anti-shake function to prevent the image from being blurred due to user misoperation, thereby affecting the quality of the customized virtual resource.
  • step S142 the image content is optimized to generate a custom virtual resource.
  • the optimization process is to improve the image content output by the specified image acquisition hardware, for example, beautification, special effects, filter processing, and the like.
  • the image content is rendered by OpenGL, and each pixel in the captured image content is coordinate-converted, cropped, added with color or material, and finally displayed to realize the beautification of the image content. deal with.
  • FIG. 8 is a flow chart showing an optimization process of image content, according to an exemplary embodiment.
  • the low-resolution image is used to display the real-time state of the image content collection on the display interface; on the other hand, the image data process is used to optimize the image data stream of the image output by the camera. deal with.
  • the optimized image is replaced on the display interface to display the low-resolution image, thereby ensuring the smoothness of the image and ensuring the quality of the image content after the optimization process.
  • the specified image acquisition hardware is controlled to collect the image content of the real scene, and then the optimized processing generates the custom virtual resource, improves the richness of the virtual resource, and makes the customized virtual resource through the beautification process. More beautiful, improve the quality of custom virtual resources.
  • FIG. 9 is a description of the details of step S142, which may include the following steps, according to an exemplary embodiment.
  • step S1421 a texture is generated according to the image content
  • Texture is the pattern detail of the surface of an object in an image.
  • the image content is rendered by FBO (Frame Buffer Object) to generate a texture.
  • FBO Frazier Object
  • step S1422 a plurality of shaders are controlled to perform texture effect processing in parallel to generate a custom virtual resource.
  • Special effects processing on textures mainly includes pixel color calculation, texture coordinate calculation, atomization calculation, etc., through special effects processing, to achieve different filter effects of image content.
  • a shader is an editable program that processes image content. By creating multiple shaders, controlling multiple shaders to execute in parallel, and performing texture effects processing, the efficiency of special effects processing is greatly improved.
  • FIG. 10 is a schematic diagram of image filter processing by GLProcessFramework, according to an exemplary embodiment.
  • the processing process that consumes a large amount of resources is completed by OpenGL, and the texture effect processing is performed by the scalable tree structure of GLProcessFramework.
  • GLProcessFramework abstracts textures, FBOs, and shaders.
  • the texture abstraction is Engine class: Picture Engine, Movie Engine, Video Camera Engine, FBO, and shader abstraction is Filter class: Process Filter, Engine class is responsible for passing textures and driving processes. Filter is responsible for implementing the effect on its corresponding FBO. It can be finally drawn in GLView to display the effect or directly output the result.
  • Both the Engine class and the Filter class can add other Filter classes by concatenation or string to superimpose effects or output multiple effects at the same time. This makes it possible to superimpose multi-shader effects and to quickly obtain large-sized, high-quality images after shooting.
  • FIG. 11 is a flowchart of another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2. As shown in FIG. 11, after step S140, the method for implementing virtual resource customization may include the following steps.
  • step S210 a target user identifier specified for the custom virtual resource is obtained.
  • a customized virtual resource is sent by specifying a target user identifier and corresponding to the specified target user identifier.
  • the target user ID can be specified when the virtual resource customization is triggered. It can also be specified after the custom virtual resource is created. It can also be specified by other opportunities. The target user ID is not specified here. Timing is limited.
  • step S220 the transmission process of the customized virtual resource is performed according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
  • the transfer processing of a custom virtual resource is to send a custom virtual resource.
  • the transmission processing may be directly transmitted through a local area network, or may be transmitted in real time through a network, or may be other transmission processing methods.
  • a terminal where multiple users are located establishes a connection through network communication, and then sends a customized virtual resource to a terminal corresponding to the target user identifier through network communication, so as to implement interaction of the customized virtual resource.
  • the sending confirmation instruction of the customized virtual resource is received, so as to prevent the generated custom virtual resource from being sent to the terminal corresponding to the other target user identifier when the requirement is not met.
  • the target user identifier is sent to the corresponding terminal, thereby more specifically satisfying the interaction requirement between the users, and realizing the customization of the virtual resource. Increased the richness of virtual resources.
  • FIG. 12 is a description of the details of step S220 shown in accordance with the corresponding embodiment of FIG.
  • This step S220 can include the following steps.
  • step S221 HTTP transmission of the customized virtual resource is performed for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server.
  • HTTP HyperText Transfer Protocol
  • step S222 after the customized virtual resource is successfully uploaded, the push notification of the customized virtual resource is sent according to the target user identifier.
  • each terminal establishes a connection through network communication.
  • the terminal When a terminal sends a customized virtual resource to another terminal, the terminal first uploads the customized virtual resource to the virtual resource server, and then the other terminal downloads the customized virtual resource from the virtual resource server. To achieve the interaction of custom virtual resources between terminals.
  • FIG. 13 is a flow chart showing interaction of a custom virtual resource, according to an exemplary embodiment.
  • A, B, and C are terminals in which multiple terminals in the live broadcast are located, where A is the terminal where the broadcast is located, and terminal A sends video streams and audio streams to terminal B and terminal C through the QTX server, thereby implementing terminal A.
  • the terminal B sends the customized virtual resource to the terminal A
  • the custom virtual resource is uploaded to the HTTP server.
  • the terminal B will notify the QTX server to send the customized virtual resource to the terminal A and the terminal C. Push notifications.
  • the generated virtual resource is uploaded to the virtual resource server, and then sent to the corresponding terminal according to the target user identifier, thereby better satisfying the interaction between the users.
  • the requirement realizes the customization of the virtual resource, improves the richness of the virtual resource, and transmits the virtual resource through the virtual resource server when the virtual resource is sent, so that the operation of the original application in the terminal is not affected, and the terminal is guaranteed to operate. Stability.
  • step S220 a method for implementing virtual resource customization is illustrated according to an exemplary embodiment.
  • the method for implementing virtual resource customization may include the following steps.
  • step S310 in response to the successful transmission of the custom virtual resource, the deduction of the corresponding amount is performed in the associated account.
  • a linked account is an account that sends custom virtual resources.
  • the terminal When a custom virtual resource is sent, the terminal will log in to the corresponding account, and then the customized virtual resource will be sent to the account.
  • the amount corresponding to each successful transmission of the custom virtual resource is 1 yuan, and after each successful sending of the customized virtual resource, 1 yuan is deducted from the account for sending the customized virtual resource.
  • the paid service is realized by the customization of the virtual resource, and the economic income is better brought about while satisfying the user's demand.
  • FIG. 14 is a flowchart of another method for implementing virtual resource customization, according to an exemplary embodiment. As shown in FIG. 14, the method is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast.
  • the method for implementing virtual resource customization may include the following steps.
  • step S410 a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal is received.
  • Push notifications are reminder notifications for terminals that receive custom virtual resources.
  • the push notification contains the address information of the custom virtual resource in the server.
  • the terminal is prompted to perform the download of the customized virtual resource by receiving the push notification.
  • step S420 in response to the push notification, the corresponding custom virtual resource is downloaded from the virtual resource server.
  • the terminal After receiving the push notification, the terminal downloads the corresponding custom virtual resource from the virtual resource server.
  • step S430 the display of the customized virtual resource is performed on the display interface of the terminal.
  • the customized virtual resource is displayed to implement the interaction of the customized virtual resource.
  • the terminal downloads the corresponding custom resource from the virtual resource server, and automatically sends the self-sentence to other terminals in the live broadcast.
  • Defining virtual resources for display improves the richness of virtual resources when interacting between terminals in the live broadcast, and better satisfies the interaction requirements between terminals.
  • the following describes the method for implementing virtual resource customization as described above in conjunction with a specific application scenario.
  • the method of implementing virtual resource customization runs in the terminal.
  • FIG. 15 is a schematic diagram of a scenario for implementing virtual resource customization in a live broadcast room.
  • the user clicks the custom gift button in the terminal interface to display a gift recognition and extraction interface above the video layer of the live broadcast.
  • the interface does not affect the live broadcast process; after the camera is aimed at the target object for 2 seconds Successfully extracting the gift image; the terminal optimizes the gift image to generate a custom gift; previews the custom gift in the terminal interface; after the user determines that the custom gift meets the requirements and confirms, the custom gift is uploaded HTTP After the confirmation upload is completed, the other terminals in the live broadcast room send a push notification of the customized gift through the QTX server; after receiving the push notification of the custom gift, the other terminals in the live broadcast download the corresponding information from the HTTP server according to the push notification. Custom gift and show it.
  • FIG. 16 is a block diagram of a device for implementing virtual resource customization, including but not limited to: a trigger instruction receiving module 110, a control loading trigger module 120, an image capturing hardware opening module 130, and a virtual resource, according to an exemplary embodiment.
  • the module 140 is extracted.
  • the trigger instruction receiving module 110 is configured to receive a virtual resource custom triggering instruction
  • the control loading triggering module 120 is configured to trigger loading of the image capturing control according to the triggering instruction
  • the image capturing hardware opening module 130 is configured to perform opening of the specified image capturing hardware by loading the image capturing control;
  • the virtual resource extraction module 140 is configured to perform extraction of the customized virtual resource from the image content output by the specified image collection hardware.
  • FIG. 17 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16.
  • the apparatus for implementing virtual resource customization according to the embodiment of FIG. 16 further includes, but is not limited to, a background area formation.
  • Module 160 and mask layer generation module 170 are also included in the apparatus for implementing virtual resource customization according to the embodiment of FIG. 16.
  • a background area forming module 160 configured to form a background area with respect to the image output area in the display interface with respect to the image capturing hardware
  • the mask layer generating module 170 is configured to generate a translucent mask layer in the background area.
  • the background area forming module 160 is specifically configured to form a background area in an image output area in the live video display interface with respect to the image capturing hardware.
  • the trigger instruction receiving module 110 is specifically configured to: receive a virtual resource custom triggering instruction during the live video display process.
  • the virtual resource extraction module 140 shown in FIG. 16 includes, but is not limited to, an image acquisition unit 141 and an image optimization unit 142.
  • the image collection unit 141 is configured to control the collection of the image content by the specified image acquisition hardware on the real scene;
  • the image optimization unit 142 is configured to perform optimization processing on the image content to generate a custom virtual resource.
  • the image optimization unit 142 shown in FIG. 18 includes, but is not limited to, a texture generation sub-unit 1421 and a special effect processing sub-unit 1422.
  • a texture generation sub-unit 1421 configured to generate a texture according to the image content
  • the special effect processing sub-unit 1422 is configured to control the plurality of shaders to perform the special effect processing of the texture in parallel to generate a custom virtual resource.
  • FIG. 20 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16.
  • the apparatus for implementing virtual resource customization shown in FIG. 16 further includes but not It is limited to: target user identity obtaining module 210 and resource transmission module 220.
  • the target user identifier obtaining module 210 is configured to acquire a target user identifier specified for the custom virtual resource.
  • the resource transmission module 220 is configured to perform the transmission process of the customized virtual resource according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
  • the resource transmission module 220 shown in FIG. 20 includes, but is not limited to, a resource uploading unit 221 and a push notification sending unit 222.
  • the resource uploading unit 221 is configured to perform HTTP transmission of the customized virtual resource for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server;
  • the push notification sending unit 222 is configured to send a push notification of the custom virtual resource according to the target user identifier after the custom virtual resource is successfully uploaded.
  • FIG. 22 is a block diagram of another apparatus for implementing virtual resource customization according to an exemplary embodiment, where the apparatus is applied to a terminal between live broadcasts, and the terminal performs video data transmission through a live broadcast server and other terminals in the live broadcast.
  • the method includes a but not limited to: a push notification receiving module 410, a virtual resource downloading module 420, and a resource displaying module 430.
  • the push notification receiving module 410 is configured to receive a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal;
  • the virtual resource downloading module 420 is configured to download a corresponding custom virtual resource from the virtual resource server in response to the push notification.
  • the resource display module 430 is configured to perform the display of the customized virtual resource on a display interface of the terminal.
  • FIG. 23 is a block diagram of a terminal 100, according to an exemplary embodiment.
  • the terminal 100 may be the terminal 10 described in the above-described implementation environment.
  • the terminal 100 may include one or more of the following components: a processing component 101, a memory 102, a power component 103, a multimedia component 104, an audio component 105, a sensor component 107, and a communication component 108.
  • a processing component 101 a memory 102
  • a power component 103 a power component 103
  • a multimedia component 104 a multimedia component 104
  • an audio component 105 a sensor component 107
  • a communication component 108 may be included in the terminal 100.
  • the above components are not all necessary, and the terminal 100 may add other components or reduce some components according to the requirements of the functions, which is not limited in this embodiment.
  • Processing component 101 typically controls the overall operation of terminal 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, and the like.
  • Processing component 101 can include one or more processors 109 to execute instructions to perform all or part of the steps described above.
  • processing component 101 can include one or more modules to facilitate interaction between component 101 and other components.
  • processing component 101 can include a multimedia module to facilitate interaction between multimedia component 104 and processing component 101.
  • the memory 102 is configured to store various types of data to support operation at the terminal 100. Examples of such data include instructions for any application or method operating on terminal 100.
  • the memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory) Erase programmable read-only memory, EPROM (Erasable Programmable Read Only Memory), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory) Read memory), magnetic memory, flash memory, disk or optical disk. Also stored in the memory 102 is one or more modules configured to be executed by the one or more processors 109 to complete FIGS. 2, 5, 7, 9, 11, and 12 or all or part of the steps in any of the methods shown in FIG.
  • Power component 103 provides power to various components of terminal 100.
  • Power component 103 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 100.
  • the multimedia component 104 includes a screen that provides an output interface between the terminal 100 and a user.
  • the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the audio component 105 is configured to output and/or input an audio signal.
  • the audio component 105 includes a microphone that is configured to receive an external audio signal when the terminal 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 102 or transmitted via communication component 108.
  • the audio component 105 also includes a speaker for outputting an audio signal.
  • Sensor assembly 107 includes one or more sensors for providing terminal 100 with various aspects of status assessment.
  • the sensor assembly 107 can detect the open/closed state of the terminal 100, the relative positioning of the components, and the sensor assembly 107 can also detect a change in position of the terminal 100 or a component of the terminal 100 and a temperature change of the terminal 100.
  • the sensor assembly 107 can also include a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 108 is configured to facilitate wired or wireless communication between terminal 100 and other devices.
  • the terminal 100 can access a wireless network based on a communication standard, such as WiFi (WIreless-Fidelity), 2G or 3G, or a combination thereof.
  • communication component 108 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 108 further includes an NFC (Near Field Communication) module to facilitate short range communication.
  • the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infrared Data Association) technology, UWB (Ultra-Wideband) technology, BT (Bluetooth) technology and others. Technology to achieve.
  • the terminal 100 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processing), and PLD (Programmable Logic Device). ), FPGA (Field-Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above method.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • controller microcontroller
  • microprocessor microprocessor or other electronic component implementation for performing the above method.
  • the present invention further provides an intelligent terminal, which performs all or part of the method for implementing virtual resource customization as shown in any of FIG. 2, FIG. 5, FIG. 7, FIG. 9, FIG. 11, FIG. 12, and FIG. step.
  • the device includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of the above embodiments .
  • a storage medium is also provided, which is a computer readable storage medium, such as a temporary and non-transitory computer readable storage medium including instructions.
  • the storage medium stores a computer program executable by the processor 109 of the terminal 100 to perform the above-described method of implementing virtual resource customization.

Abstract

The present invention relates to the technical field of Internet applications. Disclosed are a method and device for realizing virtual resource customization, a terminal, and a computer readable storage medium. The method comprises: receiving a trigger instruction for virtual resource customization, triggering loading of an image acquisition control according to the trigger instruction, starting specified image acquisition hardware by loading the image acquisition control, and extracting a customized virtual resource from image content outputted by the specified image acquisition hardware. The method and device for realizing virtual resource customization can realize customization of virtual resources.

Description

实现虚拟资源自定义的方法及装置Method and device for realizing virtual resource customization 技术领域Technical field
本发明涉及互联网应用技术领域,特别涉及一种实现虚拟资源自定义的方法及装置、终端、计算机可读存储介质。The present invention relates to the field of Internet application technologies, and in particular, to a method and apparatus for implementing virtual resource customization, a terminal, and a computer readable storage medium.
背景技术Background technique
随着互联网技术的高速发展,用户之间进行互动的需求越来越高,通过虚拟资源的互相发送更好地增强用户之间的互动。With the rapid development of Internet technology, the demand for interaction between users is getting higher and higher, and the interaction between users is enhanced by the mutual transmission of virtual resources.
例如,直播间为用户提供了交流通道,通过直播间,各用户之间进行互动。直播间中的某一用户可以作为主播,在该直播间中发布视频、音频等信息。而直播间中的其他用户作为该主播的观众,可以查看这些信息。当观众对这些很有兴趣时,可以向主播赠送电子礼物等虚拟资源,主播接收虚拟资源后,直播间对赠送给该主播的虚拟礼物进行展示,从而更好的实现用户之间的互动。For example, the live broadcast room provides users with an exchange channel, and each user interacts through the live broadcast room. A user in the live broadcast room can be used as an anchor to post video, audio, and other information in the live broadcast room. Other users in the live room can view this information as the viewer of the anchor. When the audience is interested in these, they can give virtual gifts such as electronic gifts to the anchor. After the host receives the virtual resources, the live room presents the virtual gifts presented to the anchor, thereby better realizing the interaction between the users.
然而,目前用户之间的交互中,虚拟资源均是预先设置好的,用户只能在预先设置的虚拟资源中进行选择,即只能以现有的虚拟资源进行发送分享,而现有的虚拟资源形式不够丰富,且无法实现虚拟资源的自定义,而进行虚拟资源的开发周期较长,且更新速度较慢,大大影响了用户参与的积极性。However, in the current interaction between users, the virtual resources are pre-set, and the user can only select among the preset virtual resources, that is, the existing virtual resources can only be used for sending and sharing, and the existing virtual The resource form is not rich enough, and the virtual resource cannot be customized. The development cycle of the virtual resource is long and the update speed is slow, which greatly affects the enthusiasm of the user.
发明内容Summary of the invention
为了解决相关技术中虚拟资源形式不够丰富,且无法实现虚拟资源的自定义的技术问题,本发明提供了一种实现虚拟资源自定义的方法及装置。In order to solve the technical problem that the virtual resource form in the related art is not rich enough and the virtual resource cannot be customized, the present invention provides a method and device for realizing the virtual resource customization.
一方面,本公开提供了一种实现虚拟资源自定义的方法,包括:In one aspect, the present disclosure provides a method for implementing virtual resource customization, including:
接收虚拟资源自定义的触发指令;Receiving a virtual resource custom trigger instruction;
根据所述触发指令触发图像采集控件的加载;Triggering loading of the image collection control according to the triggering instruction;
通过所述图像采集控件的加载,进行指定图像采集硬件的开启;Opening the specified image acquisition hardware by loading the image capture control;
从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。Extracting a custom virtual resource from image content output by the specified image acquisition hardware.
可选的,所述通过所述图像采集控件的加载,进行指定图像采集硬件的开启的步骤之后,所述方法还包括:Optionally, after the step of performing the opening of the specified image capturing hardware by the loading of the image capturing control, the method further includes:
相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域;Forming a background area with respect to the image output area in the display interface with respect to the image acquisition hardware;
在所述背景区域生成半透明的遮罩层。A translucent mask layer is created in the background region.
可选的,所述相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域,包括:Optionally, the forming an image area in the image output area in the display interface with respect to the image capturing hardware includes:
相对于所述图像采集硬件在直播视频显示界面中的图像输出区域形成背景区域。A background area is formed in the image output area in the live video display interface with respect to the image acquisition hardware.
可选的,所述从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取的步骤包括:Optionally, the step of performing extraction of the customized virtual resource from the image content output by the specified image collection hardware includes:
控制所述指定图像采集硬件对所在现实场景进行图像内容的采集;Controlling, by the specified image acquisition hardware, the image content of the real scene to be collected;
对所述图像内容进行优化处理生成自定义虚拟资源。Optimizing the image content to generate a custom virtual resource.
可选的,所述对所述图像内容进行优化处理生成自定义虚拟资源的步骤包括:Optionally, the step of performing optimization processing on the image content to generate a customized virtual resource includes:
根据所述图像内容生成纹理;Generating a texture according to the image content;
控制多个着色器并行进行所述纹理的特效处理,生成自定义虚拟资源。Controlling multiple shaders to perform the effect processing of the texture in parallel to generate a custom virtual resource.
可选的,所述从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取的步骤之后,所述方法还包括:Optionally, after the step of performing the extraction of the customized virtual resource from the image content output by the specified image collection hardware, the method further includes:
获取为所述自定义虚拟资源指定的目标用户标识;Obtaining a target user identifier specified for the custom virtual resource;
根据所述目标用户标识进行所述自定义虚拟资源的传输处理,使所述自定义虚拟资源被分享至所述目标用户标识对应的终端。And performing the transmission processing of the customized virtual resource according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
可选的,所述根据所述目标用户标识进行所述自定义虚拟资源的传输处理,使所述自定义虚拟资源被分享至所述目标用户标识对应的终端的步骤包括:Optionally, the step of performing the transmission process of the custom virtual resource according to the target user identifier, and the step of sharing the customized virtual resource to the terminal corresponding to the target user identifier includes:
为所述目标用户标识进行所述自定义虚拟资源的HTTP传输,使所述自定义虚拟资源被上传至虚拟资源服务器;Performing HTTP transmission of the customized virtual resource for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server;
在所述自定义虚拟资源成功上传后,根据所述目标用户标识发送所述自定义虚拟资源的推送通知。After the customized virtual resource is successfully uploaded, the push notification of the customized virtual resource is sent according to the target user identifier.
可选的,所述接收虚拟资源自定义的触发指令,包括:Optionally, the receiving the virtual resource custom triggering instruction includes:
在直播视频显示过程中,接收虚拟资源自定义的触发指令。During the live video display process, a virtual resource custom trigger instruction is received.
另外,本发明还提供了另一种实现虚拟资源自定义的方法,所述方法应用于直播间的终端,所述终端通过直播服务器与直播间的其它终端进行视频数据传输,所述方法包括:In addition, the present invention provides another method for implementing virtual resource customization, the method is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast, the method includes:
接收所述直播服务器针对其它终端进行自定义虚拟资源的上传而发送的推送通知;Receiving, by the live broadcast server, a push notification sent by uploading a custom virtual resource to another terminal;
响应所述推送通知,从虚拟资源服务器中下载对应的自定义虚拟资源;Responding to the push notification, downloading a corresponding custom virtual resource from the virtual resource server;
在所述终端的显示界面进行所述自定义虚拟资源的展示。Displaying the customized virtual resource on the display interface of the terminal.
另一方面,本公开还提供了一种实现虚拟资源自定义的装置,包括:In another aspect, the present disclosure further provides an apparatus for implementing virtual resource customization, including:
触发指令接收模块,用于接收虚拟资源自定义的触发指令;The trigger instruction receiving module is configured to receive a trigger instruction of the virtual resource customization;
控件加载触发模块,用于根据所述触发指令触发图像采集控件的加载;a control loading triggering module, configured to trigger loading of the image capturing control according to the triggering instruction;
图像采集硬件开启模块,用于通过所述图像采集控件的加载,进行指定图像采集硬件的开启;An image capturing hardware opening module is configured to perform opening of the specified image capturing hardware by loading the image capturing control;
虚拟资源提取模块,用于从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。And a virtual resource extraction module, configured to extract a custom virtual resource from the image content output by the specified image collection hardware.
可选的,所述装置还包括:Optionally, the device further includes:
背景区域形成模块,用于相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域;a background area forming module, configured to form a background area with respect to the image output area of the image capturing hardware in the display interface;
遮罩层生成模块,用于在所述背景区域生成半透明的遮罩层。A mask layer generating module is configured to generate a translucent mask layer in the background area.
可选的,所述虚拟资源提取模块包括:Optionally, the virtual resource extraction module includes:
图像采集单元,用于控制所述指定图像采集硬件对所在现实场景进行图像内容的采集;An image acquisition unit, configured to control the collection of image content by the specified image acquisition hardware on a real scene;
图像优化单元,用于对所述图像内容进行优化处理生成自定义虚拟资源。An image optimization unit is configured to optimize the image content to generate a custom virtual resource.
可选的,所述图像优化单元包括:Optionally, the image optimization unit includes:
纹理生成子单元,用于根据所述图像内容生成纹理;a texture generation subunit, configured to generate a texture according to the image content;
特效处理子单元,用于控制多个着色器并行进行所述纹理的特效处理,生成自定义虚拟资源。The special effect processing sub-unit is configured to control multiple shaders to perform the special effect processing of the texture in parallel to generate a custom virtual resource.
另外,本公开还提供了另一种实现虚拟资源自定义的装置,所述装置应用于直播间的终端,所述终端通过直播服务器与直播间的其它终端进行视频数据传输,所述装置包括:In addition, the present disclosure further provides another device for implementing virtual resource customization, where the device is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast. The device includes:
通知接收模块,用于接收所述直播服务器针对其它终端进行自定义虚拟资源的上传而发送的推送通知;a notification receiving module, configured to receive a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal;
资源下载模块,用于响应所述推送通知,从虚拟资源服务器中下载对应的自定义虚拟资源;a resource downloading module, configured to download a corresponding custom virtual resource from the virtual resource server in response to the push notification;
资源显示模块,用于在所述终端的显示界面进行所述自定义虚拟资源的展示。And a resource display module, configured to display the customized virtual resource on a display interface of the terminal.
另一方面,本公开还提供了一种终端,所述终端包括:In another aspect, the disclosure provides a terminal, where the terminal includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述实现虚拟资源自定义的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of implementing virtual resource customization described above.
另一方面,本公开还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述虚拟资源自定义的方法。In another aspect, the present disclosure also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the method of virtual resource customization described above.
本发明的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:
在终端间进行互动的过程中,接收虚拟资源自定义的触发指令,根据触发指令触发图像采集控件的加载,通过图像采集控件的加载进行指定图像采集硬件的开启,从指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取, 从而无需通过较长的开发周期进行虚拟资源的重新开发,根据实际需求就能实现虚拟资源的自定义,大大提高了虚拟资源的丰富度。In the process of interaction between the terminals, the virtual resource custom triggering instruction is received, the image capturing control is triggered according to the triggering instruction, the specified image capturing hardware is turned on by the loading of the image capturing control, and the image outputted from the specified image capturing hardware is outputted. The content is extracted from the customized virtual resources, so that the virtual resources cannot be re-developed through a long development cycle, and the virtual resources can be customized according to actual needs, thereby greatly improving the richness of the virtual resources.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本发明。The above general description and the following detailed description are merely exemplary and are not intended to limit the invention.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是根据本发明实施例所涉及的实施环境的示意图。1 is a schematic diagram of an implementation environment in accordance with an embodiment of the present invention.
图2是根据一示例性实施例示出的一种实现虚拟资源自定义的方法流程图。2 is a flow chart of a method for implementing virtual resource customization, according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种电子礼物的示意图。FIG. 3 is a schematic diagram of an electronic gift, according to an exemplary embodiment.
图4是根据一示例性实施例示出的图像采集控件的工作步骤流程图。4 is a flow chart showing the operational steps of an image capture control, according to an exemplary embodiment.
图5是根据图2对应实施例示出的另一种实现虚拟资源自定义的方法。FIG. 5 is another method of implementing virtual resource customization according to the corresponding embodiment of FIG.
图6是根据一示例性实施例示出的背景区域的示意图。FIG. 6 is a schematic diagram of a background area shown in accordance with an exemplary embodiment.
图7是图2对应实施例示出的实现虚拟资源自定义的方法中步骤S140的一种具体实现流程图。FIG. 7 is a specific implementation flowchart of step S140 in the method for implementing virtual resource customization according to the embodiment shown in FIG. 2 .
图8是根据一示例性实施例示出的对图像内容进行优化处理的流程示意图。FIG. 8 is a flow chart showing an optimization process of image content, according to an exemplary embodiment.
图9是图7对应实施例示出的实现虚拟资源自定义的方法中步骤S142的一种具体实现流程图。FIG. 9 is a specific implementation flowchart of step S142 in the method for implementing virtual resource customization according to the embodiment shown in FIG. 7.
图10是根据一示例性实施例示出的通过GLProcessFramework进行图像滤镜处理的示意图。FIG. 10 is a schematic diagram of image filter processing by GLProcessFramework, according to an exemplary embodiment.
图11是根据图2对应实施例示出的另一种实现虚拟资源自定义的方法流程图。FIG. 11 is a flowchart of another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2.
图12是图11对应实施例示出的实现虚拟资源自定义的方法中步骤S220的一种具体实现流程图。FIG. 12 is a specific implementation flowchart of step S220 in the method for implementing virtual resource customization according to the embodiment shown in FIG.
图13是根据一示例性实施例示出的进行自定义虚拟资源的交互流程图。FIG. 13 is a flow chart showing interaction of a custom virtual resource, according to an exemplary embodiment.
图14是根据一示例性实施例示出的另一种实现虚拟资源自定义的方法流程图。FIG. 14 is a flowchart of another method for implementing virtual resource customization, according to an exemplary embodiment.
图15是直播间中实现虚拟资源自定义的场景示意图。FIG. 15 is a schematic diagram of a scenario for implementing virtual resource customization in a live broadcast room.
图16是根据一示例性实施例示出的一种实现虚拟资源自定义的装置框图。FIG. 16 is a block diagram of an apparatus for implementing virtual resource customization, according to an exemplary embodiment.
图17是图16对应实施例示出的另一种实现虚拟资源自定义的装置框图。FIG. 17 is a block diagram of another apparatus for implementing virtual resource customization according to the embodiment of FIG. 16.
图18是图16对应实施例示出的虚拟资源提取模块140的一种框图。FIG. 18 is a block diagram of the virtual resource extraction module 140 shown in the corresponding embodiment of FIG. 16.
图19是图18对应实施例示出的图像优化单元142的一种框图。FIG. 19 is a block diagram of an image optimization unit 142 shown in the corresponding embodiment of FIG. 18.
图20是根据图16对应实施例示出的另一种实现虚拟资源自定义的装置框图。FIG. 20 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16.
图21是图20对应实施例示出的现虚拟资源自定义的装置中资源传输模块220的一种框图。FIG. 21 is a block diagram of the resource transfer module 220 in the device for customizing the virtual resource shown in the embodiment of FIG. 20.
图22是根据一示例性实施例示出的另一种实现虚拟资源自定义的装置框图。FIG. 22 is a block diagram of another apparatus for implementing virtual resource customization, according to an exemplary embodiment.
图23是根据一示例性实施例示出的一种终端的结构框图。FIG. 23 is a structural block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例执行说明,其示例表示在附图中。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。The description will be made in detail herein with respect to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
图1是根据本发明实施例所涉及的实施环境的示意图。如图1所示,该实施环境包括:终端10以及与终端10进行相互之间数据传输的服务器20。1 is a schematic diagram of an implementation environment in accordance with an embodiment of the present invention. As shown in FIG. 1, the implementation environment includes a terminal 10 and a server 20 that performs data transmission with the terminal 10.
终端10和服务器20之间的关联方式,包括但不限于以WiFi等无线网络或者有线宽带实现的二者之间往来的数据关联方式,具体关联方式不受本实施例的限制。The manner of association between the terminal 10 and the server 20 includes, but is not limited to, a data association manner between the terminal and the wireless network, such as WiFi, and the like. The specific association manner is not limited by this embodiment.
终端10在虚拟资源自定义完成后,将自定义虚拟资源上传服务器20。After the virtual resource customization is completed, the terminal 10 uploads the customized virtual resource to the server 20.
终端10可以是智能手机、电脑等计算机设备,具体实现方式不受本实施例的限制。The terminal 10 can be a computer device such as a smart phone or a computer. The specific implementation is not limited by this embodiment.
图2是根据一示例性实施例示出的一种实现虚拟资源自定义的方法流程图。如图2所示,该实现虚拟资源自定义的方法可以包括以下步骤。2 is a flow chart of a method for implementing virtual resource customization, according to an exemplary embodiment. As shown in FIG. 2, the method for implementing virtual resource customization may include the following steps.
在步骤S110中,接收虚拟资源自定义的触发指令。In step S110, a virtual resource customized trigger instruction is received.
虚拟资源为互联网或计算机设备中以数据形式存储的电子资源,例如图片或视频形式的电子礼物、电子动画等。A virtual resource is an electronic resource stored in the form of data in an Internet or a computer device, such as an electronic gift in the form of a picture or video, an electronic animation, or the like.
通常地,虚拟资源为预先制作的。经过较长周期的设计和开发,将制作好的虚拟资源存储于互联网或计算机设备中,以供选择。Typically, virtual resources are pre-made. After a long period of design and development, the produced virtual resources are stored in the Internet or computer equipment for selection.
例如,在直播间进行视频交互时,通过在预先制作的虚拟资源中选择一个或多个发送,进行虚拟资源的交互。For example, when performing video interaction between live broadcasts, interaction of virtual resources is performed by selecting one or more transmissions among pre-made virtual resources.
图3是根据一示例性实施例示出的视频直播时一种电子礼物的示意图。如图3所示,电子礼物制作完成后,各电子礼物将以礼物标识的方式显示在终端显示界面中的下方区域,例如301。当选择图3中的301,即选择电子礼物为蛋糕时,将对该电子礼物向指定的终端进行发送。FIG. 3 is a schematic diagram of an electronic gift when a live video is shown, according to an exemplary embodiment. As shown in FIG. 3, after the electronic gift is completed, each electronic gift will be displayed in the lower area of the terminal display interface, such as 301, in the form of a gift identification. When 301 in FIG. 3 is selected, that is, when the electronic gift is selected as a cake, the electronic gift is transmitted to the designated terminal.
触发指令是指示进行虚拟资源自定义的命令。The trigger instruction is a command that indicates the customization of the virtual resource.
用户层面,可以通过触发指令指示进行虚拟资源的自定义制作,根据需求实时制作出理想的虚拟资源,从而更好的满足用户的需求,提高虚拟资源的丰富度,增强用户的参与感。At the user level, the virtual instruction can be customized by the trigger instruction, and the ideal virtual resource can be created in real time according to the requirement, so as to better meet the user's needs, improve the richness of the virtual resource, and enhance the user's participation.
可以理解的是,本发明可以应用在直播中触发进行虚拟资源的自定义,也可以在游戏中触发进行虚拟资源的自定义,还可以是在视频会话中触发进行虚拟资源的自定义,在此不对本发明的应用场景进行限定。It can be understood that the present invention can be applied to trigger the customization of the virtual resource in the live broadcast, and can also trigger the customization of the virtual resource in the game, or can trigger the customization of the virtual resource in the video session. The application scenario of the present invention is not limited.
例如,如图3进行视频直播的界面中,通过点击终端界面中预置的按钮302,指示进行虚拟资源的自定义制作。For example, in the interface for performing video live broadcast in FIG. 3, by clicking the button 302 preset in the terminal interface, the custom production of the virtual resource is instructed.
在步骤S120中,根据触发指令触发图像采集控件的加载。In step S120, the loading of the image acquisition control is triggered according to the triggering instruction.
图像采集控件是控制图像采集硬件的采集过程的指令集合。The image acquisition control is a set of instructions that control the acquisition process of the image acquisition hardware.
图4是根据一示例性实施例示出的图像采集控件的工作步骤流程图。图4中,首先,通过图像采集控件确定所在终端是否支持指定图像采集硬件。例如, 指定图像采集硬件为摄像头时,判断摄像头是否与所在终端兼容,如果兼容,则开启摄像头,如果不支持,则在所在终端的显示界面弹送提示消息。然后,通过获取指定图像采集硬件中的图像内容。再次,对指定图像采集硬件中的图像内容进行优化处理,生成符合要求的自定义虚拟资源。最后,对生成的自定义虚拟资源进行预览显示。4 is a flow chart showing the operational steps of an image capture control, according to an exemplary embodiment. In FIG. 4, first, it is determined by the image acquisition control whether the terminal supports the specified image acquisition hardware. For example, when the image acquisition hardware is specified as the camera, it is determined whether the camera is compatible with the terminal. If it is compatible, the camera is turned on. If it is not supported, a prompt message is displayed on the display interface of the terminal. Then, by obtaining the image content in the specified image acquisition hardware. Again, the image content in the specified image acquisition hardware is optimized to generate a custom virtual resource that meets the requirements. Finally, preview the generated custom virtual assets.
在步骤S130中,通过图像采集控件的加载,进行指定图像采集硬件的开启。In step S130, the opening of the specified image acquisition hardware is performed by the loading of the image acquisition control.
指定图像采集硬件是通过图像采集为自定义虚拟资源提供素材而指定的图像采集设备。例如,摄像头、扫描仪等。The specified image acquisition hardware is an image acquisition device that is specified by image acquisition to provide material for a custom virtual resource. For example, a camera, a scanner, and the like.
通常的,与终端进行信号连接的图像采集硬件存在多个。通过指定某一个或多个图像采集硬件,从而更方便地进行图像内容的采集。Typically, there are multiple image acquisition hardware that are signaled to the terminal. The collection of image content is more convenient by specifying one or more image acquisition hardware.
在图像采集控件加载后,通过图像采集控件控制指定图像采集硬件的开启,进行图像的采集。After the image acquisition control is loaded, the image acquisition control is controlled to control the opening of the specified image acquisition hardware, and the image is collected.
在步骤S140中,从指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。In step S140, extraction of the custom virtual resource is performed from the image content output by the specified image acquisition hardware.
指定图像采集硬件输出的图像内容可以是动态的,也可以是静态的,还可以是包含了音频的动态图像。The image content specified by the image acquisition hardware can be dynamic, static, or a dynamic image containing audio.
进行自定义虚拟资源的提取时,可以从指定图像采集硬件输出的图像内容中选取特定区域的图像内容作为自定义虚拟资源,也可以对指定图像采集硬件输出的图像内容进行美化处理后的图像内容作为自定义虚拟资源,还可以是通过其它的方式对指定图像采集硬件输出的图像内容进行自定义虚拟资源的提取。When extracting a custom virtual resource, the image content of a specific area may be selected from the image content output by the specified image acquisition hardware as a custom virtual resource, or the image content of the image content output by the specified image acquisition hardware may be beautified. As a custom virtual resource, the virtual content of the image content output by the specified image acquisition hardware may be extracted by other means.
利用如上所述的方法,在接收到的自定义虚拟资源的触发指令后,通过加载图像采集控件,控制指定图像采集硬件进行图像内容的采集,进而从图像采集硬件输出的图像内容中进行自定义虚拟资源的提取,用户根据实际需求就能实现虚拟资源的自定义,从而无需通过较长的开发周期进行虚拟资源的重新开发,并且大大提高了虚拟资源的丰富度。Using the method as described above, after receiving the trigger instruction of the custom virtual resource, by loading the image acquisition control, controlling the specified image acquisition hardware to collect the image content, and then customizing the image content output from the image acquisition hardware. The extraction of virtual resources enables the user to customize the virtual resources according to actual needs, thereby eliminating the need to re-develop virtual resources through a long development cycle and greatly improving the richness of virtual resources.
可选的,图5是根据图2对应实施例示出的另一种实现虚拟资源自定义的 方法。在步骤S130之后,该实现虚拟资源自定义的方法还可以包括以下步骤。Optionally, FIG. 5 is another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2. After the step S130, the method for implementing the virtual resource customization may further include the following steps.
在步骤S160中,相对于图像采集硬件在显示界面中的图像输出区域形成背景区域。In step S160, a background area is formed with respect to the image output area in the display interface with respect to the image acquisition hardware.
图像输出区域是图像采集硬件采集的图像内容在显示界面的显示区域。The image output area is a display area of the image content collected by the image acquisition hardware on the display interface.
背景区域是终端的显示界面中除图像采集硬件的图像输出区域以外的外围区域。The background area is a peripheral area other than the image output area of the image capturing hardware in the display interface of the terminal.
图6是根据一示例性实施例示出的背景区域的示意图。如图6所示,区域501为图像采集硬件在显示界面中的图像输出区域,而区域502则为背景区域。FIG. 6 is a schematic diagram of a background area shown in accordance with an exemplary embodiment. As shown in FIG. 6, the area 501 is an image output area of the image acquisition hardware in the display interface, and the area 502 is a background area.
在步骤S170中,在背景区域生成半透明的遮罩层。通过半透明的遮罩层对背景区域进行覆盖,从而不影响显示界面中原有内容的显示。显示界面中的原有内容可以是静态显示的图片,也可以是正在播放中的视频画面,在此不对显示界面中的原有内容进行限定,遮罩层不影响被其所遮罩的画面所属应用的运行。In step S170, a translucent mask layer is generated in the background area. The background area is covered by a translucent mask layer so as not to affect the display of the original content in the display interface. The original content in the display interface may be a statically displayed image or a video image being played. The original content in the display interface is not limited herein, and the mask layer does not affect the screen to which the mask is masked. The running of the application.
例如,在进行虚拟资源的自定义之前,终端的显示界面中正在进行视频直播,当进行虚拟资源的自定义时,则在显示界面中,相对于图像采集硬件的图像输出区域所形成的背景区域生成半透明的遮罩层,生成遮罩层后,终端的显示界面中仍进行直播视频的播放。For example, before the customization of the virtual resource is performed, the live broadcast of the video is performed in the display interface of the terminal. When the virtual resource is customized, the background area formed by the image output area of the image capture hardware is displayed in the display interface. A translucent mask layer is generated, and after the mask layer is generated, the live video is still played in the display interface of the terminal.
可以理解的是,图像采集硬件在显示界面中的图像输出区域是通过图像采集控件进行控制的,通过修改图像采集控件中的指令内容,对图像采集硬件在显示界面中的图像输出区域进行位置及尺寸大小的调整。It can be understood that the image output area of the image acquisition hardware in the display interface is controlled by the image acquisition control. By modifying the instruction content in the image acquisition control, the image output area of the image acquisition hardware is displayed in the image output area. Size adjustment.
预先在终端的显示界面中相对于图像采集硬件设置预定位置大小的图像输出区域,从指定图像采集硬件采集的图像内容中提取位于预定区域中的图像内容,生成自定义虚拟资源,并在图像输出区域对该自定义虚拟资源进行展示,从而保证了自定义虚拟资源在尺寸的一致性,更方便进行图像处理。The image output area of the predetermined position size is set in advance in the display interface of the terminal relative to the image acquisition hardware, and the image content located in the predetermined area is extracted from the image content collected by the specified image acquisition hardware, and a custom virtual resource is generated and outputted in the image. The area displays the custom virtual resource, thereby ensuring the consistency of the size of the custom virtual resource and facilitating image processing.
利用如上所述的方法,通过在显示界面中相对于图像采集硬件的图像输出区域所形成的背景区域生成半透明的遮罩层,进行背景区域的半透明覆盖,而不影响原有内容的播放显示,从而避免了因自定义虚拟资源而影响终端之间交互的稳定性。By using the method as described above, a semi-transparent mask layer is generated by generating a translucent mask layer with respect to a background area formed by the image output area of the image acquisition hardware in the display interface, without affecting the playback of the original content. Display, thus avoiding the stability of interaction between terminals due to custom virtual resources.
可选的,图7是根据一示例性实施例示出的对步骤S140的细节的描述,该步骤S140可以包括以下步骤。Optionally, FIG. 7 is a description of the details of step S140, which may include the following steps, according to an exemplary embodiment.
在步骤S141中,控制指定图像采集硬件对所在现实场景进行图像内容的采集。In step S141, the control specifies that the image acquisition hardware performs image content acquisition on the real scene in which it is located.
通过图像采集控件控制指定图像采集硬件对现实场景进行图像内容的采集。The image acquisition control is used to control the image acquisition hardware to collect the image content of the real scene.
可选的,指定图像采集硬件为摄像头,控制摄像头进行图像内容采集时,将预先自动进行对焦处理。Optionally, the image acquisition hardware is specified as a camera, and when the camera is controlled to capture image content, the focus processing is automatically performed in advance.
例如,预先设置的自动对焦时间为2秒,在完成步骤S130后,将经过2秒的自动对焦后再进行拍摄,避免因未完成对焦而使采集的图像画面模糊,进而影响自定义虚拟资源的质量。For example, the preset autofocus time is 2 seconds. After step S130 is completed, 2 seconds of autofocus will be taken before shooting, to avoid blurring of the captured image due to unfinished focus, thereby affecting the custom virtual resource. quality.
在一具体的示例性实施例中,通过Focus Pixels技术进行相位检测提供深度信息,进而实现连续自动对焦。In a specific exemplary embodiment, phase detection by Focus Pixels technology provides depth information to achieve continuous autofocus.
可选的,指定图像采集硬件进行图像内容的采集时,指定图像采集硬件具备光学图像防抖动功能,防止因用户的误操作而使图像画面模糊,影响自定义虚拟资源的质量。Optionally, when the image acquisition hardware is specified to collect the image content, the specified image acquisition hardware has an optical image anti-shake function to prevent the image from being blurred due to user misoperation, thereby affecting the quality of the customized virtual resource.
在步骤S142中,对图像内容进行优化处理生成自定义虚拟资源。In step S142, the image content is optimized to generate a custom virtual resource.
优化处理是对指定图像采集硬件输出的图像内容进行改良处理,例如,美化、增加特效、滤镜处理等。The optimization process is to improve the image content output by the specified image acquisition hardware, for example, beautification, special effects, filter processing, and the like.
在一具体的示例性实施例中,通过OpenGL对图像内容进行渲染,对采集的图像内容中的每个像素点进行坐标变换、裁剪、添加颜色或材质,最后在进行显示,实现图像内容的美化处理。In a specific exemplary embodiment, the image content is rendered by OpenGL, and each pixel in the captured image content is coordinate-converted, cropped, added with color or material, and finally displayed to realize the beautification of the image content. deal with.
图8是根据一示例性实施例示出的对图像内容进行优化处理的流程示意图。图8中,在摄像头输出图像内容后,一方面,在显示界面采用低分辨率的图像显示图像内容采集的实时状态;另一方面,采用图像处理进程对摄像头输出图像内容的图像数据流进行优化处理。最终,在优化处理完成后,在显示界面采用将优化处理后的图像对低分辨率的图像进行替换显示,从而保证画面流畅性 的同时,又保证了优化处理后图像内容的质量。FIG. 8 is a flow chart showing an optimization process of image content, according to an exemplary embodiment. In FIG. 8, after the image content is output by the camera, on the one hand, the low-resolution image is used to display the real-time state of the image content collection on the display interface; on the other hand, the image data process is used to optimize the image data stream of the image output by the camera. deal with. Finally, after the optimization process is completed, the optimized image is replaced on the display interface to display the low-resolution image, thereby ensuring the smoothness of the image and ensuring the quality of the image content after the optimization process.
利用如上所述的方法,控制指定图像采集硬件对所在现实场景进行图像内容的采集,进而优化处理生成自定义虚拟资源,提高了虚拟资源的丰富度,并且通过美化处理使得到的自定义虚拟资源更加美观,提高了自定义虚拟资源的质量。Using the method as described above, the specified image acquisition hardware is controlled to collect the image content of the real scene, and then the optimized processing generates the custom virtual resource, improves the richness of the virtual resource, and makes the customized virtual resource through the beautification process. More beautiful, improve the quality of custom virtual resources.
可选的,图9是根据一示例性实施例示出的对步骤S142的细节的描述,该步骤S142可以包括以下步骤。Optionally, FIG. 9 is a description of the details of step S142, which may include the following steps, according to an exemplary embodiment.
在步骤S1421中,根据图像内容生成纹理;In step S1421, a texture is generated according to the image content;
纹理是图像中物体表面的图案细节。Texture is the pattern detail of the surface of an object in an image.
在一具体的示例性实施例中,通过FBO(Frame Buffer Object,帧缓冲对象)对图像内容进行渲染生成纹理。In a specific exemplary embodiment, the image content is rendered by FBO (Frame Buffer Object) to generate a texture.
在步骤S1422中,控制多个着色器并行进行纹理的特效处理,生成自定义虚拟资源。In step S1422, a plurality of shaders are controlled to perform texture effect processing in parallel to generate a custom virtual resource.
对纹理进行特效处理是主要包括像素颜色计算、纹理坐标计算、雾化计算等,通过特效处理,实现图像内容不同的滤镜效果。Special effects processing on textures mainly includes pixel color calculation, texture coordinate calculation, atomization calculation, etc., through special effects processing, to achieve different filter effects of image content.
着色器是对图像内容进行处理的可编辑程序。通过创建多个着色器,控制多个着色器并行执行,进行纹理的特效处理,从而大大提升了特效处理的效率。A shader is an editable program that processes image content. By creating multiple shaders, controlling multiple shaders to execute in parallel, and performing texture effects processing, the efficiency of special effects processing is greatly improved.
图10是根据一示例性实施例示出的通过GLProcessFramework进行图像滤镜处理的示意图。在进行图像滤镜处理时,将消耗资源较大的处理工序交由OpenGL完成,而通过GLProcessFramework这一可扩展的树状架构进行纹理的特效处理。GLProcessFramework对纹理、FBO和着色器进行了抽象包装,纹理抽象为Engine类:Picture Engine、Movie Engine、Video Camera Engine,FBO和着色器抽象为Filter类:Process Filter,Engine类负责传递纹理和驱动处理过程,Filter负责在自己对应的FBO上实现效果,最可以终绘制在GLView来显示效果或者直接输出结果。Engine类和Filter类都可以通过并形或串形添加其他的Filter类来叠加效果或者同一时间输出多种效果。从而使得多着色器效果叠加成为可能,并且能够在拍摄后迅速得到大尺寸、高质量的图像。FIG. 10 is a schematic diagram of image filter processing by GLProcessFramework, according to an exemplary embodiment. In the image filter processing, the processing process that consumes a large amount of resources is completed by OpenGL, and the texture effect processing is performed by the scalable tree structure of GLProcessFramework. GLProcessFramework abstracts textures, FBOs, and shaders. The texture abstraction is Engine class: Picture Engine, Movie Engine, Video Camera Engine, FBO, and shader abstraction is Filter class: Process Filter, Engine class is responsible for passing textures and driving processes. Filter is responsible for implementing the effect on its corresponding FBO. It can be finally drawn in GLView to display the effect or directly output the result. Both the Engine class and the Filter class can add other Filter classes by concatenation or string to superimpose effects or output multiple effects at the same time. This makes it possible to superimpose multi-shader effects and to quickly obtain large-sized, high-quality images after shooting.
利用如上所述的方法,在对采集的图像内容进行优化处理时,通过控制多个着色器并行进行纹理的特效处理,在实现虚拟资源自定义的同时,在保证自定义虚拟资源质量的同时,大大提高了虚拟资源的自定义效率。By using the method as described above, when optimizing the processed image content, by controlling multiple shaders to perform texture special effect processing in parallel, while realizing virtual resource customization, while ensuring the quality of the customized virtual resource, Greatly improve the custom efficiency of virtual resources.
可选的,图像优化处理过程中,由于终端的处理性能限制,在处理超大图片时依然存在处理时间较长的情况,例如图像采集后图片截取裁剪的时间消耗等,针对这些无法避免的时间消耗,通过采用交互上的流程来进行优化,让用户在使用中感知不到这些时间消耗。Optionally, during the image optimization process, due to the processing performance limitation of the terminal, there is still a long processing time when processing the super large picture, such as the time consumption of the image interception and cropping after image acquisition, etc., for these unavoidable time consumption. By using an interactive process to optimize, so that users can not perceive these time consumption in use.
例如,在图像采集后加入快门效果或过场动画,同时也使用快速截取视觉残留图像替换高保真图像,给用户带来即拍即现的效果,这种视觉体验优化大大减少了用户进行图像采集后等待的感知时间。For example, adding a shutter effect or a cut-off animation after image acquisition, and also replacing the high-fidelity image with a fast intercepted visual residual image, giving the user a real-time effect, which greatly reduces the user's image acquisition. The perceived time of waiting.
可选的,图11是根据图2对应实施例示出的另一种实现虚拟资源自定义的方法流程图。如图11所示,在步骤S140之后,该实现虚拟资源自定义的方法可以包括以下步骤。Optionally, FIG. 11 is a flowchart of another method for implementing virtual resource customization according to the corresponding embodiment of FIG. 2. As shown in FIG. 11, after step S140, the method for implementing virtual resource customization may include the following steps.
在步骤S210中,获取为自定义虚拟资源指定的目标用户标识。In step S210, a target user identifier specified for the custom virtual resource is obtained.
可以理解的是,在直播或游戏等场景中,通过指定目标用户标识,并向指定的目标用户标识对应的用户发送自定义虚拟资源。It can be understood that in a scenario such as a live broadcast or a game, a customized virtual resource is sent by specifying a target user identifier and corresponding to the specified target user identifier.
目标用户标识的指定,可以是在触发虚拟资源自定义时进行的,也可以是在自定义虚拟资源制作完成后再进行指定的,也可以是其它时机指定的,在此不对目标用户标识的指定时机进行限定。The target user ID can be specified when the virtual resource customization is triggered. It can also be specified after the custom virtual resource is created. It can also be specified by other opportunities. The target user ID is not specified here. Timing is limited.
在步骤S220中,根据目标用户标识进行自定义虚拟资源的传输处理,使自定义虚拟资源被分享至目标用户标识对应的终端。In step S220, the transmission process of the customized virtual resource is performed according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
自定义虚拟资源的传输处理是将自定义虚拟资源进行发送。传输处理的方式可以是通过局域网直接传输,也可以是通过网络实时传输,还可以是其他的传输处理方式。The transfer processing of a custom virtual resource is to send a custom virtual resource. The transmission processing may be directly transmitted through a local area network, or may be transmitted in real time through a network, or may be other transmission processing methods.
在一具体的示例性实施例中,多个用户所在终端通过网络通信建立连接,进而通过网络通信向目标用户标识对应的终端发送自定义虚拟资源,实现自定 义虚拟资源的交互。In a specific exemplary embodiment, a terminal where multiple users are located establishes a connection through network communication, and then sends a customized virtual resource to a terminal corresponding to the target user identifier through network communication, so as to implement interaction of the customized virtual resource.
可选的,在发送自定义虚拟资源之前,需接收自定义虚拟资源的发送确认指令,以避免生成的自定义虚拟资源在不符合需求时仍向其他目标用户标识对应的终端发送。Optionally, before sending the customized virtual resource, the sending confirmation instruction of the customized virtual resource is received, so as to prevent the generated custom virtual resource from being sent to the terminal corresponding to the other target user identifier when the requirement is not met.
利用如上所述的方法,在生成自定义虚拟资源后,根据目标用户标识向对应的终端发送,从而更有针对性的满足了用户之间的互动需求,并且实现了虚拟资源的自定义,大大提高了虚拟资源的丰富度。After the method of the above-mentioned method is used, after the custom virtual resource is generated, the target user identifier is sent to the corresponding terminal, thereby more specifically satisfying the interaction requirement between the users, and realizing the customization of the virtual resource. Increased the richness of virtual resources.
可选的,图12是根据图11对应实施例示出的对步骤S220的细节的描述。该步骤S220可以包括以下步骤。Alternatively, FIG. 12 is a description of the details of step S220 shown in accordance with the corresponding embodiment of FIG. This step S220 can include the following steps.
在步骤S221中,为目标用户标识进行自定义虚拟资源的HTTP传输,使自定义虚拟资源被上传至虚拟资源服务器。In step S221, HTTP transmission of the customized virtual resource is performed for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server.
HTTP(HyperText Transfer Protocol,超文本传输协议)是一种终端和服务器之间进行请求和应答的标准。HTTP (HyperText Transfer Protocol) is a standard for requesting and responding between a terminal and a server.
通过HTTP,将自定义虚拟资源上传至虚拟资源服务器。Upload custom virtual resources to the virtual resource server via HTTP.
在步骤S222中,在自定义虚拟资源成功上传后,根据目标用户标识发送自定义虚拟资源的推送通知。In step S222, after the customized virtual resource is successfully uploaded, the push notification of the customized virtual resource is sent according to the target user identifier.
通常地,各终端通过网络通信建立连接,一终端向其它终端发送自定义虚拟资源时,该终端先将自定义虚拟资源上传虚拟资源服务器,进而其他终端从虚拟资源服务器中下载该自定义虚拟资源,从而实现终端间自定义虚拟资源的交互。Generally, each terminal establishes a connection through network communication. When a terminal sends a customized virtual resource to another terminal, the terminal first uploads the customized virtual resource to the virtual resource server, and then the other terminal downloads the customized virtual resource from the virtual resource server. To achieve the interaction of custom virtual resources between terminals.
图13是根据一示例性实施例示出的进行自定义虚拟资源的交互流程图。图13中,A、B、C为直播中的多个终端所在的终端,其中A为主播所在的终端,终端A通过QTX服务器向终端B和终端C发送视频流与音频流,从而实现终端A与终端B、终端C之间的直播。当终端B向终端A发送自定义虚拟资源时,先将自定义虚拟资源上传HTTP服务器,在自定义虚拟资源成功上传后,终端B将告知QTX服务器向终端A和终端C发送自定义虚拟资源的推送通知。FIG. 13 is a flow chart showing interaction of a custom virtual resource, according to an exemplary embodiment. In Figure 13, A, B, and C are terminals in which multiple terminals in the live broadcast are located, where A is the terminal where the broadcast is located, and terminal A sends video streams and audio streams to terminal B and terminal C through the QTX server, thereby implementing terminal A. Live broadcast with terminal B and terminal C. When the terminal B sends the customized virtual resource to the terminal A, the custom virtual resource is uploaded to the HTTP server. After the customized virtual resource is successfully uploaded, the terminal B will notify the QTX server to send the customized virtual resource to the terminal A and the terminal C. Push notifications.
利用如上所述的方法,在生成自定义虚拟资源后,先将生成自定义虚拟资 源上传虚拟资源服务器,再根据目标用户标识向对应的终端发送,从而更好的满足了各用户之间的互动需求,实现了虚拟资源的自定义,提高了虚拟资源的丰富度,并且在进行自定义虚拟资源的发送时,通过虚拟资源服务器进行传送,从而不影响终端中原有应用的运行,保证了终端运行的稳定性。After the method of the above-mentioned method is used, after the custom virtual resource is generated, the generated virtual resource is uploaded to the virtual resource server, and then sent to the corresponding terminal according to the target user identifier, thereby better satisfying the interaction between the users. The requirement realizes the customization of the virtual resource, improves the richness of the virtual resource, and transmits the virtual resource through the virtual resource server when the virtual resource is sent, so that the operation of the original application in the terminal is not affected, and the terminal is guaranteed to operate. Stability.
可选的,根据一示例性实施例示出的一种实现虚拟资源自定义的方法。在步骤S220之后,该实现虚拟资源自定义的方法可以包括以下步骤。Optionally, a method for implementing virtual resource customization is illustrated according to an exemplary embodiment. After step S220, the method for implementing virtual resource customization may include the following steps.
在步骤S310中,响应自定义虚拟资源的成功发送,在关联账户中进行相应金额的扣减。In step S310, in response to the successful transmission of the custom virtual resource, the deduction of the corresponding amount is performed in the associated account.
需要说明的是,进行虚拟资源的自定义并发送时,需付一定的金额进行购买。It should be noted that when the virtual resource is customized and sent, a certain amount of money is required for purchase.
关联账户是发送自定义虚拟资源的账户。A linked account is an account that sends custom virtual resources.
进行自定义虚拟资源的发送时,将通过终端登录相应的账户,进而以该账户发送自定义虚拟资源。When a custom virtual resource is sent, the terminal will log in to the corresponding account, and then the customized virtual resource will be sent to the account.
在一具体的示例性实施例中,每一次成功发送自定义虚拟资源对应的金额为1元,在每一次成功发送自定义虚拟资源后,将在发送自定义虚拟资源的账户内扣除1元。In a specific exemplary embodiment, the amount corresponding to each successful transmission of the custom virtual resource is 1 yuan, and after each successful sending of the customized virtual resource, 1 yuan is deducted from the account for sending the customized virtual resource.
利用如上所述的方法,通过对虚拟资源的自定义实现付费服务,在满足用户需求的同时更好地带来经济创收。By using the method as described above, the paid service is realized by the customization of the virtual resource, and the economic income is better brought about while satisfying the user's demand.
图14是根据一示例性实施例示出的另一种实现虚拟资源自定义的方法流程图。如图14所示,该方法应用于直播间的终端,该终端通过直播服务器与直播间的其它终端进行视频数据传输,该实现虚拟资源自定义的方法可以包括以下步骤。FIG. 14 is a flowchart of another method for implementing virtual resource customization, according to an exemplary embodiment. As shown in FIG. 14, the method is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast. The method for implementing virtual resource customization may include the following steps.
在步骤S410中,接收直播服务器针对其它终端进行自定义虚拟资源的上传而发送的推送通知。In step S410, a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal is received.
推送通知是针对接收自定义虚拟资源的终端的提醒通知。推送通知中包含 自定义虚拟资源在服务器中的地址信息。Push notifications are reminder notifications for terminals that receive custom virtual resources. The push notification contains the address information of the custom virtual resource in the server.
通过接收推送通知,提醒终端进行自定义虚拟资源的下载。The terminal is prompted to perform the download of the customized virtual resource by receiving the push notification.
在步骤S420中,响应推送通知,从虚拟资源服务器中下载对应的自定义虚拟资源。In step S420, in response to the push notification, the corresponding custom virtual resource is downloaded from the virtual resource server.
接收推送通知后,终端将从虚拟资源服务器中下载对应的自定义虚拟资源。After receiving the push notification, the terminal downloads the corresponding custom virtual resource from the virtual resource server.
在步骤S430中,在终端的显示界面进行自定义虚拟资源的展示。In step S430, the display of the customized virtual resource is performed on the display interface of the terminal.
在自定义虚拟资源下载完成后,将自定义虚拟资源进行显示,实现自定义虚拟资源的交互。After the custom virtual resource download is completed, the customized virtual resource is displayed to implement the interaction of the customized virtual resource.
利用如上所述的方法,终端在接收直播服务器针对其它终端进行自定义虚拟资源的上传而发送推送通知后,从虚拟资源服务器中下载相应的自定义资源,自动对直播间的其他终端发送的自定义虚拟资源进行展示,提高了直播间终端之间交互时虚拟资源的丰富度,更好的满足了终端间的交互需求。With the method as described above, after receiving the push notification by the live broadcast server for uploading the custom virtual resource for other terminals, the terminal downloads the corresponding custom resource from the virtual resource server, and automatically sends the self-sentence to other terminals in the live broadcast. Defining virtual resources for display improves the richness of virtual resources when interacting between terminals in the live broadcast, and better satisfies the interaction requirements between terminals.
下面结合具体的应用场景来详细阐述如上的实现虚拟资源自定义的方法。实现虚拟资源自定义的方法运行于终端中。The following describes the method for implementing virtual resource customization as described above in conjunction with a specific application scenario. The method of implementing virtual resource customization runs in the terminal.
图15是直播间中实现虚拟资源自定义的场景示意图。如图15所示,用户通过点击终端界面中的自定义礼物按钮,在直播间的视频层上方出现礼物识别及提取界面,该界面并不影响直播过程;在摄像头对准目标物体静止2秒后,成功提取礼物图像;终端对礼物图像进行优化处理,生成自定义礼物;在终端界面对自定义礼物进行预览显示;在用户确定自定义礼物符合要求并确认后,将对该自定义礼物上传HTTP服务器;在确认上传完成后,向直播间的其他终端通过QTX服务器发送自定义礼物的推送通知;直播间的其他终端在接收到自定义礼物的推送通知后,根据推送通知从HTTP服务器中下载相应的自定义礼物,并进行展示。FIG. 15 is a schematic diagram of a scenario for implementing virtual resource customization in a live broadcast room. As shown in FIG. 15, the user clicks the custom gift button in the terminal interface to display a gift recognition and extraction interface above the video layer of the live broadcast. The interface does not affect the live broadcast process; after the camera is aimed at the target object for 2 seconds Successfully extracting the gift image; the terminal optimizes the gift image to generate a custom gift; previews the custom gift in the terminal interface; after the user determines that the custom gift meets the requirements and confirms, the custom gift is uploaded HTTP After the confirmation upload is completed, the other terminals in the live broadcast room send a push notification of the customized gift through the QTX server; after receiving the push notification of the custom gift, the other terminals in the live broadcast download the corresponding information from the HTTP server according to the push notification. Custom gift and show it.
下述为本发明装置实施例,可以用于执行上述实现虚拟资源自定义的方法实施例。对于本发明装置实施例中未披露的细节,请参照本发明实现虚拟资源自定义的方法实施例。The following is an apparatus embodiment of the present invention, which may be used to implement the foregoing method embodiment for implementing virtual resource customization. For details not disclosed in the device embodiment of the present invention, please refer to the method embodiment of the present invention for implementing virtual resource customization.
图16是根据一示例性实施例示出的一种实现虚拟资源自定义的装置框图,该装置包括但不限于:触发指令接收模块110、控件加载触发模块120、图像采集硬件开启模块130及虚拟资源提取模块140。FIG. 16 is a block diagram of a device for implementing virtual resource customization, including but not limited to: a trigger instruction receiving module 110, a control loading trigger module 120, an image capturing hardware opening module 130, and a virtual resource, according to an exemplary embodiment. The module 140 is extracted.
触发指令接收模块110,用于接收虚拟资源自定义的触发指令;The trigger instruction receiving module 110 is configured to receive a virtual resource custom triggering instruction;
控件加载触发模块120,用于根据所述触发指令触发图像采集控件的加载;The control loading triggering module 120 is configured to trigger loading of the image capturing control according to the triggering instruction;
图像采集硬件开启模块130,用于通过所述图像采集控件的加载,进行指定图像采集硬件的开启;The image capturing hardware opening module 130 is configured to perform opening of the specified image capturing hardware by loading the image capturing control;
虚拟资源提取模块140,用于从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。The virtual resource extraction module 140 is configured to perform extraction of the customized virtual resource from the image content output by the specified image collection hardware.
上述装置中各个模块的功能和作用的实现过程具体详见上述实现虚拟资源自定义的方法中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and functions of the modules in the foregoing device is specifically described in the implementation process of the corresponding steps in the method for implementing the virtual resource customization, and details are not described herein.
可选的,图17是根据图16对应实施例示出的另一种实现虚拟资源自定义的装置框图,图16对应实施例示出的实现虚拟资源自定义的装置还包括但不限于:背景区域形成模块160和遮罩层生成模块170。Optionally, FIG. 17 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16. The apparatus for implementing virtual resource customization according to the embodiment of FIG. 16 further includes, but is not limited to, a background area formation. Module 160 and mask layer generation module 170.
背景区域形成模块160,用于相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域;a background area forming module 160, configured to form a background area with respect to the image output area in the display interface with respect to the image capturing hardware;
遮罩层生成模块170,用于在所述背景区域生成半透明的遮罩层。The mask layer generating module 170 is configured to generate a translucent mask layer in the background area.
可选的,背景区域形成模块160具体用于:相对于所述图像采集硬件在直播视频显示界面中的图像输出区域形成背景区域。Optionally, the background area forming module 160 is specifically configured to form a background area in an image output area in the live video display interface with respect to the image capturing hardware.
可选的,触发指令接收模块110具体用于:在直播视频显示过程中,接收虚拟资源自定义的触发指令。Optionally, the trigger instruction receiving module 110 is specifically configured to: receive a virtual resource custom triggering instruction during the live video display process.
可选的,如图18所示,图16中所示的虚拟资源提取模块140包括但不限于:图像采集单元141和图像优化单元142。Optionally, as shown in FIG. 18, the virtual resource extraction module 140 shown in FIG. 16 includes, but is not limited to, an image acquisition unit 141 and an image optimization unit 142.
图像采集单元141,用于控制所述指定图像采集硬件对所在现实场景进行图像内容的采集;The image collection unit 141 is configured to control the collection of the image content by the specified image acquisition hardware on the real scene;
图像优化单元142,用于对所述图像内容进行优化处理生成自定义虚拟资源。The image optimization unit 142 is configured to perform optimization processing on the image content to generate a custom virtual resource.
可选的,如图19所示,图18中所示的图像优化单元142包括但不限于:纹理生成子单元1421和特效处理子单元1422。Alternatively, as shown in FIG. 19, the image optimization unit 142 shown in FIG. 18 includes, but is not limited to, a texture generation sub-unit 1421 and a special effect processing sub-unit 1422.
纹理生成子单元1421,用于根据所述图像内容生成纹理;a texture generation sub-unit 1421, configured to generate a texture according to the image content;
特效处理子单元1422,用于控制多个着色器并行进行所述纹理的特效处理,生成自定义虚拟资源。The special effect processing sub-unit 1422 is configured to control the plurality of shaders to perform the special effect processing of the texture in parallel to generate a custom virtual resource.
可选的,图20是根据图16对应实施例示出的另一种实现虚拟资源自定义的装置框图,如图20所示,图16中所示的实现虚拟资源自定义的装置还包括但不限于:目标用户标识获取模块210和资源传输模块220。Optionally, FIG. 20 is a block diagram of another apparatus for implementing virtual resource customization according to the corresponding embodiment of FIG. 16. As shown in FIG. 20, the apparatus for implementing virtual resource customization shown in FIG. 16 further includes but not It is limited to: target user identity obtaining module 210 and resource transmission module 220.
目标用户标识获取模块210,用于获取为所述自定义虚拟资源指定的目标用户标识;The target user identifier obtaining module 210 is configured to acquire a target user identifier specified for the custom virtual resource.
资源传输模块220,用于根据所述目标用户标识进行所述自定义虚拟资源的传输处理,使所述自定义虚拟资源被分享至所述目标用户标识对应的终端。The resource transmission module 220 is configured to perform the transmission process of the customized virtual resource according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
可选的,如图21所示,图20中所示的资源传输模块220包括但不限于:资源上传单元221和推送通知发送单元222。Optionally, as shown in FIG. 21, the resource transmission module 220 shown in FIG. 20 includes, but is not limited to, a resource uploading unit 221 and a push notification sending unit 222.
资源上传单元221,用于为所述目标用户标识进行所述自定义虚拟资源的HTTP传输,使所述自定义虚拟资源被上传至虚拟资源服务器;The resource uploading unit 221 is configured to perform HTTP transmission of the customized virtual resource for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server;
推送通知发送单元222,用于在所述自定义虚拟资源成功上传后,根据所述目标用户标识发送所述自定义虚拟资源的推送通知。The push notification sending unit 222 is configured to send a push notification of the custom virtual resource according to the target user identifier after the custom virtual resource is successfully uploaded.
图22是根据一示例性实施例示出的另一种实现虚拟资源自定义的装置框图,该装置应用于直播间的终端,该终端通过直播服务器与直播间的其它终端进行视频数据传输,该装置包括但不限于:推送通知接收模块410、虚拟资源下 载模块420及资源展示模块430。FIG. 22 is a block diagram of another apparatus for implementing virtual resource customization according to an exemplary embodiment, where the apparatus is applied to a terminal between live broadcasts, and the terminal performs video data transmission through a live broadcast server and other terminals in the live broadcast. The method includes a but not limited to: a push notification receiving module 410, a virtual resource downloading module 420, and a resource displaying module 430.
推送通知接收模块410,用于接收所述直播服务器针对其它终端进行自定义虚拟资源的上传而发送的推送通知;The push notification receiving module 410 is configured to receive a push notification sent by the live broadcast server for uploading a custom virtual resource for another terminal;
虚拟资源下载模块420,用于响应所述推送通知,从虚拟资源服务器中下载对应的自定义虚拟资源;The virtual resource downloading module 420 is configured to download a corresponding custom virtual resource from the virtual resource server in response to the push notification.
资源展示模块430,用于在所述终端的显示界面进行所述自定义虚拟资源的展示。The resource display module 430 is configured to perform the display of the customized virtual resource on a display interface of the terminal.
图23是根据一示例性实施例示出的一种终端100的框图。终端100可以是上述实施环境中所描述的终端10。FIG. 23 is a block diagram of a terminal 100, according to an exemplary embodiment. The terminal 100 may be the terminal 10 described in the above-described implementation environment.
参考图23,终端100可以包括以下一个或者多个组件:处理组件101,存储器102,电源组件103,多媒体组件104,音频组件105,传感器组件107以及通信组件108。其中,上述组件并不全是必须的,终端100可以根据自身功能需求增加其他组件或减少某些组件,本实施例不作限定。Referring to FIG. 23, the terminal 100 may include one or more of the following components: a processing component 101, a memory 102, a power component 103, a multimedia component 104, an audio component 105, a sensor component 107, and a communication component 108. The above components are not all necessary, and the terminal 100 may add other components or reduce some components according to the requirements of the functions, which is not limited in this embodiment.
处理组件101通常控制终端100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作以及记录操作相关联的操作等。处理组件101可以包括一个或多个处理器109来执行指令,以完成上述操作的全部或部分步骤。此外,处理组件101可以包括一个或多个模块,便于处理组件101和其他组件之间的交互。例如,处理组件101可以包括多媒体模块,以方便多媒体组件104和处理组件101之间的交互。 Processing component 101 typically controls the overall operation of terminal 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, and the like. Processing component 101 can include one or more processors 109 to execute instructions to perform all or part of the steps described above. Moreover, processing component 101 can include one or more modules to facilitate interaction between component 101 and other components. For example, processing component 101 can include a multimedia module to facilitate interaction between multimedia component 104 and processing component 101.
存储器102被配置为存储各种类型的数据以支持在终端100的操作。这些数据的示例包括用于在终端100上操作的任何应用程序或方法的指令。存储器102可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如SRAM(Static Random Access Memory,静态随机存取存储器),EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦除可编程只读存储器),EPROM(Erasable Programmable Read Only Memory,可擦除可编程只读存储器),PROM(Programmable Read-Only Memory,可编程只读存储器),ROM(Read-Only Memory,只读存储器),磁存储器,快闪存储器,磁盘或光盘。存 储器102中还存储有一个或多个模块,该一个或多个模块被配置成由该一个或多个处理器109执行,以完成图2、图5、图7、图9、图11、图12和图14任一所示方法中的全部或者部分步骤。The memory 102 is configured to store various types of data to support operation at the terminal 100. Examples of such data include instructions for any application or method operating on terminal 100. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory) Erase programmable read-only memory, EPROM (Erasable Programmable Read Only Memory), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory) Read memory), magnetic memory, flash memory, disk or optical disk. Also stored in the memory 102 is one or more modules configured to be executed by the one or more processors 109 to complete FIGS. 2, 5, 7, 9, 11, and 12 or all or part of the steps in any of the methods shown in FIG.
电源组件103为终端100的各种组件提供电力。电源组件103可以包括电源管理系统,一个或多个电源,及其他与为终端100生成、管理和分配电力相关联的组件。 Power component 103 provides power to various components of terminal 100. Power component 103 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 100.
多媒体组件104包括在所述终端100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括LCD(Liquid Crystal Display,液晶显示器)和TP(Touch Panel,触摸面板)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The multimedia component 104 includes a screen that provides an output interface between the terminal 100 and a user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
音频组件105被配置为输出和/或输入音频信号。例如,音频组件105包括一个麦克风,当终端100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器102或经由通信组件108发送。在一些实施例中,音频组件105还包括一个扬声器,用于输出音频信号。The audio component 105 is configured to output and/or input an audio signal. For example, the audio component 105 includes a microphone that is configured to receive an external audio signal when the terminal 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 102 or transmitted via communication component 108. In some embodiments, the audio component 105 also includes a speaker for outputting an audio signal.
传感器组件107包括一个或多个传感器,用于为终端100提供各个方面的状态评估。例如,传感器组件107可以检测到终端100的打开/关闭状态,组件的相对定位,传感器组件107还可以检测终端100或终端100一个组件的位置改变以及终端100的温度变化。在一些实施例中,该传感器组件107还可以包括磁传感器,压力传感器或温度传感器。 Sensor assembly 107 includes one or more sensors for providing terminal 100 with various aspects of status assessment. For example, the sensor assembly 107 can detect the open/closed state of the terminal 100, the relative positioning of the components, and the sensor assembly 107 can also detect a change in position of the terminal 100 or a component of the terminal 100 and a temperature change of the terminal 100. In some embodiments, the sensor assembly 107 can also include a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件108被配置为便于终端100和其他设备之间有线或无线方式的通信。终端100可以接入基于通信标准的无线网络,如WiFi(WIreless-Fidelity,无线网络),2G或3G,或它们的组合。在一个示例性实施例中,通信组件108经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件108还包括NFC(Near Field Communication,近场通信)模块,以促进短程通信。例如,在NFC模块可基于RFID(Radio Frequency Identification,射频识别)技术,IrDA(Infrared Data Association,红 外数据协会)技术,UWB(Ultra-Wideband,超宽带)技术,BT(Bluetooth,蓝牙)技术和其他技术来实现。 Communication component 108 is configured to facilitate wired or wireless communication between terminal 100 and other devices. The terminal 100 can access a wireless network based on a communication standard, such as WiFi (WIreless-Fidelity), 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 108 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 further includes an NFC (Near Field Communication) module to facilitate short range communication. For example, the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infrared Data Association) technology, UWB (Ultra-Wideband) technology, BT (Bluetooth) technology and others. Technology to achieve.
在示例性实施例中,终端100可以被一个或多个ASIC(Application Specific Integrated Circuit,应用专用集成电路)、DSP(Digital Signal Processing,数字信号处理器)、PLD(Programmable Logic Device,可编程逻辑器件)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the terminal 100 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processing), and PLD (Programmable Logic Device). ), FPGA (Field-Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above method.
该实施例中的终端的处理器执行操作的具体方式已经在有关该实现虚拟资源自定义的方法的实施例中执行了详细描述,此处将不再做详细阐述说明。The specific manner in which the processor of the terminal in this embodiment performs the operation has been described in detail in the embodiment of the method for implementing the virtual resource customization, and will not be explained in detail herein.
可选的,本发明还提供一种智能终端,执行图2、图5、图7、图9、图11、图12和图14任一所示的实现虚拟资源自定义的方法的全部或者部分步骤。所述装置包括:Optionally, the present invention further provides an intelligent terminal, which performs all or part of the method for implementing virtual resource customization as shown in any of FIG. 2, FIG. 5, FIG. 7, FIG. 9, FIG. 11, FIG. 12, and FIG. step. The device includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述中任一实施例所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of the above embodiments .
该实施例中的装置的处理器执行操作的具体方式已经在有关该实现虚拟资源自定义的方法实施例中执行了详细描述,此处将不做详细阐述说明。The specific manner in which the processor of the apparatus in this embodiment performs the operations has been described in detail in the method embodiment for implementing the virtual resource customization, and will not be described in detail herein.
在示例性实施例中,还提供了一种存储介质,该存储介质为计算机可读存储介质,例如可以为包括指令的临时性和非临时性计算机可读存储介质。该存储介质存储有计算机程序,该计算机程序可由终端100的处理器109执行以完成上述实现虚拟资源自定义的方法。In an exemplary embodiment, a storage medium is also provided, which is a computer readable storage medium, such as a temporary and non-transitory computer readable storage medium including instructions. The storage medium stores a computer program executable by the processor 109 of the terminal 100 to perform the above-described method of implementing virtual resource customization.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结 构,本领域技术人员可以在不脱离其范围执行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.

Claims (15)

  1. 一种实现虚拟资源自定义的方法,其特征在于,所述方法包括:A method for implementing virtual resource customization, characterized in that the method comprises:
    接收虚拟资源自定义的触发指令;Receiving a virtual resource custom trigger instruction;
    根据所述触发指令触发图像采集控件的加载;Triggering loading of the image collection control according to the triggering instruction;
    通过所述图像采集控件的加载,进行指定图像采集硬件的开启;Opening the specified image acquisition hardware by loading the image capture control;
    从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。Extracting a custom virtual resource from image content output by the specified image acquisition hardware.
  2. 根据权利要求1所述的方法,其特征在于,所述通过所述图像采集控件的加载,进行指定图像采集硬件的开启的步骤之后,所述方法还包括:The method according to claim 1, wherein after the step of specifying the opening of the image capturing hardware by the loading of the image capturing control, the method further comprises:
    相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域;Forming a background area with respect to the image output area in the display interface with respect to the image acquisition hardware;
    在所述背景区域生成半透明的遮罩层。A translucent mask layer is created in the background region.
  3. 根据权利要求2所述的方法,其特征在于,所述相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域,包括:The method according to claim 2, wherein the forming an image area in the image output area in the display interface with respect to the image acquisition hardware comprises:
    相对于所述图像采集硬件在直播视频显示界面中的图像输出区域形成背景区域。A background area is formed in the image output area in the live video display interface with respect to the image acquisition hardware.
  4. 根据权利要求1所述的方法,其特征在于,所述从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取的步骤包括:The method according to claim 1, wherein the step of extracting a custom virtual resource from the image content output by the specified image acquisition hardware comprises:
    控制所述指定图像采集硬件对所在现实场景进行图像内容的采集;Controlling, by the specified image acquisition hardware, the image content of the real scene to be collected;
    对所述图像内容进行优化处理生成自定义虚拟资源。Optimizing the image content to generate a custom virtual resource.
  5. 根据权利要求4所述的方法,其特征在于,所述对所述图像内容进行优化处理生成自定义虚拟资源的步骤包括:The method according to claim 4, wherein the step of performing optimization processing on the image content to generate a custom virtual resource comprises:
    根据所述图像内容生成纹理;Generating a texture according to the image content;
    控制多个着色器并行进行所述纹理的特效处理,生成自定义虚拟资源。Controlling multiple shaders to perform the effect processing of the texture in parallel to generate a custom virtual resource.
  6. 根据权利要求1所述的方法,其特征在于,所述从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取的步骤之后,所述方法还包括:The method according to claim 1, wherein after the step of extracting a custom virtual resource from the image content output by the specified image acquisition hardware, the method further comprises:
    获取为所述自定义虚拟资源指定的目标用户标识;Obtaining a target user identifier specified for the custom virtual resource;
    根据所述目标用户标识进行所述自定义虚拟资源的传输处理,使所述自定义虚拟资源被分享至所述目标用户标识对应的终端。And performing the transmission processing of the customized virtual resource according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述目标用户标识进行所述自定义虚拟资源的传输处理,使所述自定义虚拟资源被分享至所述目标用户标识对应的终端的步骤包括:The method according to claim 6, wherein the performing the transmission processing of the custom virtual resource according to the target user identifier, so that the customized virtual resource is shared to the terminal corresponding to the target user identifier The steps include:
    为所述目标用户标识进行所述自定义虚拟资源的HTTP传输,使所述自定义虚拟资源被上传至虚拟资源服务器;Performing HTTP transmission of the customized virtual resource for the target user identifier, so that the customized virtual resource is uploaded to the virtual resource server;
    在所述自定义虚拟资源成功上传后,根据所述目标用户标识发送所述自定义虚拟资源的推送通知。After the customized virtual resource is successfully uploaded, the push notification of the customized virtual resource is sent according to the target user identifier.
  8. 根据权利要求1所述的方法,其特征在于,所述接收虚拟资源自定义的触发指令,包括:The method according to claim 1, wherein the receiving the virtual resource customized triggering instruction comprises:
    在直播视频显示过程中,接收虚拟资源自定义的触发指令。During the live video display process, a virtual resource custom trigger instruction is received.
  9. 一种实现虚拟资源自定义的方法,其特征在于,所述方法应用于直播间的终端,所述终端通过直播服务器与直播间的其它终端进行视频数据传输,所述方法包括:A method for implementing virtual resource customization, wherein the method is applied to a terminal in a live broadcast, and the terminal performs video data transmission by using a live broadcast server and other terminals in the live broadcast, the method includes:
    接收所述直播服务器针对其它终端进行自定义虚拟资源的上传而发送的推送通知;Receiving, by the live broadcast server, a push notification sent by uploading a custom virtual resource to another terminal;
    响应所述推送通知,从虚拟资源服务器中下载对应的自定义虚拟资源;Responding to the push notification, downloading a corresponding custom virtual resource from the virtual resource server;
    在所述终端的显示界面进行所述自定义虚拟资源的展示。Displaying the customized virtual resource on the display interface of the terminal.
  10. 一种实现虚拟资源自定义的装置,其特征在于,所述装置包括:An apparatus for implementing virtual resource customization, wherein the apparatus comprises:
    触发指令接收模块,用于接收虚拟资源自定义的触发指令;The trigger instruction receiving module is configured to receive a trigger instruction of the virtual resource customization;
    控件加载触发模块,用于根据所述触发指令触发图像采集控件的加载;a control loading triggering module, configured to trigger loading of the image capturing control according to the triggering instruction;
    图像采集硬件开启模块,用于通过所述图像采集控件的加载,进行指定图像采集硬件的开启;An image capturing hardware opening module is configured to perform opening of the specified image capturing hardware by loading the image capturing control;
    虚拟资源提取模块,用于从所述指定图像采集硬件输出的图像内容中进行自定义虚拟资源的提取。And a virtual resource extraction module, configured to extract a custom virtual resource from the image content output by the specified image collection hardware.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    背景区域形成模块,用于相对于所述图像采集硬件在显示界面中的图像输出区域形成背景区域;a background area forming module, configured to form a background area with respect to the image output area of the image capturing hardware in the display interface;
    遮罩层生成模块,用于在所述背景区域生成半透明的遮罩层。A mask layer generating module is configured to generate a translucent mask layer in the background area.
  12. 根据权利要求10所述的装置,其特征在于,所述虚拟资源提取模块包括:The device according to claim 10, wherein the virtual resource extraction module comprises:
    图像采集单元,用于控制所述指定图像采集硬件对所在现实场景进行图像内容的采集;An image acquisition unit, configured to control the collection of image content by the specified image acquisition hardware on a real scene;
    图像优化单元,用于对所述图像内容进行优化处理生成自定义虚拟资源。An image optimization unit is configured to optimize the image content to generate a custom virtual resource.
  13. 根据权利要求12所述的装置,其特征在于,所述图像优化单元包括:The apparatus according to claim 12, wherein said image optimization unit comprises:
    纹理生成子单元,用于根据所述图像内容生成纹理;a texture generation subunit, configured to generate a texture according to the image content;
    特效处理子单元,用于控制多个着色器并行进行所述纹理的特效处理,生成自定义虚拟资源。The special effect processing sub-unit is configured to control multiple shaders to perform the special effect processing of the texture in parallel to generate a custom virtual resource.
  14. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-9中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as claimed in any one of claims 1-9 The method described.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现根据权利要求1-9中任一项所述的实现虚拟资源自定义的方法。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement a method of implementing virtual resource customization according to any one of claims 1-9.
PCT/CN2018/089941 2017-06-27 2018-06-05 Method and device for realizing virtual resource customization WO2019001229A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710503890.1A CN107396197B (en) 2017-06-27 2017-06-27 Method and device for realizing virtual resource customization
CN201710503890.1 2017-06-27

Publications (1)

Publication Number Publication Date
WO2019001229A1 true WO2019001229A1 (en) 2019-01-03

Family

ID=60332874

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089941 WO2019001229A1 (en) 2017-06-27 2018-06-05 Method and device for realizing virtual resource customization

Country Status (2)

Country Link
CN (1) CN107396197B (en)
WO (1) WO2019001229A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396197B (en) * 2017-06-27 2020-04-03 腾讯科技(深圳)有限公司 Method and device for realizing virtual resource customization
CN108156503B (en) * 2017-12-14 2020-05-01 北京奇艺世纪科技有限公司 Method and device for generating gift
CN109407899A (en) * 2018-09-12 2019-03-01 北京星云城科技有限公司 A kind of desktop alternative projection system
CN110139142A (en) 2019-05-16 2019-08-16 北京达佳互联信息技术有限公司 Virtual objects display methods, device, terminal and storage medium
CN110336682A (en) * 2019-07-11 2019-10-15 顾永才 A kind of system and method for giving virtual present
CN110880139B (en) * 2019-09-30 2021-03-02 珠海必要工业科技股份有限公司 Commodity display method, commodity display device, terminal, server and storage medium
CN112738608B (en) * 2019-10-28 2022-07-26 腾讯科技(深圳)有限公司 Live video interaction method, client, device and medium
CN112188230A (en) * 2020-10-12 2021-01-05 北京达佳互联信息技术有限公司 Virtual resource processing method and device, terminal equipment and server
CN113171605B (en) * 2021-05-26 2024-02-02 网易(杭州)网络有限公司 Virtual resource acquisition method, computer-readable storage medium, and electronic device
CN114449355B (en) * 2022-01-24 2023-06-20 腾讯科技(深圳)有限公司 Live interaction method, device, equipment and storage medium
CN114584796B (en) * 2022-02-11 2023-11-17 百果园技术(新加坡)有限公司 Data processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811184A (en) * 2012-08-28 2012-12-05 腾讯科技(深圳)有限公司 Sharing method, terminal, server and system for custom emoticons
US20160164961A1 (en) * 2014-12-09 2016-06-09 Samsung Electronics Co., Ltd. Method and apparatus for converting content using cloud
CN106228436A (en) * 2016-08-26 2016-12-14 北京小米移动软件有限公司 Live platform virtual objects method to set up and device
CN106846040A (en) * 2016-12-22 2017-06-13 武汉斗鱼网络科技有限公司 Virtual present display methods and system in a kind of direct broadcasting room
CN107396197A (en) * 2017-06-27 2017-11-24 腾讯科技(深圳)有限公司 Realize the customized method and device of virtual resource

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9844728B2 (en) * 2011-12-16 2017-12-19 Zynga Inc. Providing social network content in games
CN105653167B (en) * 2015-12-23 2019-02-12 广州华多网络科技有限公司 It is a kind of based on the information displaying method being broadcast live online and client
CN106648300A (en) * 2016-10-14 2017-05-10 广州华多网络科技有限公司 Icon message differentiation display control method and device, and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811184A (en) * 2012-08-28 2012-12-05 腾讯科技(深圳)有限公司 Sharing method, terminal, server and system for custom emoticons
US20160164961A1 (en) * 2014-12-09 2016-06-09 Samsung Electronics Co., Ltd. Method and apparatus for converting content using cloud
CN106228436A (en) * 2016-08-26 2016-12-14 北京小米移动软件有限公司 Live platform virtual objects method to set up and device
CN106846040A (en) * 2016-12-22 2017-06-13 武汉斗鱼网络科技有限公司 Virtual present display methods and system in a kind of direct broadcasting room
CN107396197A (en) * 2017-06-27 2017-11-24 腾讯科技(深圳)有限公司 Realize the customized method and device of virtual resource

Also Published As

Publication number Publication date
CN107396197A (en) 2017-11-24
CN107396197B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
WO2019001229A1 (en) Method and device for realizing virtual resource customization
CN106791893B (en) Video live broadcasting method and device
WO2019128787A1 (en) Network video live broadcast method and apparatus, and electronic device
US10809879B2 (en) Displaying simulated media content item enhancements on mobile devices
CN112073649B (en) Multimedia data processing method, multimedia data generating method and related equipment
CN106506448B (en) Live broadcast display method and device and terminal
WO2020093901A1 (en) Data generating method and apparatus, electronic device, and readable storage medium
US20150365600A1 (en) Composing real-time processed video content with a mobile device
WO2017219267A1 (en) Card display method and device
CN107526591B (en) Method and device for switching types of live broadcast rooms
CN105007515A (en) Method and device for generating interaction feedback information of interaction television system
US20220272406A1 (en) Method for displaying interactive interface, method for generating interactive interface, and electronic device thereof
WO2020093798A1 (en) Method and apparatus for displaying target image, terminal, and storage medium
WO2020088059A1 (en) Video playback method, video playback apparatus, electronic device, and storage medium
CN113835649A (en) Screen projection method and terminal
EP3264750A1 (en) Method, device and system for recording television program
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN112367554A (en) Message interaction method and device, electronic equipment and storage medium
CN110012336A (en) Picture configuration method, terminal and the device at interface is broadcast live
CN112788354A (en) Live broadcast interaction method and device, electronic equipment, storage medium and program product
RU105102U1 (en) AUTOMATED SYSTEM FOR CREATING, PROCESSING AND INSTALLING VIDEOS
WO2023174009A1 (en) Photographic processing method and apparatus based on virtual reality, and electronic device
CN117119260A (en) Video control processing method and device
CN115830224A (en) Multimedia data editing method and device, electronic equipment and storage medium
CN114070998B (en) Moon shooting method and device, electronic equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18823152

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18823152

Country of ref document: EP

Kind code of ref document: A1