WO2020248682A1 - Display device and virtual scene generation method - Google Patents
Display device and virtual scene generation method Download PDFInfo
- Publication number
- WO2020248682A1 WO2020248682A1 PCT/CN2020/083905 CN2020083905W WO2020248682A1 WO 2020248682 A1 WO2020248682 A1 WO 2020248682A1 CN 2020083905 W CN2020083905 W CN 2020083905W WO 2020248682 A1 WO2020248682 A1 WO 2020248682A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sideways
- portrait
- image
- user
- interface
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F13/65—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition
- A63F13/655—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition by importing photos, e.g. of the player
Definitions
- This application relates to the technical field of smart TVs, and in particular to a display device and a virtual scene generation method.
- the terminal device When a user plays a game through a terminal device, the terminal device often displays the game scene corresponding to the game for the user, so that the user can watch the game screen and understand the game process.
- the actual user portrait cannot be applied to the actual scene, but only in the game scene to show the preset animation effect. This is not conducive to the user experience.
- An exemplary embodiment of the present application provides a display device for dynamically displaying a game interface according to a user's portrait on the TV side.
- the present application provides a display device, including:
- the display is configured to present a game application related interface
- a camera configured to obtain a photographed image of a user, the photographed image including a portrait of the user
- the controller is configured as:
- an exemplary embodiment of the present application provides a virtual scene generation method, including:
- the photographed image including a portrait of the user
- an exemplary embodiment of the present application provides a virtual scene generation device, including:
- An image acquisition module configured to acquire a photographed image of a user in real time, and the photographed image includes a portrait of the user;
- the sideways processing module is configured to perform sideways processing on the portrait in the captured image according to the position of the virtual character corresponding to the user in the game interface, and obtain a sideways image including the sideways processed portrait, wherein the virtual character
- the position in the game interface is the target position
- the interface overlay module is used to obtain a virtual scene interface superimposed with the sideways image and the game interface, and display the virtual scene interface, wherein the sideways image is located on the upper layer of the game interface, and the sideways The sideways processed portrait included in the image is located directly above the target position.
- an exemplary embodiment of the present application provides a display device, including:
- the display is configured to present a game application related interface
- a camera configured to obtain a photographed image of a user, the photographed image including a portrait of the user
- the controller is configured as:
- FIG. 1 exemplarily shows a schematic diagram of an operation scene between the display device 200 and the control device according to the embodiment
- FIG. 2 exemplarily shows a configuration block diagram of the software system in the display device 200 according to the embodiment
- FIG. 3 exemplarily shows a schematic diagram of application programs included in the application layer of the display device according to the embodiment
- FIG. 4 exemplarily shows a schematic diagram of a user interface in the display device 200 according to the embodiment
- FIG. 5 is a schematic diagram of a workflow of a method for generating a virtual scene disclosed in an embodiment of the application
- FIG. 6 is a schematic diagram of an application scenario of a virtual scene generation method disclosed in an embodiment of the application.
- FIG. 7 is a portrait after sideways processing in a method for generating a virtual scene disclosed in an embodiment of the application.
- Fig. 8 is a schematic structural diagram of a virtual scene generating apparatus disclosed in an embodiment of the application.
- module used in the various embodiments of this application can refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or a combination of hardware or/and software code that can execute related to the component Function.
- remote control used in the various embodiments of this application refers to a component of an electronic device (such as the display device disclosed in this application), which can generally control the electronic device wirelessly within a short distance.
- This component can generally use infrared and/or radio frequency (RF) signals and/or Bluetooth to connect with electronic devices, and can also include functional modules such as wireless network WiFi, wireless USB, Bluetooth, and motion sensors.
- RF radio frequency
- a handheld touch remote control uses a user interface in a touch screen to replace most of the physical built-in hard keys in general remote control devices.
- gesture used in the embodiments of the present application refers to a user's behavior through a change of hand shape or hand movement to express expected ideas, actions, goals, and/or results.
- FIG. 1 exemplarily shows a schematic diagram of an operation scene between the display device 200 and the control device according to the embodiment. As shown in FIG. 1, the user can operate the display device 200 by controlling the device 100.
- the control device 100 may be a remote controller 100A, which can communicate with the display device 200 through infrared protocol communication, Bluetooth protocol communication, ZigBee protocol communication or other short-distance communication methods for wireless or other communication
- the display device 200 is controlled in a wired manner.
- the user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, etc.
- the user can control the display device 200 by inputting corresponding control commands through the volume plus and minus keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, and switch buttons on the remote control. Function.
- the control device 100 can also be a smart device, such as a mobile terminal 100B, a tablet computer, a computer, a notebook computer, etc., which can be connected through a local area network (LAN, Wide Area Network), a wide area network (WAN, Wide Area Network), and a wireless local area network ((WLAN) , Wireless Local Area Network) or other networks communicate with the display device 200, and realize the control of the display device 200 through an application program corresponding to the display device 200.
- LAN Local area network
- WAN Wide Area Network
- WLAN wireless local area network
- the application can provide users with various controls through an intuitive user interface (UI, User Interface) on the screen associated with the smart device.
- UI User Interface
- both the mobile terminal 100B and the display device 200 can be installed with software applications, so that the connection and communication between the two can be realized through a network communication protocol, thereby realizing one-to-one control operation and data communication.
- the mobile terminal 100B can establish a control command protocol with the display device 200, synchronize the remote control keyboard to the mobile terminal 100B, and control the display device 200 by controlling the user interface of the mobile terminal 100B; or the mobile terminal 100B
- the audio and video content displayed on the screen is transmitted to the display device 200 to realize the synchronous display function.
- the display device 200 can also communicate with the server 300 through multiple communication methods.
- the display device 200 may be allowed to communicate with the server 300 via a local area network, a wireless local area network, or other networks.
- the server 300 may provide various contents and interactions to the display device 200.
- the display device 200 transmits and receives information, interacts with an Electronic Program Guide (EPG, Electronic Program Guide), receives software program updates, or accesses a remotely stored digital media library.
- EPG Electronic Program Guide
- the server 300 may be a group or multiple groups, and may be one or more types of servers.
- the server 300 provides other network service content such as video on demand and advertising services.
- the display device 200 may be a liquid crystal display, an organic light emitting diode (Organic Light Emitting Diode, OLED) display, a projection display device, or a smart TV.
- OLED Organic Light Emitting Diode
- the specific display device type, size, aspect ratio, etc. are not limited, and those skilled in the art can understand that the display device 200 can make some changes in performance and configuration as required.
- the display device 200 may additionally provide a smart network TV function that provides a computer support function. Examples include Internet TV, Smart TV, Internet Protocol TV (IPTV, Interactive Personality TV), etc.
- a smart network TV function that provides a computer support function. Examples include Internet TV, Smart TV, Internet Protocol TV (IPTV, Interactive Personality TV), etc.
- the display device may be connected or provided with a camera, which is used to present the picture captured by the camera on the display interface of the display device or other display devices to realize interactive chats between users.
- the picture captured by the camera can be displayed on the display device in full screen, half screen, or in any optional area.
- the camera is connected to the monitor rear shell through a connecting plate, and is fixedly installed on the upper middle of the monitor rear shell.
- a connecting plate As an installable method, it can be fixedly installed at any position of the monitor rear shell to ensure its It is sufficient that the image capture area is not blocked by the rear shell, for example, the image capture area and the display device have the same orientation.
- the camera can be connected to the display rear shell through a connecting plate or other conceivable connectors.
- the connector is equipped with a lifting motor.
- the user wants to use the camera or has an application to use the camera
- it can be raised above the display.
- the camera is not needed, it can be embedded behind the back shell to protect the camera from damage.
- the camera used in this application may have 16 million pixels to achieve the purpose of ultra-high-definition display. In actual use, a camera with higher or lower than 16 million pixels can also be used.
- the content displayed in different application scenarios of the display device can be merged in many different ways, so as to achieve functions that cannot be achieved by traditional display devices.
- the user can video chat with at least one other user while watching a video program.
- the presentation of the video program can be used as the background picture, and the video chat window is displayed on the background picture.
- At least one video chat is performed across terminals.
- the user can video chat with at least one other user while entering the education application for learning.
- students can realize remote interaction with teachers while learning content in educational applications. Visually, you can call this function "learning and chatting”.
- a video chat is conducted with players entering the game.
- players entering the game.
- a player enters a game application to participate in a game, it can realize remote interaction with other players. Visually, you can call this function "watch and play".
- the game scene is integrated with the video picture, and the portrait in the video picture is cut out and displayed on the game picture to improve user experience.
- somatosensory games such as ball games, boxing games, running games, dancing games, etc.
- human body postures and movements are acquired through the camera, body detection and tracking, and the detection of human bone key points data, and then the game Animations are integrated to realize games such as sports and dance scenes.
- the user can interact with at least one other user in video and voice in the K song application.
- multiple users can jointly complete the recording of a song.
- the user can turn on the camera locally to obtain pictures and videos, which is vivid, and this function can be called "look in the mirror".
- the mirror application is a newly added application in the social TV project.
- the application supports camera image preview, face recognition, adding beauty filters, taking pictures, photo sharing and other functions; the method of taking pictures mentioned in this embodiment is mirroring Realized in application.
- FIG. 2 exemplarily shows a configuration block diagram of a software system in the display device 200 according to an exemplary embodiment.
- the operating system 2911 includes operating software for processing various basic system services and performing hardware-related tasks, and serves as a medium for completing data processing between application programs and hardware components.
- part of the operating system kernel may include a series of software to manage the hardware resources of the display device and provide services for other programs or software codes.
- part of the operating system kernel may include one or more device drivers, and the device drivers may be a set of software codes in the operating system to help operate or control devices or hardware associated with the display device.
- the drive may contain code to manipulate video, audio, and/or other multimedia components. Examples include displays, cameras, Flash, WiFi, and audio drivers.
- the accessibility module 2911-1 is used to modify or access the application program, so as to realize the accessibility of the application program and the operability of its display content.
- the communication module 2911-2 is used to connect to other peripherals via related communication interfaces and communication networks.
- the user interface module 2911-3 is used to provide objects that display the user interface for access by various applications, and can realize user operability.
- the control application 2911-4 is used to control process management, including runtime applications.
- the event transmission system 2914 can be implemented in the operating system 2911 or in the application 2912. In some embodiments, it is implemented in the operating system 2911 on the one hand, and implemented in the application program 2912 at the same time, for monitoring various user input events, and responding to the recognition results of various events or sub-events according to various events. And implement one or more sets of pre-defined operation procedures.
- the event monitoring module 2914-1 is used to monitor input events or sub-events of the user input interface.
- the event recognition module 2914-1 is used to input the definitions of various events to various user input interfaces, recognize various events or sub-events, and transmit them to the processing to execute the corresponding one or more groups of processing programs .
- the event or sub-event refers to the input detected by one or more sensors in the display device 200 and the input of an external control device (such as the control device 100).
- an external control device such as the control device 100.
- various sub-events of voice input, gesture input sub-events of gesture recognition, and sub-events of remote control button command input of control devices include multiple forms, including but not limited to one or a combination of pressing up/down/left/right/, confirming keys, and pressing keys.
- non-physical buttons such as moving, pressing, and releasing.
- the interface layout management module 2913 which directly or indirectly receives various user input events or sub-events monitored by the event transmission system 2914, is used to update the layout of the user interface, including but not limited to the position of each control or sub-control in the interface, and the container
- the size, position, level, etc. of the interface are related to various execution operations.
- FIG. 3 exemplarily shows a schematic diagram of the application programs included in the application program layer of the display device according to the exemplary embodiment, and the application program layer of the display device includes various application programs that can be executed on the display device 200.
- the application layer 2912 may include, but is not limited to, one or more applications, such as: video-on-demand application, application center, game application, etc., live TV application, media center application, etc.
- applications such as: video-on-demand application, application center, game application, etc., live TV application, media center application, etc.
- Live TV applications can provide live TV through different sources.
- a live TV application can provide a TV signal using input from cable TV, wireless broadcasting, satellite services, or other types of live TV services.
- the live TV application can display the video of the live TV signal on the display device 200.
- Video-on-demand applications can provide videos from different storage sources. Unlike live TV applications, VOD provides video display from certain storage sources. For example, the video on demand can come from the server side of cloud storage, and from the local hard disk storage that contains the stored video programs.
- Media center applications can provide various multimedia content playback applications.
- the media center can provide services that are different from live TV or video on demand, and users can access various images or audio through the media center application.
- Application center can provide storage of various applications.
- the application program may be a game, an application program, or some other application program that is related to a computer system or other device but can be run on a display device.
- the application center can obtain these applications from different sources, store them in the local storage, and then run on the display device 200.
- FIG. 4 exemplarily shows a schematic diagram of a user interface in the display device 200 according to an exemplary embodiment.
- the user interface includes a view display area 201.
- the view display area 201 includes layout of one or more different items.
- the user interface also includes a selector indicating that the item is selected, and the position of the selector can be moved through user input to change the selection of different items.
- the view display area 201 is a zoomable view display.
- Scalable can mean that the size or proportion of the view display area 201 on the screen is scalable, or that the size or proportion of the items in the view display 201 on the screen is scalable.
- Items refer to visual objects displayed in the view display area of the user interface of the display device 200 to represent corresponding content such as icons, thumbnails, and video clips.
- an item may represent image content or video clips of movies, TV shows, audio content of music, applications, or other user access content history information.
- the item may indicate an interface or a set display of interfaces through which the display device 200 is connected to an external device, or may indicate the name of an external device connected to the display device, or the like.
- the view display area can present the content of the video chat project or the content of the application layer project (for example, webpage video, video on demand (VOD) display, application screen, etc.).
- the application layer project for example, webpage video, video on demand (VOD) display, application screen, etc.
- “Selector” is used to indicate that any item has been selected, such as cursor or focus object. Positioning the selection information input according to the icon or menu position touched by the user in the display 200 can enable the display device 200 to display the movement of the focus object to select the control item, and select or control one or more items.
- the focus object refers to the object that moves between items based on user input. For example, draw a thick line on the edge of the item to realize or identify the position of the focus object.
- the focus form is not limited to examples. It can be a tangible or intangible form that can be recognized by the user, such as a cursor, such as a 3D deformation of the item, and the border line and size of the text or image of the focused item can also be changed. , Color, transparency, outline, and/or font.
- the event transmission system 2914 can monitor the user input of each predefined event or sub-event, and directly or indirectly provide the interface layout management module 2913 with the control of the recognized event or sub-event.
- the interface layout management module 2913 is used to monitor the state of the user interface (including the position and/or size, change process, etc. of the view partition, item, focus or cursor object, etc.), and according to the event or sub-event, the view display area can be modified The size, location, level and other layout of the display area, and/or, adjust or modify the size or/and location, quantity, type, content and other layouts of various items in the view display area.
- modifying and adjusting the layout includes displaying or not displaying each view partition or the content of items in the view partition on the screen.
- the user input interface is used to send the user's input signal to the controller, or to transmit the signal output from the controller to the user.
- the control device (such as a mobile terminal or a remote control) may send input signals input by the user, such as a power switch signal, a channel selection signal, and a volume adjustment signal, to the user input interface, and then the user input interface forwards the input signal to the controller;
- the control device may receive output signals such as audio, video, or data output from the user input interface processed by the controller, and display the received output signal or output the received output signal as audio or vibration.
- the user may input a user command on a graphical user interface (GUI) displayed on the display 200, and the user input interface receives the user input command through the graphical user interface (GUI).
- GUI graphical user interface
- the user can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
- various types of terminal devices are usually able to provide users with game functions.
- the virtual character corresponding to the user may be displayed on the game interface.
- the user can select the image that he or she is satisfied with from the various images provided by the game, or select the image that he or she is satisfied with from the album stored in the terminal device, and then the game interface of the terminal device displays The image selected by the user is used as the virtual character corresponding to the user.
- the virtual character in the game interface will remain fixed and remain the image selected by the user, resulting in a poor user experience during the game.
- this application discloses a virtual scene generation method and device through the following embodiments.
- the virtual scene generation method and device are applied to a terminal device.
- the terminal device can be a smart phone, a TV, a tablet computer, etc.
- the embodiment does not limit this.
- the terminal device can communicate with other terminal devices through a local area network (LAN, Local Area Network), a wide area network (WAN, Wide Area Network), a wireless local area network ((WLAN, Wireless Local Area Network) or other networks.
- LAN Local Area Network
- WAN wide area network
- WLAN Wireless Local Area Network
- the terminal device may be connected or provided with a camera for presenting the screen shot by the camera on the display interface of the terminal device or the display interface of other terminal devices to realize interactive chat between users.
- the picture captured by the camera can be displayed on the terminal device in full screen, half screen, or in any optional area.
- the camera is connected to the rear shell of the terminal device through a connecting plate, and is fixedly installed on the upper middle of the display rear shell of the terminal device.
- it can be fixedly installed on the display of the terminal device. Any position of the rear case can ensure that the image acquisition area is not blocked by the rear case. For example, the image acquisition area and the display orientation of the terminal device are the same.
- the camera can be connected to the rear shell of the terminal device through a connecting plate or other conceivable connectors.
- a lifting motor is installed on the connector.
- FIG. 4 exemplarily shows a schematic diagram of a display interface in an embodiment of the present application.
- the display interface includes multiple view display areas, for example, a first view display area 201 and a play screen 202, where the play screen includes layout of one or more different items.
- the display interface also includes a selector indicating that the item is selected, and the position of the selector can be moved through user input to change the selection of different items.
- multiple view display areas can present display screens of different levels.
- the first view display area can present video chat item content
- the second view display area can present application layer item content (eg, webpage video, VOD display, application program screen, etc.).
- the presentation of different view display areas has different priorities, and the display priorities of the view display areas are different between view display areas with different priorities.
- the priority of the system layer is higher than that of the application layer.
- the same level of display screens can also be presented.
- the selector can switch between the first view display area and the second view display area, and when the size and position of the first view display area change, the first view display area The size and position of the second view display area can be changed at any time.
- the first embodiment of the present application discloses a method for generating a virtual scene. Referring to the schematic diagram of the workflow shown in FIG. 5, the method includes the following steps:
- Step S11 Acquire a photographed image of a user in real time, and the photographed image includes a portrait of the user.
- the user is each participant of the game.
- Step S12 According to the position of the virtual character corresponding to the user in the game interface, perform sideways processing on the portrait in the photographed image to obtain a sideways image including the sideways processed portrait, wherein the virtual character is in the The position in the game interface is the target position.
- the sideways processing according to the position of the virtual character in the game interface, it is determined in the actual game scene whether the virtual character corresponding to each user is displayed on the front or side in the game interface, and then the captured image Perform corresponding sideways processing on the portrait of, so that the sideways processed portrait conforms to the actual game scene.
- the game interface in order to increase the user’s sense of experience, there are often virtual characters corresponding to the user. For example, in a chess and card game, if there are three people A, B and C participating, the game interface often displays the virtual characters of these three people. character. Wherein, when the virtual character is displayed, usually only the head portion of the virtual character is displayed. Of course, the entire virtual character can also be displayed, which is not limited in the embodiment of the present application.
- the positions of different virtual characters in the game interface are different. Accordingly, after the sideways processing, the angles of the sideways processed portraits are different, so that the sideways processed portraits can match the actual game scene.
- user A is on the front of the chess table
- user B is on the left side of the chess table
- user C is on the right side of the chess table.
- the user passes sideways After processing, make the processed portrait of user A sideways face the game interface, make the processed portrait of user B sideways display the right body, and make the processed portrait of user C sideways display the left body.
- step S12 according to the position of the avatar corresponding to the user in the game interface, corresponding sideways processing is performed on the portrait in the captured image, so that the sideways processed portrait can conform to the game scene.
- Step S13 Obtain a virtual scene interface superimposed with the side image and the game interface, and display the virtual scene interface, wherein the side image is located on the upper layer of the game interface, and the side image includes The sideways processed portrait is located directly above the target position.
- the terminal device of the embodiment of the present application can display multiple levels of display screens.
- the side image and the game interface are display screens of different levels.
- the sideways image is located on the upper layer of the game interface, and the sideways processed portrait included in the sideways image is located directly above the target position. In this case, the sideways image is superimposed on the game interface.
- the sideways processed portraits cover the virtual characters in the game interface, so that when watching the screen displayed on the terminal device, the user no longer sees the image of the virtual character provided by the game interface, but handles it sideways Portrait after.
- the user’s photographed image is first obtained in real time; then, the portrait in the photographed image is processed sideways according to the position of the virtual character corresponding to the user in the game interface.
- Acquiring a sideways image including the sideways processed portrait ; acquiring a virtual scene interface superimposed with the sideways image and the game interface, and displaying the virtual scene interface, wherein the sideways image is located on the upper layer of the game interface,
- the sideways processed portrait included in the sideways image is located directly above the target position.
- the portrait included in the side image is a portrait obtained after processing the portrait in the captured image according to the position of the virtual character corresponding to the user in the game interface, and the captured image is an image obtained in real time.
- the sideways processed portrait included in the sideways image can be changed according to the real-time captured image and the position of the virtual character in the game interface.
- the user's photographed image can be obtained in various ways.
- the real-time acquisition of the user's captured image includes:
- the captured image transmitted by the first terminal device on the user side is acquired in real time.
- the first terminal device on each user side can shoot the user through its own camera, obtain the captured image, and then shoot The image is transmitted to the terminal device that executes the method of the embodiment of the present application.
- the terminal devices of these three users execute the method disclosed in the embodiment of this application
- the first terminal devices on the side of the three users ie, A and B respectively
- the terminal equipment of the three users of user C to shoot, obtain the photographed image, and then transmit the photographed image to other terminal equipment
- the terminal equipment of user A will transmit the photographed image including user A to the terminals of users B and C Device
- the terminal device of user B will transmit the captured images of user A to the terminal devices of users A and C
- the terminal device of user C will transmit the captured images of user A to the terminals of users B and A Device, so that the terminal device that executes the method disclosed in the embodiment of the present application can obtain the photographed image of each user.
- the real-time acquisition of a photographed image of the user includes:
- each frame of images constituting the captured video is segmented into a portrait and a background, and a captured image including the portrait is obtained.
- the first terminal device is used to transmit the captured video in real time to the terminal device that executes the method disclosed in the embodiment of the present application. Then, the terminal device can perform portrait and background image on each frame of the captured video. Divide to obtain captured images.
- the portrait segmentation algorithm is a traditional portrait segmentation algorithm, for example, it may be a portrait segmentation algorithm based on a convolutional neural network, etc., which is not limited in this application embodiment.
- the terminal device 100 and the first terminal device 200 that execute the method disclosed in the embodiment of the present application are included, and further include the respective The cloud server 300 connected to the terminal device 100 and the first terminal device 200.
- the terminal device 100 receives the captured image or the captured video transmitted by the first terminal device 200, it can be forwarded through the cloud server 300.
- the first terminal device 200 transmits the captured image or captured video to the cloud server 300
- the cloud server 300 transmits the captured image or captured video to the terminal device 100 that executes the method disclosed in the embodiment of the present application.
- the first terminal device 200 can transmit the captured image or the captured video to the cloud server 300 through a standard multi-channel video call transmission method.
- the first terminal device 200 may also use other methods to transmit to the cloud server 300, which is not limited in the embodiment of the present application.
- the cloud server 300 transmits the captured image or the captured video to the terminal device 100 that executes the method disclosed in the embodiment of the present application.
- the cloud server 300 may be a server of the game that the user is playing, or may also be a server of call software (such as WeChat and QQ instant messaging software).
- the cloud server 300 can be connected to the first server through a network connection.
- the terminal device 200 and the terminal device 100 that executes the method disclosed in the embodiments of the present application function as a relay during the transmission of the captured image or the captured video, and realize the transmission of the captured image or the captured video.
- a photographed image can be acquired, wherein the photographed image includes a portrait of the user.
- the following steps are further included:
- the beautification processing can be performed according to the received beautification setting parameters.
- the beauty setting parameters may include the degree of whitening, the degree of eye enlargement, and the degree of face-lifting.
- the user can control the terminal device to make the terminal device receive the type and specific value of the beauty setting parameter.
- the terminal device can perform sideways processing on the captured images after the beautification processing, so that the portrait after the sideways processing is more beautiful.
- step S12 of the embodiment of the present application it is disclosed that according to the position of the virtual character corresponding to the user in the game interface, sideways processing is performed on the portrait in the captured image, and the sideways image including the sideways processed portrait is obtained.
- the sideways processing can be implemented by a traditional 2.5D algorithm, of course, it can also be implemented by other methods, which is not limited in the embodiment of the present application.
- Sideways processing refers to determining the angle of the virtual character corresponding to the user during the game according to the position of the virtual character corresponding to the user in the game interface, and processing the portrait in the captured image according to this angle.
- the angle presented by the sideways processed portrait is the angle that the virtual character corresponding to the user needs to present.
- the portrait in the captured image can be treated as a sideways portrait; in addition, if a certain The angle that the virtual character corresponding to a user needs to present is the left side, and the portrait in the captured image is the front, then after the sideways processing, the left side portrait is presented as the sideways processed portrait.
- the portrait after the sideways treatment can be as shown in Figure 7.
- the captured image when performing sideways processing, can be copied in a quadrilateral grid, and then the quadrilateral grid can be processed to deform the quadrilateral grid to a certain degree.
- the quadrilateral grid appears slightly sideways.
- the left side of the quadrilateral grid can be compressed to make the left side shorter, and the right side of the quadrilateral grid can be stretched to make the right side change Long, which reflects the effect of slightly to the left side.
- the right side of the quadrilateral mesh can be compressed to make the right side shorter, and the left side of the quadrilateral mesh can be stretched to make the left side longer. It shows the effect of turning sideways slightly.
- the skeletal model corresponding to different sideways angles can be set in the terminal device in advance, and the user’s makeup model can be created through the obtained multiple frames of captured images.
- the makeup model is used to reflect the user’s current Makeup and hair during the game.
- the corresponding bone model is determined by the angle of the sideways, and then, according to the makeup model, the corresponding makeup content is filled on the bone model to obtain the sideways processed Portrait.
- the skeleton model corresponding to the left body can be obtained, and then the corresponding makeup and hair are filled on the skeleton model corresponding to the left body, so as to obtain the portrait of the left body.
- the shooting angle of the multi-frame captured image when the shooting angle of the multi-frame captured image is relatively single, it may cause the corresponding bone model to be filled with makeup, and there is no proper makeup on some areas of the bone model. The content is filled.
- the user can also access the server to compare various makeup types provided by the server with the makeup model.
- the makeup and hair type most suitable for the makeup and hair model is determined, and the makeup and hair model is further improved accordingly.
- the makeup model and the various types of makeup provided by the server are compared with the makeup model. If the ponytail hairstyle provided by the server is compared with the makeup model If the hair model has the highest similarity, it is determined that the hair makeup model is a ponytail. In this case, ponytail hairstyles can be filled when filling makeup on the bone model corresponding to the left body.
- step S13 the operation of obtaining a virtual scene interface superimposed with the side image and the game interface is disclosed, and this operation can be implemented in various ways.
- the acquiring a virtual scene interface superimposed with the side image and the game interface includes the following steps:
- the number of pixels occupied by the side image is adjusted according to the number of pixels occupied by the virtual character included in the game interface, and the number of pixels occupied by the virtual character included in the game interface is adjusted.
- the coordinates in the game interface are adjusted to the position of the side processed portrait included in the side profile image, so that the portrait included in the adjusted side profile image can cover the virtual character included in the game interface .
- the sideways processed portrait included in the sideways image occupies a small number of pixels, the sideways processed portrait will be small and cannot cover the virtual character displayed in the game interface.
- the number of pixels occupied by the sideways image is adjusted to enlarge the sideways processed portrait, so that the sideways processed portrait included in the sideways image can cover the virtual character displayed in the game interface.
- the position occupied by the sideways processed portrait included in the sideways image is different from the position occupied by the virtual character included in the game interface, after direct superimposition, the sideways processed portrait and the virtual character are often not in the same display area. Cover the virtual characters displayed in the game interface. Therefore, in this step, according to the coordinates of the virtual character included in the game interface in the game interface, the position of the sideways processed portrait included in the sideways image can be adjusted to adjust The sideways processed portrait included in the sideways image can cover the virtual character displayed in the game interface.
- the sideways processed portrait included in the sideways image occupies a large number of pixels and often occupies a larger position in the game interface, which is not conducive to the user's viewing. Therefore, in the process of adjusting the number of pixels occupied by the sideways image, the magnification threshold can be set in advance so that the sideways image with the adjusted number of pixels does not occupy too many pixels.
- the magnification threshold can be set to 3 pixels.
- the number of pixels per row of the sideways processed portrait included in the sideways image is greater than that of the game.
- the virtual character in the interface occupies 3 pixels more pixels, so that the sideways processed portrait can cover the virtual character, and the sideways processed portrait can avoid occupying more pixels and affect the user to view other screens.
- the second step is to adjust pixels in other regions of the sideways image to a transparent state, where the other regions are the portrait regions of the sideways image that do not include the user.
- the pixels in other areas of the sideways image are adjusted to a transparent state.
- the third step is to set the adjusted side image on the upper layer of the game interface.
- the terminal device that executes the method disclosed in the embodiment of the present application can present display screens of different levels in the same view display area.
- the adjusted side image is a one-level display screen
- the game interface is a display screen located below the adjusted side image. In this case, the user sees these two images. Display the picture that appears after the picture is superimposed.
- the acquiring a virtual scene interface superimposed with the sideways image and the game interface includes:
- the first step is to perform matting processing on the sideways image to obtain the sideways processed portrait included in the sideways image, where the sideways processed portrait is a sideways portrait;
- the second step is to adjust the number of pixels occupied by the side profile portrait according to the number of pixels occupied by the virtual character included in the game interface, and adjust the number of pixels occupied by the virtual character included in the game interface.
- the adjusted side profile portrait is set on the upper layer of the game interface, so that the adjusted side profile portrait can cover the virtual characters included in the game interface.
- cutout processing is performed on the sideways image, and the sideways portrait after the cutout processing is superimposed on the position of the virtual character on the game interface.
- the number of pixels occupied by the sideways portrait is adjusted to enlarge the sideways portrait, so that the sideways portrait can cover the virtual characters displayed in the game interface.
- the magnification threshold can be preset so that the sideways portrait after adjusting the number of pixels does not occupy too many pixels.
- the magnification threshold can be set to 3 pixels.
- the number of pixels in each row of the side profile portrait is greater than that occupied by the virtual character in the game interface. There are 3 more pixels, so that the side profile portrait can cover the virtual character, and avoid the side profile portrait occupying more pixels, which will affect the user to view other pictures.
- a virtual scene generation device is disclosed.
- the device includes: an image acquisition module 110, a sideways processing module 120, and an interface overlay module 130.
- the image acquisition module 110 is configured to acquire a captured image of a user in real time, and the captured image includes a portrait of the user;
- the sideways processing module 120 is configured to perform sideways processing on the portrait in the captured image according to the position of the virtual character corresponding to the user in the game interface, and obtain the sideways image including the sideways processed portrait, where all The position of the virtual character in the game interface is the target position;
- the interface overlay module 130 is configured to obtain a virtual scene interface superimposed with the side image and the game interface, and display the virtual scene interface, wherein the side image is located on the upper layer of the game interface, and, The sideways processed portrait included in the sideways image is located directly above the target position.
- the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in each embodiment of the calling method provided by the present invention when the program is executed.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, abbreviated as: ROM) or a random access memory (English: random access memory, abbreviated as: RAM), etc.
- the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
- the technical solutions in the embodiments of the present invention can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., including a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本公开要求在2019年6月10日提交中国专利局、申请日为201910497519.8、申请名称为“一种虚拟场景生成方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 10, 2019, the filing date is 201910497519.8, and the application title is "a method and device for generating virtual scenes", the entire content of which is incorporated into this disclosure by reference in.
本申请涉及智能电视技术领域,尤其涉及一种显示设备及虚拟场景生成方法。This application relates to the technical field of smart TVs, and in particular to a display device and a virtual scene generation method.
随着科技水平的发展,各种类型的终端设备的功能日益丰富,从而满足用户的多样化需求。例如,目前的智能手机和电视等终端设备,能够提供游戏功能,以满足用户的娱乐需求。With the development of science and technology, the functions of various types of terminal equipment are becoming more abundant, so as to meet the diverse needs of users. For example, current terminal devices such as smart phones and TVs can provide game functions to meet the entertainment needs of users.
用户在通过终端设备进行游戏时,终端设备往往会为用户显示该游戏相应的游戏场景,以便用户观赏到游戏画面以及了解游戏进程。一般在游戏场景中,用户实际人像无法应用在实际场景中,而是仅仅在游戏场景中,展示预设的动画效果。这不太利于用户体验。When a user plays a game through a terminal device, the terminal device often displays the game scene corresponding to the game for the user, so that the user can watch the game screen and understand the game process. Generally, in a game scene, the actual user portrait cannot be applied to the actual scene, but only in the game scene to show the preset animation effect. This is not conducive to the user experience.
发明内容Summary of the invention
本申请示例性的实施方式中提供了一种显示设备,用以在电视端根据用户人像动态显示游戏界面。An exemplary embodiment of the present application provides a display device for dynamically displaying a game interface according to a user's portrait on the TV side.
根据示例性的实施方式中第一方面,本申请提供一种显示设备,包括:According to the first aspect of the exemplary embodiment, the present application provides a display device, including:
显示器,被配置为呈现游戏应用相关界面;The display is configured to present a game application related interface;
摄像头,被配置为获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像;A camera configured to obtain a photographed image of a user, the photographed image including a portrait of the user;
控制器,被配置为:The controller is configured as:
根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像,其中,所述虚拟人物在所述游戏界面中的位置为目标位置;According to the position of the virtual character corresponding to the user in the game interface, perform sideways processing on the portrait in the captured image to obtain a sideways image including the sideways processed portrait, wherein the virtual character is in the game interface Is the target position;
获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,控制所述显示器呈现所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面中所述虚拟人物的上层。Acquire a virtual scene interface superimposed with the side image and the game interface, and control the display to present the virtual scene interface, wherein the side image is located on the upper layer of the virtual character in the game interface.
第二方面,本申请示例性的实施方式中提供一种虚拟场景生成方法,包括:In the second aspect, an exemplary embodiment of the present application provides a virtual scene generation method, including:
实时获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像;Acquiring a photographed image of the user in real time, the photographed image including a portrait of the user;
根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像,其中,所述虚拟人物在所述游戏界面中的位置为目标位置;According to the position of the virtual character corresponding to the user in the game interface, perform sideways processing on the portrait in the captured image to obtain a sideways image including the sideways processed portrait, wherein the virtual character is in the game interface Is the target position;
获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,并显示所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正上方。Obtain a virtual scene interface superimposed with the sideways image and the game interface, and display the virtual scene interface, wherein the sideways image is located on the upper layer of the game interface, and the sideways processing included in the sideways image The rear portrait is located directly above the target location.
第三方面,本申请示例性的实施方式中提供一种虚拟场景生成装置,包括:In a third aspect, an exemplary embodiment of the present application provides a virtual scene generation device, including:
图像获取模块,用于实时获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像;An image acquisition module, configured to acquire a photographed image of a user in real time, and the photographed image includes a portrait of the user;
侧身处理模块,用于根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像,其中,所述虚拟人物在所述游戏界面中的位置为目标位置;The sideways processing module is configured to perform sideways processing on the portrait in the captured image according to the position of the virtual character corresponding to the user in the game interface, and obtain a sideways image including the sideways processed portrait, wherein the virtual character The position in the game interface is the target position;
界面叠加模块,用于获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,并显示所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正上方。The interface overlay module is used to obtain a virtual scene interface superimposed with the sideways image and the game interface, and display the virtual scene interface, wherein the sideways image is located on the upper layer of the game interface, and the sideways The sideways processed portrait included in the image is located directly above the target position.
第四方面,本申请示例性的实施方式中提供一种显示设备,包括:In a fourth aspect, an exemplary embodiment of the present application provides a display device, including:
显示器,被配置为呈现游戏应用相关界面;The display is configured to present a game application related interface;
摄像头,被配置为获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像;A camera configured to obtain a photographed image of a user, the photographed image including a portrait of the user;
控制器,被配置为:The controller is configured as:
根据所述用户对应的虚拟人物在游戏界面中的位置,获取所述拍摄图像中的人像相关部分,其中,所述虚拟人物在所述游戏界面中的位置为目标位置;Acquiring the portrait-related part in the captured image according to the position of the virtual character corresponding to the user in the game interface, wherein the position of the virtual character in the game interface is the target position;
控制所述显示器将所述人像相关部分浮于所述游戏界面的目标位置呈现。Controlling the display to display the portrait-related part floating on the target position of the game interface.
以上是本公开的简单概述,以解释申请的某些方面,本概述不是对申请及其各个方面、实例和/或配置的全面或详尽的概述,其目的既不是确定申请的主要或关键元件,也不描述申请的范围,而是简要的介绍申请的某些概念,作为对下文详细描述的介绍,应该理解,本披露文件的其他方面、实例和/或配置可以单独或组合利用上文陈述或细纹详述的一个或对个特征。The above is a brief summary of the present disclosure to explain certain aspects of the application. This summary is not a comprehensive or exhaustive overview of the application and its various aspects, examples and/or configurations. Its purpose is neither to determine the main or key elements of the application, It does not describe the scope of the application, but briefly introduces certain concepts of the application. As an introduction to the detailed description below, it should be understood that other aspects, examples and/or configurations of this disclosure can be used alone or in combination with the above statements or A feature or pairs of fine lines detailed.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1中示例性示出了根据实施例中显示设备200与控制装置之间操作场景的示意图;FIG. 1 exemplarily shows a schematic diagram of an operation scene between the
图2中示例性示出了根据实施例中显示设备200中软件系统的配置框图示意图;FIG. 2 exemplarily shows a configuration block diagram of the software system in the
图3中示例性示出了根据实施例中显示设备的应用程序层包含的应用程序示意图;FIG. 3 exemplarily shows a schematic diagram of application programs included in the application layer of the display device according to the embodiment;
图4中示例性示出了根据实施例中显示设备200中用户界面的示意图;FIG. 4 exemplarily shows a schematic diagram of a user interface in the
图5为本申请实施例公开的一种虚拟场景生成方法的工作流程示意图;5 is a schematic diagram of a workflow of a method for generating a virtual scene disclosed in an embodiment of the application;
图6为本申请实施例公开的一种虚拟场景生成方法的应用场景示意图;FIG. 6 is a schematic diagram of an application scenario of a virtual scene generation method disclosed in an embodiment of the application;
图7为本申请实施例公开的一种虚拟场景生成方法中的侧身处理后的人像;FIG. 7 is a portrait after sideways processing in a method for generating a virtual scene disclosed in an embodiment of the application;
图8为本申请实施例公开的一种虚拟场景生成装置的结构示意图。Fig. 8 is a schematic structural diagram of a virtual scene generating apparatus disclosed in an embodiment of the application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,并不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
下面结合说明书附图对本申请各个实施例进行详细描述。需要说明的是, 本申请实施例的展示顺序仅代表实施例的先后顺序,并不代表实施例所提供的技术方案的优劣。Hereinafter, each embodiment of the present application will be described in detail with reference to the drawings of the specification. It should be noted that the display order of the embodiments of the present application only represents the sequence of the embodiments, and does not represent the pros and cons of the technical solutions provided by the embodiments.
本申请各实施例中使用的术语“模块”,可以是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" used in the various embodiments of this application can refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or a combination of hardware or/and software code that can execute related to the component Function.
本申请各实施例中使用的术语“遥控器”,是指电子设备(如本申请中公开的显示设备)的一个组件,该组件通常可在较短的距离范围内无线控制电子设备。该组件一般可以使用红外线和/或射频(Radio Frequency,RF)信号和/或蓝牙与电子设备连接,也可以包括无线网WiFi、无线USB、蓝牙、动作传感器等功能模块。例如:手持式触摸遥控器,是以触摸屏中用户界面取代一般遥控装置中的大部分物理内置硬键。The term "remote control" used in the various embodiments of this application refers to a component of an electronic device (such as the display device disclosed in this application), which can generally control the electronic device wirelessly within a short distance. This component can generally use infrared and/or radio frequency (RF) signals and/or Bluetooth to connect with electronic devices, and can also include functional modules such as wireless network WiFi, wireless USB, Bluetooth, and motion sensors. For example, a handheld touch remote control uses a user interface in a touch screen to replace most of the physical built-in hard keys in general remote control devices.
本申请各实施例中使用的术语“手势”,是指用户通过一种手型的变化或手部运动等动作,用于表达预期想法、动作、目的/或结果的用户行为。The term "gesture" used in the embodiments of the present application refers to a user's behavior through a change of hand shape or hand movement to express expected ideas, actions, goals, and/or results.
图1中示例性示出了根据实施例中显示设备200与控制装置之间操作场景的示意图。如图1所示,用户可通过控制装置100来操作显示设备200。FIG. 1 exemplarily shows a schematic diagram of an operation scene between the
其中,控制装置100可以是遥控器100A,其可与显示设备200之间通过红外协议通信、蓝牙协议通信、紫蜂(ZigBee)协议通信或其他短距离通信方式进行通信,用于通过无线或其他有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。如:用户可以通过遥控器上音量加减键、频道控制键、上/下/左/右的移动按键、语音输入按键、菜单键、开关机按键等输入相应控制指令,来实现控制显示设备200的功能。Wherein, the
控制装置100也可以是智能设备,如移动终端100B、平板电脑、计算机、笔记本电脑等,其可以通过本地网(LAN,Local Area Network)、广域网(WAN,Wide Area Network)、无线局域网((WLAN,Wireless Local Area Network)或其他网络与显示设备200之间通信,并通过与显示设备200相应的应用程序实现对显示设备200的控制。例如,使用在智能设备上运行的应用程序控制显示设备200。该应用程序可以在与智能设备关联的屏幕上通过直观的用户界面(UI,User Interface)为用户提供各种控制。The
示例的,移动终端100B与显示设备200均可安装软件应用,从而可通过网络通信协议实现二者之间的连接通信,进而实现一对一控制操作的和数据通信的目的。如:可以使移动终端100B与显示设备200建立控制指令协议,将遥控控制键盘同步到移动终端100B上,通过控制移动终端100B上用户界面,实现控制显示设备200的功能;也可以将移动终端100B上显示的音视频内容传输到显示设备200上,实现同步显示功能。For example, both the
如图1所示,显示设备200还可与服务器300通过多种通信方式进行数据通信。在本申请各个实施例中,可允许显示设备200通过局域网、无线局域网或其他网络与服务器300进行通信连接。服务器300可以向显示设备200提供各种内容和互动。As shown in FIG. 1, the
示例的,显示设备200通过发送和接收信息,以及电子节目指南(EPG,Electronic Program Guide)互动,接收软件程序更新,或访问远程储存的数字媒体库。服务器300可以是一组,也可以是多组,可以是一类或多类服务器。通过服务器300提供视频点播和广告服务等其他网络服务内容。Illustratively, the
显示设备200,可以是液晶显示器、有机发光二极管(Organic Light Emitting Diode,OLED)显示器、投影显示设备、智能电视。具体显示设备类型,尺寸大小和宽高比等不作限定,本领技术人员可以理解的是,显示设备200可以根据需要做性能和配置上的一些改变。The
显示设备200除了提供广播接收电视功能之外,还可以附加提供计算机支持功能的智能网络电视功能。示例的包括,网络电视、智能电视、互联网协议电视(IPTV,Interactive Personality TV)等。In addition to providing the broadcast receiving TV function, the
如图1所述,显示设备上可以连接或设置有摄像头,用于将摄像头拍摄到的画面呈现在本显示设备或其他显示设备的显示界面上,以实现用户之间的交互聊天。具体的,摄像头拍摄到的画面可在显示设备上全屏显示、半屏显示、或者显示任意可选区域。As shown in Figure 1, the display device may be connected or provided with a camera, which is used to present the picture captured by the camera on the display interface of the display device or other display devices to realize interactive chats between users. Specifically, the picture captured by the camera can be displayed on the display device in full screen, half screen, or in any optional area.
作为一种可选的连接方式,摄像头通过连接板与显示器后壳连接,固定安装在显示器后壳的上侧中部,作为可安装的方式,可以固定安装在显示器后壳的任意位置,能保证其图像采集区域不被后壳遮挡即可,例如,图像采集区域与显示设备的显示朝向相同。As an optional connection method, the camera is connected to the monitor rear shell through a connecting plate, and is fixedly installed on the upper middle of the monitor rear shell. As an installable method, it can be fixedly installed at any position of the monitor rear shell to ensure its It is sufficient that the image capture area is not blocked by the rear shell, for example, the image capture area and the display device have the same orientation.
作为另一种可选的连接方式,摄像头通过连接板或者其他可想到的连接器可升降的与显示后壳连接,连接器上安装有升降马达,当用户要使用摄像头或者有应用程序要使用摄像头时,再升出显示器之上,当不需要使用摄像头时,其可内嵌到后壳之后,以达到保护摄像头免受损坏。As another optional connection method, the camera can be connected to the display rear shell through a connecting plate or other conceivable connectors. The connector is equipped with a lifting motor. When the user wants to use the camera or has an application to use the camera When the camera is not needed, it can be raised above the display. When the camera is not needed, it can be embedded behind the back shell to protect the camera from damage.
作为一种实施例,本申请所采用的摄像头可以为1600万像素,以达到超高清显示目的。在实际使用中,也可采用比1600万像素更高或更低的摄像头。As an embodiment, the camera used in this application may have 16 million pixels to achieve the purpose of ultra-high-definition display. In actual use, a camera with higher or lower than 16 million pixels can also be used.
当显示设备上安装有摄像头以后,显示设备不同应用场景所显示的内容可得到多种不同方式的融合,从而达到传统显示设备无法实现的功能。When a camera is installed on the display device, the content displayed in different application scenarios of the display device can be merged in many different ways, so as to achieve functions that cannot be achieved by traditional display devices.
示例性的,用户可以在边观看视频节目的同时,与至少一位其他用户进行视频聊天。视频节目的呈现可作为背景画面,视频聊天的窗口显示在背景画面之上。形象的,可以称该功能为“边看边聊”。Exemplarily, the user can video chat with at least one other user while watching a video program. The presentation of the video program can be used as the background picture, and the video chat window is displayed on the background picture. Visually, you can call this function "watch and chat".
可选的,在“边看边聊”的场景中,在观看直播视频或网络视频的同时,跨终端的进行至少一路的视频聊天。Optionally, in the "watching and chatting" scenario, while watching live video or online video, at least one video chat is performed across terminals.
另一示例中,用户可以在边进入教育应用学习的同时,与至少一位其他用户进行视频聊天。例如,学生在学习教育应用程序中内容的同时,可实现与老师的远程互动。形象的,可以称该功能为“边学边聊”。In another example, the user can video chat with at least one other user while entering the education application for learning. For example, students can realize remote interaction with teachers while learning content in educational applications. Visually, you can call this function "learning and chatting".
另一示例中,用户在玩纸牌游戏时,与进入游戏的玩家进行视频聊天。例如,玩家在进入游戏应用参与游戏时,可实现与其他玩家的远程互动。形象的,可以称该功能为“边看边玩”。In another example, when a user is playing a card game, a video chat is conducted with players entering the game. For example, when a player enters a game application to participate in a game, it can realize remote interaction with other players. Visually, you can call this function "watch and play".
可选的,游戏场景与视频画面进行融合,将视频画面中人像进行抠图,显示在游戏画面中,提升用户体验。Optionally, the game scene is integrated with the video picture, and the portrait in the video picture is cut out and displayed on the game picture to improve user experience.
可选的,在体感类游戏中(如打球类、拳击类、跑步类、跳舞类等),通过摄像头获取人体姿势和动作,肢体检测和追踪、人体骨骼关键点数据的检测,再与游戏中动画进行融合,实现如体育、舞蹈等场景的游戏。Optionally, in somatosensory games (such as ball games, boxing games, running games, dancing games, etc.), human body postures and movements are acquired through the camera, body detection and tracking, and the detection of human bone key points data, and then the game Animations are integrated to realize games such as sports and dance scenes.
另一示例中,用户可以在K歌应用中,与至少一位其他用户进行视频和语音的交互。形象的,可以称该功能为“边看边唱”。优选的,当至少一位用户在聊天场景进入该应用时,可多个用户共同完成一首歌的录制。In another example, the user can interact with at least one other user in video and voice in the K song application. Visually, you can call this function "watch and sing". Preferably, when at least one user enters the application in the chat scene, multiple users can jointly complete the recording of a song.
另一个示例中,用户可在本地打开摄像头获取图片和视频,形象的,可以称该功能为“照镜子”。照镜子应用为社交电视项目中新增加的应用,该应用支持摄像头画面预览,人脸识别,添加美颜滤镜,拍照,照片分享等功能;本实 施例提到的拍摄图像的方法在照镜子应用中实现。In another example, the user can turn on the camera locally to obtain pictures and videos, which is vivid, and this function can be called "look in the mirror". The mirror application is a newly added application in the social TV project. The application supports camera image preview, face recognition, adding beauty filters, taking pictures, photo sharing and other functions; the method of taking pictures mentioned in this embodiment is mirroring Realized in application.
在另一些示例中,还可以再增加更多功能或减少上述功能。本申请对该显示设备的功能不作具体限定。In other examples, more functions can be added or the aforementioned functions can be reduced. This application does not specifically limit the function of the display device.
图2中示例性示出了根据示例性实施例中显示设备200中软件系统的配置框图。FIG. 2 exemplarily shows a configuration block diagram of a software system in the
如图2中所示,操作系统2911,包括用于处理各种基础系统服务和用于实施硬件相关任务的执行操作软件,充当应用程序和硬件组件之间完成数据处理的媒介。As shown in FIG. 2, the
一些实施例中,部分操作系统内核可以包含一系列软件,用以管理显示设备硬件资源,并为其他程序或软件代码提供服务。In some embodiments, part of the operating system kernel may include a series of software to manage the hardware resources of the display device and provide services for other programs or software codes.
其他一些实施例中,部分操作系统内核可包含一个或多个设备驱动器,设备驱动器可以是操作系统中的一组软件代码,帮助操作或控制显示设备关联的设备或硬件。驱动器可以包含操作视频、音频和/或其他多媒体组件的代码。示例的,包括显示器、摄像头、Flash、WiFi和音频驱动器。In some other embodiments, part of the operating system kernel may include one or more device drivers, and the device drivers may be a set of software codes in the operating system to help operate or control devices or hardware associated with the display device. The drive may contain code to manipulate video, audio, and/or other multimedia components. Examples include displays, cameras, Flash, WiFi, and audio drivers.
其中,可访问性模块2911-1,用于修改或访问应用程序,以实现应用程序的可访问性和对其显示内容的可操作性。Among them, the accessibility module 2911-1 is used to modify or access the application program, so as to realize the accessibility of the application program and the operability of its display content.
通信模块2911-2,用于经由相关通信接口和通信网络与其他外设的连接。The communication module 2911-2 is used to connect to other peripherals via related communication interfaces and communication networks.
用户界面模块2911-3,用于提供显示用户界面的对象,以供各应用程序访问,可实现用户可操作性。The user interface module 2911-3 is used to provide objects that display the user interface for access by various applications, and can realize user operability.
控制应用程序2911-4,用于控制进程管理,包括运行时间应用程序等。The control application 2911-4 is used to control process management, including runtime applications.
事件传输系统2914,可在操作系统2911内或应用程序2912中实现。一些实施例中,一方面在在操作系统2911内实现,同时在应用程序2912中实现, 用于监听各种用户输入事件,将根据各种事件指代响应各类事件或子事件的识别结果,而实施一组或多组预定义的操作的处理程序。The
其中,事件监听模块2914-1,用于监听用户输入接口输入事件或子事件。Among them, the event monitoring module 2914-1 is used to monitor input events or sub-events of the user input interface.
事件识别模块2914-1,用于对各种用户输入接口输入各类事件的定义,识别出各种事件或子事件,且将其传输给处理用以执行其相应一组或多组的处理程序。The event recognition module 2914-1 is used to input the definitions of various events to various user input interfaces, recognize various events or sub-events, and transmit them to the processing to execute the corresponding one or more groups of processing programs .
其中,事件或子事件,是指显示设备200中一个或多个传感器检测的输入,以及外界控制设备(如控制装置100等)的输入。如:语音输入各种子事件,手势识别的手势输入子事件,以及控制装置的遥控按键指令输入的子事件等。示例的,遥控器中一个或多个子事件包括多种形式,包括但不限于按键按上/下/左右/、确定键、按键按住等中一个或组合。以及非实体按键的操作,如移动、按住、释放等操作。Among them, the event or sub-event refers to the input detected by one or more sensors in the
界面布局管理模块2913,直接或间接接收来自于事件传输系统2914监听到各用户输入事件或子事件,用于更新用户界面的布局,包括但不限于界面中各控件或子控件的位置,以及容器的大小或位置、层级等与界面布局相关各种执行操作。The interface
图3中示例性示出了根据示例性实施例中显示设备的应用程序层包含的应用程序示意图,显示设备的应用程序层包含可在显示设备200执行的各种应用程序。FIG. 3 exemplarily shows a schematic diagram of the application programs included in the application program layer of the display device according to the exemplary embodiment, and the application program layer of the display device includes various application programs that can be executed on the
应用程序层2912可包含但不限于一个或多个应用程序,如:视频点播应用程序、应用程序中心、游戏应用等、直播电视应用程序、媒体中心应用程序等。The
直播电视应用程序,可以通过不同的信号源提供直播电视。例如,直播电 视应用程可以使用来自有线电视、无线广播、卫星服务或其他类型的直播电视服务的输入提供电视信号。以及,直播电视应用程序可在显示设备200上显示直播电视信号的视频。Live TV applications can provide live TV through different sources. For example, a live TV application can provide a TV signal using input from cable TV, wireless broadcasting, satellite services, or other types of live TV services. And, the live TV application can display the video of the live TV signal on the
视频点播应用程序,可以提供来自不同存储源的视频。不同于直播电视应用程序,视频点播提供来自某些存储源的视频显示。例如,视频点播可以来自云存储的服务器端、来自包含已存视频节目的本地硬盘储存器。Video-on-demand applications can provide videos from different storage sources. Unlike live TV applications, VOD provides video display from certain storage sources. For example, the video on demand can come from the server side of cloud storage, and from the local hard disk storage that contains the stored video programs.
媒体中心应用程序,可以提供各种多媒体内容播放的应用程序。例如,媒体中心,可以为不同于直播电视或视频点播,用户可通过媒体中心应用程序访问各种图像或音频所提供服务。Media center applications can provide various multimedia content playback applications. For example, the media center can provide services that are different from live TV or video on demand, and users can access various images or audio through the media center application.
应用程序中心,可以提供储存各种应用程序。应用程序可以是一种游戏、应用程序,或某些和计算机系统或其他设备相关但可以在显示设备中运行的其他应用程序。应用程序中心可从不同来源获得这些应用程序,将它们储存在本地储存器中,然后在显示设备200上可运行。Application center, can provide storage of various applications. The application program may be a game, an application program, or some other application program that is related to a computer system or other device but can be run on a display device. The application center can obtain these applications from different sources, store them in the local storage, and then run on the
图4中示例性示出了根据示例性实施例中显示设备200中用户界面的示意图。如图4所示,用户界面包括视图显示区201,示例的,其中,视图显示区201包括布局一个或多个不同项目。以及用户界面中还包括指示项目被选择的选择器,可通过用户输入而移动选择器的位置,以改变选择不同的项目。FIG. 4 exemplarily shows a schematic diagram of a user interface in the
一些实施例中,视图显示区201为可缩放视图显示。“可缩放”,可以表示视图显示区201在屏幕上尺寸或占比是可缩放的,或视图显示201中项目在屏幕上尺寸或占比是可缩放的。In some embodiments, the
“项目”是指在显示设备200中用户界面的视图显示区中显示以表示,诸如图标、缩略图、视频剪辑等对应内容的视觉对象。例如:项目可以表示电影、 电视剧的图像内容或视频剪辑、音乐的音频内容、应用程序,或其他用户访问内容历史信息。"Items" refer to visual objects displayed in the view display area of the user interface of the
此外,项目可以表示显示设备200与外接设备连接的接口或接口集合显示,或可表示连接至显示设备的外部设备名称等。如:信号源输入接口集合、或高清多媒体接口(High Definition Multimedia Interface,HDMI)、USB接口、PC端子接口等。In addition, the item may indicate an interface or a set display of interfaces through which the
需要说明的是:视图显示区可呈现视频聊天项目内容,或者呈现应用层项目内容(如,网页视频、云点播(Video on Demand,VOD)展示、应用程序画面等)。It should be noted that: the view display area can present the content of the video chat project or the content of the application layer project (for example, webpage video, video on demand (VOD) display, application screen, etc.).
“选择器”用于指示其中任意项目已被选择,如:光标或焦点对象。根据用户在显示器200中触摸的图标或菜单位置来定位选择信息输入,可使显示设备200中显示焦点对象的移动来选择控制项目,可选择或控制其中一个或多个项目。"Selector" is used to indicate that any item has been selected, such as cursor or focus object. Positioning the selection information input according to the icon or menu position touched by the user in the
焦点对象指根据用户输入在项目之间移动的对象。示例的,通过项目边缘绘制粗线来实现或标识焦点对象位置。在其他实施例中,焦点形式不限于示例,可以是光标等有形或无形可被用户识别的形态,如可以项目的3D变形等形式,也可以改变聚焦的项目的文本或图像的边框线、尺寸、颜色、透明度和轮廓和/或字体等标识。The focus object refers to the object that moves between items based on user input. For example, draw a thick line on the edge of the item to realize or identify the position of the focus object. In other embodiments, the focus form is not limited to examples. It can be a tangible or intangible form that can be recognized by the user, such as a cursor, such as a 3D deformation of the item, and the border line and size of the text or image of the focused item can also be changed. , Color, transparency, outline, and/or font.
事件传输系统2914,可监听到的各预定义的事件或子事件的用户输入,将识别出事件或子事件的控制直接或间接提供给界面布局管理模块2913。The
界面布局管理模块2913,用于用户界面状态(包括视图分区、项目、焦点或光标对象等位置和/或大小、变化过程等)的监控,以及根据该事件或子事件,可执行修改视图显示区的大小和位置、层级等布局,和/或,调整或修改视图显 示区各类项目布局的大小或/和位置、数量、类型、内容等布局。一些实施例中,修改和调整布局,包括在屏幕上显示或不显示各视图分区或视图分区中项目内容。The interface
用户输入接口,用于将用户的输入信号发送给控制器,或者,将从控制器输出的信号传送给用户。示例性的,控制装置(例如移动终端或遥控器)可将用户输入的诸如电源开关信号、频道选择信号、音量调节信号等输入信号发送至用户输入接口,再由用户输入接口转送至控制器;或者,控制装置可接收经控制器处理从用户输入接口输出的音频、视频或数据等输出信号,并且显示接收的输出信号或将接收的输出信号输出为音频或振动形式。The user input interface is used to send the user's input signal to the controller, or to transmit the signal output from the controller to the user. Exemplarily, the control device (such as a mobile terminal or a remote control) may send input signals input by the user, such as a power switch signal, a channel selection signal, and a volume adjustment signal, to the user input interface, and then the user input interface forwards the input signal to the controller; Alternatively, the control device may receive output signals such as audio, video, or data output from the user input interface processed by the controller, and display the received output signal or output the received output signal as audio or vibration.
在一些实施例中,用户可在显示器200上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the user may input a user command on a graphical user interface (GUI) displayed on the
为了满足用户的娱乐需求,各种类型的终端设备通常能够为用户提供游戏功能。其中,用户在通过终端设备进行某些游戏时,可在游戏界面显示用户对应的虚拟人物。这种情况下,用户可从该游戏为用户提供的各种图像中,选择自身满意的图像,或者,从终端设备存储的相册中,选择自身满意的图像,然后,终端设备的游戏界面中显示用户选择的图像,将该用户选择的图像作为用户对应的虚拟人物。In order to meet the entertainment needs of users, various types of terminal devices are usually able to provide users with game functions. Among them, when the user is playing certain games through the terminal device, the virtual character corresponding to the user may be displayed on the game interface. In this case, the user can select the image that he or she is satisfied with from the various images provided by the game, or select the image that he or she is satisfied with from the album stored in the terminal device, and then the game interface of the terminal device displays The image selected by the user is used as the virtual character corresponding to the user.
但是,这种情况下,在游戏进行过程中,游戏界面中的虚拟人物会保持固定不变,一直为用户选择的图像,导致用户在游戏过程中的体验较差。However, in this case, during the course of the game, the virtual character in the game interface will remain fixed and remain the image selected by the user, resulting in a poor user experience during the game.
为了克服上述缺陷,本申请通过以下实施例公开一种虚拟场景生成方法及 装置,所述虚拟场景生成方法及装置应用于终端设备,该终端设备可以为智能手机、电视和平板电脑等,本申请实施例对此不做限定。In order to overcome the above-mentioned shortcomings, this application discloses a virtual scene generation method and device through the following embodiments. The virtual scene generation method and device are applied to a terminal device. The terminal device can be a smart phone, a TV, a tablet computer, etc. The embodiment does not limit this.
并且,该终端设备可通过本地网(LAN,Local Area Network)、广域网(WAN,Wide Area Network)、无线局域网((WLAN,Wireless Local Area Network)或其他网络与其他的终端设备之间通信。In addition, the terminal device can communicate with other terminal devices through a local area network (LAN, Local Area Network), a wide area network (WAN, Wide Area Network), a wireless local area network ((WLAN, Wireless Local Area Network) or other networks.
另外,该终端设备上可以连接或设置有摄像头,用于将摄像头拍摄到的画面呈现在本终端设备的显示界面或其他终端设备设备的显示界面上,以实现用户之间的交互聊天。具体的,摄像头拍摄到的画面可在终端设备上全屏显示、半屏显示、或者显示任意可选区域。In addition, the terminal device may be connected or provided with a camera for presenting the screen shot by the camera on the display interface of the terminal device or the display interface of other terminal devices to realize interactive chat between users. Specifically, the picture captured by the camera can be displayed on the terminal device in full screen, half screen, or in any optional area.
作为一种示例性的的连接方式,摄像头通过连接板与终端设备的后壳连接,固定安装在终端设备的显示器后壳的上侧中部,作为可安装的方式,可以固定安装在终端设备的显示器后壳的任意位置,能保证其图像采集区域不被后壳遮挡即可,例如,图像采集区域与终端设备的显示朝向相同。As an exemplary connection method, the camera is connected to the rear shell of the terminal device through a connecting plate, and is fixedly installed on the upper middle of the display rear shell of the terminal device. As an installable method, it can be fixedly installed on the display of the terminal device. Any position of the rear case can ensure that the image acquisition area is not blocked by the rear case. For example, the image acquisition area and the display orientation of the terminal device are the same.
作为另一种示例性的连接方式,摄像头通过连接板或者其他可想到的连接器可升降的与终端设备的后壳连接,连接器上安装有升降马达,当用户要使用摄像头或者有应用程序要使用摄像头时,再升出终端设备之上,当不需要使用摄像头时,其可内嵌到后壳之后,以达到保护摄像头免受损坏。As another exemplary connection method, the camera can be connected to the rear shell of the terminal device through a connecting plate or other conceivable connectors. A lifting motor is installed on the connector. When the user wants to use the camera or has an application When the camera is used, it is raised above the terminal device. When the camera is not needed, it can be embedded behind the back shell to protect the camera from damage.
另外,图4中示例性的示出了本申请实施例中显示界面的示意图。如图4所示,显示界面包括多个视图显示区,示例的,第一视图显示区201和播放画面202,其中,播放画面包括布局一个或多个不同项目。另外,显示界面中还包括指示项目被选择的选择器,可通过用户输入而移动选择器的位置,以改变选择不同的项目。In addition, FIG. 4 exemplarily shows a schematic diagram of a display interface in an embodiment of the present application. As shown in FIG. 4, the display interface includes multiple view display areas, for example, a first
需要说明的是,多个视图显示区可以呈现不同层级的显示画面。如,第一视图显示区可呈现视频聊天项目内容,第二视图显示区可呈现应用层项目内容(如,网页视频、VOD展示、应用程序画面等)。It should be noted that multiple view display areas can present display screens of different levels. For example, the first view display area can present video chat item content, and the second view display area can present application layer item content (eg, webpage video, VOD display, application program screen, etc.).
作为一种示例性的实施方式,不同视图显示区的呈现存在优先级区别,优先级不同的视图显示区之间,视图显示区的显示优先级不同。例如,系统层的优先级高于应用层的优先级,当用户在应用层使用获取选择器和画面切换时,不遮挡系统层的视图显示区的画面展示;以及,根据用户的选择使应用层的视图显示区的大小和位置发生变化时,系统层的视图显示区的大小和位置不受影响。As an exemplary embodiment, the presentation of different view display areas has different priorities, and the display priorities of the view display areas are different between view display areas with different priorities. For example, the priority of the system layer is higher than that of the application layer. When the user uses the acquisition selector and screen switching in the application layer, the screen display in the view display area of the system layer is not blocked; and the application layer is enabled according to the user's selection When the size and position of the view display area change, the size and position of the view display area of the system layer will not be affected.
另外,也可以呈现相同层级的显示画面,此时,选择器可以在第一视图显示区和第二视图显示区之间做切换,以及当第一视图显示区的大小和位置发生变化时,第二视图显示区的大小和位置可随及发生改变。In addition, the same level of display screens can also be presented. At this time, the selector can switch between the first view display area and the second view display area, and when the size and position of the first view display area change, the first view display area The size and position of the second view display area can be changed at any time.
为了明确本申请所公开的方案,以下分别通过不同实施例,对本申请的方案进行介绍。In order to clarify the solutions disclosed in the present application, the solutions of the present application are introduced through different embodiments respectively below.
本申请第一实施例公开一种虚拟场景生成方法,参见图5所示的工作流程示意图,该方法包括以下步骤:The first embodiment of the present application discloses a method for generating a virtual scene. Referring to the schematic diagram of the workflow shown in FIG. 5, the method includes the following steps:
步骤S11、实时获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像。Step S11: Acquire a photographed image of a user in real time, and the photographed image includes a portrait of the user.
其中,所述用户为游戏的各个参与者。Wherein, the user is each participant of the game.
步骤S12、根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像,其中,所述虚拟人物在所述游戏界面中的位置为目标位置。Step S12: According to the position of the virtual character corresponding to the user in the game interface, perform sideways processing on the portrait in the photographed image to obtain a sideways image including the sideways processed portrait, wherein the virtual character is in the The position in the game interface is the target position.
其中,在进行侧身处理时,依据虚拟人物在游戏界面中的位置,确定在实 际的游戏场景中,各个用户对应的虚拟人物在游戏界面中显示的是正面还是侧面,再据此对拍摄图像中的人像进行相应的侧身处理,以使所述侧身处理后的人像符合实际的游戏场景。Among them, during the sideways processing, according to the position of the virtual character in the game interface, it is determined in the actual game scene whether the virtual character corresponding to each user is displayed on the front or side in the game interface, and then the captured image Perform corresponding sideways processing on the portrait of, so that the sideways processed portrait conforms to the actual game scene.
在游戏界面上,为了增加用户的体验感,往往设置有用户对应的虚拟人物,例如,再棋牌类游戏中,若有甲、乙和丙三个人参加,游戏界面中往往显示这三个人的虚拟人物。其中,在显示虚拟人物时,通常仅显示虚拟人物的头像部分,当然,也可以显示虚拟人物的整体,本申请实施例对此不作限定。In the game interface, in order to increase the user’s sense of experience, there are often virtual characters corresponding to the user. For example, in a chess and card game, if there are three people A, B and C participating, the game interface often displays the virtual characters of these three people. character. Wherein, when the virtual character is displayed, usually only the head portion of the virtual character is displayed. Of course, the entire virtual character can also be displayed, which is not limited in the embodiment of the present application.
另外,不同虚拟人物在游戏界面中的位置不同,相应的,在经过侧身处理之后,各个侧身处理后的人像的角度不同,从而能够使侧身处理后的人像符合实际的游戏场景。例如,在一种示例中,甲用户在棋牌桌的正面,而乙用户在棋牌桌的左侧,丙用户在棋牌桌的右侧,这种情况下,为了符合实际的游戏场景,则经过侧身处理之后,使甲用户侧身处理后的人像正面面对游戏界面,使乙用户侧身处理后的人像显示的是右侧身体,使丙用户侧身处理后的人像显示的是左侧身体。In addition, the positions of different virtual characters in the game interface are different. Accordingly, after the sideways processing, the angles of the sideways processed portraits are different, so that the sideways processed portraits can match the actual game scene. For example, in an example, user A is on the front of the chess table, user B is on the left side of the chess table, and user C is on the right side of the chess table. In this case, in order to conform to the actual game scene, the user passes sideways After processing, make the processed portrait of user A sideways face the game interface, make the processed portrait of user B sideways display the right body, and make the processed portrait of user C sideways display the left body.
在步骤S12中,根据用户对应的虚拟人物在游戏界面中的位置,对拍摄图像中的人像进行相应的侧身处理,从而能够使侧身处理后的人像符合游戏场景。In step S12, according to the position of the avatar corresponding to the user in the game interface, corresponding sideways processing is performed on the portrait in the captured image, so that the sideways processed portrait can conform to the game scene.
步骤S13、获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,并显示所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正上方。Step S13: Obtain a virtual scene interface superimposed with the side image and the game interface, and display the virtual scene interface, wherein the side image is located on the upper layer of the game interface, and the side image includes The sideways processed portrait is located directly above the target position.
本申请实施例的终端设备可显示多个层级的显示画面,在步骤S13中,侧身图像与游戏界面即为不同层级的显示画面。并且,侧身图像位于游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正 上方,这种情况下,所述侧身图像与所述游戏界面叠加而成的虚拟场景界面中,侧身处理后的人像覆盖了游戏界面中的虚拟人物,从而能够使用户在观看终端设备显示的画面时,不再观看到游戏界面提供的虚拟人物的图像,而是侧身处理后的人像。The terminal device of the embodiment of the present application can display multiple levels of display screens. In step S13, the side image and the game interface are display screens of different levels. In addition, the sideways image is located on the upper layer of the game interface, and the sideways processed portrait included in the sideways image is located directly above the target position. In this case, the sideways image is superimposed on the game interface. In the virtual scene interface, the sideways processed portraits cover the virtual characters in the game interface, so that when watching the screen displayed on the terminal device, the user no longer sees the image of the virtual character provided by the game interface, but handles it sideways Portrait after.
在本申请实施例提供的虚拟场景生成方法中,首先实时获取用户的拍摄图像;然后,根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像;获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,并显示所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正上方。In the virtual scene generation method provided by the embodiments of the present application, the user’s photographed image is first obtained in real time; then, the portrait in the photographed image is processed sideways according to the position of the virtual character corresponding to the user in the game interface. Acquiring a sideways image including the sideways processed portrait; acquiring a virtual scene interface superimposed with the sideways image and the game interface, and displaying the virtual scene interface, wherein the sideways image is located on the upper layer of the game interface, In addition, the sideways processed portrait included in the sideways image is located directly above the target position.
其中,该侧身图像中包括的人像,为根据用户对应的虚拟人物在游戏界面中的位置,对拍摄图像中的人像进行处理之后所获取到的人像,并且,该拍摄图像为实时获取的图像,这种情况下,所述侧身图像中包括的侧身处理后的人像能够根据实时获取到的拍摄图像以及虚拟人物在游戏界面中的位置的变化,实现相应的变化Wherein, the portrait included in the side image is a portrait obtained after processing the portrait in the captured image according to the position of the virtual character corresponding to the user in the game interface, and the captured image is an image obtained in real time. In this case, the sideways processed portrait included in the sideways image can be changed according to the real-time captured image and the position of the virtual character in the game interface.
另外,通过本申请实施例的方案用户观看虚拟场景界面时,观看到的是侧身处理后的人像,而不再观看到游戏界面提供的虚拟人物的图像。这种情况下,即使游戏界面中的用户图像会保持固定不变,但通过虚拟场景界面中,用户观看到的是对用户的人像侧身处理后的侧身图像,从而能够使用户观看到变化的虚拟人物,解决现有技术中,在游戏进行过程中,游戏界面中的虚拟人物保持固定不变的问题,从而提高用户的游戏体验。In addition, when the user views the virtual scene interface through the solution of the embodiment of the present application, what he sees is the portrait processed sideways, instead of viewing the image of the virtual character provided by the game interface. In this case, even if the user image in the game interface remains fixed, the user can view the sideways image after processing the user’s portrait sideways through the virtual scene interface, so that the user can watch the changed virtual scene. The character solves the problem in the prior art that the virtual character in the game interface remains fixed during the game, thereby improving the user's game experience.
进一步的,在本申请实施例中,可通过多种方式获取用户的拍摄图像。Further, in the embodiment of the present application, the user's photographed image can be obtained in various ways.
在其中一种方式中,所述实时获取用户的拍摄图像,包括:In one of the ways, the real-time acquisition of the user's captured image includes:
实时获取所述用户侧的第一终端设备传输的拍摄图像。The captured image transmitted by the first terminal device on the user side is acquired in real time.
在本申请实施例的应用场景中,往往多个用户在进行游戏,这种情况下,各个用户侧的第一终端设备可通过自身设置的摄像头,对用户进行拍摄,获取拍摄图像,再将拍摄图像传输至执行本申请实施例的方法的终端设备。In the application scenarios of the embodiments of the present application, multiple users are often playing games. In this case, the first terminal device on each user side can shoot the user through its own camera, obtain the captured image, and then shoot The image is transmitted to the terminal device that executes the method of the embodiment of the present application.
例如,当甲、乙和丙三个用户在进行游戏,并且这三个用户的终端设备执行本申请实施例公开的方法时,这三个用户侧的第一终端设备(即分别为甲、乙和丙三个用户的终端设备)进行拍摄,得到拍摄图像,再将拍摄图像传输至其他终端设备,即甲用户的终端设备会将包括甲用户的拍摄图像传输至乙和丙两个用户的终端设备,乙用户的终端设备会将包括甲用户的拍摄图像传输至甲和丙两个用户的终端设备,丙用户的终端设备会将包括甲用户的拍摄图像传输至乙和甲两个用户的终端设备,从而使执行本申请实施例公开的方法的终端设备能够获取各个用户的拍摄图像。For example, when three users of A, B, and C are playing a game, and the terminal devices of these three users execute the method disclosed in the embodiment of this application, the first terminal devices on the side of the three users (ie, A and B respectively) And the terminal equipment of the three users of user C) to shoot, obtain the photographed image, and then transmit the photographed image to other terminal equipment, that is, the terminal equipment of user A will transmit the photographed image including user A to the terminals of users B and C Device, the terminal device of user B will transmit the captured images of user A to the terminal devices of users A and C, and the terminal device of user C will transmit the captured images of user A to the terminals of users B and A Device, so that the terminal device that executes the method disclosed in the embodiment of the present application can obtain the photographed image of each user.
在另外一种方式中,所述实时获取用户的拍摄图像,包括:In another manner, the real-time acquisition of a photographed image of the user includes:
实时获取所述用户侧的第一终端设备传输的拍摄视频,构成所述拍摄视频的各帧图像中包括所述用户的人像;Acquiring the photographed video transmitted by the first terminal device on the user side in real time, and each frame of images constituting the photographed video includes the portrait of the user;
根据人像分割算法对构成所述拍摄视频的各帧图像进行人像与背景的分割,获取包括所述人像的拍摄图像。According to a portrait segmentation algorithm, each frame of images constituting the captured video is segmented into a portrait and a background, and a captured image including the portrait is obtained.
该种方式中,第一终端设备用于向执行本申请实施例公开的方法的终端设备实时传输拍摄视频,然后,所述终端设备能够对构成所述拍摄视频的各帧图像进行人像与背景的分割,以获取拍摄图像。其中,所述人像分割算法为传统的人像分割算法,例如,可以为基于卷积神经元网络的人像分割算法等,本申 请实施例对此不做限定。In this manner, the first terminal device is used to transmit the captured video in real time to the terminal device that executes the method disclosed in the embodiment of the present application. Then, the terminal device can perform portrait and background image on each frame of the captured video. Divide to obtain captured images. Wherein, the portrait segmentation algorithm is a traditional portrait segmentation algorithm, for example, it may be a portrait segmentation algorithm based on a convolutional neural network, etc., which is not limited in this application embodiment.
另外,在一种可行的示例中,参见图6所示的应用场景示意图,在图6中,包括执行本申请实施例公开的方法的终端设备100和第一终端设备200,并且,还包括分别与终端设备100和第一终端设备200相连接的云端服务器300。所述终端设备100在接收第一终端设备200传输的拍摄图像或拍摄视频时,可通过云端服务器300进行转发。这种情况下,第一终端设备200将拍摄图像或拍摄视频传输至云端服务器300,再由云端服务器300将该拍摄图像或拍摄视频传输至执行本申请实施例公开的方法的终端设备100。In addition, in a feasible example, referring to the schematic diagram of the application scenario shown in FIG. 6, in FIG. 6, the
其中,第一终端设备200可通过标准的多路视频通话传输方式,将拍摄图像或拍摄视频传输至云端服务器300。当然,第一终端设备200也可采用其他方式向云端服务器300进行传输,本申请实施例对此不做限定。然后,云端服务器300再将拍摄图像或拍摄视频传输至执行本申请实施例公开的方法的终端设备100。Among them, the first
所述云端服务器300可以为用户正在玩的游戏的服务器,或者,还可以为通话软件(例如微信和QQ等即时通讯软件)的服务器,该云端服务器300能够通过网络连接的方式,同时连接第一终端设备200和执行本申请实施例公开的方法的终端设备100,从而在拍摄图像或拍摄视频的传输过程中,起到中转的作用,实现拍摄图像或拍摄视频的传输。The
通过上述两种方式,能够获取拍摄图像,其中,该拍摄图像中包括用户的人像。这种情况下,在对所述拍摄图像中的人像进行侧身处理之前,还包括以下步骤:Through the above two methods, a photographed image can be acquired, wherein the photographed image includes a portrait of the user. In this case, before the sideways processing is performed on the portrait in the captured image, the following steps are further included:
根据接收到的美颜设置参数,对所述拍摄图像进行美颜处理,以便对美颜 处理之后的拍摄图像进行侧身处理。Perform beautification processing on the captured image according to the received beautification setting parameters, so as to perform sideways processing on the captured image after the beautification processing.
在对拍摄图像进行侧身处理之前,还可以对拍摄图像进行美颜处理。在美颜处理过程中,可根据接收到的美颜设置参数进行美颜处理。该美颜设置参数可包括美白程度、眼睛放大程度和瘦脸程度等。其中,可由用户通过对终端设备的操控,使终端设备接收到美颜设置参数的类型和具体数值。Before performing sideways processing on the captured image, you can also perform beauty processing on the captured image. During the beautification processing, the beautification processing can be performed according to the received beautification setting parameters. The beauty setting parameters may include the degree of whitening, the degree of eye enlargement, and the degree of face-lifting. Among them, the user can control the terminal device to make the terminal device receive the type and specific value of the beauty setting parameter.
这种情况下,终端设备可对美颜处理之后的拍摄图像进行侧身处理,从而使侧身处理之后的人像更具美观性。In this case, the terminal device can perform sideways processing on the captured images after the beautification processing, so that the portrait after the sideways processing is more beautiful.
另外,在本申请实施例的步骤S12中,公开根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像的技术特征。所述侧身处理可通过传统的2.5D算法实现,当然,还可以通过其他方法实现,本申请实施例对此不做限定。In addition, in step S12 of the embodiment of the present application, it is disclosed that according to the position of the virtual character corresponding to the user in the game interface, sideways processing is performed on the portrait in the captured image, and the sideways image including the sideways processed portrait is obtained. Technical characteristics. The sideways processing can be implemented by a traditional 2.5D algorithm, of course, it can also be implemented by other methods, which is not limited in the embodiment of the present application.
侧身处理,指的是根据用户对应的虚拟人物在游戏界面中的位置,确定在游戏过程中,用户对应的虚拟人物所需呈现的角度,并根据该角度对拍摄图像中的人像进行处理,这种情况下,侧身处理后的人像所呈现的角度即为所述用户对应的虚拟人物所需呈现的角度。Sideways processing refers to determining the angle of the virtual character corresponding to the user during the game according to the position of the virtual character corresponding to the user in the game interface, and processing the portrait in the captured image according to this angle. In this case, the angle presented by the sideways processed portrait is the angle that the virtual character corresponding to the user needs to present.
例如,在该游戏过程中,如果某一用户对应的虚拟人物需要呈现的角度为正面,而拍摄图像中的人像为正面,可将拍摄图像中的人像作为侧身处理后的人像;另外,如果某一用户对应的虚拟人物需要呈现的角度为左侧面,而拍摄图像中的人像为正面,则将侧身处理之后,呈现左侧面的人像作为侧身处理后的人像。这种情况下,侧身处理后的人像可如图7所示。For example, during the game, if the angle of the virtual character corresponding to a certain user is frontal and the portrait in the captured image is frontal, the portrait in the captured image can be treated as a sideways portrait; in addition, if a certain The angle that the virtual character corresponding to a user needs to present is the left side, and the portrait in the captured image is the front, then after the sideways processing, the left side portrait is presented as the sideways processed portrait. In this case, the portrait after the sideways treatment can be as shown in Figure 7.
在其中一种方式中,在进行侧身处理时,可将拍摄图像复制在一个四边形网格中,然后,再对该四边形网格进行处理,使该四边形网格产生一定程度的 变形,以通过变形的四边形网格呈现稍微侧身的效果。In one of the methods, when performing sideways processing, the captured image can be copied in a quadrilateral grid, and then the quadrilateral grid can be processed to deform the quadrilateral grid to a certain degree. The quadrilateral grid appears slightly sideways.
具体的,当需要体现左侧身的效果时,可对该四边形网格的左边侧进行压缩处理,使左边侧变短,并对该四边形网格的右边侧进行拉伸处理,使右边侧变长,从而体现出稍微向左侧身的效果。当需要体现右侧身的效果时,可对该四边形网格的右边侧进行压缩处理,使右边侧变短,并对该四边形网格的左边侧进行拉伸处理,使左边侧变长,从而体现出稍微向由侧身的效果。Specifically, when the effect of the left body needs to be reflected, the left side of the quadrilateral grid can be compressed to make the left side shorter, and the right side of the quadrilateral grid can be stretched to make the right side change Long, which reflects the effect of slightly to the left side. When the effect of the right side body needs to be reflected, the right side of the quadrilateral mesh can be compressed to make the right side shorter, and the left side of the quadrilateral mesh can be stretched to make the left side longer. It shows the effect of turning sideways slightly.
在另一种方式中,可预先在终端设备内设置对应不同侧身角度的骨骼模型,并且,通过获取到的多帧拍摄图像,创建用户的妆发模型,该妆发模型用于体现用户在当前游戏过程中的妆发。这种情况下,在进行侧身处理的过程中,通过侧身的角度,确定相应的骨骼模型,然后,根据所述妆发模型,在骨骼模型上填充相应的妆发内容,从而获取侧身处理后的人像。In another way, the skeletal model corresponding to different sideways angles can be set in the terminal device in advance, and the user’s makeup model can be created through the obtained multiple frames of captured images. The makeup model is used to reflect the user’s current Makeup and hair during the game. In this case, in the process of sideways processing, the corresponding bone model is determined by the angle of the sideways, and then, according to the makeup model, the corresponding makeup content is filled on the bone model to obtain the sideways processed Portrait.
具体的,当需要体现左侧身的效果时,可获取左侧身对应的骨骼模型,然后,在左侧身对应的骨骼模型上填充相应的妆发,从而获取左侧身的人像。Specifically, when the effect of the left body needs to be reflected, the skeleton model corresponding to the left body can be obtained, and then the corresponding makeup and hair are filled on the skeleton model corresponding to the left body, so as to obtain the portrait of the left body.
另外,如果采用上述方式获取侧身图像,当所述多帧拍摄图像的拍摄角度较为单一时,可能会导致在对相应的骨骼模型上填充妆发时,骨骼模型的有些区域上没有合适的妆发内容进行填充。In addition, if the above-mentioned method is used to obtain the sideways image, when the shooting angle of the multi-frame captured image is relatively single, it may cause the corresponding bone model to be filled with makeup, and there is no proper makeup on some areas of the bone model. The content is filled.
这种情况下,在本申请实施例中,在根据所述多帧拍摄图像创建用户的妆发模型之后,还可以通过访问服务器,将服务器提供的各种妆发类型与所述妆发模型进行对比,确定与所述妆发模型最适合的妆发类型,并据此对妆发模型进一步完善。In this case, in the embodiment of the present application, after the user's makeup model is created based on the multi-frame captured images, the user can also access the server to compare various makeup types provided by the server with the makeup model. By comparison, the makeup and hair type most suitable for the makeup and hair model is determined, and the makeup and hair model is further improved accordingly.
例如,当需要体现左侧身的效果时,可获取左侧身对应的骨骼模型,这种情况下,如果在左侧身对应的骨骼模型上填充妆发时,确定部分骨骼模型的区 域没有相对应的妆发模型的内容,这种情况下,通过访问服务器,将妆发模型与服务器提供的多种妆发类型与所述妆发模型进行对比,若服务器提供的马尾辫发型与所述妆发模型相似度最高,则确定所述妆发模型为马尾辫。这种情况下,在对左侧身对应的骨骼模型上填充妆发时,可填充马尾辫发型。For example, when you need to reflect the effect of the left body, you can obtain the bone model corresponding to the left body. In this case, if you fill in makeup on the bone model corresponding to the left body, it is determined that the area of the partial bone model has no corresponding The content of the corresponding makeup model. In this case, by accessing the server, the makeup model and the various types of makeup provided by the server are compared with the makeup model. If the ponytail hairstyle provided by the server is compared with the makeup model If the hair model has the highest similarity, it is determined that the hair makeup model is a ponytail. In this case, ponytail hairstyles can be filled when filling makeup on the bone model corresponding to the left body.
进一步的,在步骤S13中,公开了获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面的操作,该操作可通过多种方式实现。Further, in step S13, the operation of obtaining a virtual scene interface superimposed with the side image and the game interface is disclosed, and this operation can be implemented in various ways.
在其中一种方式中,所述获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,包括以下步骤:In one of the ways, the acquiring a virtual scene interface superimposed with the side image and the game interface includes the following steps:
第一步,根据所述游戏界面中包括的所述虚拟人物所占据的像素数量,对所述侧身图像所占据的像素数量进行调整,并且,根据所述游戏界面中包括的所述虚拟人物在所述游戏界面中的坐标,对所述侧身图像中包括的侧身处理后的人像所处的位置进行调整,以使调整后的侧身图像中包括的人像能够覆盖所述游戏界面中包括的虚拟人物。In the first step, the number of pixels occupied by the side image is adjusted according to the number of pixels occupied by the virtual character included in the game interface, and the number of pixels occupied by the virtual character included in the game interface is adjusted. The coordinates in the game interface are adjusted to the position of the side processed portrait included in the side profile image, so that the portrait included in the adjusted side profile image can cover the virtual character included in the game interface .
如果侧身图像中包括的侧身处理后的人像占据的像素数量较小,则侧身处理后的人像较小,无法覆盖住游戏界面中显示的虚拟人物。该步骤中,所述侧身图像所占据的像素数量进行调整,以放大所述侧身处理后的人像,从而使侧身图像中包括的侧身处理后的人像能够覆盖住所述游戏界面中显示的虚拟人物。If the sideways processed portrait included in the sideways image occupies a small number of pixels, the sideways processed portrait will be small and cannot cover the virtual character displayed in the game interface. In this step, the number of pixels occupied by the sideways image is adjusted to enlarge the sideways processed portrait, so that the sideways processed portrait included in the sideways image can cover the virtual character displayed in the game interface.
如果侧身图像中包括的侧身处理后的人像所占据的位置与游戏界面中包括的虚拟人物所占据的位置不同,在直接叠加之后,往往使侧身处理后的人像与虚拟人物不在同一显示区域,无法覆盖住游戏界面中显示的虚拟人物。因此,该步骤中,还可以根据所述游戏界面中包括的所述虚拟人物在所述游戏界面中的坐标,对所述侧身图像中包括的侧身处理后的人像所处的位置进行调整,以 使侧身图像中包括的侧身处理后的人像能够覆盖住所述游戏界面中显示的虚拟人物。If the position occupied by the sideways processed portrait included in the sideways image is different from the position occupied by the virtual character included in the game interface, after direct superimposition, the sideways processed portrait and the virtual character are often not in the same display area. Cover the virtual characters displayed in the game interface. Therefore, in this step, according to the coordinates of the virtual character included in the game interface in the game interface, the position of the sideways processed portrait included in the sideways image can be adjusted to adjust The sideways processed portrait included in the sideways image can cover the virtual character displayed in the game interface.
侧身图像中包括的侧身处理后的人像占据的像素数量较多,往往会占据游戏界面较大的位置,不利于用户观赏。因此,在对侧身图像所占据的像素数量进行调整的过程中,可预先设置放大阈值,以使调整像素数量的侧身图像不占据过多的像素。The sideways processed portrait included in the sideways image occupies a large number of pixels and often occupies a larger position in the game interface, which is not conducive to the user's viewing. Therefore, in the process of adjusting the number of pixels occupied by the sideways image, the magnification threshold can be set in advance so that the sideways image with the adjusted number of pixels does not occupy too many pixels.
例如,该放大阈值可以设置为3个像素,这种情况下,在对所述侧身图像所占据的像素数量进行调整之后,侧身图像中包括的侧身处理后的人像的每行像素的数量比游戏界面中的虚拟人物所占据的像素多3个像素,从而能够使侧身处理后的人像覆盖住所述虚拟人物,并且避免侧身处理后的人像占据较多像素,影响用户观看其他画面。For example, the magnification threshold can be set to 3 pixels. In this case, after adjusting the number of pixels occupied by the sideways image, the number of pixels per row of the sideways processed portrait included in the sideways image is greater than that of the game. The virtual character in the interface occupies 3 pixels more pixels, so that the sideways processed portrait can cover the virtual character, and the sideways processed portrait can avoid occupying more pixels and affect the user to view other screens.
第二步,将所述侧身图像的其他区域中的像素调整为透明状态,其中,所述其他区域为所述侧身图像中不包括所述用户的人像区域。The second step is to adjust pixels in other regions of the sideways image to a transparent state, where the other regions are the portrait regions of the sideways image that do not include the user.
为了避免侧身图像的其他区域为干扰用户的视线,本申请实施例中,将侧身图像的其他区域中的像素调整为透明状态。In order to prevent other areas of the sideways image from interfering with the user's line of sight, in this embodiment of the present application, the pixels in other areas of the sideways image are adjusted to a transparent state.
第三步,将调整后的侧身图像设置在所述游戏界面的上层。The third step is to set the adjusted side image on the upper layer of the game interface.
执行本申请实施例公开的方法的终端设备,能够在同一个视图显示区呈现不同层级的显示画面。这种情况下,调整后的侧身图像即为一个层级的显示画面,而游戏界面为位于所述调整后的侧身图像下层的显示画面,这种情况下,用户观看到的画面即为这两个显示画面叠加后呈现的画面。The terminal device that executes the method disclosed in the embodiment of the present application can present display screens of different levels in the same view display area. In this case, the adjusted side image is a one-level display screen, and the game interface is a display screen located below the adjusted side image. In this case, the user sees these two images. Display the picture that appears after the picture is superimposed.
在另外一种方式中,所述获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,包括:In another manner, the acquiring a virtual scene interface superimposed with the sideways image and the game interface includes:
第一步,对所述侧身图像进行抠图处理,获取所述侧身图像中包括的所述侧身处理后的人像,其中,所述侧身处理后的人像为侧身人像;The first step is to perform matting processing on the sideways image to obtain the sideways processed portrait included in the sideways image, where the sideways processed portrait is a sideways portrait;
第二步,根据所述游戏界面中包括的所述虚拟人物所占据的像素数量,对所述侧身人像所占据的像素数量进行调整,并根据所述游戏界面中包括的所述虚拟人物在所述游戏界面中的坐标,将调整后的侧身人像设置在所述游戏界面的上层,以使所述调整后的侧身人像能够覆盖所述游戏界面中包括的虚拟人物。The second step is to adjust the number of pixels occupied by the side profile portrait according to the number of pixels occupied by the virtual character included in the game interface, and adjust the number of pixels occupied by the virtual character included in the game interface. For the coordinates in the game interface, the adjusted side profile portrait is set on the upper layer of the game interface, so that the adjusted side profile portrait can cover the virtual characters included in the game interface.
该方法中,对侧身图像进行了抠图处理,将抠图处理之后的侧身人像叠加在游戏界面的虚拟人物所在的位置。In this method, cutout processing is performed on the sideways image, and the sideways portrait after the cutout processing is superimposed on the position of the virtual character on the game interface.
另外,如果侧身人像占据的像素数量较小,则侧身人像往往无法覆盖住游戏界面中In addition, if the number of pixels occupied by the sideways portrait is small, the sideways portrait often cannot cover the game interface
显示的虚拟人物。该步骤中,对所述侧身人像所占据的像素数量进行调整,以放大所述侧身人像,从而使侧身人像能够覆盖住所述游戏界面中显示的虚拟人物。Virtual characters displayed. In this step, the number of pixels occupied by the sideways portrait is adjusted to enlarge the sideways portrait, so that the sideways portrait can cover the virtual characters displayed in the game interface.
如果侧身人像占据的像素数量较多,往往会占据游戏界面较大的位置,不利于用户观赏。因此,在对侧身人像所占据的像素数量进行调整的过程中,可预先设置放大阈值,以使调整像素数量之后的的侧身人像不占据过多的像素。If the sideways portrait occupies a large number of pixels, it will often occupy a larger position in the game interface, which is not conducive to users' viewing. Therefore, in the process of adjusting the number of pixels occupied by the sideways portrait, the magnification threshold can be preset so that the sideways portrait after adjusting the number of pixels does not occupy too many pixels.
例如,该放大阈值可以设置为3个像素,这种情况下,在对所述侧身人像所占据的像素数量进行调整之后,侧身人像的每行像素的数量比游戏界面中的虚拟人物所占据的像素多3个像素,从而能够使侧身人像覆盖住所述虚拟人物,并且避免侧身人像占据较多像素,影响用户观看其他画面。For example, the magnification threshold can be set to 3 pixels. In this case, after adjusting the number of pixels occupied by the side profile portrait, the number of pixels in each row of the side profile portrait is greater than that occupied by the virtual character in the game interface. There are 3 more pixels, so that the side profile portrait can cover the virtual character, and avoid the side profile portrait occupying more pixels, which will affect the user to view other pictures.
相应的,在本申请另一实施例中,公开一种虚拟场景生成装置,参见图8所示的结构示意图,该装置包括:图像获取模块110、侧身处理模块120和界面 叠加模块130。Correspondingly, in another embodiment of the present application, a virtual scene generation device is disclosed. Referring to the schematic structural diagram shown in FIG. 8, the device includes: an
其中,所述图像获取模块110,用于实时获取用户的拍摄图像,所述拍摄图像中包括所述用户的人像;Wherein, the
所述侧身处理模块120,用于根据所述用户对应的虚拟人物在游戏界面中的位置,对所述拍摄图像中的人像进行侧身处理,获取包括侧身处理后的人像的侧身图像,其中,所述虚拟人物在所述游戏界面中的位置为目标位置;The
所述界面叠加模块130,用于获取叠加有所述侧身图像与所述游戏界面的虚拟场景界面,并显示所述虚拟场景界面,其中,所述侧身图像位于所述游戏界面的上层,并且,所述侧身图像中包括的侧身处理后的人像位于所述目标位置的正上方。The
用户通过本申请实施例的方案观看虚拟场景界面时,观看到的是侧身处理后的人像,而不再观看到游戏界面提供的虚拟人物的图像。这种情况下,即使游戏界面中的用户图像会保持固定不变,但通过虚拟场景界面中,用户观看到的是对用户的人像侧身处理后的侧身图像,从而能够使用户观看到变化的虚拟人物,解决现有技术中,在游戏进行过程中,游戏界面中的虚拟人物保持固定不变的问题,从而提高用户的游戏体验。When the user views the virtual scene interface through the solution of the embodiment of the present application, what he sees is the portrait processed sideways instead of the image of the virtual character provided by the game interface. In this case, even if the user image in the game interface remains fixed, the user can view the sideways image after processing the user’s portrait sideways through the virtual scene interface, so that the user can watch the changed virtual scene. The character solves the problem in the prior art that the virtual character in the game interface remains fixed during the game, thereby improving the user's game experience.
具体实现中,本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的呼叫方法的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in each embodiment of the calling method provided by the present invention when the program is executed. The storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, abbreviated as: ROM) or a random access memory (English: random access memory, abbreviated as: RAM), etc.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加 必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., including a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于……实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。The same or similar parts in the various embodiments in this specification can be referred to each other. In particular, as for the embodiment of..., since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the description in the method embodiment.
以上所述的本发明实施方式并不构成对本发明保护范围的限定。The embodiments of the present invention described above do not constitute a limitation on the protection scope of the present invention.
Claims (9)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910497519.8A CN112057871A (en) | 2019-06-10 | 2019-06-10 | Virtual scene generation method and device |
| CN201910497519.8 | 2019-06-10 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020248682A1 true WO2020248682A1 (en) | 2020-12-17 |
Family
ID=73658174
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/083905 Ceased WO2020248682A1 (en) | 2019-06-10 | 2020-04-09 | Display device and virtual scene generation method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112057871A (en) |
| WO (1) | WO2020248682A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112843709B (en) * | 2020-12-31 | 2023-05-26 | 上海米哈游天命科技有限公司 | Shooting method, shooting device, shooting equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1797474A (en) * | 2004-12-30 | 2006-07-05 | 中国科学院自动化研究所 | Fast method for posting players to electronic game |
| JP2006227838A (en) * | 2005-02-16 | 2006-08-31 | Nec Corp | Image processor and image processing program |
| CN101715069A (en) * | 2008-09-30 | 2010-05-26 | 富士胶片株式会社 | Image compositing apparatus and method of controlling same |
| CN105447480A (en) * | 2015-12-30 | 2016-03-30 | 吉林纪元时空动漫游戏科技集团股份有限公司 | Face recognition game interactive system |
| CN109675315A (en) * | 2018-12-27 | 2019-04-26 | 网易(杭州)网络有限公司 | Generation method, device, processor and the terminal of avatar model |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015048694A2 (en) * | 2013-09-27 | 2015-04-02 | Pelican Imaging Corporation | Systems and methods for depth-assisted perspective distortion correction |
| CN106250079B (en) * | 2016-07-28 | 2020-07-07 | 海信视像科技股份有限公司 | Image display method and device |
| CN106792246B (en) * | 2016-12-09 | 2021-03-09 | 福建星网视易信息系统有限公司 | Method and system for interaction of fusion type virtual scene |
-
2019
- 2019-06-10 CN CN201910497519.8A patent/CN112057871A/en active Pending
-
2020
- 2020-04-09 WO PCT/CN2020/083905 patent/WO2020248682A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1797474A (en) * | 2004-12-30 | 2006-07-05 | 中国科学院自动化研究所 | Fast method for posting players to electronic game |
| JP2006227838A (en) * | 2005-02-16 | 2006-08-31 | Nec Corp | Image processor and image processing program |
| CN101715069A (en) * | 2008-09-30 | 2010-05-26 | 富士胶片株式会社 | Image compositing apparatus and method of controlling same |
| CN105447480A (en) * | 2015-12-30 | 2016-03-30 | 吉林纪元时空动漫游戏科技集团股份有限公司 | Face recognition game interactive system |
| CN109675315A (en) * | 2018-12-27 | 2019-04-26 | 网易(杭州)网络有限公司 | Generation method, device, processor and the terminal of avatar model |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112057871A (en) | 2020-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114296949B (en) | Virtual reality device and high-definition screenshot method | |
| CN110636353B (en) | Display device | |
| CN112073798B (en) | Data transmission method and equipment | |
| CN112383802B (en) | Focus switching method, projection display device and system | |
| WO2020248711A1 (en) | Display device and content recommendation method | |
| CN112463267B (en) | Method for presenting screen saver information on display device screen and display device | |
| CN112732089A (en) | Virtual reality equipment and quick interaction method | |
| CN112073770B (en) | Display device and video communication data processing method | |
| CN111510788A (en) | Display method and display device for double-screen double-system screen switching animation | |
| CN112788378B (en) | Display device and content display method | |
| CN114302221A (en) | Virtual reality equipment and screen-casting media asset playing method | |
| CN114286077B (en) | Virtual reality device and VR scene image display method | |
| CN113938633B (en) | A video call processing method and display device | |
| WO2020248682A1 (en) | Display device and virtual scene generation method | |
| CN115129280B (en) | Virtual reality device and screen projection media playback method | |
| CN112788381B (en) | Display device and display method | |
| WO2022151882A1 (en) | Virtual reality device | |
| CN112732088B (en) | Virtual reality equipment and monocular screen capturing method | |
| CN116999816A (en) | Interactive control method, device, computer equipment and storage medium | |
| CN114283055A (en) | Virtual reality equipment and picture display method | |
| CN115729403A (en) | Display picture processing method and device, electronic equipment and storage 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: 20822721 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: 20822721 Country of ref document: EP Kind code of ref document: A1 |