Light field digital human clip playing method and device, equipment and storage medium
By constructing the mapping and pairing relationships of the light field digital human resource base directory, generating resource layout data, updating the target display status, and performing segment transitions, the stability and continuity issues of digital human segment playback on light field display devices are resolved, and the computational burden on terminal devices is reduced.
Patent Information
- Application Number
- CN202611663806.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to achieve smooth switching of digital human segments and reduce the operational burden on terminal devices, especially when the voice interaction state changes. Playback control is difficult to adapt to the resource directory structure and segment naming methods of different digital human images, leading to stability and continuity issues.
By constructing a mapping relationship between state and light field digital human segment groups, and a pairing relationship between light field digital human loop segments and exit segments, resource layout data is generated. Switching requests for voice interaction state mapping are received, the target display state is updated, and the current display state remains unchanged until the current playback segment ends. Segment transition is performed in response to playback segment end information, and the pre-completed viewpoint interleaving light field digital human loop segments are played using a video hardware decoder.
It achieves smooth switching of light field digital human segments under changes in voice interaction state, reduces the graphics computing burden and power consumption of terminal devices, and ensures the stability and continuity of playback.
Smart Images

Figure CN123164288A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital human interaction technology, and in particular to a method, apparatus, device and storage medium for playing digital human segments in a light field. Background Technology
[0002] With the application of digital human interaction on terminal devices, actions such as standby, listening, thinking, and responding are typically pre-made into video clips, and the appropriate video clip is selected for playback based on the voice interaction status during runtime. For light field display devices, the video clips also need to undergo viewpoint interleaving in advance to present a three-dimensional display effect during playback. In actual operation, the voice interaction status changes as the user speaks, remotely processes, and responds to playback, requiring playback control to switch digital human action clips accordingly.
[0003] However, the resource directory structure, number of segments, and segment naming methods often differ for different digital human characters, making it difficult for playback control to adapt to these resource differences in a uniform manner. When state changes occur during the playback of the current video segment, playback control needs to coordinate between state changes, segment playback, and display effects. Since the computing power and power consumption of the terminal devices connected to the light field display device are usually limited, undertaking heavy graphics processing tasks during operation will affect the stability and continuity of digital human interaction.
[0004] Therefore, how to achieve smooth segment switching and reduce the operating burden of terminal devices during the playback of light field digital human segments based on changes in voice interaction status has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] In view of the above, this application provides a method, apparatus, device and storage medium for playing digital human segments in a light field, the purpose of which is to solve the above-mentioned technical problems.
[0006] In a first aspect, this application provides a method for playing light field digital human segments, the method comprising: Based on the light field digital human resource base catalog, the mapping relationship between the state and the light field digital human segment group and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment are constructed to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interweaving. Receive a state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. In response to the end information of the current playback segment, the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position are determined based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data. Based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, perform the segment transition before the next light field digital human loop segment playback to obtain the updated current display state and the reset segment sequence position; Based on the updated current display state and the position of the segment sequence after reset, the light field digital human loop segment corresponding to the updated current display state is played through the video hardware decoder.
[0007] Secondly, this application provides a light field digital human segment playback device, which includes: The construction module is used to construct the mapping relationship between the status and the light field digital human segment group, as well as the pairing relationship between the light field digital human loop segment and the light field digital human exit segment, based on the light field digital human resource base directory, and to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interleaving. Update module: Used to receive state switching requests obtained from voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. Determining module: In response to the end information of the current playback segment, it determines the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data; Transition module: Used to perform segment transition before the next light field digital human loop segment is played, based on the next playback segment type, next playback segment identifier, candidate current display state, and candidate segment sequence position, to obtain the updated current display state and the reset segment sequence position; Playback module: Used to play the light field digital human loop segment corresponding to the updated current display state through a video hardware decoder, based on the updated current display state and the segment sequence position after reset.
[0008] Thirdly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the light field digital human segment playback method described in any embodiment of the first aspect.
[0009] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the light field digital human segment playback method as described in any embodiment of the first aspect.
[0010] The technical solutions provided in this application have the following advantages compared with the prior art: Based on the mapping relationship between the construction status of the light field digital human resource base catalog and the light field digital human segment groups, as well as the pairing relationship between light field digital human loop segments and light field digital human exit segments, resource layout data is obtained, which can adapt to the resource catalog and segment layout of different digital human images. By receiving the state switching request obtained from the voice interaction state mapping, the target display state is updated and maintained until the end of the current playback segment, and the end information of the current playback segment is obtained, which can coordinate the state change with the playback of the current segment. By responding to the end information of the current playback segment, based on the current playback segment identifier, exit flag, current display state, and updated target... The display status and resource layout data determine the identifier of the next playback segment, the type of the next playback segment, the candidate current display status, and the candidate segment sequence position. Segment transition is then performed to obtain the updated current display status and the segment sequence position after reset, ensuring consistency between the status submission and the sequence position. Based on the updated current display status and the segment sequence position after reset, the corresponding pre-interlaced light field digital human loop segment is played via a video hardware decoder. This eliminates the need for real-time 3D model rendering and frame-by-frame viewpoint interlacing, reducing the graphics computing burden and power consumption of the terminal device and enabling smooth switching of light field digital human segments under changes in voice interaction status. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart illustrating a preferred embodiment of the light field digital human segment playback method of this application; Figure 2 This is a schematic diagram of a preferred embodiment of the light field digital human segment playback device of this application; Figure 3 This is a schematic diagram of a preferred embodiment of the electronic device of this application; The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0015] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0016] Reference Figure 1 The diagram shown is a flowchart illustrating an embodiment of the light field digital human segment playback method of this application. The method is executed by an electronic device, such as a playback control device, which can be implemented by a software system and / or a hardware system. The light field digital human segment playback method includes: Step 101: Based on the light field digital human resource base catalog, construct the mapping relationship between the state and the light field digital human segment group, and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interleaving. Step 102: Receive the state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. Step 103: In response to the end information of the current playback segment, determine the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data; Step 104: Based on the next playback segment type, next playback segment identifier, candidate current display state, and candidate segment sequence position, perform the segment transition before the next light field digital human loop segment playback to obtain the updated current display state and the reset segment sequence position; Step 105: Based on the updated current display state and the position of the segment sequence after reset, play the light field digital human loop segment corresponding to the updated current display state through the video hardware decoder.
[0017] In this embodiment, a light field digital human refers to a digital human figure facing a light field display device and presented in video clips with pre-completed viewpoint interweaving. The light field digital human resource base directory refers to the root directory storing the state clip files of the light field digital human. A light field digital human clip group refers to a collection of clips in the same state. A light field digital human loop clip refers to a video clip that can be played in a loop. A light field digital human exit clip refers to a video clip paired with a light field digital human loop clip and used for the closing action before state switching. Viewpoint interweaving refers to the process of arranging multiple viewpoint images into video frames according to the requirements of the light field display device. Resource layout data refers to data describing the mapping relationship between states and light field digital human clip groups, as well as the pairing relationship between light field digital human loop clips and light field digital human exit clips. On terminals with limited computing power and power consumption, real-time 3D model rendering and frame-by-frame viewpoint interweaving are costly. Directly interrupting the current video for state switching can easily result in action jumps, black frames, or discontinuous postures. Voice interaction also has remote inference waiting time, and responses to postures tend to lag behind responses to sound. Therefore, the playback control device pre-renders each action of the digital human into video segments that complete the viewpoint interweaving, and establishes a data-driven resource layout based on the light field digital human resource base directory during runtime, achieving a smooth transition by separating the current display state and the target display state and pairing exit segments.
[0018] The system scans the light field digital human resource base directory, reads the directory entries and file entries under it, determines the status based on the directory entry name, and determines the segment identifier based on the file entry name and extension. Segment files in the same status are grouped into the same light field digital human segment group. For the same light field digital human segment group, it identifies looping light field digital human segments that can be played in a loop based on the segment identifier, and identifies the exit segments of light field digital human segments paired with the looping segments based on the association between the segment identifiers. The identified segment files undergo readability and pairing verification to obtain verification results. The verification results indicate whether the segment file can be read by the video hardware decoder and whether the looping light field digital human segment has a paired exit segment. Resource layout data is generated based on the status, light field digital human segment group, looping light field digital human segment, exiting light field digital human segment, and verification results. The resource layout data records the mapping relationship between status and light field digital human segment group, the ordered sequence of looping light field digital human segments in the light field digital human segment group, the pairing relationship between looping light field digital human segments and exiting light field digital human segments, and the starting position of the segment sequence corresponding to each status.
[0019] Maintain the current display state, target display state, current playback segment identifier, and exit flag. The current display state indicates the state of the currently playing light field digital human segment. The target display state indicates the state requested by the most recent state switching request. The current playback segment identifier indicates whether the currently playing light field digital human loop segment or the light field digital human exit segment is a loop segment. The exit flag indicates whether the currently playing segment is the light field digital human exit segment. Receive state switching requests obtained from the voice interaction state mapping. Determine the requested display state based on the state switching request, update the target display state to the requested display state, and obtain the updated target display state. Maintain the current display state until the current playback segment ends, and obtain the current playback segment end information when the current playback segment ends. The updated target display state and current playback segment end information are used for subsequent determination of the next playback segment.
[0020] In response to the end of the current playback segment, the system queries the resource layout data for the current playback segment's state and position within the light field digital human segment group based on the current playback segment's identifier. It determines whether the current playback segment is a light field digital human exit segment based on the exit flag. The system compares the current display state with the updated target display state to obtain a state comparison result. It searches for a matching light field digital human exit segment based on the current playback segment's identifier and the pairing relationship in the resource layout data to obtain a pairing search result. The system determines the next playback segment type based on the state comparison result and the pairing search result. If the state comparison result indicates that the current display state differs from the updated target display state, and the pairing search result indicates the existence of a matching light field digital human exit segment, the next playback segment type is determined to be a light field digital human exit segment, the identifier of the matching light field digital human exit segment is determined as the next playback segment identifier, the current display state is determined as a candidate current display state, and the position of the current playback segment within the light field digital human segment group is determined as the candidate segment sequence position.
[0021] When the state comparison result indicates that the current display state differs from the updated target display state, and the pairing search result indicates that there is no matching light field digital human exit segment, the next playback segment type is determined to be a light field digital human loop segment. The light field digital human loop segment identifier corresponding to the updated target display state is determined as the next playback segment identifier, the updated target display state is determined as a candidate current display state, and the segment sequence start position corresponding to the updated target display state is determined as the candidate segment sequence position. When the state comparison result indicates that the current display state is the same as the updated target display state, or the current playback segment is a light field digital human exit segment, the next playback segment type is determined to be a light field digital human loop segment. Based on the current playback segment's state and current position, the next light field digital human loop segment identifier and next sequence position are determined in the resource layout data. The next light field digital human loop segment identifier is determined as the next playback segment identifier, the current playback segment's state is determined as a candidate current display state, and the next sequence position is determined as the candidate segment sequence position. The next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position are used for subsequent segment transitions.
[0022] Based on the next playback segment type, next playback segment identifier, candidate current display state, and candidate segment sequence position, a segment transition is performed before the next light field digital human loop segment begins playback. When the next playback segment type is a light field digital human exit segment, the light field digital human exit segment corresponding to the next playback segment identifier is configured as the current playback segment of the video hardware decoder, the exit flag is updated to indicate that the current playback segment is the light field digital human exit segment, and the light field digital human exit segment is played. When the light field digital human exit segment finishes playing and the exit flag indicates that the current playback segment is the light field digital human exit segment, the candidate current display state is submitted as the updated current display state, the segment sequence start position corresponding to the updated target display state is determined as the reset segment sequence position, the exit flag is updated to indicate that the current playback segment is not the light field digital human exit segment, resulting in the updated current display state and the reset segment sequence position. When the next playback segment type is a light field digital human loop segment, the candidate current display state is determined as the updated current display state, the candidate segment sequence position is determined as the reset segment sequence position, and the exit flag is updated to indicate that the current playback segment is not the light field digital human exit segment. The updated current display status and the position of the segment sequence after reset are provided for subsequent playback.
[0023] Based on the updated current display state and the position of the segment sequence after reset, the video hardware decoder plays the light field digital human loop segment corresponding to the updated current display state. The corresponding light field digital human segment group is determined in the resource layout data based on the updated current display state. The identifier of the light field digital human loop segment to be played is determined in the ordered sequence of light field digital human loop segments within the light field digital human segment group based on the position of the segment sequence after reset. The pre-interlaced light field digital human loop segment corresponding to the identifier of the light field digital human loop segment to be played is set as the input to the video hardware decoder, decoded by the video hardware decoder, and output to the display surface. During the transition from the current display state to the updated target display state, the playback control device does not perform real-time 3D model rendering or frame-by-frame viewpoint interlacing.
[0024] For example, the light field digital human resource base directory contains a State A subdirectory and a State B subdirectory. Each State subdirectory includes a light field digital human loop segment and a paired light field digital human exit segment. All segments are pre-interlaced video segments. The light field digital human resource base directory is scanned to construct the mapping relationship between states and light field digital human segment groups, as well as the pairing relationship between light field digital human loop segments and light field digital human exit segments, thus obtaining resource layout data. Initially, the current display state is State A, the target display state is State A, and the currently playing segment is the State A light field digital human loop segment. An exit flag indicates that the currently playing segment is not the light field digital human exit segment. A state switching request obtained from the voice interaction state mapping is received, the target display state is updated to State B, the updated target display state is State B, and the current display state is maintained at State A until the current playing segment ends. Upon the end of the current playback segment, the end information of the current playback segment is obtained. Based on the current playback segment identifier, exit flag, current display state, updated target display state, and resource layout data, the next playback segment type is determined to be a light field digital human exit segment. The next playback segment identifier is "State A Light Field Digital Human Exit Segment," the candidate current display state is "State A," and the candidate segment sequence position is the sequence position corresponding to the "State A Light Field Digital Human Loop Segment." The "State A Light Field Digital Human Exit Segment" is played. After the "State A Light Field Digital Human Exit Segment" ends, the updated current display state is "State B," and the reset segment sequence position is the starting position of the segment sequence corresponding to the "State B Light Field Digital Human Loop Segment." Based on the updated current display state and the reset segment sequence position, the "State B Light Field Digital Human Loop Segment" is played through the video hardware decoder. Throughout this process, real-time 3D model rendering and frame-by-frame viewpoint interleaving are not performed.
[0025] Data-driven segment management is achieved through resource layout data, enabling playback control devices to adapt to different segment layouts. Separating the current display state from the target display state prevents state requests from directly interrupting the current action. Pairing and exiting segments completes pose convergence, improving the continuity of actions at segment boundaries. A video hardware decoder plays pre-interlaced viewpoint video segments, avoiding runtime 3D model rendering and frame-by-frame viewpoint interlacing, reducing terminal computing power and power consumption.
[0026] In one embodiment, the step of constructing a mapping relationship between states and light field digital human segment groups, and a pairing relationship between light field digital human loop segments and light field digital human exit segments, based on the light field digital human resource base catalog, to obtain resource layout data, includes: Scan the status subdirectory under the light field digital human resource base directory to obtain the correspondence between the status subdirectory identifier and the candidate fragment file; Based on the viewpoint interleaving configuration identifier of the current light field display device, select the valid segment files that match the viewpoint interleaving configuration identifier from the candidate segment files to obtain a list of valid segment files; According to the same prefix and consecutive numbering, the valid fragment files in the list of valid fragment files are grouped into light field digital human loop fragments, and the exit fragments of light field digital human are found by adding an exit identifier according to the number, so as to obtain the ordered sequence of light field digital human loop fragments and the pairing relationship between light field digital human loop fragments and light field digital human exit fragments. Resource layout data is generated based on the status subdirectory identifier, the ordered sequence of light field digital human loop fragments, and the pairing relationship between light field digital human loop fragments and light field digital human exit fragments.
[0027] Scan the status subdirectories under the light field digital human resource base directory, read the directory entry names to determine the status subdirectory identifier, read the file entries under each status subdirectory, identify the files that conform to the fragment file naming rules as candidate fragment files, and obtain the correspondence between the status subdirectory identifier and the candidate fragment files.
[0028] The viewpoint interleaving configuration identifier of the current light field display device is read. This identifier indicates the required number and arrangement of viewpoints. The viewpoint interleaving configuration identifiers of the candidate fragment files are extracted from their filenames or metadata. These identifiers are then compared with those of the current light field display device. Candidate fragment files with matching identifiers are retained as valid fragment files, while those with inconsistent identifiers are removed, resulting in a list of valid fragment files.
[0029] Valid fragment files in the list of valid fragment files are grouped according to the same prefix before the delimiter in their filenames and consecutive numbers after the delimiter. Valid fragment files with the same prefix and consecutive numbers starting from the first number are grouped into light field digital human loop fragments until the numbering sequence encounters its first missing number, resulting in an ordered sequence of light field digital human loop fragments. For each light field digital human loop fragment in the ordered sequence, based on the loop fragment number and a pre-defined exit flag, a valid fragment file with the exit flag appended to its number is searched in the list of valid fragment files. The found valid fragment file is identified as a light field digital human exit fragment, and its path is associated with the path of the corresponding numbered light field digital human loop fragment, thus establishing a pairing relationship between light field digital human loop fragments and light field digital human exit fragments.
[0030] Readability and decoding capability checks are performed on the looping and exit segments of the light field digital human. The readability check verifies whether the segment file can be read, while the decoding capability check verifies whether the video hardware decoder supports the segment file's encoding format. Segment files that pass the checks are retained in the resource layout data; segment files that fail are recorded as unusable, thus obtaining the verification result.
[0031] Resource layout data is generated based on the status subdirectory identifier, the ordered sequence of light field digital human looping segments, the pairing relationship between light field digital human looping segments and light field digital human exit segments, and the verification results. The resource layout data includes the status corresponding to the status subdirectory identifier, the light field digital human segment group corresponding to the status, the ordered sequence of light field digital human looping segments within the light field digital human segment group, the sequence position of each light field digital human looping segment in the ordered sequence, the pairing relationship between light field digital human looping segments and light field digital human exit segments, and the verification results. This resource layout data is used for subsequent updates to the target display status, determining the next playback segment, and transitioning between execution segments.
[0032] In one embodiment, updating the target display state according to the state switching request to obtain the updated target display state includes: The state switching request carries a request to display a state. When the voice interaction state is user speaking, the request to display a state is input processing display state. When the voice interaction state is remote processing or reply playback state, the request to display a state is reply display state. When the voice interaction state is waiting for user, stopped, or paused, the request to display a state is standby display state. Determine the target display state update conditions based on the requested display state and the current display state, and obtain the target display state update conditions. When the target display state update condition indicates that the requested display state is different from the current display state, the target display state is updated to the requested display state to obtain the updated target display state; The current display state remains unchanged until the current playback segment ends. When the current playback segment ends, the end information of the current playback segment is obtained based on the updated target display state and the current playback segment identifier.
[0033] Voice interaction states include user speaking, remote processing, response playback, waiting for user, stopped, and paused. When the user is speaking, the request display state is determined as the input processing display state. When the user is in remote processing or response playback, the request display state is determined as the response display state. When the user is waiting, stopped, or paused, the request display state is determined as the standby display state. The request display state is validated to ensure it belongs to a pre-established set of display states, including standby, input processing, and response display states. If the validation passes, the request display state is retained; otherwise, it is set to standby, resulting in the validated request display state.
[0034] The target display state update condition is determined based on the verified request display state and the current display state. Specifically, the verified request display state is compared with the current display state. If the verified request display state is different from the current display state, the target display state update condition indicates that the target display state needs to be updated. If the verified request display state is the same as the current display state, the target display state update condition indicates that the target display state does not need to be updated. When the target display state update condition indicates that the target display state needs to be updated, the target display state is updated to the verified request display state, resulting in the updated target display state. When the target display state update condition indicates that the target display state does not need to be updated, the target display state remains unchanged and is used as the updated target display state.
[0035] Before the current playback segment ends, the current display state remains unchanged, and the media source of the video hardware decoder is not replaced. The end of the current playback segment is monitored via the playback completion callback of the video hardware decoder or the media player callback. When the current playback segment ends, the current playback segment identifier and the updated target display state are read, and the current playback segment identifier, the updated target display state, and the current playback segment end event are combined into the current playback segment end information. This end information is used to determine the next playback segment.
[0036] For example, the current display state is standby, the current playback segment identifier is the standby loop segment identifier, and the target display state is standby. When the user starts speaking, the voice interaction state becomes the user speaking state, and the request display state carried in the state switching request is the input processing display state. The request display state (input processing display state) is compared with the current display state (standby). Since they are different, the target display state update condition indicates that the target display state needs to be updated. The target display state is then updated to the input processing display state, resulting in the updated target display state. The standby loop segment continues playing until its end, maintaining the current display state as standby until the standby loop segment ends. When the standby loop segment ends, the current playback segment identifier (standby loop segment identifier) and the updated target display state (input processing display state) are read to obtain the current playback segment end information. This information includes the standby loop segment identifier, the input processing display state, and the current playback segment end event. The next playback segment is then determined based on this information.
[0037] For example, if the user's voice endpoint arrives but the response audio has not, the voice interaction state is remote processing, and the request display state is response display. The current display state is input processing display, the current playback segment identifier is the input processing loop segment identifier, and the target display state is input processing display. Comparing the request display state and the response display state with the current display state and the input processing display state, if they differ, the target display state is updated to the response display state, resulting in the updated target display state being the response display state. The input processing loop segment continues playing until its end, maintaining the current display state as input processing display until the loop segment ends. When the input processing loop segment ends, the current playback segment identifier (input processing loop segment identifier) and the updated target display state (response display state) are read to obtain the current playback segment end information, which includes the input processing loop segment identifier, the response display state, and the current playback segment end event. When the response audio arrives, the voice interaction state changes to response playback state, and the request display state remains the response display state, identical to the updated target display state. The target display state update condition indicates that the target display state does not need to be updated, and media switching is not repeatedly triggered.
[0038] By updating the target display state first and maintaining the current display state until the end of the current playback segment, the current playback segment is prevented from being interrupted directly by the state switching request. At the same time, the updated target display state and the end information of the current playback segment are provided for the subsequent determination of the next playback segment and the execution of the segment transition.
[0039] In one embodiment, determining the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position based on the current playback segment identifier, exit flag, current display state, updated target display state, and resource layout data includes: Based on the current playback segment identifier and resource layout data, determine the current state and current sequence position of the current playback segment, and obtain the current state and current sequence position; Based on the exit flag, determine whether the currently playing segment is the exit segment of the light field digital human, and obtain the result of the current playing segment type determination; When the current playback segment type determination result indicates that the current playback segment is the light field digital human exit segment, the updated target display state will be determined as the candidate current display state; The candidate segment sequence position is determined based on the current display status and resource layout data, and the next playback segment identifier and the next playback segment type are determined as light field digital human loop segment based on the current display status and candidate segment sequence position. When the current playback segment type determination result indicates that the current playback segment is not the light field digital human exit segment, the next playback segment identifier, the next playback segment type, the candidate current display state, and the candidate segment sequence position are determined based on the current state, the current sequence position, the current display state, the updated target display state, and the resource layout data.
[0040] The resource layout data records the mapping relationship between states and light field digital human segment groups, the ordered sequence of light field digital human loop segments in each light field digital human segment group, and the pairing relationship between light field digital human loop segments and light field digital human exit segments. If the currently playing segment identifier corresponds to a light field digital human loop segment, then the state to which the light field digital human loop segment belongs is determined as the current state, and the position of the light field digital human loop segment in the ordered sequence of its respective light field digital human segment group is determined as the current sequence position. If the currently playing segment identifier corresponds to a light field digital human exit segment, then the light field digital human loop segment paired with the light field digital human exit segment is found according to the pairing relationship, the state to which the light field digital human loop segment belongs is determined as the current state, and the position of the light field digital human loop segment in the ordered sequence of its respective light field digital human segment group is determined as the current sequence position. The current state and the current sequence position are thus obtained.
[0041] The system determines whether the currently playing segment is a light field digital human exit segment based on an exit flag. This exit flag, used during playback control device maintenance, indicates whether the currently playing segment is a light field digital human exit segment. If the exit flag indicates that the currently playing segment is a light field digital human exit segment, the current playback segment type determination result indicates that the current playback segment is a light field digital human exit segment. If the exit flag indicates that the currently playing segment is not a light field digital human exit segment, the current playback segment type determination result indicates that the current playback segment is not a light field digital human exit segment.
[0042] When the current playback segment type determination result indicates that the current playback segment is a light field digital human exit segment, the updated target display state is determined as the candidate current display state. Specifically, based on the candidate current display state, the corresponding light field digital human segment group is searched in the resource layout data, and the starting position of the ordered sequence of light field digital human loop segments in the light field digital human segment group corresponding to the candidate current display state is determined as the candidate segment sequence position. Based on the candidate current display state and the candidate segment sequence position, the light field digital human loop segment identifier at the starting position in the light field digital human segment group corresponding to the candidate current display state is determined as the next playback segment identifier, and the type of the next playback segment is determined to be a light field digital human loop segment.
[0043] When the current playback segment type determination result indicates that the current playback segment is not a light field digital human exit segment, the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position are determined based on the current state, current sequence position, current display state, updated target display state, and resource layout data. Specifically, the current display state and the updated target display state are compared to obtain a state comparison result. A light field digital human exit segment paired with the current playback segment is searched based on the pairing relationship of the current playback segment identifier in the resource layout data to obtain a pairing search result. Based on the state comparison result and the pairing search result, the next playback segment type is determined to be either a light field digital human exit segment or a light field digital human loop segment. The next playback segment identifier, candidate current display state, and candidate segment sequence position are then determined based on the next playback segment type. The next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position are used for transitioning to subsequent segments.
[0044] For example, the resource layout data records the state A corresponding to the state A light field digital human segment group. The ordered sequence of light field digital human loop segments in the state A light field digital human segment group includes state A loop segment 1 and state A loop segment 2. State A loop segment 1 is paired with state A exit segment 1. The currently playing segment is identified as state A exit segment 1, and the exit flag indicates that the currently playing segment is the light field digital human exit segment. The updated target display state is state B. Based on the current playing segment identifier state A exit segment 1 and the resource layout data, the current state is determined to be state A through the pairing relationship, and the current sequence position is the sequence position corresponding to state A loop segment 1. The exit flag indicates that the current playing segment is the light field digital human exit segment. The updated target display state B is determined as the candidate current display state. Based on the candidate current display state B, the state B light field digital human segment group is searched in the resource layout data, and the starting position of the ordered sequence of light field digital human loop segments in the state B light field digital human segment group is determined as the candidate segment sequence position. Based on the candidate current display state B and the candidate segment sequence position, the light field digital human loop segment identifier "State B Loop Segment 1" at the starting position in the light field digital human segment group of state B is determined as the next playback segment identifier, and the next playback segment type is determined as light field digital human loop segment. The next playback segment identifier "State B Loop Segment 1", the next playback segment type "Light Field Digital Human Loop Segment", the candidate current display state B, and the candidate segment sequence position are used for transition of subsequent segments.
[0045] For example, the currently playing segment is identified as State A, Looping Segment 1. An exit flag indicates that the current playing segment is not the exit segment for the light field digital human. The current display state is State A, and the updated target display state is State B. Based on the current playing segment identifier (State A, Looping Segment 1) and resource layout data, the current state is determined to be State A, and the current sequence position is the sequence position of State A, Looping Segment 1 within the State A light field digital human segment group. The exit flag indicates that the current playing segment is not the exit segment for the light field digital human. Based on the current state (State A), current sequence position, current display state (State A), updated target display state (State B), and resource layout data, the next playing segment identifier, next playing segment type, candidate current display state, and candidate segment sequence position are determined through state comparison and pairing lookup. The next playing segment identifier, next playing segment type, candidate current display state, and candidate segment sequence position are used for subsequent segment transitions.
[0046] By locating the current state and current sequence position in the resource layout data based on the current playback segment identifier, and distinguishing whether the current playback segment is a light field digital human exit segment based on the exit flag, it can directly return to the light field digital human loop segment corresponding to the updated target display state when the current playback segment is a light field digital human exit segment, and determine the subsequent playback segment based on state comparison and pairing search when the current playback segment is not a light field digital human exit segment, thereby providing accurate next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position for segment transition.
[0047] Further, determining the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position based on the current state, current sequence position, current display state, updated target display state, and resource layout data includes: Compare the current display state with the updated target display state to obtain the state difference judgment result; Based on the state difference judgment results and the pairing relationship between the looping segment and the exit segment of the light field digital human in the resource layout data, determine whether there is a light field digital human exit segment in the resource layout data that matches the identifier of the currently playing segment, and obtain the exit segment search results. When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is a light field digital human exit segment, the next playback segment type is determined to be the light field digital human exit segment, the identifier of the light field digital human exit segment that matches the current playback segment identifier is determined to be the next playback segment identifier, the current display state is determined to be the candidate current display state, and the current sequence position is determined to be the candidate segment sequence position. When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is no light field digital human exit segment, the next playback segment type is determined to be the light field digital human loop segment, the light field digital human loop segment identifier corresponding to the updated target display state is determined to be the next playback segment identifier, the updated target display state is determined to be the candidate current display state, and the segment sequence start position corresponding to the updated target display state is determined to be the candidate segment sequence position; When the state difference judgment result indicates that the current display state is the same as the updated target display state, the next playback segment type is determined to be a light field digital human loop segment. Based on the current state and the current sequence position, the next light field digital human loop segment identifier and the next sequence position are determined in the ordered sequence of light field digital human loop segments corresponding to the current state in the resource layout data. The next light field digital human loop segment identifier is determined as the next playback segment identifier, the current display state is determined as the candidate current display state, and the next sequence position is determined as the candidate segment sequence position.
[0048] If the current display state is inconsistent with the updated target display state, the state difference judgment result indicates that the current display state is different from the updated target display state. If the current display state is consistent with the updated target display state, the state difference judgment result indicates that the current display state is the same as the updated target display state.
[0049] Based on the state difference judgment results and the pairing relationship between the looping and exit segments of the light field digital human in the resource layout data, it is determined whether there is a light field digital human exit segment in the resource layout data that is paired with the currently playing segment identifier. Specifically, using the currently playing segment identifier as an index, the search is conducted in the pairing relationship of the resource layout data to find a light field digital human exit segment associated with the currently playing segment identifier. If a light field digital human exit segment associated with the currently playing segment identifier is found, the exit segment search result indicates that a light field digital human exit segment exists. If no light field digital human exit segment associated with the currently playing segment identifier is found, the exit segment search result indicates that a light field digital human exit segment does not exist.
[0050] When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is a light field digital human exit segment, the next playback segment type is determined to be the light field digital human exit segment, the identifier of the light field digital human exit segment that matches the current playback segment identifier is determined to be the next playback segment identifier, the current display state is determined to be the candidate current display state, and the current sequence position is determined to be the candidate segment sequence position.
[0051] When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is no light field digital human exit segment, the next playback segment type is determined to be a light field digital human loop segment, the light field digital human loop segment identifier corresponding to the updated target display state is determined to be the next playback segment identifier, the updated target display state is determined to be the candidate current display state, and the starting position of the segment sequence corresponding to the updated target display state is determined to be the candidate segment sequence position. Specifically, the light field digital human loop segment identifier corresponding to the updated target display state is determined as follows: the light field digital human segment group corresponding to the updated target display state is searched in the resource layout data, and the light field digital human loop segment identifier corresponding to the starting position of the ordered sequence of light field digital human loop segments in the light field digital human segment group is determined to be the next playback segment identifier.
[0052] When the state difference judgment result indicates that the current display state is the same as the updated target display state, the next playback segment type is determined to be a light field digital human loop segment. Based on the current state and current sequence position, the next light field digital human loop segment identifier and the next sequence position are determined in the ordered sequence of light field digital human loop segments corresponding to the current state in the resource layout data. Specifically, in the ordered sequence of light field digital human loop segments corresponding to the current state, the next sequence position after the current sequence position is determined as the next sequence position, and the light field digital human loop segment identifier corresponding to the next sequence position is determined as the next light field digital human loop segment identifier. The next light field digital human loop segment identifier is determined as the next playback segment identifier, the current display state is determined as the candidate current display state, and the next sequence position is determined as the candidate segment sequence position. If the current sequence position is the last sequence position of the ordered sequence of light field digital human loop segments corresponding to the current state, then the starting sequence position of the ordered sequence of light field digital human loop segments corresponding to the current state is determined as the next sequence position.
[0053] For example, the resource layout data records state A corresponding to the state A light field digital human fragment group. The ordered sequence of light field digital human cyclic fragments in the state A light field digital human fragment group includes state A cyclic fragment 1 and state A cyclic fragment 2. State A cyclic fragment 1 is paired with state A exit fragment 1, and state A cyclic fragment 2 is not paired with the light field digital human exit fragment. State B corresponds to the state B light field digital human fragment group. The ordered sequence of light field digital human cyclic fragments in the state B light field digital human fragment group includes state B cyclic fragment 1 and state B cyclic fragment 2.
[0054] The current display state is state A, the updated target display state is state B, the current playback segment identifier is state A loop segment 1, the current state is state A, and the current sequence position is the sequence position corresponding to state A loop segment 1. Comparing the current display state A with the updated target display state B, the state difference judgment result indicates that the current display state and the updated target display state are different. Based on the pairing relationship in the resource layout data, the light field digital human exit segment paired with the current playback segment identifier state A loop segment 1 is searched. State A exit segment 1 is found, and the exit segment search result indicates that a light field digital human exit segment exists. The next playback segment type is determined to be the light field digital human exit segment, state A exit segment 1 is determined to be the next playback segment identifier, the current display state A is determined to be the candidate current display state, and the current sequence position is determined to be the candidate segment sequence position.
[0055] The current display state is state A, the updated target display state is state B, the current playback segment is identified as loop segment 2 of state A, the current sequence position is the sequence position corresponding to loop segment 2 of state A. Comparing the current display state A with the updated target display state B, the state difference judgment result indicates that the current display state and the updated target display state are different. Based on the pairing relationship in the resource layout data, a light field digital human exit segment paired with the current playback segment identifier loop segment 2 of state A is searched. No light field digital human exit segment is found, indicating that there is no light field digital human exit segment. The next playback segment type is determined to be a loop segment of light field digital human. The state B light field digital human segment group corresponding to the updated target display state B is searched in the resource layout data. The state B loop segment 1 corresponding to the starting position of the ordered sequence of the loop segment of light field digital human in the state B light field digital human segment group is determined as the next playback segment identifier. The updated target display state B is determined as the candidate current display state, and the starting position of the ordered sequence of the loop segment of light field digital human in the state B light field digital human segment group is determined as the candidate segment sequence position.
[0056] The current display state is state A, the updated target display state is state A, the current playback segment identifier is state A loop segment 1, the current state is state A, and the current sequence position is the sequence position corresponding to state A loop segment 1. Comparing the current display state A with the updated target display state A, the state difference judgment result indicates that the current display state and the updated target display state are the same. The next playback segment type is determined to be a light field digital human loop segment. In the resource layout data, in the state A light field digital human segment group corresponding to the current state A, the next sequence position of the current sequence position is determined as the next sequence position, and the state A loop segment 2 corresponding to the next sequence position is determined as the identifier of the next light field digital human loop segment. State A loop segment 2 is determined as the identifier of the next playback segment, the current display state A is determined as the candidate current display state, and the next sequence position is determined as the candidate segment sequence position.
[0057] By using the above-mentioned state difference judgment and exit segment search, when the states are different and there is a paired light field digital human exit segment, the light field digital human exit segment can be played first. When the states are different and there is no paired light field digital human exit segment, the light field digital human loop segment corresponding to the updated target display state can be played directly. When the states are the same, the light field digital human loop segment of the current state can continue to be played. This provides accurate next playback segment identifier, next playback segment type, candidate current display state and candidate segment sequence position for subsequent segment transitions.
[0058] In one embodiment, the step of performing a segment transition before the next light field digital human loop segment playback based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, to obtain the updated current display state and the reset segment sequence position, includes: Based on the type of the next playback segment, determine whether the next playback segment is the exit segment of the light field digital human, and obtain the transition type judgment result; When the transition type judgment result indicates that the next playback segment is the light field digital human exit segment, the light field digital human exit segment is played according to the next playback segment identifier. During the playback of the light field digital human exit segment, the candidate current display state and candidate segment sequence position remain unchanged, and the exit flag is set to indicate that the current playback segment is the light field digital human exit segment, thus obtaining the exit segment playback state. When the exit segment playback state indicates that the light field digital human has exited the segment, the updated target display state is determined as the updated current display state based on the updated target display state and resource layout data. The starting position of the segment sequence corresponding to the updated target display state is determined as the reset segment sequence position, and the exit flag is reset to obtain the updated current display state and the reset segment sequence position. When the transition type judgment result indicates that the next playback segment is a light field digital human loop segment, the candidate current display state is determined as the updated current display state, the candidate segment sequence position is determined as the reset segment sequence position, and the exit flag is reset to obtain the updated current display state and the reset segment sequence position.
[0059] Read the type of the next playback segment and compare it with the types of the light field digital human exit segment and the light field digital human loop segment. If the type of the next playback segment is the light field digital human exit segment, the transition type determination result indicates that the next playback segment is the light field digital human exit segment. If the type of the next playback segment is the light field digital human loop segment, the transition type determination result indicates that the next playback segment is the light field digital human loop segment.
[0060] When the transition type determination result indicates that the next playback segment is the light field digital human exit segment, the light field digital human exit segment corresponding to the next playback segment identifier is determined in the resource layout data based on the next playback segment identifier. This light field digital human exit segment is configured as the media source for the video hardware decoder, and played through the video hardware decoder. During the playback of the light field digital human exit segment, the candidate's current display state and segment sequence position remain unchanged. The candidate's current display state is not submitted as the current display state, nor is the candidate's segment sequence position submitted as the segment sequence position. The exit flag is set to indicate that the current playback segment is the light field digital human exit segment, thus obtaining the exit segment playback state. The exit segment playback state includes the light field digital human exit segment corresponding to the next playback segment identifier being played, the exit flag indicating that the current playback segment is the light field digital human exit segment, the candidate's current display state remaining unchanged, and the candidate's segment sequence position remaining unchanged.
[0061] When the exit segment playback state indicates the end of the light field digital human exit segment corresponding to the next playback segment identifier, based on the updated target display state and resource layout data, the light field digital human segment group corresponding to the updated target display state is searched in the resource layout data. The starting position of the ordered sequence of light field digital human loop segments in the light field digital human segment group corresponding to the updated target display state is determined as the reset segment sequence position. The updated target display state is determined as the updated current display state, and the exit flag is reset to indicate that the currently playing segment is not the light field digital human exit segment. This yields the updated current display state and the reset segment sequence position. The updated current display state and the reset segment sequence position are used by the video hardware decoder to play the light field digital human loop segment corresponding to the updated current display state.
[0062] When the transition type determination result indicates that the next playback segment is a light field digital human loop segment, the candidate current display state is determined as the updated current display state, the candidate segment sequence position is determined as the reset segment sequence position, and the exit flag is reset to indicate that the currently playing segment is not a light field digital human exit segment, thus obtaining the updated current display state and the reset segment sequence position. The updated current display state and the reset segment sequence position are then used by the video hardware decoder to play the light field digital human loop segment corresponding to the updated current display state.
[0063] For example, the next playback segment type is the light field digital human exit segment, the next playback segment identifier is state A exit segment 1, the candidate current display state is state A, the candidate segment sequence position is the sequence position corresponding to state A loop segment 1, and the updated target display state is state B. The transition type judgment result indicates that the next playback segment is the light field digital human exit segment. Based on the next playback segment identifier state A exit segment 1, play state A exit segment 1. During the playback of state A exit segment 1, maintain the candidate current display state as state A, maintain the candidate segment sequence position as the sequence position corresponding to state A loop segment 1, and set the exit flag to indicate that the current playback segment is the light field digital human exit segment, thus obtaining the exit segment playback state. When the playback of segment 1 ends in state A, based on the updated target display state B and resource layout data, the corresponding light field digital human segment group for state B is found in the resource layout data. The starting position of the ordered sequence of the light field digital human loop segments in the light field digital human segment group in state B is determined as the position of the segment sequence after reset. State B is determined as the updated current display state, and the exit flag is reset to indicate that the currently playing segment is not the light field digital human exit segment. The updated current display state is state B, and the position of the segment sequence after reset is the starting position of the ordered sequence of the light field digital human loop segments in the light field digital human segment group in state B.
[0064] For example, if the next playback segment is a light field digital human loop segment, the candidate current display state is state B, and the candidate segment sequence position is the starting position of the ordered sequence of light field digital human loop segments in the light field digital human segment group of state B. The transition type judgment result indicates that the next playback segment is a light field digital human loop segment. The candidate current display state B is determined as the updated current display state, the candidate segment sequence position is determined as the reset segment sequence position, and the exit flag is reset to indicate that the currently playing segment is not a light field digital human exit segment. This results in the updated current display state being state B and the reset segment sequence position being the starting position of the ordered sequence of light field digital human loop segments in the light field digital human segment group of state B.
[0065] Through the above-mentioned segment transition, when the next playback segment is the exit segment of the light field digital human, the exit segment of the light field digital human is played first, and the candidate current display state and candidate segment sequence position are maintained during the playback. After the exit segment of the light field digital human ends, the updated target display state is submitted and the segment sequence position is reset. When the next playback segment is the loop segment of the light field digital human, the candidate current display state and candidate segment sequence position are submitted directly, thereby providing an accurate updated current display state and reset segment sequence position for playing the loop segment of the light field digital human corresponding to the updated current display state.
[0066] In one embodiment, the step of playing the light field digital human loop segment corresponding to the updated current display state through a video hardware decoder based on the updated current display state and the reset segment sequence position includes: Based on the updated current display status and resource layout data, determine the ordered sequence of light field digital human loop segments corresponding to the updated current display status, and determine the identifier of the light field digital human loop segment to be played from the ordered sequence of light field digital human loop segments according to the position of the segment sequence after reset. Based on the identifier of the light field digital human loop segment to be played, configure the pre-completed viewpoint interleaving light field digital human loop segment corresponding to the identifier of the light field digital human loop segment to be played as the media source of the video hardware decoder; The media source is decoded and played using a video hardware decoder. During the process of switching from the current display state to the updated target display state, real-time 3D model rendering and frame-by-frame viewpoint interleaving are not performed.
[0067] The system searches the resource layout data for the light field digital human segment group corresponding to the updated current display state. The resource layout data records the mapping relationship between states and light field digital human segment groups, as well as the ordered sequence of looping light field digital human segments within each group. The ordered sequence of looping light field digital human segments within the light field digital human segment group corresponding to the updated current display state is determined as the ordered sequence of looping light field digital human segments corresponding to the updated current display state. Based on the position of the segment sequence after reset, the identifier of the looping light field digital human segment to be played is determined within the ordered sequence of looping light field digital human segments corresponding to the updated current display state. If the position of the reset segment sequence is the starting position, the identifier of the looping light field digital human segment corresponding to the starting position in the ordered sequence of looping light field digital human segments corresponding to the updated current display state is determined as the identifier of the looping light field digital human segment to be played. If the position of the reset segment sequence is the middle position, the identifier of the looping light field digital human segment corresponding to the position of the reset segment sequence in the ordered sequence of looping light field digital human segments corresponding to the updated current display state is determined as the identifier of the looping light field digital human segment to be played.
[0068] Based on the identifier of the light field digital human looping segment to be played, determine the pre-completed viewpoint interlacing light field digital human looping segment file corresponding to the identifier in the light field digital human resource base directory. Configure the pre-completed viewpoint interlacing light field digital human looping segment corresponding to the identifier as the media source of the video hardware decoder. When configuring the media source, set the path of the light field digital human looping segment file to the data source of the video hardware decoder, create a media source object, set the data source of the media source object to the light field digital human looping segment file, and prepare the video hardware decoder to decode the media source.
[0069] The media source is decoded and played using a video hardware decoder. The video hardware decoder reads the video stream from the media source, performs hardware decoding on the video stream to obtain decoded video frames, and outputs the decoded video frames to the display surface. During the transition from the current display state to the updated target display state, real-time 3D model rendering and frame-by-frame viewpoint interleaving are not performed. Since the looping segment of the light field digital human to be played is a pre-interleaved video segment, the video hardware decoder can directly output the decoded video frames to present the light field digital human image on the light field display device.
[0070] For example, after the update, the current display state is state B, and after the reset, the segment sequence position is the starting position of the ordered sequence of the looping light field digital human segments in the state B light field digital human segment group. The state B light field digital human segment group corresponding to state B is searched in the resource layout data, and the ordered sequence of the looping light field digital human segments in the state B light field digital human segment group is determined as the ordered sequence of the looping light field digital human segments in state B. Based on the starting position of the segment sequence after the reset, the state B looping segment 1 corresponding to the starting position in the ordered sequence of the looping light field digital human segments in state B is determined as the identifier of the looping light field digital human segment to be played. The pre-completed viewpoint interleaving light field digital human looping segment corresponding to state B looping segment 1 is configured as the media source of the video hardware decoder. The media source is decoded and played through the video hardware decoder. During the transition from the current display state to the updated target display state, the playback control device does not perform real-time 3D model rendering or frame-by-frame viewpoint interleaving operations.
[0071] Reference Figure 2 The diagram shown is a functional module schematic of the light field digital human segment playback device 100 of this application.
[0072] According to the functions implemented, the light field digital human segment playback device 100 includes a construction module 110, an update module 120, a determination module 130, a transition module 140, and a playback module 150. These modules can also be referred to as units, which are a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and are stored in the memory of the electronic device.
[0073] In this embodiment, the functions of each module / unit are as follows: Module 110: is used to construct the mapping relationship between the status and the light field digital human segment group and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment according to the light field digital human resource base directory, and to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interleaving. Update module 120: is used to receive a state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged before the end of the current playback segment, and obtain the end information of the current playback segment when the current playback segment ends. Determining module 130: In response to the end information of the current playback segment, it determines the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data; Transition module 140: is used to perform segment transition before the next light field digital human loop segment is played, based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, to obtain the updated current display state and the reset segment sequence position; Playback module 150: Used to play the light field digital human loop segment corresponding to the updated current display state through a video hardware decoder, based on the updated current display state and the segment sequence position after reset.
[0074] The specific implementation of the light field digital human segment playback device of this application is largely the same as the specific implementation of the light field digital human segment playback method described above, and will not be repeated here.
[0075] Reference Figure 3 The diagram shown is a schematic representation of a preferred embodiment of the electronic device of this application.
[0076] The electronic device includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. Memory 113 is used to store computer programs, such as a light field digital human segment playback program; Figure 3 Only an electronic device having a processor 111, a communication interface 112, a memory 113 and a communication bus 114 is shown. However, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0077] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the light field digital human segment playback method provided in any of the foregoing method embodiments, including: Based on the light field digital human resource base catalog, the mapping relationship between the state and the light field digital human segment group and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment are constructed to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interweaving. Receive a state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. In response to the end information of the current playback segment, the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position are determined based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data. Based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, perform the segment transition before the next light field digital human loop segment playback to obtain the updated current display state and the reset segment sequence position; Based on the updated current display state and the position of the segment sequence after reset, the light field digital human loop segment corresponding to the updated current display state is played through the video hardware decoder.
[0078] For a detailed description of the above steps, please refer to the flowchart of the above embodiment of the light field digital human segment playback method.
[0079] Furthermore, this application also proposes a computer-readable storage medium that is both non-volatile and volatile. This computer-readable storage medium is any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores a light field digital human segment playback program, which, when executed by a processor, performs the following operations: Based on the light field digital human resource base catalog, the mapping relationship between the state and the light field digital human segment group and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment are constructed to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interweaving. Receive a state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. In response to the end information of the current playback segment, the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position are determined based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data. Based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, perform the segment transition before the next light field digital human loop segment playback to obtain the updated current display state and the reset segment sequence position; Based on the updated current display state and the position of the segment sequence after reset, the light field digital human loop segment corresponding to the updated current display state is played through the video hardware decoder.
[0080] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the light field digital human segment playback method described above, and will not be repeated here.
[0081] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0082] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware simulation platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0083] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for playing light field digital human segments, characterized in that, The method includes: Based on the light field digital human resource base catalog, the mapping relationship between the state and the light field digital human segment group and the pairing relationship between the light field digital human loop segment and the light field digital human exit segment are constructed to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interweaving. Receive a state switching request obtained from the voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. In response to the end information of the current playback segment, the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position are determined based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data. Based on the next playback segment type, the next playback segment identifier, the candidate current display state, and the candidate segment sequence position, perform the segment transition before the next light field digital human loop segment playback to obtain the updated current display state and the reset segment sequence position; Based on the updated current display state and the segment sequence position after reset, the light field digital human loop segment corresponding to the updated current display state is played through the video hardware decoder. The step of determining the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position based on the current playback segment identifier, exit flag, current display state, updated target display state, and resource layout data includes: Based on the current playback segment identifier and resource layout data, determine the current state and current sequence position of the current playback segment, and obtain the current state and current sequence position; Based on the exit flag, determine whether the currently playing segment is the exit segment of the light field digital human, and obtain the result of the current playing segment type determination; When the current playback segment type determination result indicates that the current playback segment is the light field digital human exit segment, the updated target display state will be determined as the candidate current display state; The candidate segment sequence position is determined based on the current display status and resource layout data, and the next playback segment identifier and the next playback segment type are determined as light field digital human loop segment based on the current display status and candidate segment sequence position. When the current playback segment type determination result indicates that the current playback segment is not the light field digital human exit segment, the next playback segment identifier, the next playback segment type, the candidate current display state, and the candidate segment sequence position are determined based on the current state, the current sequence position, the current display state, the updated target display state, and the resource layout data.
2. The method for playing back light field digital human segments as described in claim 1, characterized in that, The process involves constructing a mapping relationship between states and light field digital human segment groups, and a pairing relationship between light field digital human loop segments and light field digital human exit segments, based on the light field digital human resource base catalog, to obtain resource layout data, including: Scan the status subdirectories under the light field digital human resource base directory to obtain the correspondence between status subdirectory identifiers and candidate fragment files; Based on the viewpoint interleaving configuration identifier of the current light field display device, select the valid segment files that match the viewpoint interleaving configuration identifier from the candidate segment files to obtain a list of valid segment files; According to the same prefix and consecutive numbering, the valid fragment files in the list of valid fragment files are grouped into light field digital human loop fragments, and the exit fragments of light field digital human are found by adding an exit identifier according to the number, so as to obtain the ordered sequence of light field digital human loop fragments and the pairing relationship between light field digital human loop fragments and light field digital human exit fragments. Resource layout data is generated based on the status subdirectory identifier, the ordered sequence of light field digital human loop fragments, and the pairing relationship between light field digital human loop fragments and light field digital human exit fragments.
3. The method for playing back light field digital human segments as described in claim 1, characterized in that, The step of updating the target display state according to the state switching request to obtain the updated target display state includes: The state switching request carries a request to display a state. When the voice interaction state is user speaking, the request to display a state is input processing display state. When the voice interaction state is remote processing or reply playback state, the request to display a state is reply display state. When the voice interaction state is waiting for user, stopped, or paused, the request to display a state is standby display state. Determine the target display state update conditions based on the requested display state and the current display state, and obtain the target display state update conditions. When the target display state update condition indicates that the requested display state is different from the current display state, the target display state is updated to the requested display state to obtain the updated target display state; The current display state remains unchanged until the current playback segment ends. When the current playback segment ends, the end information of the current playback segment is obtained based on the updated target display state and the current playback segment identifier.
4. The method for playing back light field digital human segments as described in claim 1, characterized in that, The step of determining the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position based on the current state, current sequence position, current display state, updated target display state, and resource layout data includes: Compare the current display state with the updated target display state to obtain the state difference judgment result; Based on the state difference judgment results and the pairing relationship between the looping segment and the exit segment of the light field digital human in the resource layout data, determine whether there is a light field digital human exit segment in the resource layout data that matches the identifier of the currently playing segment, and obtain the exit segment search results. When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is a light field digital human exit segment, the next playback segment type is determined to be the light field digital human exit segment, the identifier of the light field digital human exit segment that matches the current playback segment identifier is determined to be the next playback segment identifier, the current display state is determined to be the candidate current display state, and the current sequence position is determined to be the candidate segment sequence position. When the state difference judgment result indicates that the current display state is different from the updated target display state, and the exit segment search result indicates that there is no light field digital human exit segment, the next playback segment type is determined to be the light field digital human loop segment, the light field digital human loop segment identifier corresponding to the updated target display state is determined to be the next playback segment identifier, the updated target display state is determined to be the candidate current display state, and the segment sequence start position corresponding to the updated target display state is determined to be the candidate segment sequence position; When the state difference judgment result indicates that the current display state is the same as the updated target display state, the next playback segment type is determined to be a light field digital human loop segment. Based on the current state and the current sequence position, the next light field digital human loop segment identifier and the next sequence position are determined in the ordered sequence of light field digital human loop segments corresponding to the current state in the resource layout data. The next light field digital human loop segment identifier is determined as the next playback segment identifier, the current display state is determined as the candidate current display state, and the next sequence position is determined as the candidate segment sequence position.
5. The method for playing back light field digital human segments as described in claim 1, characterized in that, The step of performing a segment transition before the next light field digital human loop segment playback based on the next playback segment type, next playback segment identifier, candidate current display state, and candidate segment sequence position, to obtain the updated current display state and the reset segment sequence position, includes: Based on the type of the next playback segment, determine whether the next playback segment is the exit segment of the light field digital human, and obtain the transition type judgment result; When the transition type judgment result indicates that the next playback segment is the light field digital human exit segment, the light field digital human exit segment is played according to the next playback segment identifier. During the playback of the light field digital human exit segment, the candidate current display state and candidate segment sequence position remain unchanged, and the exit flag is set to indicate that the current playback segment is the light field digital human exit segment, thus obtaining the exit segment playback state. When the exit segment playback state indicates that the light field digital human has exited the segment, the updated target display state is determined as the updated current display state based on the updated target display state and resource layout data. The starting position of the segment sequence corresponding to the updated target display state is determined as the reset segment sequence position, and the exit flag is reset to obtain the updated current display state and the reset segment sequence position. When the transition type judgment result indicates that the next playback segment is a light field digital human loop segment, the candidate current display state is determined as the updated current display state, the candidate segment sequence position is determined as the reset segment sequence position, and the exit flag is reset to obtain the updated current display state and the reset segment sequence position.
6. The method for playing back light field digital human segments as described in claim 1, characterized in that, The step of playing the light field digital human loop segment corresponding to the updated current display state through a video hardware decoder based on the updated current display state and the reset segment sequence position includes: Based on the updated current display status and resource layout data, determine the ordered sequence of light field digital human loop segments corresponding to the updated current display status, and determine the identifier of the light field digital human loop segment to be played from the ordered sequence of light field digital human loop segments according to the position of the segment sequence after reset. Based on the identifier of the light field digital human loop segment to be played, configure the pre-completed viewpoint interleaving light field digital human loop segment corresponding to the identifier of the light field digital human loop segment to be played as the media source of the video hardware decoder; The media source is decoded and played using a video hardware decoder. During the process of switching from the current display state to the updated target display state, real-time 3D model rendering and frame-by-frame viewpoint interleaving are not performed.
7. A light field digital human segment playback device, characterized in that, The device includes: The construction module is used to construct the mapping relationship between the status and the light field digital human segment group, as well as the pairing relationship between the light field digital human loop segment and the light field digital human exit segment, based on the light field digital human resource base directory, and to obtain resource layout data. Among them, the light field digital human loop segment and the light field digital human exit segment are video segments with pre-completed viewpoint interleaving. Update module: Used to receive state switching requests obtained from voice interaction state mapping, update the target display state according to the state switching request, obtain the updated target display state, keep the current display state unchanged until the current playback segment ends, and obtain the end information of the current playback segment when the current playback segment ends. Determining module: In response to the end information of the current playback segment, it determines the next playback segment identifier, the next playback segment type, the candidate current display status, and the candidate segment sequence position based on the current playback segment identifier, the exit flag, the current display status, the updated target display status, and the resource layout data; Transition module: Used to perform segment transition before the next light field digital human loop segment is played, based on the next playback segment type, next playback segment identifier, candidate current display state, and candidate segment sequence position, to obtain the updated current display state and the reset segment sequence position; Playback module: Used to play the light field digital human loop segment corresponding to the updated current display state through a video hardware decoder, based on the updated current display state and the segment sequence position after reset. The step of determining the next playback segment identifier, next playback segment type, candidate current display state, and candidate segment sequence position based on the current playback segment identifier, exit flag, current display state, updated target display state, and resource layout data includes: Based on the current playback segment identifier and resource layout data, determine the current state and current sequence position of the current playback segment, and obtain the current state and current sequence position; Based on the exit flag, determine whether the currently playing segment is the exit segment of the light field digital human, and obtain the result of the current playing segment type determination; When the current playback segment type determination result indicates that the current playback segment is the light field digital human exit segment, the updated target display state will be determined as the candidate current display state; The candidate segment sequence position is determined based on the current display status and resource layout data, and the next playback segment identifier and the next playback segment type are determined as light field digital human loop segment based on the current display status and candidate segment sequence position. When the current playback segment type determination result indicates that the current playback segment is not the light field digital human exit segment, the next playback segment identifier, the next playback segment type, the candidate current display state, and the candidate segment sequence position are determined based on the current state, the current sequence position, the current display state, the updated target display state, and the resource layout data.
8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the light field digital human segment playback method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the light field digital human segment playback method as described in any one of claims 1 to 6.
