Decoding device, encoding device, bit stream generation device, decoding method, and encoding method

The proposed decoding device and encoding method leverage a generative model to synthesize facial moving images by combining reference and background information, addressing the limitations of existing video coding technologies in facial reconstruction and synthesis, thereby improving efficiency and image quality while reducing processing and circuit size.

WO2024224970A1PCT designated stage expired Publication Date: 2024-10-31PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/013848
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-04-03
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Current video coding technologies face challenges in improving encoding efficiency, image quality, reducing processing amounts, and circuit size, particularly in handling facial reconstruction and synthesis in applications like video conferencing and entertainment, where existing methods struggle to effectively manage geometric attributes and background distortion.

Method used

A decoding device and encoding method that utilize a generative model to synthesize facial moving images by combining reference images with geometric and background information, allowing for efficient encoding and decoding of facial features while minimizing background distortion and processing overhead.

Benefits of technology

This approach enhances encoding efficiency, improves image quality, reduces processing requirements, and optimizes circuit size by effectively integrating facial reconstruction and synthesis, enabling faster processing speeds and more efficient data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024013848_31102024_PF_FP_ABST
    Figure JP2024013848_31102024_PF_FP_ABST
Patent Text Reader

Abstract

A decoding device (200) is provided with: a memory (252); and a circuit (251) connected to the memory (252). In operation, the circuit (251) decodes the following items of information from one or more streams: (i) a reference image including a face; (ii) geometric information corresponding to each of a plurality of frames of a captured moving image obtained by a camera and indicating a geometric attribute of a subject; and (iii) background information relating to a background image (S401). Furthermore, by using a generation model, the circuit (251) generates a composite face moving image, which is a moving image including the face and having the background image combined therewith, from the reference image, the geometric information, and the background information (S402).
Need to check novelty before this filing date? Find Prior Art

Description

Decoding device, encoding device, bitstream generation device, decoding method, and encoding method

[0001] The present disclosure relates to a decoding device and the like.

[0002] Video coding technology has progressed from H.261 and MPEG-1 to H.264 / AVC (Advanced Video Coding), MPEG-LA, H.265 / HEVC (High Efficiency Video Coding), and H.266 / VVC (Versatile Video Codec). With this progress, there is a constant need to provide improvements and optimizations in video coding technology to handle the ever-increasing amount of digital video data in various applications. This disclosure relates to further advances, improvements, and optimizations in video coding.

[0003] Non-Patent Document 1 relates to an example of a conventional standard related to the above-mentioned video coding technology, and Non-Patent Document 2 relates to a new proposal related to the above-mentioned video coding technology.

[0004] H. 265 (ISO / IEC 23008-2 HEVC) / HEVC (High Efficiency Video Coding) “AHG9 / AHG16: Common text for proposed generative face video SEI message”, JVET-AG0203-v1

[0005] With regard to the above-mentioned encoding methods, it is desirable to propose new methods to improve encoding efficiency, improve image quality, reduce the amount of processing, reduce the circuit scale, or appropriately select elements or operations such as filters, block sizes, motion vectors, reference pictures or reference blocks.

[0006] The present disclosure provides a configuration or method that can contribute to one or more of, for example, improved coding efficiency, improved image quality, reduced processing amount, reduced circuit size, improved processing speed, and appropriate selection of elements or operations, etc. Note that the present disclosure may include a configuration or method that can contribute to benefits other than those described above.

[0007] For example, a decoding device according to one aspect of the present disclosure includes a memory and a circuit connected to the memory, and the circuit, in operation, decodes (i) a reference image, which is an image including a face, (ii) geometric information corresponding to each of a plurality of frames of a moving image captured by a camera and indicating geometric attributes of a subject, and (iii) background information related to a background image, from one or more streams, and generates a composite face moving image, which is a moving image including the face and into which the background image is synthesized, from the reference image, the geometric information, and the background information using a generative model.

[0008] Each embodiment of the present disclosure, or a partial configuration or method thereof, enables at least one of, for example, improved coding efficiency, improved image quality, reduced encoding / decoding processing volume, reduced circuit size, or improved encoding / decoding processing speed. Alternatively, each embodiment of the present disclosure, or a partial configuration or method thereof, enables appropriate selection of components / operations such as filters, block sizes, motion vectors, reference pictures, and reference blocks in encoding and decoding. Note that the present disclosure also includes disclosure of configurations or methods that may provide benefits other than those described above. For example, a configuration or method that improves coding efficiency while suppressing an increase in processing volume.

[0009] Further advantages and benefits of certain aspects of the present disclosure will become apparent from the specification and drawings. While such advantages and / or benefits may be obtained by several embodiments and features described in the specification and drawings, not all of them necessarily need to be provided to obtain one or more advantages and / or benefits.

[0010] These general or specific aspects may be realized by a system, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium.

[0011] A configuration or method according to an aspect of the present disclosure may contribute to, for example, one or more of improved coding efficiency, improved image quality, reduced processing amount, reduced circuit size, improved processing speed, and appropriate selection of elements or operations, etc. Note that a configuration or method according to an aspect of the present disclosure may also contribute to benefits other than those described above.

[0012] FIG. 1 is a block diagram showing the configuration of an encoding / decoding system in a reference example. FIG. 2 is a block diagram showing the configuration of an encoding device in a reference example. FIG. 3 is a block diagram showing the configuration of a decoding device in a reference example. FIG. 4 is a conceptual diagram showing an example of a reference image. FIG. 5 is a conceptual diagram showing an example of geometric attributes. FIG. 6 is a conceptual diagram showing an example of a facial moving image. FIG. 7 is a block diagram showing an example of the configuration of an encoding / decoding system in an embodiment. FIG. 8 is a diagram showing an example of a hierarchical structure of data in a stream. FIG. 9 is a block diagram showing an example of the configuration of an encoding device in an embodiment. FIG. 10 is a flowchart showing an example of the operation of an encoding device in an embodiment. FIG. 11 is a block diagram showing an example of the configuration of a decoding device in an embodiment. FIG. 12 is a flowchart showing an example of the operation of a decoding device in an embodiment. FIG. 13 is a conceptual diagram showing an example of a decoding process in each time instance. FIG. 14 is a conceptual diagram showing another example of a decoding process in each time instance. FIG. 15 is a block diagram showing another example of the configuration of a decoding device in an embodiment. FIG. 16 is a block diagram showing yet another example of the configuration of a decoding device in an embodiment. FIG. 17 is a block diagram showing another example of the configuration of an encoding device in an embodiment. FIG. 18 is a block diagram showing yet another example of the configuration of a decoding device in an embodiment.

[0046] Fig. 19 is a block diagram showing yet another example configuration of a decoding device in an embodiment. Fig. 20 is a block diagram showing an example configuration for an encoding device in an embodiment to encode moving images. Fig. 21 is a block diagram showing an example configuration for a decoding device in an embodiment to decode moving images. Fig. 22 is a conceptual diagram showing an example configuration of a bitstream. Fig. 23 is a conceptual diagram showing another example configuration of a bitstream. Fig. 24 is a conceptual diagram showing yet another example configuration of a bitstream. Fig. 25 is a conceptual diagram showing yet another example configuration of a bitstream. Fig. 26 is a conceptual diagram showing yet another example configuration of a bitstream. Fig. 27 is a conceptual diagram showing an example configuration of a bitstream compliant with VVC. Fig. 28 is a conceptual diagram showing another example configuration of a bitstream compliant with VVC. Fig. 29 is a conceptual diagram showing yet another example configuration of a bitstream compliant with VVC.FIG. 30 is a diagram showing examples of various neural networks that can be used as generative models. FIG. 31 is a block diagram showing an implementation example of an encoding device in an embodiment. FIG. 32 is a flowchart showing a first basic operation example of an encoding device in an embodiment. FIG. 33 is a flowchart showing a second basic operation example of an encoding device in an embodiment. FIG. 34 is a block diagram showing an implementation example of a bitstream generating device in an embodiment. FIG. 35 is a flowchart showing a first basic operation example of a bitstream generating device in an embodiment. FIG. 36 is a flowchart showing a second basic operation example of a bitstream generating device in an embodiment. FIG. 37 is a block diagram showing an implementation example of a decoding device in an embodiment. FIG. 38 is a flowchart showing a first basic operation example of a decoding device in an embodiment. FIG. 39 is a flowchart showing a second basic operation example of a decoding device in an embodiment. FIG. 40 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. FIG. 41 is a diagram showing an example of a display screen of a web page. FIG. 42 is a diagram showing an example of a display screen of a web page. FIG. 43 is a diagram showing an example of a smartphone. FIG. 44 is a block diagram showing an example of the configuration of a smartphone.

[0013] Introduction Facial reconstruction is the process of mapping a person's expression and pose to a facial image while preserving the person's identity. Currently, facial reconstruction is used in a wide range of applications, including video conferencing, the entertainment industry, and social media. The present disclosure can be used in encoding data related to facial reconstruction.

[0014] 1 is a block diagram showing the configuration of an encoding / decoding system according to a reference example. For example, the encoding / decoding system includes an encoding device 700 and a decoding device 800. First, the encoding device 700 receives a reference image and a driving video and generates a bitstream. Next, the encoding device 700 transmits the bitstream to the decoding device 800 using a transmission channel. Finally, the decoding device 800 reconstructs a facial video from the received bitstream.

[0015] For example, the reference image is an image including a face and may also be referred to as a face image or an identity image. The reference image represents static visual features for reconstructing a face video. The driving video is a video including a face and is captured by a camera. The driving video serves to impart motion to the reference image.

[0016] 2 is a block diagram showing the configuration of an encoding device 700 according to a reference example. In this example, the encoding device 700 includes a compressor 731, a deriver 732, and a compressor 733.

[0017] Compressor 731 encodes at least one reference image using video compression techniques, which may be a frame from a driving video sequence, a pre-captured image containing a person's face, or an avatar.

[0018] The deriver 732 derives geometric information indicating geometric attributes corresponding to each frame of the driving video. The geometric information indicating the geometric attributes is also simply referred to as geometric attributes. Here, the geometric attributes correspond to, for example, dynamic attributes and may be represented by a point cloud such as facial landmarks, or may be represented by a polygon model for representing the shape of an object by combining multiple polygons. The geometric attributes may also be represented by other geometric models. The geometric attributes may also be represented by the positions of facial features.

[0019] Compressor 733 compresses the geometric attributes into a bitstream using methods such as entropy coding. Compressor 731 and compressor 733 may be the same component or different components.

[0020] Finally, the bitstream is transmitted via a transmission channel to the decoding device 800. For example, the compressed geometric attributes are transmitted from the encoding device 700 to the decoding device 800 for each frame of the driving video, i.e., for each time instance.

[0021] 3 is a block diagram showing the configuration of a decoding device 800 according to a reference example. In this example, the decoding device 800 includes a decompressor 831, a deriving device 832, a decompressor 833, and a generator 834.

[0022] The decompressor 831 decodes and reconstructs at least one reference image from the bitstream. The decompressor 831 then provides the reference image to the deriver 832. The deriver 832 derives reference attributes from the reference image. Here, the reference attributes are static visual attributes, which can also be expressed as identities. The decompressor 833 decodes and reconstructs geometric attributes for each frame.

[0023] The generator 834 generates the facial animation from the reference attributes and the geometric attributes using a neural network. The generator 834 may also render the facial animation using the reference image itself instead of or in addition to the reference attributes.

[0024] 4 is a conceptual diagram showing an example of a reference image. As in this example, the reference image is an image that includes a face.

[0025] 5 is a conceptual diagram showing an example of a geometric attribute. In this example, the geometric attribute is a facial landmark. For example, the geometric attribute is derived for each frame of a captured video.

[0026] 6 is a conceptual diagram showing an example of a facial motion image. As shown in this example, the facial motion image is a motion image including a face. In the facial motion image, for each of a plurality of frames, the geometric attributes of the frame are reflected in the reference image. This provides movement to the reference image.

[0027] The amount of information for the multiple geometric attributes corresponding to the reference image and multiple frames is smaller than the amount of information for the multiple frames included in the captured video. Therefore, by encoding the multiple geometric attributes corresponding to the reference image and multiple frames, the amount of code is reduced compared to encoding the multiple frames included in the captured video. Furthermore, each geometric attribute imparts movement to the reference image. This imparts movement to the face of the display target, enabling richer expression.

[0028] However, movement of the face in the reference image may distort the background area in the reference image. For example, a shift in the position of the face from Figure 4 to Figure 6 may cause the background to expand or shrink or become missing. This may result in a degradation of image quality.

[0029] Therefore, the decoding device of Example 1 includes a memory and a circuit connected to the memory, and in operation, the circuit decodes (i) a reference image, which is an image including a face, (ii) geometric information corresponding to each of a plurality of frames of a video captured by a camera and indicating geometric attributes of a subject, and (iii) background information related to a background image from one or more streams, and generates a composite face video, which is a video including the face and into which the background image is synthesized, from the reference image, the geometric information, and the background information using a generative model.

[0030] This may make it possible to apply the reference image, geometric attributes, and background image to generate a composite facial moving image. Therefore, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to suppress deterioration in image quality when generating a composite facial moving image.

[0031] Furthermore, the decoding device of Example 2 may be the decoding device of Example 1, in which the circuit inputs the reference image, the geometric information, and the background image into the generative model, and obtains the synthetic facial moving image from the generative model.

[0032] This may make it possible to easily obtain a synthetic facial motion image from the generative model. Furthermore, in the generative model, it may be possible to apply the reference image, geometric attributes, and background image to generate a synthetic facial motion image. Therefore, it may be possible to give movement to the face in the reference image by the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image by the background image.

[0033] Furthermore, the decoding device of Example 3 may be the decoding device of Example 1, wherein the circuit inputs the reference image and the geometric information into the generative model, obtains an intermediate facial moving image from the generative model, which is a moving image including the face and into which the background image is not synthesized, and generates the synthesized facial moving image by embedding a corresponding area in the background image in a background area in the intermediate facial moving image.

[0034] This may make it possible to obtain, from the generative model, an intermediate facial motion image in which the face in the reference image is given movement by the geometric attributes corresponding to each frame. It may also be possible to apply a background image to the intermediate facial motion image. Therefore, it may be possible to suppress distortion of the background of the reference image by the background image while giving movement to the face in the reference image by the geometric attributes corresponding to each frame.

[0035] Furthermore, the decoding device of Example 4 may be the decoding device of Example 3, in which the circuit performs a segmentation process on the intermediate facial moving image to obtain intermediate facial moving image segmentation information indicating the foreground region and the background region in the intermediate facial moving image, and identifies the background region in the intermediate facial moving image using the intermediate facial moving image segmentation information.

[0036] This may enable the background region in the intermediate facial video to be appropriately identified in accordance with the intermediate facial video segmentation information obtained as a result of the segmentation process on the intermediate facial video, and therefore the corresponding region in the background image to be appropriately applied to the background region in the intermediate facial video.

[0037] Furthermore, the decoding device of Example 5 may be the decoding device of Example 3, wherein the circuit decodes captured video segmentation information indicating foreground and background regions in the captured video from the one or more streams, and identifies the background region in the intermediate facial video using the captured video segmentation information.

[0038] This may enable the background regions in the intermediate facial video to be properly identified according to the captured video segmentation information obtained from one or more streams, and thus the corresponding regions in the background image to be properly applied to the background regions in the intermediate facial video.

[0039] The decoding device of Example 6 may be the decoding device of Example 3, in which a specified background color code is embedded in the background region of the reference image.

[0040] This may enable efficient identification of background areas in the reference image according to a specified background color code, and may also enable suppression of distortions in the background of the reference image even when a face in the reference image is moved.

[0041] Furthermore, the decoding device of Example 7 may be the decoding device of Example 6, in which the circuit identifies an area in the intermediate facial moving image that has the specified background color code as the background area in the intermediate facial moving image.

[0042] This may enable efficient identification of a background region in an intermediate facial video image according to a specified background color code. Specifically, it is assumed that the specified background color code is embedded in the background region in an intermediate facial video image obtained by applying movement to a face in a reference image having a background region in which the specified background color code is embedded. Therefore, it may enable efficient identification of a background region in an intermediate facial video image according to the specified background color code.

[0043] Furthermore, the decoding device of Example 8 may be the decoding device of Example 6 or 7, in which the circuitry decodes background color code information indicating the specified background color code from the one or more streams.

[0044] This may allow for efficient identification of background regions in the reference image according to a predetermined background color code obtained from one or more streams, and may allow for the predetermined background color code to vary depending on the reference image.

[0045] Furthermore, the decoding device of Example 9 may be the decoding device of Example 8, in which the background color code information indicates a range including a plurality of consecutive values ​​as the specified background color code, and the specified background color code is specified within the range indicated by the background color code information.

[0046] This may allow for flexible definition of a predetermined background color code, and may allow for flexible application of a predetermined background color code to a background region.

[0047] Furthermore, the decoding device of Example 10 may be any of the decoding devices of Examples 6 to 9, in which the specified background color code is specified by a color code whose occurrence frequency in the foreground region of the reference image is below a threshold.

[0048] This may prevent a part of the foreground region from being mistakenly identified as a part of the background region, and therefore may enable the background region to be properly identified.

[0049] Also, the decoding device of Example 11 may be the decoding device of Example 3, in which the circuitry decodes reference image segmentation information indicating foreground and background regions in the reference image from the one or more streams, and embeds a specified background color code in the background region in the reference image using the reference image segmentation information.

[0050] This may enable efficient identification of background regions in the reference image according to the reference image segmentation information obtained from one or more streams, and may also enable suppression of distortion of the background of the reference image even when a face in the reference image moves, since a predetermined background color code is embedded in the background region in the reference image.

[0051] Furthermore, the decoding device of Example 12 may be any of the decoding devices of Examples 1 to 11, in which the background image is an image prepared independently of the reference image and the captured video image.

[0052] This may allow a background image prepared separately from the reference image and the captured video to be applied to the composite facial video, thereby reducing the influence of the foreground area in the background image.

[0053] Furthermore, the decoding device of Example 13 may be any of the decoding devices of Examples 1 to 11, in which the circuit decodes an identifier of the background image as the background information, and uses the identifier to select the background image from among a plurality of candidate background images.

[0054] This may enable flexible selection of a background image from among a plurality of background image candidates, and therefore may enable application of an appropriate background image to a composite facial moving image depending on the intended use of the composite facial moving image.

[0055] Furthermore, the decoding device of Example 14 may be any of the decoding devices of Examples 1 to 11, in which the background image is an image included in the captured video or an image synthesized from multiple images included in the captured video.

[0056] This may allow a background image obtained from the captured video to be applied to the composite facial video, and therefore a background image corresponding to the shooting conditions may be applied to the composite facial video.

[0057] Furthermore, the decoding device of Example 15 may be any of the decoding devices of Examples 1 to 11, in which the circuit decodes the reference image as the background information, and the reference image is applied to the background image.

[0058] This may allow the reference image to be used as a background image, and may reduce distortion of the background of the reference image by using the original reference image as the background image while providing movement to the face in the reference image using the geometric attributes corresponding to each frame.

[0059] Furthermore, the decoding device of Example 16 may be the decoding device of Example 14 or 15, wherein, when the background image includes a foreground area, the circuit interpolates a missing background area in the background image using a peripheral area of ​​the foreground area in the background image or a background area in a past synthetic facial moving image.

[0060] This may make it possible to appropriately interpolate missing areas in the background image even if the background image includes a foreground area, thereby making it possible to suppress missing areas in the background image in a composite facial moving image.

[0061] Furthermore, the decoding device of Example 17 may be the decoding device of Example 16, in which the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating the foreground region and the background region in the background image, and identifies the foreground region and the background region in the background image using the background image segmentation information.

[0062] This may allow for the foreground and background regions in the background image to be properly identified according to the background image segmentation information obtained as a result of the segmentation process on the background image, and therefore may allow for the missing background regions in the background image to be properly interpolated.

[0063] Furthermore, the decoding device of Example 18 may be the decoding device of Example 16, in which a specified foreground color code is embedded in the foreground region in the background image.

[0064] This may enable efficient identification of foreground areas in a background image according to a specified foreground color code, and may also enable prevention of foreground objects such as faces from appearing in background areas of a composite facial motion image.

[0065] Also, the decoding device of Example 19 may be the decoding device of Example 18, wherein the circuitry decodes foreground color code information indicating the specified foreground color code from the one or more streams, and identifies an area in the background image that has the specified foreground color code as the foreground area in the background image.

[0066] This may allow for foreground regions in a background image to be efficiently identified according to a predetermined foreground color code obtained from one or more streams, and may allow the predetermined foreground color code to vary depending on the background image.

[0067] Furthermore, the decoding device of Example 20 may be the decoding device of Example 19, in which the foreground color code information indicates a range including a plurality of consecutive values ​​as the specified foreground color code, and the specified foreground color code is specified within the range indicated by the foreground color code information.

[0068] This may allow for flexibility in defining a predetermined foreground color code, and may allow for flexibility in applying a predetermined foreground color code to a foreground region.

[0069] Furthermore, the decoding device of Example 21 may be any of the decoding devices of Examples 18 to 20, in which the specified foreground color code is specified by a color code whose occurrence frequency in the background region of the background image is equal to or less than a threshold value.

[0070] This may make it possible to prevent a portion of the background region from being mistakenly identified as a portion of the foreground region, and therefore may make it possible to properly identify the foreground region.

[0071] Furthermore, the decoding device of Example 22 may be any of the decoding devices of Examples 1 to 21, wherein, in the one or more streams, the stream in which the background information is decoded is the same as the stream in which the reference image is decoded or the stream in which the geometric information is decoded.

[0072] This may allow the background information to be decoded from the same stream as the reference image stream or the geometric information stream, rather than from a separate stream, and thus may allow the background information to be efficiently decoded together with the reference image or the geometric information.

[0073] Furthermore, the decoding device of Example 23 may be any of the decoding devices of Examples 1 to 14, wherein, in the one or more streams, the stream in which the background information is decoded is different from the stream in which the reference image is decoded and the stream in which the geometric information is decoded.

[0074] This may allow the background information to be decoded from a stream separate from the reference image stream and the geometric information stream, rather than from the same stream, and therefore may allow the background information to be decoded at any time, separately from the reference image or the geometric information.

[0075] Furthermore, the decoding device of Example 24 may be any one of the decoding devices of Examples 1 to 22, in which the background image is decoded as the first picture of a sequence including a plurality of pictures or the first picture of a GOP (Group Of Pictures).

[0076] This may enable the background image to be acquired early, and therefore the background image may be applied to the synthetic face moving image early.

[0077] Furthermore, the decoding device of Example 25 may be the decoding device of any one of Examples 1 to 14, in which the background image is decoded as a picture from an access unit in the one or more streams.

[0078] This may allow the background image to be treated as a picture within an access unit, i.e., it may be possible to treat the background image in the same way as a normal picture.

[0079] Furthermore, the decoding device of Example 26 may be the decoding device of Example 25, in which the access unit in which the background image is decoded is the same as the access unit in which the reference image is decoded.

[0080] This may allow the background image to be decoded from the same access unit as the reference image, rather than from a separate access unit, and thus may allow the background image to be efficiently decoded together with the reference image.

[0081] Furthermore, the decoding device of Example 27 may be the decoding device of Example 25, in which the access unit in which the background image is decoded is different from the access unit in which the reference image is decoded.

[0082] This may allow the background image to be decoded from an access unit separate from the access unit of the reference image, rather than from the same access unit, and therefore may allow the background image to be decoded at any time, separately from the reference image.

[0083] Furthermore, the decoding device of Example 28 may be any of the decoding devices of Examples 25 to 27, in which a signal indicating that the background image is present in the access unit is decoded from SEI (Supplemental Enhancement Information) associated with the access unit including the background image.

[0084] This may enable the presence of a background image in an access unit to be recognized according to a signal obtained from the SEI in the access unit, and thus may enable the appropriate transmission of the background image.

[0085] Furthermore, the decoding device of Example 29 may be the decoding device of any one of Examples 1 to 14 and 25 to 28, in which the background image is decoded as a picture from an access unit in the one or more streams, and a signal indicating the presence of the background image in the access unit is decoded from SEI (Supplemental Enhancement Information) associated with the access unit including the background image.

[0086] This may allow the background image to be treated as a picture within the access unit, i.e., the background image may be treated in the same way as a normal picture. This may also allow the presence of a background image in an access unit to be recognized according to a signal derived from the SEI in the access unit, and thus may allow the background image to be properly conveyed.

[0087] Furthermore, the decoding device of Example 30 may be the decoding device of any one of Examples 1 to 29, in which the background image is decoded as an intra picture.

[0088] This may allow the background image to be treated as an intra-picture, i.e., it may be possible to process the background image without relying on other pictures.

[0089] Furthermore, the decoding device of Example 31 may be any of the decoding devices of Examples 1 to 30, in which the background image is commonly applied to multiple frames of the composite facial moving image.

[0090] This may make it possible to reduce the overall code amount of the composite face moving image, and may also make it possible to reduce the amount of processing required to decode the background image.

[0091] Also, the decoding device of Example 32 may be the decoding device of Example 8, in which the circuitry decodes the background color code information from supplemental enhancement information (SEI) in the one or more streams.

[0092] This may allow for efficient identification of background regions in the reference image according to a predetermined background color code obtained from the SEI, and may allow for the predetermined background color code to vary depending on the reference image.

[0093] Also, the decoding device of Example 33 may be the decoding device of Example 19, in which the circuitry decodes the foreground color code information from Supplemental Enhancement Information (SEI) in the one or more streams.

[0094] This may allow for efficient identification of foreground regions in the background image according to a defined foreground color code obtained from the SEI, and may allow for the defined foreground color code to vary depending on the background image.

[0095] Furthermore, the decoding device of Example 34 may be the decoding device of any one of Examples 1 to 33, in which the circuit decodes at least one of background color code information indicating a specified background color code and foreground color code information indicating a specified foreground color code from SEI (Supplemental Enhancement Information) in the one or more streams.

[0096] This may allow for efficient identification of background regions according to a defined background color code obtained from the SEI.

[0097] Moreover, the decoding device of Example 35 may be the decoding device of Example 5, in which the circuitry decodes the captured video segmentation information from supplemental enhancement information (SEI) in the one or more streams.

[0098] This may enable the background region in the intermediate facial video to be appropriately identified in accordance with the captured video segmentation information obtained from the SEI, and therefore the corresponding region in the background image to be appropriately applied to the background region in the intermediate facial video.

[0099] Moreover, the decoding device of Example 36 may be the decoding device of Example 11, in which the circuitry decodes the reference image segmentation information from supplemental enhancement information (SEI) in the one or more streams.

[0100] This may enable efficiently identifying background regions in the reference image according to the reference image segmentation information obtained from the SEI, and may enable appropriately embedding a specified background color code in the background regions in the reference image.

[0101] Furthermore, the decoding device of Example 37 may be the decoding device of any one of Examples 1 to 36, in which the circuit decodes at least one of captured video segmentation information indicating foreground and background regions in the captured video and reference image segmentation information indicating foreground and background regions in the reference image from SEI (Supplemental Enhancement Information) in the one or more streams.

[0102] This may enable background regions to be efficiently identified according to segmentation information obtained from the SEI.

[0103] Furthermore, the decoding device of Example 38 may be a decoding device that includes a memory and a circuit connected to the memory, and in operation, decodes (i) a reference image that is an image including a face and (ii) geometric information that corresponds to each of multiple frames of a moving image captured by a camera and indicates geometric attributes of a subject from one or more streams, inputs the reference image and the geometric information into a generative model, obtains an intermediate facial moving image that is a moving image including the face from the generative model, and generates a synthetic facial moving image by embedding the corresponding area in the reference image in the background area of ​​the intermediate facial moving image.

[0104] This may make it possible to obtain an intermediate facial motion image from the generative model in which the face in the reference image is given movement by the geometric attributes corresponding to each frame. It may also be possible to apply the corresponding area of ​​the original reference image to the background area of ​​the intermediate facial motion image. Therefore, it may be possible to suppress distortion of the background of the reference image by using the original reference image while giving movement to the face in the reference image by the geometric attributes corresponding to each frame. This may make it possible to suppress degradation of image quality when generating a synthetic facial motion image.

[0105] Further, the encoding device of Example 39 includes a memory and a circuit connected to the memory, and in operation, the circuit encodes (i) a reference image, (ii) geometric information, and (iii) background information for generating a composite face video, which is a video including a face and into which a background image is synthesized, into one or more streams, the reference image being an image including the face, (ii) geometric information corresponding to each of a plurality of frames of a captured video obtained by a camera and indicating geometric attributes of a subject, and (iii) background information related to the background image.

[0106] This may make it possible to provide a reference image, geometric attributes, and background image for generating a composite facial motion image. Therefore, in generating a composite facial motion image, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to contribute to suppressing deterioration in image quality.

[0107] Furthermore, the encoding device of Example 40 may be the encoding device of Example 39, wherein the circuit performs a segmentation process on the captured video to obtain captured video segmentation information indicating foreground and background regions in the captured video, and encodes the captured video segmentation information into the one or more streams.

[0108] This may enable provision of captured video segmentation information via one or more streams for identifying foreground and background regions in video of the same type as the captured video, thereby contributing to identifying foreground and background regions in intermediate facial videos in which the faces in the reference image are animated by geometric attributes corresponding to each frame.

[0109] Furthermore, the encoding device of Example 41 may be the encoding device of Example 39, in which the circuit performs a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image, embeds a specified background color code in the background region in the reference image using the reference image segmentation information, and encodes the reference image with the specified background color code embedded in the background region.

[0110] This may allow the background region in the reference image to be appropriately identified according to the reference image segmentation information obtained as a result of the segmentation process on the reference image. Also, since a specified background color code is embedded in the background region in the reference image, it may be possible to suppress distortion occurring in the background of the reference image even if a face in the reference image moves.

[0111] Also, the encoding device of Example 42 may be the encoding device of Example 41, wherein the circuit encodes background color code information indicating the specified background color code into the one or more streams.

[0112] This may allow for providing a predetermined background color code via one or more streams to efficiently identify background regions in a reference image, and may allow for the predetermined background color code to vary depending on the reference image.

[0113] Furthermore, the encoding device of Example 43 may be the encoding device of Example 42, in which the background color code information indicates a range including a plurality of consecutive values ​​as the specified background color code, and the specified background color code is specified within the range indicated by the background color code information.

[0114] This may allow for flexible definition of a predetermined background color code, and may allow for flexible application of a predetermined background color code to a background region.

[0115] Furthermore, the encoding device of Example 44 may be any of the encoding devices of Examples 41 to 43, in which the specified background color code is specified by a color code whose occurrence frequency in the foreground region of the reference image is equal to or less than a threshold value.

[0116] This may prevent a part of the foreground region from being mistakenly identified as a part of the background region, and therefore may enable the background region to be properly identified.

[0117] Moreover, the encoding device of Example 45 may be the encoding device of Example 39, wherein the circuitry performs a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image, and encodes the reference image segmentation information into the one or more streams.

[0118] This may enable providing, via one or more streams, reference image segmentation information for identifying foreground and background regions in the reference image, and thus contributing to identifying background regions in the reference image.

[0119] Furthermore, the encoding device of Example 46 may be any of the encoding devices of Examples 39 to 45, in which the background image is an image prepared independently of the reference image and the captured video image.

[0120] This may allow a background image prepared separately from the reference image and the captured video to be applied to the composite facial video, thereby reducing the influence of the foreground area in the background image.

[0121] Furthermore, the encoding device of Example 47 may be any of the encoding devices of Examples 39 to 45, in which the circuit selects the background image from a plurality of background image candidates and encodes an identifier of the background image as the background information.

[0122] This may enable flexible selection of a background image from among a plurality of background image candidates, and therefore may enable application of an appropriate background image to a composite facial moving image depending on the intended use of the composite facial moving image.

[0123] Furthermore, the encoding device of Example 48 may be any of the encoding devices of Examples 39 to 45, in which the background image is an image included in the captured video or an image synthesized from multiple images included in the captured video.

[0124] This may allow a background image obtained from the captured video to be applied to the composite facial video, and therefore a background image corresponding to the shooting conditions may be applied to the composite facial video.

[0125] Furthermore, the encoding device of Example 49 may be any of the encoding devices of Examples 39 to 45, in which the circuit encodes the reference image as the background information, and the reference image is applied to the background image.

[0126] This may allow the reference image to be used as a background image, and may reduce distortion of the background of the reference image by using the original reference image as the background image while providing movement to the face in the reference image using the geometric attributes corresponding to each frame.

[0127] Furthermore, the encoding device of Example 50 may be the encoding device of Example 48, wherein, when the background image includes a foreground area, the circuit interpolates the missing background area in the background image using a peripheral area of ​​the foreground area in the background image or a background area in another image included in the captured video.

[0128] This may make it possible to appropriately interpolate missing areas in the background image even if the background image includes a foreground area, thereby making it possible to suppress missing areas in the background image in a composite facial moving image.

[0129] Furthermore, the encoding device of Example 51 may be the encoding device of Example 50, wherein the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating the foreground region and the background region in the background image, and identifies the foreground region and the background region in the background image using the background image segmentation information.

[0130] This may allow for the foreground and background regions in the background image to be properly identified according to the background image segmentation information obtained as a result of the segmentation process on the background image, and therefore may allow for the missing background regions in the background image to be properly interpolated.

[0131] Furthermore, the encoding device of Example 52 may be the encoding device of Example 48, in which the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating foreground and background regions in the background image, and uses the background image segmentation information to embed a specified foreground color code in the foreground region in the background image.

[0132] This may enable efficient identification of foreground areas in a background image according to a specified foreground color code, and may also enable prevention of foreground objects such as faces from appearing in background areas of a composite facial motion image.

[0133] Also, the encoding device of Example 53 may be the encoding device of Example 52, wherein the circuit encodes foreground color code information indicating the specified foreground color code into the one or more streams.

[0134] This may allow for providing, via one or more streams, a defined foreground color code for efficiently identifying foreground regions in a background image, and may allow for the defined foreground color code to vary depending on the background image.

[0135] Furthermore, the encoding device of Example 54 may be the encoding device of Example 53, in which the foreground color code information indicates a range including a plurality of consecutive values ​​as the specified foreground color code, and the specified foreground color code is specified within the range indicated by the foreground color code information.

[0136] This may allow for flexibility in defining a predetermined foreground color code, and may allow for flexibility in applying a predetermined foreground color code to a foreground region.

[0137] Furthermore, the encoding device of Example 55 may be any of the encoding devices of Examples 52 to 54, in which the specified foreground color code is specified by a color code whose occurrence frequency in the background region of the background image is below a threshold.

[0138] This may make it possible to prevent a portion of the background region from being mistakenly identified as a portion of the foreground region, and therefore may make it possible to properly identify the foreground region.

[0139] Furthermore, the encoding device of Example 56 may be any of the encoding devices of Examples 39 to 55, wherein, in the one or more streams, the stream in which the background information is encoded is the same as the stream in which the reference image is encoded or the stream in which the geometric information is encoded.

[0140] This may allow the background information to be coded in the same stream as the reference image stream or the geometric information stream, rather than in a separate stream, and thus may allow the background information to be coded efficiently together with the reference image or the geometric information.

[0141] Furthermore, the encoding device of Example 57 may be any of the encoding devices of Examples 39 to 48, wherein, in the one or more streams, the stream in which the background information is encoded is different from the stream in which the reference image is encoded and the stream in which the geometric information is encoded.

[0142] This may allow the background information to be coded from a stream separate from the reference image stream and the geometric information stream, rather than from the same stream, and therefore may allow the background information to be coded at any time, separately from the reference image or geometric information.

[0143] Furthermore, the encoding device of Example 58 may be any of the encoding devices of Examples 39 to 56, in which the background image is encoded as the first picture of a sequence including a plurality of pictures or the first picture of a GOP (Group Of Pictures).

[0144] This may enable the background image to be provided early, and therefore the background image may be applied to the synthetic face moving image early.

[0145] Furthermore, the encoding device of Example 59 may be any of the encoding devices of Examples 39 to 48, in which the background image is encoded as a picture in an access unit in the one or more streams.

[0146] This may allow the background image to be treated as a picture within an access unit, i.e., it may be possible to treat the background image in the same way as a normal picture.

[0147] Also, the encoding device of Example 60 may be the encoding device of Example 59, in which the access unit in which the background image is encoded is the same as the access unit in which the reference image is encoded.

[0148] This may allow the background image to be coded in the same access unit as the reference image rather than in a separate access unit, thus allowing the background image to be coded efficiently together with the reference image.

[0149] Also, the encoding device of Example 61 may be the encoding device of Example 59, in which the access unit in which the background image is encoded is different from the access unit in which the reference image is encoded.

[0150] This may allow the background image to be coded in a separate access unit from the reference image, rather than in the same access unit, and therefore may allow the background image to be coded at any time, separately from the reference image.

[0151] Furthermore, the encoding device of Example 62 may be any of the encoding devices of Examples 59 to 61, in which a signal indicating that the background image is present in the access unit is encoded into SEI (Supplemental Enhancement Information) associated with the access unit in which the background image is encoded.

[0152] This may allow the signaling of the SEI in the access unit to signal the presence of a background image in the access unit, and therefore may allow proper conveyance of the background image.

[0153] Furthermore, the encoding device of Example 63 may be any of the encoding devices of Examples 39 to 48 and 59 to 62, in which the background image is encoded as a picture in an access unit in the one or more streams, and a signal indicating the presence of the background image in the access unit is encoded in an SEI (Supplemental Enhancement Information) associated with the access unit in which the background image is encoded.

[0154] This may allow the background image to be treated as a picture within the access unit, i.e., the background image may be treated like a normal picture. This may also allow the presence of a background image in the access unit to be signaled by SEI in the access unit, and thus may allow proper conveyance of the background image.

[0155] Furthermore, the encoding device of Example 64 may be the encoding device of any one of Examples 39 to 63, in which the background image is encoded as an intra picture.

[0156] This may allow the background image to be treated as an intra-picture, i.e., it may be possible to process the background image without relying on other pictures.

[0157] Also, the encoding device of Example 65 may be the encoding device of Example 42, wherein the circuitry encodes the background color code information into SEI (Supplemental Enhancement Information) in the one or more streams.

[0158] This may allow for providing a predetermined background color code via the SEI to efficiently identify background regions in the reference image, and may allow for the predetermined background color code to vary depending on the reference image.

[0159] Also, the encoding device of Example 66 may be the encoding device of Example 53, wherein the circuitry encodes the foreground color code information into SEI (Supplemental Enhancement Information) in the one or more streams.

[0160] This may allow for providing a defined foreground color code via the SEI to efficiently identify foreground regions in a background image, and may allow for the defined foreground color code to vary depending on the background image.

[0161] Furthermore, the encoding device of Example 67 may be the encoding device of any of Examples 39 to 66, wherein the circuitry encodes at least one of background color code information indicating a specified background color code and foreground color code information indicating a specified foreground color code into SEI (Supplemental Enhancement Information) in the one or more streams.

[0162] This may allow for providing a defined foreground color code via SEI to efficiently identify foreground regions.

[0163] Also, the encoding device of Example 68 may be the encoding device of Example 40, wherein the circuitry encodes the captured video segmentation information into SEI (Supplemental Enhancement Information) in the one or more streams.

[0164] This may enable providing, via the SEI, captured video segmentation information for identifying foreground and background regions in video of the same type as the captured video, thereby contributing to identifying foreground and background regions in an intermediate face video in which the face in the reference image is animated by geometric attributes corresponding to each frame.

[0165] Also, the encoding device of Example 69 may be the encoding device of Example 45, wherein the circuitry encodes the reference image segmentation information into SEI (Supplemental Enhancement Information) in the one or more streams.

[0166] This may allow providing reference image segmentation information via the SEI for identifying foreground and background regions in the reference image, and thus contributing to identifying background regions in the reference image.

[0167] Furthermore, the encoding device of Example 70 may be the encoding device of any one of Examples 39 to 69, in which the circuit encodes at least one of captured video segmentation information indicating foreground and background regions in the captured video and reference image segmentation information indicating foreground and background regions in the reference image into SEI (Supplemental Enhancement Information) in the one or more streams.

[0168] This may allow for providing segmentation information via the SEI to identify foreground and background regions.

[0169] Moreover, the encoding device of Example 71 includes a memory and a circuit connected to the memory, and in operation, the circuit encodes (i) a reference image and (ii) geometric information for generating a composite facial moving image, wherein (i) the reference image is an image including a face, and (ii) geometric information corresponding to each of a plurality of frames of a captured moving image obtained by a camera and indicating geometric attributes of the subject, into one or more streams, and in generating the composite facial moving image, the reference image and the geometric information are used to input the reference image and the geometric information into a generative model and obtain an intermediate facial moving image, which is a moving image including the face, from the generative model, and the reference image is further used to generate the composite facial moving image by embedding a corresponding area in the reference image in a background area in the intermediate facial moving image.

[0170] This may make it possible to provide a reference image and geometric attributes for generating a composite facial motion image. Furthermore, in generating a composite facial motion image, it may be possible to provide movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the original reference image. Therefore, it may be possible to contribute to suppressing degradation of image quality.

[0171] Moreover, the bitstream generating device of Example 72 includes a memory and a circuit connected to the memory, and in operation, the circuit generates a bitstream including (i) a reference image, (ii) geometric information, and (iii) background information for generating a composite face moving image, which is a moving image including a face and into which a background image is synthesized, the bitstream including (i) the reference image, which is an image including the face, (ii) geometric information corresponding to each of a plurality of frames of a captured moving image obtained by a camera and indicating geometric attributes of the subject, and (iii) background information related to the background image.

[0172] This may make it possible to provide a reference image, geometric attributes, and background image for generating a composite facial motion image. Therefore, in generating a composite facial motion image, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to contribute to suppressing deterioration in image quality.

[0173] Furthermore, the decoding method of Example 73 is a decoding method that decodes (i) a reference image that is an image including a face, (ii) geometric information that corresponds to each of multiple frames of a moving image captured by a camera and indicates geometric attributes of a subject, and (iii) background information regarding a background image from one or more streams, and generates a composite face moving image that is a moving image including the face and into which the background image is synthesized from the reference image, the geometric information, and the background information using a generative model.

[0174] This may make it possible to apply the reference image, geometric attributes, and background image to generate a composite facial moving image. Therefore, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to suppress deterioration in image quality when generating a composite facial moving image.

[0175] Furthermore, the encoding method of Example 74 is an encoding method for generating a composite face moving image, which is a moving image including a face and into which a background image is synthesized, by encoding (i) a reference image, (ii) geometric information, and (iii) background information into one or more streams, (i) the reference image, which is an image including the face, (ii) geometric information corresponding to each of multiple frames of a captured moving image obtained by a camera and indicating geometric attributes of the subject, and (iii) background information related to the background image.

[0176] This may make it possible to provide a reference image, geometric attributes, and background image for generating a composite facial motion image. Therefore, in generating a composite facial motion image, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to contribute to suppressing deterioration in image quality.

[0177] Furthermore, these comprehensive or specific aspects may be realized as a system, an apparatus, a method, an integrated circuit, a computer program, or a non-transitory recording medium such as a computer-readable CD-ROM, or may be realized as any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a recording medium.

[0178] [Definition of Terms] As an example, each term may be defined as follows.

[0179] (1) Image: A unit of data made up of a set of pixels, consisting of pictures or blocks smaller than pictures, and includes both moving images and still images.

[0180] (2) Picture: A processing unit of an image composed of a set of pixels, and is sometimes called a frame or field.

[0181] (3) Block: A processing unit for a set containing a specific number of pixels, and can be named anything, as shown in the following examples. It can also be shaped anything, including, for example, a rectangle made up of M×N pixels, a square made up of M×M pixels, a triangle, a circle, or any other shape.

[0182] (Examples of blocks) Slice / tile / brick CTU / superblock / basic division unit VPDU / hardware processing division unit CU / processing block unit / prediction block unit (PU) / orthogonal transform block unit (TU) / unit Sub-block

[0183] (4) Pixel / Sample A pixel / sample is a minimum unit point that constitutes an image, and includes not only pixels at integer positions but also pixels at decimal positions generated based on pixels at integer positions.

[0184] (5) Pixel Value / Sample Value: A value inherent to a pixel, including not only brightness value, color difference value, and RGB gradation, but also depth value or binary values ​​of 0 and 1.

[0185] (6) Flags: In addition to one bit, flags may be multi-bit, for example, parameters or indexes of two or more bits. In addition, flags may be multi-valued using other bases as well as two values ​​using binary numbers.

[0186] (7) Signal: A signal that is symbolized or coded to transmit information, including discrete digital signals as well as analog signals that take continuous values.

[0187] (8) Stream / Bitstream: A digital data string or flow. A stream / bitstream may consist of a single stream or multiple streams divided into multiple layers. It also includes transmission by serial communication over a single transmission path as well as transmission by packet communication over multiple transmission paths.

[0188] (9) Difference / Difference In the case of scalar quantities, in addition to simple difference (x-y), it is sufficient to include difference calculations, including absolute value of difference (|x-y|), squared difference (x^2-y^2), square root of difference (√(x-y)), weighted difference (ax-by: a, b are constants), and offset difference (x-y+a: a is an offset).

[0189] (10) Sum In the case of a scalar quantity, in addition to simple sum (x + y), it is sufficient if a sum operation is included, including the absolute value of the sum (|x + y|), sum of squares (x^2 + y^2), square root of the sum (√(x + y)), weighted sum (ax + by: a, b are constants), and offset sum (x + y + a: a is an offset).

[0190] (11) Based on: This includes cases where factors other than the one being based on are taken into consideration. It also includes cases where a result is obtained directly or via an intermediate result.

[0191] (12) Using (used, using) This includes cases where elements other than the target of use are taken into account. It also includes cases where a result is obtained directly or via an intermediate result.

[0192] (13) Prohibit (forbid) This can be rephrased as not being allowed. Also, not prohibiting or being allowed does not necessarily mean obligation.

[0193] (14) Limit (restriction / restrict / restricted) This can be rephrased as not being permitted. Also, not prohibiting something or being permitted does not necessarily mean that it is an obligation. Furthermore, it is sufficient if something is partially prohibited in terms of quantity or quality, and it also includes cases where something is completely prohibited.

[0194] (15) Chroma: An adjective, denoted by the symbols Cb and Cr, that specifies that a sample array or a single sample represents one of two color difference signals associated with a primary color. Instead of the term chroma, the term chrominance can also be used.

[0195] (16) Luma: An adjective, denoted by the symbol or subscript Y or L, that specifies that a sample array or a single sample represents a monochrome signal associated with a primary color. Instead of the term luma, the term luminance may also be used.

[0196] [Description] In the drawings, the same reference numerals refer to the same or similar elements, and the sizes and relative positions of the elements in the drawings are not necessarily drawn to scale.

[0197] Hereinafter, embodiments will be described in detail with reference to the drawings. Note that the embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, the arrangement and connection of the components, steps, and the relationship and order of the steps shown in the following embodiments are merely examples and are not intended to limit the scope of the claims.

[0198] Below, embodiments of an encoding device and a decoding device will be described. The embodiments are examples of encoding devices and decoding devices to which the processes and / or configurations described in each aspect of the present disclosure can be applied. The processes and / or configurations can also be implemented in encoding devices and decoding devices different from the embodiments. For example, with regard to the processes and / or configurations applied to the embodiments, any of the following may be implemented.

[0199] (1) Any of the multiple components of the encoding device or decoding device of the embodiments described in each aspect of the present disclosure may be replaced or combined with other components described in any of the aspects of the present disclosure.

[0200] (2) In the encoding device or decoding device according to the embodiment, the functions or processes performed by some of the components of the encoding device or decoding device may be changed in any way, such as by adding, replacing, or deleting a function or process. For example, any function or process may be replaced with or combined with another function or process described in any of the aspects of the present disclosure.

[0201] (3) In the method implemented by the encoding device or decoding device according to the embodiment, some of the processes included in the method may be arbitrarily modified, such as by addition, replacement, deletion, etc. For example, any process in the method may be replaced with or combined with another process described in any of the aspects of the present disclosure.

[0202] (4) Some of the components constituting the encoding device or decoding device of the embodiment may be combined with components described in any of the aspects of the present disclosure, or may be combined with components having some of the functions described in any of the aspects of the present disclosure, or may be combined with components that perform some of the processing performed by the components described in each aspect of the present disclosure.

[0203] (5) A component having part of the functionality of the encoding device or decoding device of an embodiment, or a component that performs part of the processing of the encoding device or decoding device of an embodiment, may be combined or replaced with a component described in any of the aspects of the present disclosure, a component having part of the functionality described in any of the aspects of the present disclosure, or a component that performs part of the processing described in any of the aspects of the present disclosure.

[0204] (6) In the method implemented by the encoding device or decoding device of the embodiment, any of the multiple processes included in the method may be replaced or combined with the process described in any of the aspects of the present disclosure or any similar process.

[0205] (7) Some of the processes included in the method implemented by the encoding device or decoding device of the embodiment may be combined with the processes described in any of the aspects of the present disclosure.

[0206] (8) The implementation of the processes and / or configurations described in each aspect of the present disclosure is not limited to the encoding device or decoding device of the embodiments. For example, the processes and / or configurations may be implemented in a device used for a purpose other than video encoding or video decoding disclosed in the embodiments.

[0207] [Configuration of Encoding / Decoding System] Fig. 7 is a block diagram showing an example configuration of an encoding / decoding system according to this embodiment. For example, the encoding / decoding system includes an encoding device 100 and a decoding device 200. The example in Fig. 7 is similar to the example in Fig. 1, but the specific configuration and processing of the encoding device 100, the specific configuration and processing of the decoding device 200, and the bitstream are different from those in the example in Fig. 1.

[0208] The encoding device 100 receives the reference image, the driving video, and the background image, and generates a bitstream. Then, the encoding device 100 transmits the bitstream to the decoding device 200 using a transmission channel. Finally, the decoding device 200 reconstructs the synthetic facial video from the bitstream.

[0209] For example, the reference image is an image including a face, and may also be expressed as a face image or an identity image. The reference image represents static visual features for reconstructing a synthetic face video. The driving video is a video including a face, and is a captured video obtained by a camera. The driving video serves to impart motion to the reference image. The bit stream may also be simply expressed as a stream. Furthermore, the use of one bit stream is not limited, and multiple bit streams may also be used.

[0210] The person included in the reference image and the person included in the driving video may or may not be the same person.

[0211] The encoding / decoding system according to the present embodiment can be applied to video conferencing, video generation and editing in the entertainment industry, social media, the e-commerce industry, etc. However, the scope of application is not limited to these.

[0212] [Data Structure] Figure 8 is a diagram showing an example of a hierarchical structure of data in a stream. The stream includes, for example, a video sequence. This video sequence includes, for example, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), supplemental enhancement information (SEI), and multiple pictures, as shown in (a) of Figure 8.

[0213] In a video composed of multiple layers, the VPS includes coding parameters common to multiple layers, and coding parameters related to multiple layers included in the video or to each individual layer.

[0214] The SPS includes parameters used for the sequence, i.e., encoding parameters that the decoding device 200 refers to in order to decode the sequence. For example, the encoding parameters may indicate the width or height of a picture. Note that there may be multiple SPSs.

[0215] The PPS includes parameters used for a picture, i.e., encoding parameters referenced by the decoding device 200 to decode each picture in a sequence. For example, the encoding parameters may include a reference value of the quantization width used in decoding the picture and a flag indicating the application of weighted prediction. Note that there may be multiple PPSs. Furthermore, the SPS and PPS may be simply referred to as parameter sets.

[0216] A picture may include a picture header and one or more slices, as shown in (b) of Fig. 8. The picture header includes coding parameters that the decoding device 200 references to decode the one or more slices.

[0217] As shown in (c) of Fig. 8, a slice includes a slice header and one or more bricks. The slice header includes coding parameters that are referenced by the decoding device 200 to decode the one or more bricks.

[0218] As shown in FIG. 8(d), a brick includes one or more coding tree units (CTUs).

[0219] Note that a picture may not contain slices, but may instead contain tile groups, where a tile group contains one or more tiles, and a brick may contain slices.

[0220] A CTU is also called a superblock or a basic division unit. Such a CTU includes a CTU header and one or more CUs (Coding Units), as shown in (e) of Fig. 8. The CTU header includes coding parameters that the decoding device 200 references to decode the one or more CUs.

[0221] A CU may be divided into multiple small CUs. Furthermore, as shown in (f) of FIG. 8, a CU includes a CU header, prediction information, and residual coefficient information. The prediction information is information for predicting the CU, and the residual coefficient information is information indicating a prediction residual, which will be described later. A CU is basically the same as a PU (Prediction Unit) and a TU (Transform Unit), but may include multiple TUs smaller than the CU, for example, in an SBT, which will be described later. A CU may also be processed for each VPDU (Virtual Pipeline Decoding Unit) that constitutes the CU. A VPDU is a fixed unit that can be processed in one stage, for example, when performing pipeline processing in hardware.

[0222] Note that the stream may not have some of the layers shown in FIG. 8 . The order of these layers may be changed, or some layers may be replaced with other layers. A picture currently being processed by a device such as the encoding device 100 or the decoding device 200 is referred to as a current picture. If the processing is encoding, the current picture is synonymous with a picture to be encoded, and if the processing is decoding, the current picture is synonymous with a picture to be decoded. A block, such as a CU or CU, currently being processed by a device such as the encoding device 100 or the decoding device 200 is referred to as a current block. If the processing is encoding, the current block is synonymous with a block to be encoded, and if the processing is decoding, the current block is synonymous with a block to be decoded.

[0223] Here, a region in which parameters used for encoding and decoding are described may be referred to as a header region. For example, the header region is a region including an SEI. The header region may further include a VPS, an SPS, a PPS, an SEI, a picture header, a slice header, a CTU header, and a CU header.

[0224] Furthermore, for example, pictures can be classified into one of several types, including I-pictures, P-pictures, and B-pictures. I-pictures are intra-predicted pictures, also called intra-pictures, that are coded and decoded without reference to other pictures. P-pictures are uni-predicted pictures that can be coded and decoded with reference to one other picture. B-pictures are bi-predicted pictures that can be coded and decoded with reference to two other pictures.

[0225] Furthermore, a moving image may be composed of a plurality of GOPs (Groups of Pictures). A GOP means a set of pictures. A GOP includes one or more I pictures. A GOP may include one or more P pictures, or one or more B pictures. A GOP may be a unit that allows video editing and random access. A GOP may have a fixed number of pictures, or may have a GOP structure in which I pictures, P pictures, and B pictures are arranged in a fixed order.

[0226] [Encoding Configuration and Processing] Fig. 9 is a block diagram showing an example configuration of an encoding device 100 according to this embodiment. The encoding device 100 generates a bitstream from a reference image, a driving video, and a background image. In this example, the encoding device 100 includes a compressor 131, a deriver 132, a compressor 133, and a compressor 134. Each component is, for example, an electric circuit that performs information processing. Two or more of the compressors 131, 133, and 134 may be integrated together.

[0227] 10 is a flowchart showing an example of the operation of the encoding device 100 according to this embodiment. For example, the components of the encoding device 100 shown in FIG. 9 operate in accordance with the flowchart of FIG.

[0228] In this example, the compressor 131 first compresses at least one reference image by encoding it into a bitstream (S101). The reference image may be encoded according to a video codec such as VVC. The reference image may be a frame from a driving video, a pre-prepared image including a person's face, or an avatar.

[0229] The deriver 132 also derives geometric information indicating geometric attributes corresponding to each frame of the driving video (S102). The geometric information may also be simply referred to as geometric attributes. Specifically, the deriver 132 inputs each frame of the driving video into a recognition model such as a neural network and obtains geometric attributes corresponding to each frame from the recognition model. The geometric attributes correspond to time instances of each frame of the driving video.

[0230] Here, the geometric attributes correspond to, for example, dynamic attributes and may be represented by a point cloud such as a facial landmark, or may be represented by a polygon model for representing the shape of an object by combining multiple polygons. Alternatively, the geometric attributes may be represented by other geometric models. Alternatively, the geometric attributes may be represented by the positions of facial features. Alternatively, the geometric attributes may be represented as face attributes. Alternatively, the geometric attributes may be treated as a geometric attribute set.

[0231] For example, facial landmarks used as geometric attributes indicate the locations of points on key areas of the face, including the facial contours, eyes, eyebrows, nose, mouth, lips, and chin. Because such geometric attributes can be interpreted by other people or devices, the attributes can be modified and the processing of the attributes can be improved.

[0232] The compressor 133 compresses the geometric attributes by encoding them into a bitstream using a method such as entropy coding (S103).

[0233] The compressor 134 compresses the at least one background image by encoding it into a bitstream (S104). The background image may be encoded according to a video codec such as VVC.

[0234] The background image is used as a background region in the composite face video. In other words, the background image indicates a background that is overlaid on the face video including the face. The background image may be an image corresponding to a frame included in the driving video, or may be generated from multiple images corresponding to multiple frames included in the driving video. The background image may be a background image prepared in advance, separate from the reference image and the driving video.

[0235] Alternatively, the background image may be selectable from a plurality of background image candidates. Instead of the background image, a selection parameter for selecting the background image from the plurality of background image candidates may be encoded. The selection parameter may be an identifier of a background image corresponding to one of the plurality of background image candidates.

[0236] Furthermore, the background image may be a solid color style, a texture style, a gradient style, a pattern style, a blur style, an illustration, a high contrast style, a real-world scene, or a synthetic scene, or any combination thereof, or may be a different image.

[0237] The encoding device 100 may generate a composite facial moving image based on a reference image, geometric attributes, and a background image, similar to the operation performed by the decoding device 200 (described later) (S105). The encoding device 100 may include multiple components similar to those of the decoding device 200 in order to generate a composite facial moving image. This makes it possible to check the composite facial moving image generated by the decoding device 200 on the encoding device 100. Note that this process may be omitted.

[0238] The encoding device 100 encodes the reference image, the geometric attributes, and the background image into a bitstream, and then transmits the bitstream to the decoding device 200 via a transmission channel. For example, for each frame of a driving video, i.e., for each time instance, the compressed geometric attributes are transmitted as a bitstream from the encoding device 100 to the decoding device 200. The compressed geometric attributes may be transmitted as SEI (Supplemental Enhancement Information).

[0239] The reference image may be transmitted only once for generating a composite facial moving image. Then, in the decoding device 200, the same reference image may be used when generating each frame of the composite facial moving image. Similarly, the background image may be transmitted only once for generating a composite facial moving image. Then, in the decoding device 200, the same background image may be used when generating each frame of the composite facial moving image.

[0240] Alternatively, the background image, like the geometric attributes, may be transmitted for each frame of the driving video, i.e., for each time instance, or may be transmitted as each of a number of key frames, with the refresh rate of the background image corresponding to the key frame interval.

[0241] Alternatively, the encoding device 100 may track the position of the face in the driving video and transmit the background image when the movement, such as translation or rotation, of the face exceeds a threshold. In this way, the refresh rate of the background image may depend on the movement of the face in the driving video.

[0242] The reference image, the geometric attributes, and the background image may be coded into the same bitstream and transmitted, or may be coded into different bitstreams and transmitted, or any two of the reference image, the geometric attributes, and the background image may be coded into the same bitstream and transmitted, and the remaining one may be coded into a different bitstream and transmitted.

[0243] [Configuration and Processing of Decoding Device] Fig. 11 is a block diagram showing an example configuration of a decoding device 200 according to this embodiment. The decoding device 200 generates a composite facial moving image from a bitstream. In this example, the decoding device 200 includes a decompressor 231, a deriving device 232, a decompressor 233, a generator 234, a decompressor 235, and a synthesizer 236. Each component is, for example, an electric circuit that performs information processing. Two or more of the decompressor 231, the decompressor 233, and the decompressor 235 may be integrated together.

[0244] Fig. 12 is a flowchart showing an example of the operation of the decoding device 200 according to this embodiment. For example, the components of the decoding device 200 shown in Fig. 11 operate according to the flowchart of Fig. 12. Note that, in the following, explanations that are the same as those for encoding may be omitted.

[0245] The decompressor 231 decompresses by decoding at least one reference image from the bitstream (S201). The reference image may be decoded according to a video codec such as VVC. The decompressor 231 then provides the reference image to the deriver 232.

[0246] The deriver 232 derives reference information indicating reference attributes from the reference image (S202). Here, the reference information indicating reference attributes may also be simply referred to as reference attributes. The reference attributes are static visual attributes and may also be referred to as identity. The reference attributes may include information regarding at least one of hair, glasses, facial hair, eyebrows, eyes, mouth, nose, skin, facial contours, clothing, and accessories.

[0247] The decompressor 233 decompresses the image by decoding the geometric attributes for each frame from the bitstream using a method such as entropy decoding (S203).

[0248] The generator 234 generates an intermediate facial motion image from the reference attributes and geometric attributes using a generative model such as a neural network (S204).

[0249] The generative model may be a Generative Adversarial Network (GAN), a Variational Autoencoder (VAE), an autoregressive model, a diffusion model, etc. For example, the generative model may be a machine learning framework that generates new data based on a provided dataset, and may analyze and learn the underlying distribution of the dataset.

[0250] For example, the generator 234 inputs the reference attributes and geometric attributes into the generative model for each frame, and obtains an intermediate facial video and a segmentation mask from the generative model. More specifically, the generator 234 inputs the reference attributes and geometric attributes into the generative model for each frame, and obtains a frame of the intermediate facial video and a segmentation mask for that frame from the generative model. This segmentation mask indicates the foreground and background regions in the intermediate facial video (specifically, the frame of the intermediate facial video).

[0251] The segmentation mask may be represented by a two-dimensional map in which all pixel values ​​in the foreground region are 1 and all pixel values ​​in the background region are 0, or may be represented by a two-dimensional map in which all pixel values ​​in the foreground region are 0 and all pixel values ​​in the background region are 1. For example, the foreground region is a region that includes a face or the like and includes movement, and the background region is a region that does not include a face or the like and does not include movement. The segmentation mask is also called segmentation information.

[0252] The generator 234 may use the reference image itself instead of or in addition to the reference attributes to render the intermediate facial animation. The deriving unit 232 may or may not be included in the generator 234. The recognition model for deriving the reference attributes in the deriving unit 232 may be included in the generative model for generating the intermediate facial animation, etc. in the generator 234. Other variations of the deriving unit 232 and the reference attributes are also applicable.

[0253] That is, the generator 234 may generate the segmentation mask and the intermediate facial motion image from the reference image and the geometric attributes using a generative model. In this case, the generator 234 may input the reference image and the geometric attributes to the generative model and obtain the segmentation mask and the intermediate facial motion image from the generative model.

[0254] The decompressor 235 decompresses by decoding at least one background image from the bitstream (S205). The background image may be decoded according to a video codec format such as VVC. Instead of the background image, a selection parameter for selecting a background image from a plurality of background image candidates may be decoded. The selection parameter may be an identifier of a background image corresponding to one of the plurality of background image candidates.

[0255] The synthesizer 236 generates a composite facial video image by embedding corresponding regions in the background image into background regions in the intermediate facial video image using the intermediate facial video image, the segmentation mask, and the background image (S206).

[0256] 13 is a conceptual diagram illustrating an example of the decoding process at each time instance. In this example, the decoding device 200 receives a compressed reference image, compressed geometric attributes, and compressed background image at the first time instance (t=0). The decoding device 200 then stores the compressed reference image and compressed background image in its memory 252.

[0257] The decoding device 200 also performs decoding processing on the compressed reference image, the compressed geometric attributes of the first time instance (t=0), and the compressed background image. The decoding device 200 then generates an image of the first time instance (t=0) in the synthetic facial video using a generative model from the reference image, the geometric attributes, and the background image.

[0258] Furthermore, at a subsequent time instance (t=T), the decoding device 200 receives the compressed geometric attributes and searches for and acquires the compressed reference image and compressed background image from the memory 252 of the decoding device 200. The decoding device 200 then performs a decoding process on the compressed reference image, the compressed geometric attributes for the time instance (t=T), and the compressed background image. The decoding device 200 then generates an image for the time instance (t=T) in the synthetic facial video using a generative model from the reference image, geometric attributes, and background image.

[0259] The decoding device 200 may store the reference image and background image obtained by performing the decoding process on the compressed reference image and compressed background image in the memory 252 of the decoding device 200. Then, at a subsequent time instance (t=T), the decoding device 200 may retrieve the reference image and background image to which the decoding process has been applied from the memory 252, and apply the reference image and background image retrieved from the memory 252 to generate images in the composite facial moving image.

[0260] In this example, compressed geometric attributes are received at each time instance. The geometric attributes of one time instance are derived from one frame in the driving video. Meanwhile, the compressed reference image and compressed background image may be received only at the first time instance. This can reduce the amount of coding.

[0261] 14 is a conceptual diagram illustrating another example of the decoding process at each time instance. In this example, the decoding device 200 receives a compressed reference image, compressed geometric attributes, and a compressed background image at the first time instance (t=0). The decoding device 200 then stores the compressed reference image in its memory 252.

[0262] The decoding device 200 also performs decoding processing on the compressed reference image, the compressed geometric attributes of the first time instance (t=0), and the compressed background image. The decoding device 200 then generates an image of the first time instance (t=0) in the synthetic facial video using a generative model from the reference image, the geometric attributes, and the background image.

[0263] Furthermore, at a subsequent time instance (t=T), the decoding device 200 receives the compressed geometric attributes and the compressed background image, and searches for and obtains the compressed reference image from the memory 252 of the decoding device 200. The decoding device 200 then performs a decoding process on the compressed reference image, the compressed geometric attributes for the time instance (t=T), and the compressed background image for the time instance (t=T). The decoding device 200 then generates an image for the time instance (t=T) in the synthetic facial video using a generative model from the reference image, the geometric attributes, and the background image.

[0264] The decoding device 200 may store a reference image obtained by performing a decoding process on the compressed reference image in the memory 252 of the decoding device 200. Then, at a subsequent time instance (t=T), the decoding device 200 may retrieve the reference image to which the decoding process has been applied from the memory 252, and apply the reference image retrieved from the memory 252 to generate an image in the composite facial moving image.

[0265] As in this example, compressed geometric attributes and a compressed background image are received at each time instance, where the geometric attributes of one time instance are derived from one frame in the driving video.

[0266] For example, the background image of one time instance may be a background image derived from one frame of a driving video, and the amount of code for the background image may be reduced by reducing the resolution, quantizing with a large quantization step, or filling in the foreground region with a foreground color code.

[0267] Also, for example, the compressed reference image may be received only at the first time instance, which may reduce the amount of coding.

[0268] [Modification] Fig. 15 is a block diagram showing another example configuration of the decoding device 200 according to this embodiment. In the example described above, i.e., the example of Fig. 11, the generator 234 inputs the reference attributes and geometric attributes to a generative model, and acquires an intermediate facial video and a segmentation mask from the generative model.

[0269] 15, the generator 234 inputs the reference attributes and geometric attributes into a generative model, obtains intermediate facial animation from the generative model, and then performs segmentation processing on the intermediate facial animation to obtain a segmentation mask.

[0270] Specifically, the generator 234 inputs the reference attributes and geometric attributes into a generative model for each frame, acquires a frame of intermediate facial video from the generative model, and then performs segmentation processing on each frame of the intermediate facial video to acquire a segmentation mask for that frame.

[0271] This allows the processing to be subdivided, which may facilitate the processing. Instead of the generator 234, a segmentation processor (not shown) may perform the segmentation processing.

[0272] The segmentation process may be performed using a machine learning model such as a neural network, as well as other segmentation processes of the present disclosure.

[0273] The foreground and background regions in the intermediate facial video and the composite facial video generated by the decoding device 200 correspond to the foreground and background regions in the driving video. Therefore, the encoding device 100 may perform a segmentation process on the driving video and encode a segmentation mask of the driving video. The decoding device 200 may then decode the segmentation mask and generate a composite facial video using the segmentation mask.

[0274] Specifically, in the encoding device 100, the deriver 132 may perform a segmentation process on the driving video for each frame to generate a segmentation mask indicating foreground and background regions in the driving video, and the compressor 133 may compress the segmentation mask by encoding it into a bitstream.

[0275] Then, in the decoding device 200, the decompressor 233 may decompress the segmentation mask by decoding it from the bitstream. Furthermore, the synthesizer 236 may generate a composite facial moving image using the segmentation mask, etc. This may reduce the amount of processing in the decoding device 200.

[0276] In addition, in the encoding device 100, a segmentation processor (not shown) different from the deriver 132 may perform the segmentation process. In addition, a compressor (not shown) different from the compressor 133 may encode the segmentation mask into a bitstream. In the decoding device 200, a decompressor (not shown) different from the decompressor 233 may decode the segmentation mask from the bitstream.

[0277] Alternatively, the segmentation mask may be transmitted from the encoding device 100 to the decoding device 200 for each frame in the SEI.

[0278] 16 is a block diagram showing another example configuration of the decoding device 200 according to this embodiment. In this example, the generator 234 inputs the reference attributes and geometric attributes into a generative model and acquires, from the generative model, an intermediate facial video in which a specified background color code is embedded in the background region. That is, in the intermediate facial video acquired from the generative model, the background region is filled with a specified background color. In other words, all pixels in the background region of the intermediate facial video have the same specified background color code as their pixel value.

[0279] Therefore, it is possible to identify the background region in the intermediate facial moving image without using a segmentation mask.

[0280] The synthesizer 236 embeds a corresponding region in the background image in a background region in the intermediate facial video. Specifically, pixels in the intermediate facial video having a specified background color code are replaced with corresponding pixels in the background image, and pixels not having the specified background color code are left as they are. In this way, the synthesizer 236 generates a synthesized facial video from the intermediate facial video in which the specified background color code is embedded in the background region and the background image.

[0281] 17 is a block diagram showing another example configuration of the encoding device 100 according to this embodiment. In this example, a reference image in which a specified background color code is embedded in the background region is used. That is, a reference image in which the background region is filled with a specified background color is used. In other words, all pixels in the background region of the reference image have the same specified background color code as their pixel value. For example, the specified background color code may originally be embedded in the background region of the reference image.

[0282] Alternatively, in the encoding device 100, the compressor 131 may embed a specified background color code in a background region in the reference image. Specifically, the compressor 131 may perform a segmentation process on the reference image to obtain a segmentation mask indicating the foreground and background regions in the reference image. The compressor 131 may then identify the background region in the reference image according to the segmentation mask and embed the specified background color code in the background region in the reference image.

[0283] Instead of the compressor 131, a preprocessor (not shown) may perform a segmentation process on the reference image and embed a predetermined background color code in the background region in the reference image.

[0284] The compressor 131 encodes a reference image in which a predetermined background color code is embedded in a background region into a bitstream. The compressor 131 may encode background color code information indicating the predetermined background color code into the bitstream. For example, the background color code information may be transmitted in an SEI.

[0285] Fig. 18 is a block diagram showing yet another example configuration of the decoding device 200 according to this embodiment. The decoding device 200 in Fig. 18 generates a synthetic facial moving image from the bitstream generated by the encoding device 100 in Fig. 17. That is, in this example, a reference image in which a specified background color code is embedded in the background region is used. In other words, a reference image in which the background region is filled with a specified background color is used.

[0286] In the decoding device 200, the decompressor 231 decodes a reference image in which a predetermined background color code is embedded in a background region from a bitstream. The deriving unit 232 derives reference attributes from the reference image in which a predetermined background color code is embedded in a background region. For example, because the predetermined background color code is embedded in the background region of the reference image, the reference attributes can be appropriately derived only from the foreground region of the reference image.

[0287] The generator 234 then inputs the reference attributes and geometric attributes into a generative model and obtains intermediate facial animation from the generative model, thereby generating intermediate facial animation.

[0288] The intermediate facial motion image generated by the generator 234 corresponds to a reference image to which motion is imparted by geometric attributes. A predetermined background color code is embedded in the background region of the reference image. Therefore, the generator 234 generates an intermediate facial motion image in which the predetermined background color code is embedded in the background region.

[0289] Therefore, it is possible to identify the background region in the intermediate facial moving image without using a segmentation mask, similar to the example of Fig. 16. Then, similar to the example of Fig. 16, it is possible to generate a composite facial moving image from the intermediate facial moving image in which a specified background color code is embedded in the background region, and the background image.

[0290] The decompressor 231 may decode background color code information indicating a specified background color code, and the synthesizer 236 may identify, as a background region, a region in the intermediate facial moving image that has the specified background color code indicated in the decoded background color code information.

[0291] In the example encoding device 100 of Figure 17, the compressor 131 may encode the segmentation mask into the bitstream (e.g., as SEI in the bitstream) without embedding a specified background color code in the background region in the reference image. Then, in the example decoding device 200 of Figure 18, the decompressor 231 may decode the segmentation mask and the reference image from the bitstream and embed a specified background color code in the background region in the reference image according to the segmentation mask.

[0292] Furthermore, the present invention is not limited to the examples of Figures 17 and 18, and background color code information may be transmitted in the encoding device 100 and the decoding device 200 corresponding to the example of Figure 16. Alternatively, the background color code information may not be transmitted, and the specified background color code may be specified in the encoding device 100 and the decoding device 200 from a reference image using a neural network, or may be specified without relying on a reference image or the like.

[0293] The background color code information may be transmitted only once for generating a composite facial moving image. Then, the decoding device 200 may use the same background color code information when generating each frame of the composite facial moving image.

[0294] For example, the specified background color code is a color code that is specified to be different from the multiple colors (i.e., multiple pixel values) of a foreground region such as a face, etc. This allows the background region in an intermediate facial moving image, etc. to be appropriately identified.

[0295] Specifically, the default background color code may be a color that is uncommon across all typical face or body regions, for example, a chromakey green or blue may be selected as the default background color code because it is the color that is furthest from the color of the human body.

[0296] Alternatively, a list of all possible colors may be constructed first, and all colors within the foreground region may be extracted, and then all extracted colors may be removed from the list, and the colors remaining on the list may be selected as the default background color code.

[0297] Alternatively, all colors in the foreground region may be entered into a frequency table, and the most frequently occurring color may be identified from the frequency table, and the color opposite the identified color on the color wheel may be defined as the default background color code.

[0298] Furthermore, in generating a synthetic facial moving image, the pixel values ​​of the foreground region and the background region in which the background color code is embedded may change. Furthermore, if the specified background color code coincides with the pixel values ​​contained in the foreground region, it becomes difficult to properly identify the background region.

[0299] Therefore, the specified background color code may be specified as a range of consecutive values ​​that do not match the pixel values ​​included in the foreground region. Then, the encoding device 100 may encode the range of consecutive values ​​as the specified background color code, and the decoding device 200 may decode this range as the specified background color code.

[0300] For example, the bitstream may include the minimum value (y min , u min , v min ), and the maximum value of a plurality of consecutive ranges (y max , u max , v max ) may be transmitted as the background color code. Alternatively, the bitstream may transmit intermediate values ​​(y mean , u mean , v mean ), and the difference between the median and minimum values ​​of a plurality of consecutive ranges (y delta , u delta , v delta ) may be transmitted as a background color code.

[0301] FIG. 19 is a block diagram showing yet another example configuration of the decoding device 200 according to this embodiment. In this example, the generator 234 generates a composite facial motion image using a generative model based on reference attributes, geometric attributes, and a background image. Specifically, the generator 234 generates a composite facial motion image by inputting the reference attributes, geometric attributes, and the background image into the generative model and obtaining the composite facial motion image from the generative model. This can simplify processing. In this case, the decoding device 200 does not need to include a separate synthesizer 236.

[0302] In the above examples, the background image may be an image that does not include a foreground region such as a face, or may be an image that includes a foreground region such as a face. A predetermined foreground color code may be embedded in the foreground region of the background image. In other words, the foreground region of the background image may be filled with a predetermined foreground color. This prevents the foreground region of the background image, such as a face, from appearing in the background region of the composite face image.

[0303] For example, in the encoding device 100, the compressor 134 may perform a segmentation process on a background image to obtain a segmentation mask that indicates foreground and background regions in the background image. The compressor 134 may then use the segmentation mask to embed a predetermined foreground color code in the foreground region of the background image. The compressor 134 may then encode the background image with the predetermined foreground color code embedded in the foreground region into a bitstream.

[0304] Then, in the decoding device 200, the decompressor 235 may decode from the bitstream the background image with the specified foreground color code embedded in the foreground region, thereby enabling the decoding device 200 to identify the foreground and background regions in the background image.

[0305] If the background image includes a foreground region, some or all of the missing background region in the background image may be interpolated by inpainting or other methods. Specifically, the missing background region in the background image may be interpolated using a region surrounding the foreground region in the background image (i.e., the background region). Alternatively, the missing background region in the background image may be interpolated using a background region in another image.

[0306] The interpolation of missing background regions in the background image may be performed in the encoding device 100 or in the decoding device 200 .

[0307] For example, the background image may be an image included in the driving video, or may be a composite image of multiple images included in the driving video. In this case, in the encoding device 100, the compressor 134 may interpolate missing background areas in the background image using a peripheral area of ​​the foreground area in the background image or a background area in another image included in the driving video. The compressor 134 may then encode the background image with the missing background areas interpolated.

[0308] In the decoding device 200, the decompressor 235 or the synthesizer 236 may interpolate missing background regions in the background image by using a peripheral region of the foreground region in the background image or a background region in a past synthesized facial video. Furthermore, if the corresponding region in the background image includes a foreground region at the timing when the synthesizer 236 embeds the corresponding region in the background image into the background region in the intermediate video, the synthesizer 236 may interpolate missing background regions in the corresponding region.

[0309] As mentioned above, instead of a background image, selection parameters may be transmitted in the bitstream, which provide information about the background.

[0310] The selection parameters may include information about a content rating of the background image, specifically, the selection parameters may indicate an age group suitable for viewing the background image as a content rating.

[0311] For example, the selection parameters may indicate that the background image is assigned a rating of NC16 (Not available for children below 16 years old), and if the viewer falls into a smaller category, further processing may be performed on the background image according to the selection parameters, such as blurring the background image.

[0312] This allows minors or other categories of people to be protected from viewing thematically inappropriate background images, such as violence, similar to a rating system for media content.

[0313] Furthermore, for example, the selection parameters may include information regarding customization of the background image. Specifically, the selection parameters may include information for further customizing the background image based on a viewer profile. For example, if the viewer is female, a background image that is often selected by women (specifically, a pink background image, etc.) may be selected. In another example, if the viewer is a child, a background image that is often selected by children (specifically, a colorful background image, etc.) may be selected.

[0314] Such selection parameters may change the final background image applied by each of the one or more decoding devices 200 .

[0315] In the above examples, a background image or background information related to the background image is transmitted separately from the reference image and the geometric attributes. The background information may be, for example, information for acquiring a background image, such as information for selecting a background image from a plurality of background image candidates, or information for acquiring a background image, such as a source for acquiring the background image. However, in another example, the background image or background information may not be transmitted, or the background image may not be predetermined.

[0316] Specifically, for example, the reference image may be used as the background image instead of a background image transmitted separately from the reference image. Then, for example, in the decoding device 200, the synthesizer 236 may generate a composite facial motion image by embedding a corresponding region in the reference image into a background region in the intermediate facial motion image.

[0317] The missing background region in the reference image may be partially or completely interpolated using inpainting or other methods. Specifically, the missing background region in the reference image may be interpolated using the surrounding region (i.e., background region) of the foreground region in the reference image.

[0318] Alternatively, a missing background area in the reference image may be interpolated using a background area in another image. When multiple reference images are transmitted, the other image may be another reference image. Alternatively, the other image may be an image included in an intermediate facial motion image or a synthetic facial motion image generated using the other reference image.

[0319] Alternatively, a segmentation process may be performed on the reference image to obtain a segmentation mask indicating foreground and background regions in the reference image. The segmentation mask may then be used to identify the foreground and background regions in the reference image. The segmentation process may be performed in the encoding device 100 or in the decoding device 200. If the segmentation process is performed in the encoding device 100, the segmentation mask may be transmitted from the encoding device 100 to the decoding device 200.

[0320] In the above examples, the reference image may be considered to be coded and decoded as a background image or background information, or may be considered to be applied to the background image, or may be considered to be neither coded nor decoded with respect to the background image.

[0321] In addition, although geometric information indicating geometric attributes is used in the above examples, the attribute information corresponding to each frame is not limited to geometric information indicating geometric attributes. Dynamic information indicating dynamic attributes in a format different from the geometric attributes may be used instead of the geometric information.

[0322] Fig. 20 is a block diagram showing an example of a configuration for encoding a moving image by the encoding device 100 according to this embodiment. For example, the encoding device 100 may include the multiple components shown in Fig. 20 as multiple components for encoding images included in a moving image on a block-by-block basis in accordance with VVC. The encoding device 100 may include the multiple components shown in Fig. 20 in addition to the multiple components described above, or at least some of the multiple components described above may be integrated into the multiple components shown in Fig. 20.

[0323] 20 , the encoding device 100 includes a dividing unit 102, a subtraction unit 104, a transform unit 106, a quantization unit 108, an entropy encoding unit 110, an inverse quantization unit 112, an inverse transform unit 114, an addition unit 116, a block memory 118, a loop filter unit 120, a frame memory 122, an intra prediction unit 124, an inter prediction unit 126, a prediction control unit 128, and a prediction parameter generation unit 130. Note that the intra prediction unit 124 and the inter prediction unit 126 are each configured as part of a prediction processing unit.

[0324] The partitioning unit 102 partitions an image into multiple blocks and provides parameters related to the partitioning to the entropy coding unit 110. The subtraction unit 104 subtracts a predicted image block from a current block to obtain a predicted residual block. The transformation unit 106 performs transformation on the predicted residual block to obtain a transform coefficient block. The quantization unit 108 performs quantization on the transform coefficient block to obtain a quantized coefficient block. The entropy coding unit 110 performs entropy coding on the quantized coefficient block and the parameters to generate a bitstream.

[0325] The inverse quantization unit 112 performs inverse quantization on the quantized coefficient block to obtain a transform coefficient block. The inverse transform unit 114 performs inverse transform on the transform coefficient block to obtain a prediction residual block. The adder 116 adds the prediction image block to the prediction residual block to obtain a reconstructed image block. The block memory 118 stores the reconstructed image block. The loop filter unit 120 applies a loop filter to the reconstructed image block. The frame memory 122 stores the reconstructed image block to which the loop filter has been applied.

[0326] The intra prediction unit 124 performs intra prediction with reference to the block memory 118 to generate a predicted image block. The inter prediction unit 126 performs inter prediction with reference to the frame memory 122 to generate a predicted image block. The prediction control unit 128 provides the predicted image block generated by the intra prediction unit 124 or the predicted image block generated by the inter prediction unit 126 to the subtraction unit 104 and the addition unit 116. The prediction parameter generation unit 130 provides parameters related to intra prediction or inter prediction to the entropy coding unit 110.

[0327] Fig. 21 is a block diagram showing an example of the configuration of a decoding device 200 according to this embodiment for decoding a moving image. For example, the decoding device 200 may include the components shown in Fig. 21 as components for decoding images included in a moving image on a block-by-block basis in accordance with VVC. The decoding device 200 may include the components shown in Fig. 21 in addition to the components described above, or at least some of the components described above may be integrated into the components shown in Fig. 21.

[0328] 21 , the decoding device 200 includes an entropy decoding unit 202, an inverse quantization unit 204, an inverse transform unit 206, an adder 208, a block memory 210, a loop filter unit 212, a frame memory 214, an intra prediction unit 216, an inter prediction unit 218, a prediction control unit 220, a prediction parameter generation unit 222, and a partition determination unit 224. Note that the intra prediction unit 216 and the inter prediction unit 218 are each configured as part of a prediction processing unit.

[0329] The entropy decoding unit 202 performs entropy decoding on the bitstream to obtain a quantized coefficient block and parameters. The inverse quantization unit 204 performs inverse quantization on the quantized coefficient block to obtain a transform coefficient block. The inverse transform unit 206 performs inverse transform on the transform coefficient block to obtain a prediction residual block. The adder 208 adds the prediction image block to the prediction residual block to obtain a reconstructed image block. The loop filter unit 212 applies a loop filter to the reconstructed image block.

[0330] The block memory 210 stores reconstructed image blocks, and the frame memory 214 stores reconstructed image blocks to which the loop filter has been applied.

[0331] The intra prediction unit 216 performs intra prediction by referring to the block memory 210 to generate a predicted image block. The inter prediction unit 218 performs inter prediction by referring to the frame memory 214 to generate a predicted image block. The prediction control unit 220 provides the predicted image block generated by the intra prediction unit 216 or the predicted image block generated by the inter prediction unit 218 to the adder 208. The prediction parameter generation unit 222 provides parameters related to intra prediction or inter prediction to the prediction control unit 220, etc.

[0332] The division determination unit 224 determines blocks for decoding the image block by block in accordance with the division parameters.

[0333] [Example of Bitstream Configuration] In the present disclosure, three types of information are transmitted via the bitstream: a reference image, geometric attributes, and a background image.

[0334] Bitstream layouts are shown in Figures 22, 23, 24, 25, and 26. The bitstream layout may be a combination of Figures 22, 23, 24, 25, and 26. Furthermore, the bitstream layouts are not limited to those shown in Figures 22, 23, 24, 25, and 26, and the reference images, geometric attributes, and background images may be coded in any order.

[0335] 22 is a conceptual diagram showing an example of the structure of a bitstream, in which the first GOP contains one or more reference images, one or more background images, and multiple geometric attributes, and each of the other GOPs contains one or more background images and multiple geometric attributes.

[0336] 23 is a conceptual diagram showing another example of the bitstream configuration, in which the first GOP contains a reference image, a background image, and multiple geometric attributes, and each of the other GOPs contains multiple geometric attributes.

[0337] 24 is a conceptual diagram showing yet another example of the configuration of a bitstream. In this example, the bitstream includes a first bitstream, a second bitstream, and a third bitstream. The first bitstream includes one or more reference images. The second bitstream includes one or more background images. The third bitstream includes multiple geometric attributes.

[0338] 25 is a conceptual diagram showing yet another example of the bitstream configuration. In this example, the bitstream includes a first bitstream and a second bitstream. The first bitstream includes one or more reference images. The first GOP in the second bitstream includes one or more background images and multiple geometric attributes. Each of the other GOPs in the second bitstream includes multiple geometric attributes.

[0339] 26 is a conceptual diagram showing yet another example of the bitstream configuration, in which each GOP includes one or more reference images, one or more background images, and multiple geometric attributes.

[0340] For example, if the bitstream includes multiple background images, one of the multiple background images may be used to generate the composite facial image, or a combination of the multiple background images may be used to generate the composite facial image, or the multiple background images included in the bitstream may each correspond to multiple frames of the composite facial image.

[0341] Also, for example, if the bitstream contains multiple reference images, one of the multiple reference images may be used to generate the composite facial image, or a combination of the multiple reference images may be used to generate the composite facial image.

[0342] Also, to identify the content contained in an access unit, for example, a header parameter may be used to indicate whether the access unit corresponds to a reference image, a background image, or a geometric attribute, and the header parameter may be coded in the SPS, PPS, PH, VUI, or SEI.

[0343] The synthetic facial video may also be rendered and displayed by the decoding device 200 after decoding the access unit containing the first geometric attribute.

[0344] A codec standard may stipulate that each access unit contains picture data corresponding to one picture. Therefore, the reference image and the background image may be contained in different access units. Alternatively, for example, layer coding such as multi-view coding may allow one access unit to contain picture data corresponding to multiple pictures. Therefore, based on layer coding such as multi-view coding, the reference image and the background image may be contained in the same access unit.

[0345] Each access unit may contain other NAL units of a video coding layer (VCL) or non-video coding layer.

[0346] Geometric attributes such as facial landmark data may also be included in metadata, VSEI (Versatile Supplemental Enhancement Information) or SEI in any video or image codec, or in NAL units with a new nal_unit_type in VCL.

[0347] Examples of bitstream layouts using the VVC codec, which is an encoding standard, are shown in Figures 27, 28, and 29. The VVC codec may be replaced by other video or image codecs, such as HEVC, AVC, AV1, SVC, EVC, JPEG, etc.

[0348] 27 is a conceptual diagram showing an example of the structure of a bitstream conforming to VVC. In this example, a reference image and a background image are each coded and decoded as a VVC intra-picture. Geometric attributes are coded into an SEI expressed as a geometric attribute SEI and decoded from the SEI.

[0349] In this example, the background image is transmitted multiple times: the first access unit contains picture data for the reference image, and each of the other access units contains picture data for the geometric attribute SEI and the background image, i.e., the geometric attribute and the background image are included in the same access unit.

[0350] 28 is a conceptual diagram showing another example of the structure of a bitstream conforming to VVC. In this example, a reference image and a background image are each coded and decoded as a VVC intra-picture. Geometric attributes are coded into an SEI expressed as a geometric attribute SEI and decoded from the SEI.

[0351] In this example, the background image is transmitted only once: the first access unit contains the picture data of the reference image, the next access unit contains the geometry attribute SEI and the picture data of the background image, and each subsequent access unit contains the geometry attribute SEI.

[0352] 29 is a conceptual diagram showing yet another example of the structure of a bitstream conforming to VVC. In this example, a reference picture is coded and decoded as a VVC intra-picture. Geometric attributes are coded into an SEI expressed as a geometric attribute SEI and decoded from the SEI. Furthermore, instead of a background image, background parameters such as selection parameters for selecting a background image from multiple background image candidates are coded into an SEI expressed as a background parameter SEI and decoded from the SEI.

[0353] Also, the first access unit contains picture data of the reference image, the next access unit contains a geometric attribute SEI, a background parameter SEI and picture data, and each subsequent access unit may contain a geometric attribute SEI or a geometric attribute SEI and picture data.

[0354] For example, a codec standard may stipulate that each access unit contains picture data corresponding to one picture. To ensure compatibility with such a codec standard, an access unit for transmitting an SEI may contain not only the SEI but also picture data.

[0355] Specifically, an access unit for transmitting an SEI may include, as dummy picture data, picture data corresponding to a picture with the minimum allowable resolution. This picture may be a picture with a constant value, such as zero, for all pixels. If the color code of each pixel is coded into the bitstream, each pixel may be filled with the same color code.

[0356] In addition, an access unit for transmitting SEI may include, as picture data, a slice NAL unit representing a solid image such as solid black, solid white, or solid green chromakey.

[0357] Alternatively, an access unit for transmitting an SEI may include a copy of a reference image or a background image as picture data. The access unit may include a skip picture as picture data. Alternatively, the access unit may include a picture for which the skip mode is specified for all CUs (Coding Units) as picture data. This makes it possible to minimize the overhead of each access unit.

[0358] Alternatively, a parameter may be included in the access unit for transmitting the SEI, indicating that the NAL unit corresponding to the picture data should be ignored.

[0359] In another example, an access unit may include picture data of a reference image and at least one of a geometry attribute SEI and a background parameter SEI. Alternatively, another access unit may include at least one of a geometry attribute SEI and a background parameter SEI. Instead of the geometry attribute SEI, a NAL unit having a new nal_unit_type may be used. Alternatively, instead of the background parameter SEI, a NAL unit having a new nal_unit_type may be used.

[0360] Furthermore, the geometric attributes and background parameters do not need to be coded in separate SEIs, but may be coded in a single SEI.

[0361] As a specific example, the same first access unit of each GOP may include picture data of a reference image, geometric attribute SEI, and background parameter SEI. Then, in generating a synthetic face moving image, the first frame of the GOP in the synthetic face moving image may be generated based on the reference image, geometric attribute, and background information obtained from the same access unit. Alternatively, the reference image included in the first access unit of the previous GOP may be used to generate the first frame of the GOP to be processed.

[0362] Alternatively, in the first GOP, the first access unit may include picture data of a reference image, and each subsequent access unit may include a geometric attribute SEI and a background parameter SEI. Then, in each subsequent GOP, the first access unit may include picture data of a reference image, a geometric attribute SEI, and a background parameter SEI, and each subsequent access unit may include a geometric attribute SEI and a background parameter SEI.

[0363] This allows the use of reference images obtained from already processed access units when generating frames using the geometric attribute SEI and background parameter SEI.

[0364] [Examples of Generative Models] Fig. 30 is a diagram showing examples of various models that can be used as generative models. For example, neural networks can be used as generative models. Specifically, Fig. 30 shows a generative adversarial network, a variational autoencoder, a flow-based generative model, and a diffusion model.

[0365] In a generative adversarial network, new data instances similar to input data are generated through learning the features of the input data. Specifically, the unsupervised task in the generative model is transformed into a supervised task by two types of submodels.

[0366] For example, the generator sub-model generates fake samples, the classifier sub-model discriminates between real inputs and fake samples generated by the generator sub-model, and an output image is generated through a minimax game that maximizes the classification probability of the classifier sub-model in assigning correct labels to the real inputs and fake samples while minimizing the distribution difference between the real inputs and fake samples.

[0367] In a variational autoencoder, the input data is first compressed into a multivariate latent distribution that reconstructs the data from the latent space as accurately as possible, resulting in efficient data compression and dimensionality reduction. In a flow-based generative model, the source distribution is transformed into the training data distribution through a sequence of one or more reversible transformations, which allows learning of the data distribution and accurate computation of the end-goal likelihood.

[0368] Diffusion models also generate new data instances similar to the training data. First, they degrade the structure of the training data through repeated injection of perturbations and noise before initiating a denoising process in an attempt to recover the original data. As a result, the data is iteratively mapped to a latent distribution via a Markov chain, where the latent state at each step depends only on the latent state at the previous step. The data is then recovered through hierarchical denoising.

[0369] For example, the neural network may be a face picture generation neural network that can be used to generate an output picture using geometric information represented in a fixed format for face parameters and a picture, i.e., the neural network corresponds to a process of generating a plurality of sample values ​​that constitute an output picture, which is a picture included in an output video sequence.

[0370] The neural network may be a neural network of a generative face video SEI (generative face video SEI) discussed by the Moving Picture Experts Group (MPEG). Specifically, for example, the neural network may be a face picture generator neural network written as "GenerativeNN( )" in Non-Patent Document 2.

[0371] Alternatives to the neural networks described above may be any combination of the neural networks described above, other types of generative models, etc. may also be used.

[0372] Furthermore, a machine learning model such as a neural network may be used in the segmentation process, and may also be used to derive geometric attributes or reference attributes.

[0373] 31 is a block diagram showing an implementation example of the encoding device 100. The encoding device 100 includes a circuit 151 and a memory 152. For example, several components of the encoding device 100 described above are implemented by the circuit 151 and the memory 152.

[0374] The circuit 151 is an electric circuit that performs information processing and can access the memory 152. For example, the circuit 151 may be a dedicated circuit that executes the encoding method of the present disclosure, or may be a general-purpose circuit that executes a program corresponding to the encoding method of the present disclosure. The circuit 151 may also be a processor such as a CPU. Furthermore, the circuit 151 may be a collection of multiple circuits.

[0375] The memory 152 is a dedicated or general-purpose memory that stores information used by the circuit 151 to encode an image. The memory 152 may be an electric circuit and may be connected to the circuit 151. The memory 152 may also be included in the circuit 151. The memory 152 may also be a collection of multiple circuits. The memory 152 may also be a magnetic disk, an optical disk, or the like, and may also be expressed as a storage, a recording medium, or the like. The memory 152 may also be a non-volatile memory or a volatile memory.

[0376] For example, the memory 152 may store data to be coded, such as an image, or may store coded data, such as a bitstream. The memory 152 may also store a program for causing the circuit 151 to perform image processing. The memory 152 may also store a generative model for the circuit 151. The memory 152 may also store a reference image.

[0377] 32 is a flowchart showing a first basic operation example of the encoding device 100. In the operation of this example, the circuit 151 of the encoding device 100 uses the memory 152 to perform the following.

[0378] Specifically, the circuit 151 encodes a reference image, geometric information, and background information for generating a composite face moving image into one or more streams (S301). The composite face moving image is a moving image including a face and synthesized with a background image. The reference image is an image including a face. The geometric information corresponds to each of multiple frames of a captured moving image obtained by a camera and is information indicating the geometric attributes of the subject. The background information is information related to the background image.

[0379] This may make it possible to provide a reference image, geometric attributes, and background image for generating a composite facial motion image. Therefore, in generating a composite facial motion image, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to contribute to suppressing deterioration in image quality.

[0380] For example, the circuitry 151 may perform a segmentation process on the captured video to obtain captured video segmentation information indicating foreground and background regions in the captured video, and then encode the captured video segmentation information into one or more streams.

[0381] This may enable provision of captured video segmentation information via one or more streams for identifying foreground and background regions in video of the same type as the captured video, thereby contributing to identifying foreground and background regions in intermediate facial videos in which the faces in the reference image are animated by geometric attributes corresponding to each frame.

[0382] For example, the circuit 151 may perform a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image. The circuit 151 may also use the reference image segmentation information to embed a predetermined background color code in the background region of the reference image. The circuit 151 may then encode the reference image in which the predetermined background color code has been embedded in the background region.

[0383] This may allow the background region in the reference image to be appropriately identified according to the reference image segmentation information obtained as a result of the segmentation process on the reference image. Also, since a specified background color code is embedded in the background region in the reference image, it may be possible to suppress distortion occurring in the background of the reference image even if a face in the reference image moves.

[0384] Also, for example, the circuit 151 may encode background color code information indicating a predetermined background color code into one or more streams. This may enable providing the predetermined background color code for efficiently identifying background regions in a reference image via the one or more streams. It may also enable changing the predetermined background color code depending on the reference image.

[0385] Furthermore, for example, the background color code information may indicate a range including a plurality of consecutive values ​​as the specified background color code. The specified background color code may be specified within the range indicated by the background color code information. This may enable flexible specification of the specified background color code. This may enable flexible application of the specified background color code to the background region.

[0386] Furthermore, for example, the specified background color code may be specified as a color code whose occurrence frequency in the foreground region of the reference image is equal to or less than a threshold value. This may prevent a portion of the foreground region from being mistakenly identified as a portion of the background region. Therefore, it may be possible to appropriately identify the background region.

[0387] For example, the circuitry 151 may perform a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image, and may then encode the reference image segmentation information into one or more streams.

[0388] This may enable providing, via one or more streams, reference image segmentation information for identifying foreground and background regions in the reference image, and thus contributing to identifying background regions in the reference image.

[0389] Furthermore, for example, the background image may be an image prepared independently of the reference image and the captured video. This may make it possible to apply a background image prepared separately from the reference image and the captured video to the composite face video. Therefore, it may be possible to suppress the influence of the foreground area in the background image.

[0390] Furthermore, for example, the circuit 151 may select a background image from a plurality of background image candidates. Then, the circuit 151 may encode an identifier of the background image as background information. This may enable flexible selection of a background image from a plurality of background image candidates. Therefore, it may be possible to apply an appropriate background image to a composite facial moving image depending on the purpose of the composite facial moving image.

[0391] Furthermore, for example, the background image may be an image included in the captured video, or may be an image obtained by combining multiple images included in the captured video. This may make it possible to apply a background image obtained from the captured video to the composite facial video. Therefore, it may be possible to apply a background image corresponding to the shooting situation to the composite facial video.

[0392] Also, for example, the circuit 151 may encode the reference image as background information. Then, the reference image may be applied to the background image. This may allow the reference image to be used as the background image. Then, by using the original reference image as the background image, it may be possible to suppress distortion of the background of the reference image while giving movement to the face in the reference image using the geometric attributes corresponding to each frame.

[0393] Furthermore, for example, when the background image includes a foreground region, the circuit 151 may interpolate the missing background region in the background image using the surrounding region of the foreground region in the background image or the background region in another image included in the captured video. This may make it possible to appropriately interpolate the missing background region even if the background image includes a foreground region. Therefore, it may be possible to suppress the missing background region in the composite face video.

[0394] For example, the circuit 151 may perform a segmentation process on the background image to obtain background image segmentation information indicating foreground and background regions in the background image, and then use the background image segmentation information to identify the foreground and background regions in the background image.

[0395] This may allow for the foreground and background regions in the background image to be properly identified according to the background image segmentation information obtained as a result of the segmentation process on the background image, and therefore may allow for the missing background regions in the background image to be properly interpolated.

[0396] For example, the circuit 151 may perform a segmentation process on the background image to obtain background image segmentation information indicating foreground and background regions in the background image, and then use the background image segmentation information to embed a predetermined foreground color code in the foreground region in the background image.

[0397] This may enable efficient identification of foreground areas in a background image according to a specified foreground color code, and may also enable prevention of foreground objects such as faces from appearing in background areas of a composite facial motion image.

[0398] Also, for example, circuit 151 may encode foreground color code information indicating a predetermined foreground color code into one or more streams, which may enable providing a predetermined foreground color code for efficiently identifying a foreground region in a background image via the one or more streams, and may enable the predetermined foreground color code to vary depending on the background image.

[0399] Furthermore, for example, the foreground color code information may indicate a range including a plurality of consecutive values ​​as the specified foreground color code. The specified foreground color code may then be specified within the range indicated by the foreground color code information. This may allow for flexible specification of the specified foreground color code. This may allow for flexible application of the specified foreground color code to the foreground region.

[0400] Furthermore, for example, the predetermined foreground color code may be defined as a color code whose occurrence frequency in the background region of the background image is equal to or less than a threshold value. This may prevent a portion of the background region from being mistakenly identified as a portion of the foreground region. Therefore, it may be possible to appropriately identify the foreground region.

[0401] Also, for example, among the one or more streams, the stream in which the background information is encoded may be the same as the stream in which the reference image is encoded or the stream in which the geometric information is encoded. This may make it possible to encode the background information in the same stream as the reference image stream or the geometric information stream, rather than in a separate stream. Therefore, it may be possible to efficiently encode the background information together with the reference image or the geometric information.

[0402] Furthermore, for example, in one or more streams, the stream in which the background information is encoded may be different from the stream in which the reference image is encoded and the stream in which the geometric information is encoded. This may make it possible to encode the background information from a stream separate from the reference image stream and the geometric information stream, rather than from the same stream. Therefore, it may be possible to encode the background information at any timing, separately from the reference image or the geometric information.

[0403] Also, for example, the background image may be coded as the first picture of a sequence including multiple pictures, or as the first picture of a group of pictures (GOP). This may allow the background image to be provided early, and therefore may allow the background image to be applied to the synthetic face moving image early.

[0404] Also, for example, a background image may be coded as a picture in an access unit in one or more streams, which may allow the background image to be treated as a picture within the access unit, i.e., to be treated in the same way as a normal picture.

[0405] Also, for example, the access unit in which the background image is coded may be the same as the access unit in which the reference image is coded. This may allow the background image to be coded in the same access unit as the reference image, rather than in a separate access unit. This may allow the background image to be coded efficiently together with the reference image.

[0406] Also, for example, the access unit in which the background image is encoded may be different from the access unit in which the reference image is encoded. This may allow the background image to be encoded in an access unit separate from the access unit of the reference image, rather than in the same access unit. This may allow the background image to be encoded at any time, separately from the reference image.

[0407] Furthermore, for example, a signal indicating the presence of a background image in an access unit may be coded in an SEI associated with the access unit in which the background image is coded. This may make it possible to notify the presence of a background image in the access unit by the signal in the SEI in the access unit. Therefore, it may be possible to appropriately transmit the background image.

[0408] Also, for example, a background image may be coded as a picture in an access unit in one or more streams, and a signal indicating the presence of a background image in the access unit may be coded in an SEI associated with the access unit in which the background image is coded.

[0409] This may allow the background image to be treated as a picture within the access unit, i.e., the background image may be treated like a normal picture. This may also allow the presence of a background image in the access unit to be signaled by SEI in the access unit, and thus may allow proper conveyance of the background image.

[0410] Also, for example, the background image may be coded as an intra-picture, which may allow the background image to be processed as an intra-picture, i.e., without relying on other pictures.

[0411] Also, for example, circuitry 151 may encode background color code information into an SEI in one or more streams, which may allow for providing a predetermined background color code via the SEI for efficiently identifying background regions in a reference image, and may allow for the predetermined background color code to vary depending on the reference image.

[0412] Also, for example, circuitry 151 may encode foreground color code information into an SEI in one or more streams, which may allow for providing a predetermined foreground color code via the SEI to efficiently identify foreground regions in a background image, and may allow for the predetermined foreground color code to vary depending on the background image.

[0413] Also, for example, the circuit 151 may encode at least one of background color code information indicating a predetermined background color code and foreground color code information indicating a predetermined foreground color code into the SEI in one or more streams, which may enable providing a predetermined foreground color code for efficiently identifying a foreground region via the SEI.

[0414] Also, for example, the circuit 151 may encode captured video segmentation information into an SEI in one or more streams. This may enable providing the captured video segmentation information via the SEI for identifying foreground and background regions in video of the same type as the captured video. This may therefore enable contributing to identifying foreground and background regions in intermediate face videos in which face movement in the reference image is imparted by geometric attributes corresponding to each frame.

[0415] Also, for example, circuit 151 may encode reference image segmentation information into SEI in one or more streams, which may enable providing reference image segmentation information via the SEI for identifying foreground and background regions in the reference image, thereby contributing to identifying background regions in the reference image.

[0416] For example, the circuit 151 may encode at least one of captured video segmentation information and reference image segmentation information into SEI in one or more streams. The captured video segmentation information indicates foreground and background regions in the captured video. The reference image segmentation information indicates foreground and background regions in the reference image. This may allow for providing segmentation information for identifying foreground and background regions via the SEI.

[0417] 33 is a flowchart showing a second basic operation example of the encoding device 100. In the operation of this example, the circuit 151 of the encoding device 100 uses the memory 152 to perform the following.

[0418] Specifically, the circuit 151 encodes a reference image and geometric information for generating a composite facial moving image into one or more streams (S311). The reference image is an image including a face. The geometric information corresponds to each of multiple frames of a moving image captured by a camera and indicates the geometric attributes of the subject.

[0419] In generating a synthetic facial video, the reference image and geometric information are used to input the reference image and geometric information into a generative model and obtain an intermediate facial video from the generative model. The intermediate facial video is a video including a face. The reference image is used to generate a synthetic facial video by embedding a corresponding region in the reference image into a background region in the intermediate facial video.

[0420] This may make it possible to provide a reference image and geometric attributes for generating a composite facial motion image. Furthermore, in generating a composite facial motion image, it may be possible to provide movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the original reference image. Therefore, it may be possible to contribute to suppressing degradation of image quality.

[0421] Alternatively, the encoding device 100 may include an input terminal, an entropy encoder, and an output terminal. The operations performed by the circuit 151 may be performed by the entropy encoder. Data used in the operation of the entropy encoder may be input to the input terminal. Data obtained by the operation of the entropy encoder may be output from the output terminal.

[0422] 34 is a block diagram showing an implementation example of a bitstream generating device 300. The bitstream generating device 300 includes a circuit 351 and a memory 352. For example, the bitstream generating device 300, the circuit 351, and the memory 352 may correspond to the encoding device 100, the circuit 151, and the memory 152, respectively. The bitstream generating device 300, the circuit 351, and the memory 352 may also perform the same functions as the encoding device 100, the circuit 151, and the memory 152, respectively.

[0423] The circuit 351 is an electric circuit that performs information processing and can access the memory 352. For example, the circuit 351 may be a dedicated circuit that executes the bitstream generation method of the present disclosure, or may be a general-purpose circuit that executes a program corresponding to the bitstream generation method of the present disclosure. The circuit 351 may also be a processor such as a CPU. Furthermore, the circuit 351 may be a collection of multiple circuits.

[0424] The memory 352 is a dedicated or general-purpose memory that stores information used by the circuit 351 to generate a bitstream. The memory 352 may be an electric circuit and may be connected to the circuit 351. The memory 352 may also be included in the circuit 351. The memory 352 may also be a collection of multiple circuits. The memory 352 may also be a magnetic disk, an optical disk, or the like, and may also be expressed as a storage or a recording medium. The memory 352 may also be a non-volatile memory or a volatile memory.

[0425] For example, the memory 352 may store data for generating a bitstream, or may store a bitstream. The memory 352 may also store a program for causing the circuit 351 to perform a generation process. The memory 352 may also store a generative model for the circuit 351. The memory 352 may also store a reference image, a background image, or a background image candidate.

[0426] 35 is a flowchart showing a first basic operation example of the bitstream generating device 300. In the operation of this example, the circuit 351 of the bitstream generating device 300 uses the memory 352 to perform the following.

[0427] Specifically, the circuit 351 generates a bitstream including a reference image, geometric information, and background information for generating a composite face video (S501). The composite face video is a video including a face, and is a video into which a background image is synthesized. The reference image is an image including a face. The geometric information corresponds to each of multiple frames of the captured video obtained by the camera, and is information indicating the geometric attributes of the subject. The background information is information related to the background image.

[0428] This may make it possible to provide a reference image, geometric attributes, and background image for generating a composite facial motion image. Therefore, in generating a composite facial motion image, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to contribute to suppressing deterioration in image quality.

[0429] 36 is a flowchart showing a second basic operation example of the bitstream generating device 300. In the operation of this example, the circuit 351 of the bitstream generating device 300 uses the memory 352 to perform the following.

[0430] Specifically, the circuit 351 generates a bitstream including a reference image and geometric information for generating a composite face moving image (S511). The reference image is an image including a face. The geometric information corresponds to each of a plurality of frames of a moving image captured by a camera and indicates the geometric attributes of the subject.

[0431] In generating a synthetic facial video, the reference image and geometric information are used to input the reference image and geometric information into a generative model and obtain an intermediate facial video from the generative model. The intermediate facial video is a video including a face. The reference image is used to generate a synthetic facial video by embedding a corresponding region in the reference image into a background region in the intermediate facial video.

[0432] This may make it possible to provide a reference image and geometric attributes for generating a composite facial motion image. Furthermore, in generating a composite facial motion image, it may be possible to provide movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the original reference image. Therefore, it may be possible to contribute to suppressing degradation of image quality.

[0433] 37 is a block diagram showing an implementation example of the decoding device 200. The decoding device 200 includes a circuit 251 and a memory 252. For example, several components of the decoding device 200 described above are implemented by the circuit 251 and the memory 252.

[0434] The circuit 251 is an electric circuit that performs information processing and can access the memory 252. For example, the circuit 251 may be a dedicated circuit that executes the decoding method of the present disclosure, or may be a general-purpose circuit that executes a program corresponding to the decoding method of the present disclosure. The circuit 251 may also be a processor such as a CPU. Furthermore, the circuit 251 may be a collection of multiple circuits.

[0435] The memory 252 is a dedicated or general-purpose memory that stores information for the circuit 251 to decode images. The memory 252 may be an electric circuit and may be connected to the circuit 251. The memory 252 may also be included in the circuit 251. The memory 252 may also be a collection of multiple circuits. The memory 252 may also be a magnetic disk, an optical disk, or the like, and may also be expressed as a storage, a recording medium, or the like. The memory 252 may also be a non-volatile memory or a volatile memory.

[0436] For example, the memory 252 may store data to be decoded, such as a bitstream, or may store decoded data, such as an image. The memory 252 may also store a program for causing the circuit 251 to perform image processing. The memory 252 may also store a generative model for the circuit 251. The memory 252 may also store a reference image, a background image, or a background image candidate.

[0437] 38 is a flowchart showing a first basic operation example of the decoding device 200. In the operation of this example, the circuit 251 of the decoding device 200 uses the memory 252 to perform the following.

[0438] Specifically, the circuit 251 decodes a reference image, geometric information, and background information from one or more streams (S401). The reference image is an image including a face. The geometric information corresponds to each of multiple frames of a moving image captured by a camera and indicates geometric attributes of the subject. The background information is information related to the background image.

[0439] Then, the circuit 251 generates a composite face moving image from the reference image, the geometric information, and the background information using a generative model (S402). The composite face moving image is a moving image including a face and synthesized with a background image.

[0440] This may make it possible to apply the reference image, geometric attributes, and background image to generate a composite facial moving image. Therefore, it may be possible to give movement to the face in the reference image using the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image using the background image. Therefore, it may be possible to suppress deterioration in image quality when generating a composite facial moving image.

[0441] For example, the circuit 251 may input a reference image, geometric information, and a background image to the generative model and obtain a synthetic facial motion image from the generative model.

[0442] This may make it possible to easily obtain a synthetic facial motion image from the generative model. Furthermore, in the generative model, it may be possible to apply the reference image, geometric attributes, and background image to generate a synthetic facial motion image. Therefore, it may be possible to give movement to the face in the reference image by the geometric attributes corresponding to each frame, while suppressing distortion of the background of the reference image by the background image.

[0443] Furthermore, for example, the circuit 251 may input a reference image and geometric information to the generative model and acquire an intermediate facial motion image from the generative model. The intermediate facial motion image is a motion image including a face, without a background image being synthesized. The circuit 251 may then generate a synthesized facial motion image by embedding a corresponding region in the background image into a background region in the intermediate facial motion image.

[0444] This may make it possible to obtain, from the generative model, an intermediate facial motion image in which the face in the reference image is given movement by the geometric attributes corresponding to each frame. It may also be possible to apply a background image to the intermediate facial motion image. Therefore, it may be possible to suppress distortion of the background of the reference image by the background image while giving movement to the face in the reference image by the geometric attributes corresponding to each frame.

[0445] Furthermore, for example, the circuit 251 may perform a segmentation process on the intermediate facial video to obtain intermediate facial video segmentation information indicating foreground and background regions in the intermediate facial video, and then use the intermediate facial video segmentation information to identify the background region in the intermediate facial video.

[0446] This may enable the background region in the intermediate facial video to be appropriately identified in accordance with the intermediate facial video segmentation information obtained as a result of the segmentation process on the intermediate facial video, and therefore the corresponding region in the background image to be appropriately applied to the background region in the intermediate facial video.

[0447] For example, the circuitry 251 may also decode captured video segmentation information from one or more streams, the captured video segmentation information indicating foreground and background regions in the captured video, and may use the captured video segmentation information to identify background regions in the intermediate facial video.

[0448] This may enable the background regions in the intermediate facial video to be properly identified according to the captured video segmentation information obtained from one or more streams, and thus the corresponding regions in the background image to be properly applied to the background regions in the intermediate facial video.

[0449] Furthermore, for example, a predetermined background color code may be embedded in the background area of ​​the reference image. This may make it possible to efficiently identify the background area in the reference image according to the predetermined background color code. Furthermore, even if a face in the reference image moves, it may be possible to suppress distortion occurring in the background of the reference image.

[0450] Also, for example, the circuit 251 may identify an area in the intermediate facial video sequence that has a specified background color code as a background area in the intermediate facial video sequence.

[0451] This may enable efficient identification of a background region in an intermediate facial video image according to a specified background color code. Specifically, it is assumed that the specified background color code is embedded in the background region in an intermediate facial video image obtained by applying movement to a face in a reference image having a background region in which the specified background color code is embedded. Therefore, it may enable efficient identification of a background region in an intermediate facial video image according to the specified background color code.

[0452] Also, for example, the circuit 251 may decode background color code information indicating a predetermined background color code from one or more streams, which may enable efficiently identifying background regions in the reference image according to the predetermined background color code obtained from the one or more streams, and may enable varying the predetermined background color code depending on the reference image.

[0453] Furthermore, for example, the background color code information may indicate a range including a plurality of consecutive values ​​as the specified background color code. The specified background color code may be specified within the range indicated by the background color code information. This may enable flexible specification of the specified background color code. This may enable flexible application of the specified background color code to the background region.

[0454] Furthermore, for example, the specified background color code may be specified as a color code whose occurrence frequency in the foreground region of the reference image is equal to or less than a threshold value. This may prevent a portion of the foreground region from being mistakenly identified as a portion of the background region. Therefore, it may be possible to appropriately identify the background region.

[0455] For example, circuitry 251 may also decode reference image segmentation information from one or more streams that indicates foreground and background regions in the reference image, and may use the reference image segmentation information to embed a predetermined background color code in background regions in the reference image.

[0456] This may enable efficient identification of background regions in the reference image according to the reference image segmentation information obtained from one or more streams, and may also enable suppression of distortion of the background of the reference image even when a face in the reference image moves, since a predetermined background color code is embedded in the background region in the reference image.

[0457] Furthermore, for example, the background image may be an image prepared independently of the reference image and the captured video. This may make it possible to apply a background image prepared separately from the reference image and the captured video to the composite face video. Therefore, it may be possible to suppress the influence of the foreground area in the background image.

[0458] Also, for example, circuitry 251 may decode an identifier of a background image as background information, and may use the identifier to select a background image from among multiple candidate background images.

[0459] This may enable flexible selection of a background image from among a plurality of background image candidates, and therefore may enable application of an appropriate background image to a composite facial moving image depending on the intended use of the composite facial moving image.

[0460] Furthermore, for example, the background image may be an image included in the captured video, or may be an image obtained by combining multiple images included in the captured video. This may make it possible to apply a background image obtained from the captured video to the composite facial video. Therefore, it may be possible to apply a background image corresponding to the shooting situation to the composite facial video.

[0461] Also, for example, the circuit 251 may decode the reference image as background information. Then, the reference image may be applied to the background image. This may allow the reference image to be used as the background image. Then, by using the original reference image as the background image, it may be possible to suppress distortion of the background of the reference image while giving movement to the face in the reference image using the geometric attributes corresponding to each frame.

[0462] Furthermore, for example, when the background image includes a foreground region, the circuit 251 may interpolate the missing background region in the background image using the surrounding region of the foreground region in the background image or the background region in a previous composite facial moving image. This may make it possible to appropriately interpolate the missing background region even if the background image includes a foreground region. Therefore, it may be possible to suppress the missing background region in the composite facial moving image.

[0463] For example, the circuit 251 may perform a segmentation process on the background image to obtain background image segmentation information indicating foreground and background regions in the background image, and then use the background image segmentation information to identify the foreground and background regions in the background image.

[0464] This may allow for the foreground and background regions in the background image to be properly identified according to the background image segmentation information obtained as a result of the segmentation process on the background image, and therefore may allow for the missing background regions in the background image to be properly interpolated.

[0465] Furthermore, for example, a predetermined foreground color code may be embedded in the foreground region of the background image. This may allow for efficient identification of the foreground region in the background image according to the predetermined foreground color code. Furthermore, it may be possible to prevent foreground elements such as faces from appearing in the background region of the composite facial moving image.

[0466] For example, circuit 251 may decode foreground color code information indicating a predetermined foreground color code from one or more streams. Then, circuit 251 may identify regions in the background image having the predetermined foreground color code as foreground regions in the background image. This may enable efficient identification of foreground regions in the background image according to the predetermined foreground color code obtained from the one or more streams. Then, circuit 251 may enable varying the predetermined foreground color code depending on the background image.

[0467] Furthermore, for example, the foreground color code information may indicate a range including a plurality of consecutive values ​​as the specified foreground color code. The specified foreground color code may then be specified within the range indicated by the foreground color code information. This may allow for flexible specification of the specified foreground color code. This may allow for flexible application of the specified foreground color code to the foreground region.

[0468] Furthermore, for example, the predetermined foreground color code may be defined as a color code whose occurrence frequency in the background region of the background image is equal to or less than a threshold value. This may prevent a portion of the background region from being mistakenly identified as a portion of the foreground region. Therefore, it may be possible to appropriately identify the foreground region.

[0469] Also, for example, among the one or more streams, the stream in which the background information is decoded may be the same as the stream in which the reference image is decoded or the stream in which the geometric information is decoded. This may make it possible to decode the background information from the same stream as the reference image stream or the geometric information stream, rather than from a separate stream. Therefore, it may be possible to efficiently decode the background information together with the reference image or the geometric information.

[0470] Also, for example, in one or more streams, the stream in which the background information is decoded may be different from the stream in which the reference image is decoded and the stream in which the geometric information is decoded. This may allow the background information to be decoded not from the same stream but from a stream separate from the stream of the reference image and the stream of the geometric information. Therefore, it may be possible to decode the background information at any timing separately from the reference image or the geometric information.

[0471] Furthermore, for example, the background image may be decoded as the first picture of a sequence including multiple pictures, or as the first picture of a group of pictures (GOP). This may allow the background image to be acquired early, and therefore may allow the background image to be applied to the composite face moving image early.

[0472] Also, for example, background images may be decoded as pictures from access units in one or more streams, which may allow the background images to be processed as pictures within the access units, i.e., in the same way as normal pictures.

[0473] Also, for example, the access unit in which the background image is decoded may be the same as the access unit in which the reference image is decoded. This may allow the background image to be decoded from the same access unit as the reference image, rather than from a separate access unit. This may allow the background image to be efficiently decoded together with the reference image.

[0474] Also, for example, the access unit in which the background image is decoded may be different from the access unit in which the reference image is decoded. This may allow the background image to be decoded from an access unit separate from the access unit of the reference image, rather than from the same access unit. This may allow the background image to be decoded at any timing, separately from the reference image.

[0475] Furthermore, for example, a signal indicating the presence of a background image in an access unit may be decoded from an SEI associated with the access unit including the background image. This may make it possible to recognize the presence of a background image in the access unit according to the signal obtained from the SEI in the access unit. Therefore, it may be possible to properly transmit the background image.

[0476] Also, for example, a background image may be decoded as a picture from an access unit in one or more streams, and a signal indicating the presence of a background image in the access unit may be decoded from an SEI associated with the access unit containing the background image.

[0477] This may allow the background image to be treated as a picture within the access unit, i.e., the background image may be treated in the same way as a normal picture. This may also allow the presence of a background image in an access unit to be recognized according to a signal derived from the SEI in the access unit, and thus may allow the background image to be properly conveyed.

[0478] Also, for example, the background image may be decoded as an intra picture, which may allow the background image to be processed as an intra picture, i.e., without relying on other pictures.

[0479] Furthermore, for example, a background image may be commonly applied to multiple frames of a composite facial moving image. This may reduce the overall code size of the composite facial moving image. Also, it may reduce the amount of processing required to decode the background image.

[0480] Also, for example, the circuitry 251 may decode background color code information from the SEI in one or more streams, which may enable efficient identification of background regions in the reference image according to a predetermined background color code obtained from the SEI, and may enable varying the predetermined background color code depending on the reference image.

[0481] Also, for example, circuitry 251 may decode foreground color code information from the SEI in one or more streams, which may enable efficient identification of foreground regions in a background image according to a predetermined foreground color code obtained from the SEI, and may enable varying the predetermined foreground color code depending on the background image.

[0482] For example, the circuit 251 may decode at least one of background color code information indicating a predetermined background color code and foreground color code information indicating a predetermined foreground color code from the SEI in one or more streams, which may enable efficient identification of background regions according to the predetermined background color code obtained from the SEI.

[0483] For example, the circuit 251 may also decode captured video segmentation information from the SEI in one or more streams. This may allow background regions in the intermediate facial video to be appropriately identified according to the captured video segmentation information obtained from the SEI. Therefore, it may allow corresponding regions in the background image to be appropriately applied to background regions in the intermediate facial video.

[0484] Also, for example, the circuit 251 may decode reference image segmentation information from the SEI in one or more streams, which may enable efficiently identifying background regions in the reference image according to the reference image segmentation information obtained from the SEI, and may enable appropriately embedding a predetermined background color code in the background region in the reference image.

[0485] 39 is a flowchart showing a second basic operation example of the decoding device 200. In the operation of this example, the circuit 251 of the decoding device 200 uses the memory 252 to perform the following.

[0486] For example, the circuit 251 may decode at least one of captured video segmentation information and reference image segmentation information from the SEI in one or more streams. The captured video segmentation information indicates foreground and background regions in the captured video. The reference image segmentation information indicates foreground and background regions in the reference image. This may enable the background region to be efficiently identified according to the segmentation information obtained from the SEI.

[0487] Specifically, the circuit 251 decodes a reference image and geometric information from one or more streams (S411). The reference image is an image including a face. The geometric information corresponds to each of multiple frames of a moving image captured by a camera and indicates geometric attributes of the subject.

[0488] Next, the circuit 251 inputs the reference image and geometric information into the generative model and obtains an intermediate facial motion image from the generative model (S412). The intermediate facial motion image is a motion image including a face. The circuit 251 then generates a composite facial motion image by embedding the corresponding region in the reference image into the background region in the intermediate facial motion image (S413).

[0489] This may make it possible to obtain an intermediate facial motion image from the generative model in which the face in the reference image is given movement by the geometric attributes corresponding to each frame. It may also be possible to apply the corresponding area of ​​the original reference image to the background area of ​​the intermediate facial motion image. Therefore, it may be possible to suppress distortion of the background of the reference image by using the original reference image while giving movement to the face in the reference image by the geometric attributes corresponding to each frame. This may make it possible to suppress degradation of image quality when generating a synthetic facial motion image.

[0490] Alternatively, the decoding device 200 may include an input terminal, an entropy decoder, and an output terminal. The operations performed by the circuit 251 may be performed by the entropy decoder. Data used in the operation of the entropy decoder may be input to the input terminal. Data obtained by the operation of the entropy decoder may be output from the output terminal.

[0491] Alternatively, for example, a computer-readable non-transitory recording medium storing one or more bitstreams may be used. The one or more bitstreams may include at least one reference image used to display a moving image, and geometric information indicating geometric attributes within a region including a human face as information corresponding to each of a plurality of images in the moving image. The one or more bitstreams may cause the decoding device 200 to perform processes of (i) decoding the at least one reference image and (ii) decoding the geometric information.

[0492] This may enable the realization of a recording medium that stores one or more bitstreams corresponding to the above-described decoding device and decoding method, and therefore may enable the recording medium to achieve the same effects as the above-described decoding device 200, etc.

[0493] [Other Examples] The encoding device 100 and the decoding device 200 in each of the above-described examples may be used as an image encoding device and an image decoding device, or as a video encoding device and a video decoding device, respectively. Furthermore, multiple components included in the encoding device 100 and multiple components included in the decoding device 200 may perform corresponding operations.

[0494] Additionally, the term "encode" may be substituted with terms such as "store," "include," "write," "write," "signal," "send," "notify," or "preserve," and these terms may be interchangeable. For example, encoding information may mean including the information in a bitstream. Also, encoding information into a bitstream may mean encoding the information to generate a bitstream that includes the encoded information.

[0495] Furthermore, the term "decode" may be replaced with terms such as "read," "decode," "read," "load," "derive," "obtain," "receive," "extract," or "restore," and these terms may be interchangeable. For example, decoding information may mean obtaining information from a bitstream. Decoding information from a bitstream may mean decoding the bitstream to obtain information contained in the bitstream.

[0496] Furthermore, for example, the coding information and compression information contained in the bitstream may be simply referred to as information.

[0497] Furthermore, at least some of the examples described above may be used as an encoding method, a decoding method, an entropy encoding method, an entropy decoding method, or some other method.

[0498] Each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for that component. Each component may be realized by a program execution unit such as a CPU or processor reading and executing a software program recorded on a recording medium such as a hard disk or semiconductor memory.

[0499] Specifically, each of the encoding device 100 and the decoding device 200 may include a processing circuit and a storage device electrically connected to and accessible from the processing circuit. For example, the processing circuit corresponds to the circuit 151 or 251, and the storage device corresponds to the memory 152 or 252.

[0500] The processing circuit includes at least one of dedicated hardware and a program execution unit, and executes processing using a storage device. If the processing circuit includes a program execution unit, the storage device stores the software program executed by the program execution unit.

[0501] An example of the above-mentioned software program is a bitstream. The bitstream includes an encoded image and a syntax for performing a decoding process to decode the image. The bitstream causes the decoding device 200 to decode the image by executing a process based on the syntax. Furthermore, for example, software for realizing the above-mentioned encoding device 100 or decoding device 200 is a program such as the following.

[0502] For example, this program may cause a computer to execute an encoding method for generating a composite face moving image, which is a moving image including a face and into which a background image is synthesized, by encoding (i) a reference image, (ii) geometric information, and (iii) background information, into one or more streams, (i) the reference image, which is an image including the face, (ii) geometric information corresponding to each of multiple frames of a captured moving image obtained by a camera and indicating geometric attributes of the subject, and (iii) background information related to the background image.

[0503] Furthermore, for example, this program may cause a computer to execute a decoding method that decodes (i) a reference image that is an image including a face, (ii) geometric information that corresponds to each of multiple frames of a moving image captured by a camera and indicates geometric attributes of a subject, and (iii) background information regarding a background image from one or more streams, and generates a composite face moving image that is a moving image including the face and into which the background image is synthesized from the reference image, the geometric information, and the background information using a generative model.

[0504] Furthermore, each of the above-described components may be a circuit. These circuits may form a single circuit as a whole, or each may be a separate circuit. Furthermore, each component may be realized by a general-purpose processor or a dedicated processor.

[0505] Furthermore, a process performed by a specific component may be performed by another component. The order in which the processes are performed may be changed, or multiple processes may be performed in parallel. Any two or more of the multiple examples of the present disclosure may be appropriately combined and implemented. The encoding / decoding device may include the encoding device 100 and the decoding device 200.

[0506] Furthermore, not all of the components in the present disclosure may be implemented, and only some of the components in the present disclosure may be implemented. Similarly, not all of the processes in the present disclosure may be executed, and only some of the processes in the present disclosure may be executed.

[0507] Furthermore, ordinal numbers such as "first" and "second" used in the description may be changed as appropriate. Furthermore, new ordinal numbers may be assigned to components or removed. Furthermore, these ordinal numbers may be assigned to elements in order to identify them, and may not correspond to a meaningful order.

[0508] Also, for example, a phrase "at least one of" a first element, a second element, and a third element corresponds to the first element, the second element, the third element, or any combination thereof.

[0509] Although the aspects of the encoding device 100 and the decoding device 200 have been described above based on a number of examples, the aspects of the encoding device 100 and the decoding device 200 are not limited to these examples. As long as they do not deviate from the spirit of the present disclosure, various modifications conceivable by those skilled in the art to each example, or configurations constructed by combining components of different examples, may also be included within the scope of the aspects of the encoding device 100 and the decoding device 200.

[0510] One or more aspects disclosed herein may be implemented in combination with at least a part of other aspects of the present disclosure. Also, some processes shown in the flowcharts of one or more aspects disclosed herein, some configurations of devices, some syntax, etc. may be implemented in combination with other aspects.

[0511] [Implementation and Application] In each of the above embodiments, each of the functional or operational blocks can typically be realized by an MPU (micro processing unit), memory, etc. Furthermore, the processing by each of the functional blocks may be realized as a program execution unit such as a processor that reads and executes software (programs) recorded on a recording medium such as a ROM. The software may be distributed. The software may be recorded on various recording media such as semiconductor memory. It is also possible to realize each functional block by hardware (dedicated circuitry).

[0512] The processing described in each embodiment may be realized by centralized processing using a single device (system), or may be realized by distributed processing using multiple devices. Furthermore, the processor that executes the program may be a single processor or multiple processors. That is, centralized processing or distributed processing may be performed.

[0513] The aspects of the present disclosure are not limited to the above examples, and various modifications are possible, and these modifications are also included within the scope of the aspects of the present disclosure.

[0514] Furthermore, application examples of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments and various systems for implementing the application examples will be described below. Such systems may be characterized by having an image coding device using the image coding method, an image decoding device using the image decoding method, or an image coding / decoding device that includes both. Other configurations of such systems can be appropriately changed depending on the situation.

[0515] [Example of Use] Fig. 40 shows the overall configuration of an appropriate content supply system ex100 that realizes a content distribution service. The area where communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations in the illustrated example, are installed in each cell.

[0516] In this content supply system ex100, devices such as a computer ex111, a game console ex112, a camera ex113, a home appliance ex114, and a smartphone ex115 are connected to the Internet ex101 via an Internet service provider ex102 or a communication network ex104 and base stations ex106 to ex110. The content supply system ex100 may connect a combination of any of the above devices. In various implementations, the devices may be connected to each other directly or indirectly via a telephone network, short-range wireless communication, or the like, without going through the base stations ex106 to ex110. Furthermore, the streaming server ex103 may be connected to devices such as the computer ex111, the game console ex112, the camera ex113, the home appliance ex114, and the smartphone ex115 via the Internet ex101, etc. The streaming server ex103 may also be connected to a terminal in a hotspot on an airplane ex117 via a satellite ex116.

[0517] Note that wireless access points, hot spots, etc. may be used instead of the base stations ex106 to ex110. Furthermore, the streaming server ex103 may be directly connected to the communication network ex104 without going through the Internet ex101 or the Internet service provider ex102, or may be directly connected to the airplane ex117 without going through the satellite ex116.

[0518] The camera ex113 is a device such as a digital camera that can take still images and videos. The smartphone ex115 is a smartphone, mobile phone, or PHS (Personal Handyphone System) that supports mobile communication systems such as 2G, 3G, 3.9G, 4G, and the upcoming 5G.

[0519] The home appliance ex114 is a refrigerator, or an appliance included in a home fuel cell cogeneration system, or the like.

[0520] In the content supply system ex100, a terminal having a photographing function is connected to a streaming server ex103 via a base station ex106 or the like, thereby enabling live streaming and the like. In live streaming, a terminal (such as a computer ex111, a game console ex112, a camera ex113, a home appliance ex114, a smartphone ex115, or a terminal on an airplane ex117) may perform the encoding process described in each of the above embodiments on still image or video content captured by a user using the terminal, may multiplex the video data obtained by encoding with audio data obtained by encoding audio corresponding to the video, and may transmit the obtained data to the streaming server ex103. In other words, each terminal functions as an image encoding device according to one aspect of the present disclosure.

[0521] Meanwhile, the streaming server ex103 streams the transmitted content data to the requesting client. The client is a computer ex111, a game console ex112, a camera ex113, a home appliance ex114, a smartphone ex115, a terminal on an airplane ex117, or the like, which is capable of decoding the encoded data. Each device that receives the distributed data decodes and plays back the received data. That is, each device may function as an image decoding device according to one aspect of the present disclosure.

[0522] [Distributed Processing] The streaming server ex103 may also be multiple servers or multiple computers that process, record, and distribute data in a distributed manner. For example, the streaming server ex103 may be implemented using a CDN (Content Delivery Network), where content distribution is achieved through a network connecting numerous edge servers distributed around the world. In a CDN, a physically nearby edge server is dynamically assigned depending on the client. Content is then cached and distributed to that edge server, thereby reducing delays. Furthermore, when certain types of errors occur or communication conditions change due to increased traffic, processing can be distributed among multiple edge servers, the distribution entity can be switched to another edge server, or distribution can be continued by bypassing the failed portion of the network, thereby achieving high-speed and stable distribution.

[0523] In addition to the distributed processing of the distribution itself, the encoding of captured data may be performed by each terminal, by the server, or by multiple terminals. For example, encoding generally involves two processing loops. The first loop detects the complexity of the image or the amount of code for each frame or scene. The second loop maintains image quality while improving encoding efficiency. For example, a terminal may perform the first encoding process, and the server that receives the content may perform the second encoding process, thereby improving content quality and efficiency while reducing the processing load on each terminal. In this case, if there is a request to receive and decode the data in near real time, the data encoded by a terminal can be received and played back by another terminal, enabling more flexible real-time distribution.

[0524] As another example, the camera ex113 or the like extracts features from an image, compresses the data related to the features as metadata, and transmits the compressed data to the server. The server performs compression according to the meaning (or importance of the content) of the image, for example, by determining the importance of an object from the features and switching the quantization precision accordingly. The feature data is particularly effective in improving the accuracy and efficiency of motion vector prediction when the server re-compresses the image. Alternatively, the terminal may perform simple encoding such as VLC (variable length coding), and the server may perform encoding with a high processing load such as CABAC (context-adaptive binary arithmetic coding).

[0525] As another example, in a stadium, shopping mall, factory, or the like, there may be multiple pieces of video data that have been shot by multiple terminals of almost the same scene. In this case, using the multiple terminals that shot the video and, as necessary, other terminals and servers that did not shoot the video, encoding processes are assigned to each of them, for example, in units of GOPs (Group of Pictures), pictures, or tiles obtained by dividing a picture, for distributed processing. This reduces delays and achieves better real-time performance.

[0526] Since multiple video data are of almost the same scene, the server may manage and / or instruct the video data shot by each terminal to be mutually referential. The server may also receive encoded data from each terminal and change the reference relationships between multiple data, or correct or replace the pictures themselves and re-encode them. This allows for the generation of streams with improved quality and efficiency for each piece of data.

[0527] Furthermore, the server may perform transcoding to change the encoding method of the video data before distributing it. For example, the server may convert an MPEG-based encoding method into a VP-based encoding method (e.g., VP9), or convert H.264 to H.265.

[0528] In this way, the encoding process can be performed by a terminal or one or more servers. Therefore, although the following uses terms such as "server" or "terminal" to refer to the entity performing the process, some or all of the processing performed by the server may be performed by the terminal, and some or all of the processing performed by the terminal may be performed by the server. The same applies to the decoding process.

[0529] [3D, Multi-Angle] Images or videos of different scenes or the same scene taken from different angles using multiple devices such as cameras ex113 and / or smartphones ex115 that are approximately synchronized with each other are increasingly being integrated and used. The videos taken by each device are integrated based on the relative positional relationship between the devices obtained separately, or on areas where feature points in the videos match.

[0530] The server may not only encode two-dimensional video, but also encode still images automatically or at a time specified by the user based on scene analysis of the video and transmit them to the receiving terminal. Furthermore, if the server can acquire the relative positional relationship between the capturing terminals, it can generate a three-dimensional shape of the scene based on not only two-dimensional video but also video of the same scene captured from different angles. The server may separately encode three-dimensional data generated by a point cloud or the like, or may select or reconstruct the video to be transmitted to the receiving terminal from video captured by multiple terminals based on the results of recognizing or tracking people or objects using the three-dimensional data.

[0531] In this way, the user can enjoy a scene by arbitrarily selecting each video corresponding to each shooting terminal, or can enjoy content in which a video from a selected viewpoint is cut out from 3D data reconstructed using multiple images or videos. Furthermore, together with the video, sound may also be collected from multiple different angles, and the server may multiplex the sound from a specific angle or space with the corresponding video and transmit the multiplexed video and sound.

[0532] In recent years, content that associates the real world with a virtual world, such as Virtual Reality (VR) and Augmented Reality (AR), has also become popular. In the case of VR images, the server creates viewpoint images for the right eye and left eye, respectively, and may perform encoding that allows reference between each viewpoint video using Multi-View Coding (MVC) or the like, or may encode them as separate streams without referencing each other. When decoding the separate streams, it is preferable to play them in synchronization with each other so that a virtual three-dimensional space is reproduced according to the user's viewpoint.

[0533] In the case of AR images, the server superimposes virtual object information in the virtual space onto camera information in the real space based on the three-dimensional position or the movement of the user's viewpoint. The decoding device may acquire or store virtual object information and three-dimensional data, generate a two-dimensional image according to the movement of the user's viewpoint, and smoothly connect the two-dimensional image to create superimposed data. Alternatively, the decoding device may send the movement of the user's viewpoint to the server in addition to a request for virtual object information. The server may create superimposed data according to the movement of the viewpoint received from the three-dimensional data stored on the server, encode the superimposed data, and distribute it to the decoding device. Note that the superimposed data may have an α value indicating transparency in addition to RGB, and the server may set the α value of parts other than the object created from the three-dimensional data to 0, etc., to encode the parts in a transparent state. Alternatively, the server may generate data by setting a predetermined RGB value as the background, like a chromakey, and using the background color for parts other than the object.

[0534] Similarly, the decoding of distributed data may be performed by each client terminal, by the server, or by multiple terminals. For example, one terminal may first send a reception request to the server, and then other terminals may receive and decode content according to the request, after which the decoded signal is transmitted to a device having a display. By distributing the processing and selecting appropriate content regardless of the capabilities of the communication terminals themselves, high-quality data can be reproduced. As another example, large-sized image data may be received on a TV or other device, and only a portion of the picture, such as a tile into which the picture is divided, may be decoded and displayed on the viewer's personal device. This allows the viewer to share the overall picture while checking their own area of ​​responsibility or an area of ​​interest in more detail.

[0535] In situations where multiple short-, medium-, or long-range wireless communications are available indoors and outdoors, seamless content reception may be possible using distribution system standards such as MPEG-DASH (Dynamic Adaptive Streaming over HTTP). Users may freely select and switch in real time between decoding devices or display devices, such as their own terminals and indoor / outdoor displays. Furthermore, decoding can be performed while switching between decoding and display devices using their own location information, etc. This allows information to be mapped and displayed on a part of the wall or ground of a neighboring building with an embedded display device while the user is traveling to their destination. It is also possible to switch the bit rate of received data based on the accessibility of the encoded data on the network, such as when the encoded data is cached on a server that can be quickly accessed from the receiving terminal or copied to an edge server in a content delivery service.

[0536] [Web Page Optimization] Figure 41 is a diagram showing an example of a display screen of a web page on a computer ex111 or the like. Figure 42 is a diagram showing an example of a display screen of a web page on a smartphone ex115 or the like. As shown in Figures 41 and 42, a web page may include multiple link images that are links to image content, and the appearance of the link images may differ depending on the device used to view the page. When multiple link images are visible on the screen, the display device (decoding device) may display a still image or I-picture contained in each content as a link image until the user explicitly selects the link image, or until the link image approaches the center of the screen or the entire link image enters the screen, or may display a video such as a GIF animation using multiple still images or I-pictures, or may receive only the base layer and decode and display the video.

[0537] When a link image is selected by a user, the display device performs decoding while giving top priority to the base layer. Note that if the HTML (HyperText Markup Language) constituting the web page contains information indicating that the content is scalable, the display device may decode up to the enhancement layer. Furthermore, to ensure real-time performance, before selection or when the communication bandwidth is very limited, the display device decodes and displays only forward-reference pictures (I pictures, P pictures, and forward-reference-only B pictures), thereby reducing the delay between the decoding time of the first picture and the display time (the delay from the start of content decoding to the start of display). Furthermore, the display device may intentionally ignore the picture reference relationships and roughly decode all B pictures and P pictures using forward reference, and then perform normal decoding as the number of received pictures increases over time.

[0538] [Autonomous Driving] When transmitting and receiving still image or video data such as two-dimensional or three-dimensional map information for automatic driving or driving assistance of a vehicle, the receiving terminal may receive weather or construction information as meta information in addition to image data belonging to one or more layers, and may associate and decode these. Note that the meta information may belong to a layer, or may simply be multiplexed with the image data.

[0539] In this case, since a vehicle, drone, airplane, or the like including the receiving terminal is moving, the receiving terminal can transmit location information of the receiving terminal, thereby realizing seamless reception and decoding while switching between base stations ex106 to ex110. Furthermore, the receiving terminal can dynamically switch how much meta information to receive or how much to update map information depending on the user's selection, the user's situation, and / or the state of the communication bandwidth.

[0540] In the content supply system ex100, the client can receive, decode, and play back encoded information sent by a user in real time.

[0541] [Distribution of Personal Content] The content supply system ex100 also allows for unicast or multicast distribution of not only high-quality, long-duration content from video distribution companies, but also low-quality, short-duration content from individuals. It is expected that such personal content will continue to increase in the future. To improve the quality of personal content, the server may perform editing before encoding. This can be achieved, for example, using the following configuration.

[0542] During shooting, either in real time or after accumulating and shooting, the server performs recognition processing such as detecting shooting errors, scene search, semantic analysis, and object detection from the original image data or encoded data. Based on the recognition results, the server manually or automatically corrects out-of-focus or camera shake, deletes less important scenes such as scenes with lower brightness or out-of-focus compared to other pictures, emphasizes object edges, changes color, and performs other editing. The server then encodes the edited data based on the editing results. It is also known that viewing rates decrease if the shooting time is too long. Therefore, the server may automatically clip not only less important scenes as described above but also scenes with little movement, based on the image processing results, so that the content falls within a specific time range depending on the shooting time. Alternatively, the server may generate and encode a digest based on the results of the semantic analysis of the scenes.

[0543] Personal content may contain content that, if left as is, violates copyright, moral rights, or portrait rights, and may cause the scope of sharing to exceed the intended scope, resulting in inconvenience to individuals. Therefore, for example, the server may intentionally defocus images of people's faces on the periphery of the screen or the interior of a house before encoding. Furthermore, the server may recognize whether the image to be encoded contains the face of a person other than a pre-registered person, and if so, perform processing such as blurring the face. Alternatively, as pre- or post-processing before encoding, the user may specify a person or background area they wish to modify in the image for copyright or other reasons. The server may replace the specified area with another image or blur the focus. If the image contains a person, the server may track the person in the video and replace the image of the person's face.

[0544] Because viewing personal content with small data volumes requires high real-time performance, the decoding device first receives the base layer as a top priority, and then decodes and plays it back, depending on the bandwidth. The decoding device may also receive an enhancement layer during this time, and if the content is played back more than once, such as when playback is looped, it may play back high-quality video including the enhancement layer. A stream that has undergone scalable encoding in this way can provide an experience in which the video appears rough when not selected or when viewing begins, but gradually becomes smarter and the image quality improves. In addition to scalable encoding, a similar experience can also be provided when a rough stream played the first time and a second stream that is encoded with reference to the first video are configured as a single stream.

[0545] [Other Application Examples] Furthermore, these encoding or decoding processes are generally performed by the LSIex500 possessed by each terminal. The LSI (large scale integration circuitry) ex500 (see FIG. 40) may be a single chip or a multi-chip configuration. Furthermore, video encoding or decoding software may be embedded in some kind of recording medium (such as a CD-ROM, flexible disk, or hard disk) readable by the computer ex111, and the encoding or decoding process may be performed using that software. Furthermore, if the smartphone ex115 is equipped with a camera, video data captured by the camera may be transmitted. This video data is data encoded and processed by the LSIex500 possessed by the smartphone ex115.

[0546] The LSIex500 may be configured to download and activate application software. In this case, the terminal first determines whether it supports the content encoding method or has the capability to execute a specific service. If the terminal does not support the content encoding method or does not have the capability to execute a specific service, the terminal downloads a codec or application software, and then acquires and plays the content.

[0547] Furthermore, at least one of the moving image encoding device (image encoding device) or moving image decoding device (image decoding device) of each of the above embodiments can be incorporated into a digital broadcasting system, not limited to the content supply system ex100 via the Internet ex101. Since multiplexed data in which video and audio are multiplexed is transmitted and received over broadcast radio waves using a satellite or the like, there is a difference in that it is more suited to multicast than the content supply system ex100, which has a configuration that is easy to use for unicast, but similar applications are possible with regard to encoding and decoding processes.

[0548] [Hardware Configuration] Fig. 43 is a diagram showing further details of the smartphone ex115 shown in Fig. 40. Fig. 44 is a diagram showing an example configuration of the smartphone ex115. The smartphone ex115 includes an antenna ex450 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex465 capable of capturing video and still images, and a display unit ex458 for displaying video captured by the camera unit ex465 and decoded data of the video and the like received by the antenna ex450. The smartphone ex115 further includes an operation unit ex466 such as a touch panel, an audio output unit ex457 such as a speaker for outputting voice or sound, an audio input unit ex456 such as a microphone for inputting voice, a memory unit ex467 capable of storing captured video or still images, recorded voice, received video or still images, encoded data such as email, or decoded data, and a slot unit ex464 that is an interface with a SIM (Subscriber Identity Module) ex468 for identifying a user and authenticating access to various data including the network. Note that an external memory may be used instead of the memory unit ex467.

[0549] A main control unit ex460 that comprehensively controls the display unit ex458 and operation unit ex466, etc., is connected to a power supply circuit unit ex461, an operation input control unit ex462, a video signal processing unit ex455, a camera interface unit ex463, a display control unit ex459, a modulation / demodulation unit ex452, a multiplexing / separation unit ex453, an audio signal processing unit ex454, a slot unit ex464, and a memory unit ex467 via a synchronization bus ex470.

[0550] When the power key is turned on by a user's operation, the power supply circuit unit ex461 starts up the smartphone ex115 to an operable state and supplies power to each unit from the battery pack.

[0551] The smartphone ex115 performs processes such as telephone calls and data communications under the control of a main control unit ex460 having a CPU, ROM, RAM, etc. During a call, an audio signal collected by an audio input unit ex456 is converted into a digital audio signal by an audio signal processing unit ex454, subjected to spectrum spread processing by a modulation / demodulation unit ex452, subjected to digital-to-analog conversion and frequency conversion processing by a transmission / reception unit ex451, and the resulting signal is transmitted via an antenna ex450. The received data is also amplified and subjected to frequency conversion and analog-to-digital conversion processing, subjected to spectrum despreading processing by a modulation / demodulation unit ex452, and converted into an analog audio signal by an audio signal processing unit ex454, which is then output from an audio output unit ex457. During data communication mode, text, still images, or video data is sent to the main control unit ex460 via an operation input control unit ex462 based on operations on the main unit's operation unit ex466, etc. Similar transmission and reception processing is performed. When transmitting video, still images, or video and audio in the data communication mode, the video signal processing unit ex455 compresses and encodes the video signal stored in the memory unit ex467 or the video signal input from the camera unit ex465 using the moving image encoding method described in each of the above embodiments, and sends the encoded video data to the multiplexing / demultiplexing unit ex453. The audio signal processing unit ex454 encodes the audio signal collected by the audio input unit ex456 while the camera unit ex465 is capturing video or still images, and sends the encoded audio data to the multiplexing / demultiplexing unit ex453. The multiplexing / demultiplexing unit ex453 multiplexes the encoded video data and encoded audio data using a predetermined method, and modulates and converts the multiplexed video data and audio data in the modulation / demodulation unit (modulation / demodulation circuit unit) ex452 and the transmission / reception unit ex451, before transmitting the multiplexed video data and audio data via the antenna ex450.

[0552] In order to decode the multiplexed data received via the antenna ex450, such as when receiving video attached to an email or chat, or video linked to a web page, the multiplexing / separation unit ex453 separates the multiplexed data into a video data bit stream and an audio data bit stream, and supplies the encoded video data to the video signal processing unit ex455 and the encoded audio data to the audio signal processing unit ex454 via the synchronization bus ex470. The video signal processing unit ex455 decodes the video signal using a video decoding method corresponding to the video encoding method described in each of the above embodiments, and the video or still image contained in the linked video file is displayed on the display unit ex458 via the display control unit ex459. The audio signal processing unit ex454 decodes the audio signal, and audio is output from the audio output unit ex457. As real-time streaming becomes increasingly common, audio playback may be socially inappropriate depending on the user's situation. Therefore, it is preferable that the initial setting be a configuration in which only the video data is played without playing the audio signal, and audio may be played in sync only when the user performs an operation such as clicking on the video data.

[0553] Although the smartphone ex115 has been used as an example, three other implementation formats are possible: a transmitting / receiving terminal having both an encoder and a decoder, a transmitting terminal having only an encoder, and a receiving terminal having only a decoder. In the digital broadcasting system, multiplexed data in which audio data is multiplexed with video data is received or transmitted. However, in addition to audio data, text data related to the video may also be multiplexed into the multiplexed data. Furthermore, the video data itself may be received or transmitted instead of the multiplexed data.

[0554] Although the main control unit ex460 including a CPU has been described as controlling the encoding or decoding process, various terminals often include a GPU (Graphics Processing Unit). Therefore, a configuration may be adopted in which a memory shared by the CPU and GPU, or a memory whose addresses are managed for common use, is used to take advantage of the GPU's performance to process a large area in a batch. This shortens the encoding time, ensures real-time performance, and achieves low latency. It is particularly efficient to perform motion estimation, deblocking filtering, SAO (Sample Adaptive Offset), and transformation / quantization processes in a batch, such as by picture, by the GPU rather than by the CPU.

[0555] The present disclosure is applicable to encoding devices that encode moving images, and is applicable to video conferencing systems, etc.

[0556] 100, 700 Encoding device 102 Division unit 104 Subtraction unit 106 Transform unit 108 Quantization unit 110 Entropy coding unit 112, 204 Inverse quantization unit 114, 206 Inverse transformation unit 116, 208 Addition unit 118, 210 Block memory 120, 212 Loop filter unit 122, 214 Frame memory 124, 216 Intra prediction unit 126, 218 Inter prediction unit 128, 220 Prediction control unit 130, 222 Prediction parameter generation unit 131, 133, 134, 731, 733 Compressor 132, 232, 732, 832 Derivation unit 151, 251, 351 Circuit 152, 252, 352 Memory 200, 800 Decoding device 202 Entropy decoding unit 224 Partition determination unit 231, 233, 235, 831, 833 Decompressor 234, 834 Generator 236 Synthesizer 300 Bitstream generation device

Claims

1. A decoding device comprising: a memory; and a circuit connected to the memory, which in operation decodes from one or more streams: (i) a reference image which is an image including a face; (ii) geometric information which corresponds to each of a plurality of frames of a video captured by a camera and indicates geometric attributes of a subject; and (iii) background information related to a background image; and generates, from the reference image, the geometric information and the background information, a composite face video which is a video including the face and into which the background image is synthesized, using a generative model.

2. The decoding device according to claim 1, wherein the circuit inputs the reference image, the geometric information and the background image to the generative model, and obtains the synthetic facial moving image from the generative model.

3. The decoding device of claim 1, wherein the circuit inputs the reference image and the geometric information into the generative model to obtain an intermediate face video from the generative model, which is a video including the face and into which the background image is not synthesized, and generates the synthetic face video by embedding a corresponding area in the background image into the background area in the intermediate face video.

4. The decoding device of claim 3, wherein the circuit performs a segmentation process on the intermediate facial video to obtain intermediate facial video segmentation information indicating the foreground and background regions in the intermediate facial video, and uses the intermediate facial video segmentation information to identify the background region in the intermediate facial video.

5. The decoding device of claim 3, wherein the circuit decodes captured video segmentation information indicating foreground and background regions in the captured video from the one or more streams, and uses the captured video segmentation information to identify the background region in the intermediate face video.

6. The decoding device according to claim 3, wherein a prescribed background color code is embedded in the background area of ​​the reference image.

7. The decoding device according to claim 6, wherein the circuit identifies an area in the intermediate facial video having the specified background color code as the background area in the intermediate facial video.

8. The decoding device according to claim 6 or 7, wherein the circuitry decodes background color code information indicative of the defined background color code from the one or more streams.

9. The decoding device according to claim 8, wherein the background color code information indicates a range including a plurality of consecutive values ​​as the specified background color code, and the specified background color code is specified within the range indicated by the background color code information.

10. The decoding device of claim 3, wherein the circuitry decodes reference image segmentation information indicating foreground and background regions in the reference image from the one or more streams, and embeds a defined background color code in the background regions in the reference image using the reference image segmentation information.

11. The decoding device according to any one of claims 1 to 7, wherein the background image is an image prepared independently of the reference image and the captured video image.

12. A decoding device according to any one of claims 1 to 7, wherein the circuit decodes an identifier of the background image as the background information, and uses the identifier to select the background image from a plurality of candidate background images.

13. A decoding device according to any one of claims 1 to 7, wherein the background image is an image included in the shot video or an image synthesized from a plurality of images included in the shot video.

14. The decoding device according to any one of claims 1 to 7, wherein the circuit decodes the reference image as the background information, and the reference image is applied to the background image.

15. The decoding device according to claim 13, wherein, when the background image includes a foreground area, the circuit interpolates a missing background area in the background image using a peripheral area of ​​the foreground area in the background image or a background area in a past synthetic face video.

16. The decoding device of claim 15, wherein the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating the foreground region and the background region in the background image, and identifies the foreground region and the background region in the background image using the background image segmentation information.

17. The decoding device according to claim 15, wherein a defined foreground color code is embedded in the foreground region in the background image.

18. The decoding device of claim 17, wherein the circuitry decodes foreground color code information indicating the specified foreground color code from the one or more streams, and identifies an area in the background image having the specified foreground color code as the foreground area in the background image.

19. The decoding device of claim 18, wherein the foreground color code information indicates a range including a plurality of consecutive values ​​as the specified foreground color code, and the specified foreground color code is specified within the range indicated by the foreground color code information.

20. A decoding device according to any one of claims 1 to 7, wherein the background image is decoded as a picture from an access unit in the one or more streams, and a signal indicating the presence of the background image in the access unit is decoded from SEI (Supplemental Enhancement Information) associated with the access unit including the background image.

21. The decoding device according to any one of claims 1 to 7, wherein the background image is commonly applied to multiple frames of the synthetic face moving image.

22. The decoding device according to any one of claims 1 to 7, wherein the circuit decodes at least one of background color code information indicating a specified background color code and foreground color code information indicating a specified foreground color code from SEI (Supplemental Enhancement Information) in the one or more streams.

23. A decoding device as claimed in any one of claims 1 to 7, wherein the circuit decodes at least one of captured video segmentation information indicating foreground and background regions in the captured video and reference image segmentation information indicating foreground and background regions in the reference image from SEI (Supplemental Enhancement Information) in the one or more streams.

24. A decoding device comprising: a memory; and a circuit connected to the memory, which in operation decodes (i) a reference image, which is an image including a face, and (ii) geometric information corresponding to each of a plurality of frames of a video captured by a camera and indicating geometric attributes of a subject, from one or more streams; inputs the reference image and the geometric information into a generative model to obtain an intermediate face video, which is a video including the face, from the generative model; and generates a synthetic face video by embedding the corresponding area in the reference image in the background area of ​​the intermediate face video.

25. An encoding device comprising: a memory; and a circuit connected to the memory, the circuit, in an operation, encoding (i) a reference image, (ii) geometric information, and (iii) background information for generating a composite face moving image, which is a moving image including a face and into which a background image is synthesized, the reference image being an image including the face, (ii) geometric information corresponding to each of a plurality of frames of a moving image captured by a camera and indicating geometric attributes of a subject, and (iii) background information related to the background image, into one or more streams.

26. The encoding device of claim 25, wherein the circuit performs a segmentation process on the captured video to obtain captured video segmentation information indicating foreground and background regions in the captured video, and encodes the captured video segmentation information into the one or more streams.

27. The encoding device of claim 25, wherein the circuit: performs a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image; embeds a specified background color code in the background region in the reference image using the reference image segmentation information; and encodes the reference image with the specified background color code embedded in the background region.

28. The encoding device of claim 27, wherein said circuitry encodes background color code information indicative of said defined background color code into said one or more streams.

29. The encoding device according to claim 28, wherein the background color code information indicates a range including a plurality of consecutive values ​​as the specified background color code, and the specified background color code is specified within the range indicated by the background color code information.

30. The encoding device according to any one of claims 27 to 29, wherein the specified background color code is specified by a color code whose occurrence frequency in the foreground region in the reference image is equal to or less than a threshold value.

31. The encoding device of claim 25, wherein the circuitry: performs a segmentation process on the reference image to obtain reference image segmentation information indicating foreground and background regions in the reference image; and encodes the reference image segmentation information into the one or more streams.

32. The encoding device according to any one of claims 25 to 29, wherein the background image is an image prepared independently of the reference image and the captured video image.

33. The encoding device according to any one of claims 25 to 29, wherein the circuit selects the background image from a plurality of background image candidates, and encodes an identifier of the background image as the background information.

34. The encoding device according to any one of claims 25 to 29, wherein the background image is an image included in the shot video or an image synthesized from a plurality of images included in the shot video.

35. The encoding device according to any one of claims 25 to 29, wherein the circuitry encodes the reference image as the background information, and the reference image is applied to the background image.

36. The encoding device according to claim 34, wherein, when the background image includes a foreground area, the circuit interpolates a missing background area in the background image by using a peripheral area of ​​the foreground area in the background image or a background area in another image included in the captured video sequence.

37. The encoding device of claim 36, wherein the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating the foreground and background regions in the background image, and identifies the foreground and background regions in the background image using the background image segmentation information.

38. The encoding device of claim 34, wherein the circuit performs a segmentation process on the background image to obtain background image segmentation information indicating foreground and background regions in the background image, and embeds a specified foreground color code in the foreground region in the background image using the background image segmentation information.

39. The encoding device of claim 38, wherein said circuitry encodes foreground color code information indicative of said defined foreground color code into said one or more streams.

40. The encoding device of claim 39, wherein the foreground color code information indicates a range including a plurality of consecutive values ​​as the specified foreground color code, and the specified foreground color code is specified within the range indicated by the foreground color code information.

41. The encoding device according to claim 38, wherein the specified foreground color code is specified by a color code whose occurrence frequency in the background region of the background image is equal to or less than a threshold value.

42. The encoding device according to any one of claims 25 to 29, wherein the background image is encoded as a picture in an access unit in the one or more streams, and a signal indicating the presence of the background image in the access unit is encoded in SEI (Supplemental Enhancement Information) associated with the access unit in which the background image is encoded.

43. The encoding device according to any one of claims 25 to 29, wherein the circuitry encodes at least one of background color code information indicating a defined background color code and foreground color code information indicating a defined foreground color code into Supplemental Enhancement Information (SEI) in the one or more streams.

44. The encoding device according to any one of claims 25 to 29, wherein the circuit encodes at least one of captured video segmentation information indicating foreground and background regions in the captured video and reference image segmentation information indicating foreground and background regions in the reference image into SEI (Supplemental Enhancement Information) in the one or more streams.

45. An encoding device comprising: a memory; and a circuit connected to the memory, which in an operation encodes (i) a reference image and (ii) geometric information for generating a synthetic facial moving image, the reference image being an image including a face, and (ii) geometric information corresponding to each of a plurality of frames of a captured moving image obtained by a camera and indicating geometric attributes of a subject, into one or more streams, and in generating the synthetic facial moving image, the reference image and the geometric information are used to input the reference image and the geometric information into a generative model to obtain an intermediate facial moving image, which is a moving image including the face, from the generative model, and the reference image is further used to generate the synthetic facial moving image by embedding a corresponding area in the reference image in a background area in the intermediate facial moving image.

46. ​​A bitstream generating device comprising: a memory; and a circuit connected to the memory, the circuit, in an operation, generating a bitstream including (i) a reference image, (ii) geometric information, and (iii) background information for generating a composite face moving image, which is a moving image including a face and into which a background image is synthesized, the bitstream including (i) the reference image, which is an image including the face, (ii) geometric information corresponding to each of a plurality of frames of a moving image captured by a camera and indicating geometric attributes of a subject, and (iii) background information related to the background image.

47. A decoding method comprising: decoding, from one or more streams, (i) a reference image which is an image including a face; (ii) geometric information which corresponds to each of a plurality of frames of a video captured by a camera and indicates geometric attributes of a subject; and (iii) background information relating to a background image; and generating, from the reference image, the geometric information and the background information, a composite face video which is a video including the face and into which the background image is synthesized, using a generative model.

48. An encoding method for generating a composite face video, which is a video including a face and into which a background image is synthesized, comprising: encoding (i) a reference image, (ii) geometric information, and (iii) background information, into one or more streams: (i) a reference image which is an image including the face; (ii) geometric information which corresponds to each of a plurality of frames of a video captured by a camera and indicates geometric attributes of a subject; and (iii) background information related to the background image.

Citation Information

Patent Citations

  • Face moving picture synthesis system

    JP1990036687A

  • Coder and decoder for picture signal

    JP1992151988A

  • Image coder and image decoder

    JP1996079759A

  • Image processor, image processing method, program and system

    JP2009071734A

  • Image processing device, image processing method and program

    JP2013051737A