Video compression method and apparatus, and device and system

Through cropping and splicing video image processing, the problem of low video compression efficiency in the existing technology is solved, and more efficient video compression and decompression effects are achieved.

WO2024188090A1PCT designated stage expired Publication Date: 2024-09-19DOUYIN VISION CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079944
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2024-03-04
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

The video compression efficiency in the existing technology is low, especially when processing multi-view videos, the server needs to analyze the pixels of each video frame, resulting in low compression efficiency.

Method used

By obtaining multiple-view videos associated with the target object, cropping the video image to obtain the target image, performing splicing processing based on the timestamp, generating a spliced ​​image, and compressing the spliced ​​image to obtain video compression associated with multiple-view videos. data.

Benefits of technology

It reduces the number of pixels that need to be analyzed during video compression, improves video compression efficiency, and improves the accuracy and efficiency of decompression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079944_19092024_PF_FP_ABST
    Figure CN2024079944_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a video compression method and apparatus, and a device. The method comprises: acquiring multiple videos of multiple angles of views associated with a target object, wherein the multiple angles of views correspond to the multiple videos on a one-to-one basis, and each video image in each video comprises a timestamp; cropping each video image in the multiple videos, so as to obtain a target image corresponding to each video image in each video, wherein the target image comprises the target object, and the target image comprises the same timestamp as the corresponding video image; determining stitched images on the basis of multiple target images with the same timestamp, so as to obtain multiple stitched images; and performing compression processing on the multiple stitched images, so as to obtain compressed video data associated with the videos of the multiple angles of views.
Need to check novelty before this filing date? Find Prior Art

Description

Video compression method, device, equipment and system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to an application filed in China with application number 202310272000.6 and filing date March 16, 2023. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The embodiments of the present disclosure relate to the field of video processing technology, and in particular to a video compression method, apparatus, device, and system. Background Art

[0004] In virtual reality (VR) applications, a server can send videos of virtual objects from multiple perspectives to VR devices so that the VR devices can accurately display the images of virtual objects from different perspectives. Therefore, it is particularly important for the server to compress videos from multiple perspectives.

[0005] Currently, the server can compress the video of each perspective to obtain video compression data of multiple videos of multiple perspectives.

[0006] Summary of the Invention

[0007] In a first aspect, the present disclosure provides a video compression method, the method comprising:

[0008] Acquire multiple videos of multiple perspectives associated with a target object, wherein the multiple perspectives correspond one-to-one to the multiple videos, and each video image in each video includes a timestamp;

[0009] Cropping each video image in the multiple videos to obtain a target image corresponding to each video image in each video, wherein the target image includes the target object and includes the same timestamp as the corresponding video image;

[0010] Determine a stitched image based on multiple target images with the same timestamp to obtain multiple stitched images;

[0011] The multiple stitched images are compressed to obtain video compression data associated with videos of multiple perspectives.

[0012] In a second aspect, the present disclosure provides a video compression device, which includes an acquisition module, a cropping module, a determination module, and a compression module, wherein:

[0013] The acquisition module is used to acquire multiple videos of multiple perspectives associated with the target object, the multiple perspectives correspond to the multiple videos one-to-one, and each video image in each video includes a timestamp;

[0014] The cropping module is configured to crop each video image in the plurality of videos to obtain a target image corresponding to each video image in each video, wherein the target image includes the target object and includes the same timestamp as the corresponding video image;

[0015] The determining module is used to determine a stitched image based on multiple target images with the same timestamp to obtain multiple stitched images;

[0016] The compression module is used to compress the multiple spliced ​​images to obtain video compression data associated with videos of multiple perspectives.

[0017] In a third aspect, an embodiment of the present disclosure provides a video compression device, including: a processor and a memory;

[0018] The memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video compression method as described in the first aspect and various possible aspects of the first aspect.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a video processing system, comprising various video compression devices that may be involved in the second or third aspect above; and a video decompression device, configured to receive video compression data sent by the video compression device and decompress the video compression data.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the video compression method as described in the first aspect and various possible aspects of the first aspect is implemented.

[0022] In a sixth aspect, an embodiment of the present disclosure provides a computer program, comprising: instructions, which, when executed by a processor, enable the processor to execute the video compression method as described in the first aspect and various possible aspects of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0024] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;

[0025] FIG2 is a flow chart of a video compression method provided by an embodiment of the present disclosure;

[0026] FIG3 is a schematic diagram of a method for cropping a video image according to an embodiment of the present disclosure;

[0027] FIG4 is a schematic diagram of a spliced ​​image provided by an embodiment of the present disclosure;

[0028] FIG5 is a schematic diagram of a method for determining a stitched image provided by an embodiment of the present disclosure;

[0029] FIG6 is a schematic diagram of obtaining a target depth image according to an embodiment of the present disclosure;

[0030] FIG7 is a schematic diagram of a spliced ​​image provided by an embodiment of the present disclosure;

[0031] FIG8 is a schematic diagram of a video compression method provided by an embodiment of the present disclosure;

[0032] FIG9 is a schematic structural diagram of a video compression device provided by an embodiment of the present disclosure; and

[0033] FIG10 is a schematic structural diagram of a video compression device provided by an embodiment of the present disclosure.

[0034] FIG11 is a schematic structural diagram of a video processing system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0036] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0037] For example, in response to receiving an active request from the user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thereby, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server or storage medium that performs the operation of the technical solution of the present disclosure based on the prompt message. As an optional but non-limiting implementation method, in response to receiving an active request from the user, the method of sending a prompt message to the user can be, for example, a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0038] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0039] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws and regulations. Data may include information, parameters and messages, such as flow switching indication information.

[0040] To facilitate understanding, the concepts involved in the embodiments of the present disclosure are explained below.

[0041] Electronic device: is a device with wireless transceiver function. The electronic device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The electronic device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, an on-board electronic device, a wireless terminal in self-driving, a wireless electronic device in remote medical care, a wireless electronic device in smart grid, a wireless electronic device in transportation safety, a wireless electronic device in smart city, a wireless electronic device in smart home, a wearable electronic device, etc. The electronic device involved in the embodiments of the present disclosure can also be referred to as a terminal, user equipment (UE), an access electronic device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote electronic device, a mobile device, a UE electronic device, a wireless communication device, a UE agent or a UE device, etc. The electronic device can also be fixed or mobile.

[0042] In related technologies, when compressing multiple videos, the server needs to compress the video frames of each video, resulting in low video compression efficiency. How to improve the video compression efficiency of multiple videos with multiple perspectives is an urgent problem to be solved.

[0043] The present disclosure provides a video compression method, apparatus, device and system for solving the technical problem of low efficiency of video compression in the prior art.

[0044] The application scenario of the embodiment of the present disclosure is described below with reference to FIG1 .

[0045] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. Referring to FIG1 , it includes a video generation device, a video compression device, and a VR device. The video generation device can generate a video including perspective 1, perspective 2, and perspective 3 of the target object. The video generation device can send the video of perspective 1, perspective 2, and perspective 3 to the video compression device. The video compression device can compress the videos of multiple perspectives respectively and send the video compression data of multiple perspectives to the VR device. After receiving the video compression data of multiple perspectives, the VR device can decompress the video compression data and then play the videos of multiple perspectives.

[0046] It should be noted that FIG1 is only an illustrative illustration of the application scenario of the embodiment of the present disclosure, and does not limit the application scenario of the embodiment of the present disclosure.

[0047] In related technologies, a server can send videos of virtual objects from multiple perspectives to a VR device, which can then accurately display the images of the virtual objects from different perspectives, thereby improving the display effect of the VR device. Currently, the server can compress the video from each perspective to obtain video compression data for multiple videos from multiple perspectives. However, when compressing multiple videos, the server needs to analyze the pixels in the video frame of each video. The large number of pixels to be analyzed results in low video compression efficiency.

[0048] In order to solve the problems in the related art, an embodiment of the present disclosure provides a video compression method, where a video compression device can obtain multiple videos of multiple perspectives associated with a target object, each video image in each video includes a timestamp, and each video image in the multiple videos is cropped to obtain a target image corresponding to each video image in each video, wherein the target image includes a target object, and for any group of multiple target images with the same timestamp, a target depth image and / or a target transparent image corresponding to each target image is determined, and the multiple target images, multiple target depth images and / or multiple target transparent images are spliced ​​to obtain a spliced ​​image corresponding to the multiple target images with the same timestamp, and the multiple spliced ​​images are compressed to obtain video compression data associated with videos of multiple perspectives. In this way, since the video compression device can crop the video image, the number of pixels of the video frame that the video compression device needs to analyze when performing video compression is smaller, and the video compression device can stitch target images of multiple perspectives with the same timestamp. Therefore, the video compression device only needs to compress one channel of stitched image data, reducing the number of input streams of the video compression device, thereby improving the efficiency of video compression. Moreover, the stitched image can also include the image's depth information, transparency information, and pixel information of the target object, thereby improving the accuracy and efficiency of decompression of the video compressed data.

[0049] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0050] FIG2 is a flow chart of a video compression method provided by an embodiment of the present disclosure. Referring to FIG2 , the method may include steps S201 to S204.

[0051] S201: Acquire videos of multiple perspectives associated with a target object.

[0052] The execution subject of the embodiment of the present disclosure may be a video compression device, or a video compression device provided in the video compression device. The video compression device may be implemented based on software, or based on a combination of software and hardware, which is not limited in the embodiment of the present disclosure.

[0053] Multiple viewing angles can correspond to multiple videos. For example, multiple videos can include videos with a viewing angle of 5 degrees, 10 degrees, and 15 degrees. The video direction, for example, refers to the direction in which the video was shot. Each viewing angle can correspond to a video, and each video can include a target object. For example, the target object can be a virtual object, a virtual character, etc., which is not limited in the present embodiment.

[0054] Each video image in each video may include a timestamp. For example, when a video generation device generates videos of a target object from multiple angles, each image in each video may include a timestamp. In this way, a VR image including the target object can be synthesized based on video images with the same timestamp in multiple videos.

[0055] Optionally, the video compression device receives multiple videos from multiple perspectives associated with a target object sent by the video generation device. For example, the video generation device may be a rendering device, an electronic device, etc., which is not limited in the present embodiment. The video generation device may obtain motion capture videos from multiple perspectives and, based on the motion capture videos from multiple perspectives, synthesize multiple videos from multiple perspectives, each of which includes a virtual character. The video generation device may send the multiple videos from multiple perspectives to the video compression device. In this way, the accuracy of the multiple videos from multiple perspectives generated by the video generation device may be improved.

[0056] It should be noted that the video compression device may also obtain multiple videos of multiple perspectives associated with the target object based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.

[0057] S202: Crop each video image in the multiple videos to obtain a target image corresponding to each video image in each video.

[0058] The target image may include a target object. For example, if the target object is at least one virtual character, the target image includes at least one virtual character. The target image may include the same timestamp as the corresponding video image. For example, if the timestamp of the video image is timestamp A, the timestamp of the target image obtained by cropping the video image is timestamp A; if the timestamp of the video image is timestamp B, the timestamp of the target image obtained by cropping the video image is timestamp B.

[0059] Optionally, the video compression device may crop each video image in the multiple videos to obtain multiple target images. For example, if the video includes 100 video images, the video compression device may crop the 100 video images to obtain 100 target images corresponding to the 100 video images; if the multiple videos include 500 video images, the video compression device may crop the 500 video images to obtain 500 target images corresponding to the 500 video images. In other words, the number of video images can be the same as the number of target images.

[0060] Optionally, the video compression device can crop each video image in multiple videos based on the following feasible implementation method to obtain a target image corresponding to each video image in each video: detect the position coordinates of the target object in the video image, and crop the video image based on the position coordinates to obtain a target image corresponding to the video image.

[0061] Optionally, the video compression device may determine the position coordinates of the target object in the video image based on an image detection algorithm. For example, the video compression device may process the video image based on the image detection algorithm to obtain a valid area in the video image (i.e., the area where the target object is located), and then determine the coordinates of the valid area as the position coordinates of the target object in the video image. For example, the video compression device may detect the outline of the target object based on an outline detection algorithm, and then determine the maximum horizontal coordinate, minimum horizontal coordinate, maximum vertical coordinate, and minimum vertical coordinate in the outline as the position coordinates of the target object.

[0062] Optionally, when the video compression device obtains videos of multiple perspectives associated with the target object, it can also obtain the depth image and / or transparent image associated with each video image. Therefore, the video compression device can determine the position coordinates of the target object in the video image based on the depth image and / or transparent image.

[0063] It should be noted that the video compression device can determine the position coordinates of the target object in the video image based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.

[0064] Optionally, the video compression device can perform cropping processing on the video image based on the position coordinates. For example, the position coordinates can indicate at least one rectangular area, and the position coordinates can also indicate at least one contour area. The embodiments of the present disclosure do not limit this. The video compression device can crop one or more rectangular images from the video image based on the position coordinates, and determine the one or more rectangular images as target images. The video compression device can also crop one or more contour images (images within the contour of the target object) from the video image based on the position coordinates, and determine the one or more contour images as target images. The embodiments of the present disclosure do not limit this.

[0065] It should be noted that in actual application, the target object can be one or more. Therefore, the target image corresponding to the video image can include multiple target objects or one target object (that is, the target image of each target object is cut out separately). The embodiment of the present disclosure does not limit this.

[0066] The process of cropping a video image is described below with reference to FIG3 .

[0067] Figure 3 is a schematic diagram of a cropped video image provided by an embodiment of the present disclosure. Please refer to Figure 3, which includes: a video image. The video image includes a target object A and a target object B. The video compression device (not shown in Figure 3) can crop the target object in the video image to obtain a target image. One cropping method is: cropping the target object A and the target object B together to obtain a target image, which includes the target object A and the target object B. Another cropping method is: cropping the target object A and the target object B separately to obtain a target image A and a target image B, wherein the target object in the target image A is the target object A, and the target object in the target image B is the target object B.

[0068] S203 : Determine a stitched image based on multiple target images with the same timestamp to obtain multiple stitched images.

[0069] The video compression device can stitch together multiple target images with the same timestamp to obtain multiple stitched images, each of which is stitched together based on multiple target images with the same timestamp, and different stitched images in the multiple stitched images can have different timestamps associated with them. For example, if video A includes target image a with timestamp 1 and target image b with timestamp 2, and video B includes target image c with timestamp 1 and target image d with timestamp 2, the video compression device can stitch together target image a and target image c to obtain a stitched image in which the timestamps of the target images in the stitched image are all timestamp 1, and the video compression device can stitch together target image b and target image d to obtain another stitched image in which the timestamps of the target images in the stitched image are all timestamp 2.

[0070] Optionally, when stitching together multiple target images, the video compression device may stitch together the target images in the order of their associated viewing angles. For example, if the multiple videos include a video with a 1-degree viewing angle, a video with a 3-degree viewing angle, and a video with a 5-degree viewing angle, the video compression device may stitch together the target image with a 1-degree viewing angle and the target image with a 3-degree viewing angle, and then stitch together the target image with a 5-degree viewing angle and the target image with a 3-degree viewing angle.

[0071] It should be noted that, optionally, the video compression device can splice multiple target images based on any feasible implementation method, such as the video compression device splicing based on the image similarity between multiple target images, and the target images with high similarity are spliced ​​together. The embodiments of the present disclosure are not limited to this.

[0072] The following describes the stitching of images with reference to FIG4 .

[0073] FIG4 is a schematic diagram of a spliced ​​image provided by an embodiment of the present disclosure. Please refer to FIG4 , which includes: a target image of perspective 1, a target image of perspective 2, a target image of perspective 3, and a target image of perspective 4. The target image of each perspective includes a target object, and the timestamp of the target image of each perspective is the same. The target image of perspective 1, the target image of perspective 2, the target image of perspective 3, and the target image of perspective 4 are spliced ​​to obtain a spliced ​​image, wherein the upper left area of ​​the spliced ​​image is the target image of perspective 1, the upper right area of ​​the spliced ​​image is the target image of perspective 2, the lower left area of ​​the spliced ​​image is the target image of perspective 3, and the lower right area of ​​the spliced ​​image is the target image of perspective 4. In this way, by performing splicing processing based on multiple target images to obtain a spliced ​​image, multiple input streams of videos of multiple perspectives can be converted into an input stream of a spliced ​​image, thereby improving the efficiency of video compression.

[0074] S204: compress the multiple stitched images to obtain video compression data associated with videos of multiple perspectives.

[0075] Optionally, the video compression device can compress the multiple stitched images to obtain compressed video data. For example, after obtaining a video stream of a stitched image composed of multiple video views, the video compression device can compress the video stream. This can improve the efficiency of video compression because the number of compressed video streams is reduced, and the number of pixels to be analyzed is also reduced.

[0076] It should be noted that the video compression device can perform compression processing on multiple spliced ​​images based on any feasible implementation method, and the embodiments of the present disclosure are not limited to this.

[0077] Optionally, after the video compression device compresses multiple stitched images to obtain video compression data, it can send the video compression data to an electronic device (which can be a VR device). After the electronic device receives the video compression data, it can decompress the video data to restore the target image in the video of each perspective. Since the target image includes the target object, the electronic device does not need pixel restoration during decompression, thereby improving the accuracy of decompression.

[0078] It should be noted that since the target image can include the target object, when the electronic device plays a video from multiple perspectives, the background image of the video can also be restored. Since the background image of the video can be a rendered image, after the electronic device merges the target object into the background image, the original video from multiple perspectives (including both the background image and the target image) can be obtained.

[0079] The disclosed embodiments provide a video compression method. A video compression device can obtain multiple videos corresponding to multiple perspectives associated with a target object, wherein each video image in each video includes a timestamp. The device detects the position coordinates of the target object in the video image and, based on the position coordinates, crops the video image to obtain multiple target images associated with each video that include the target object. The target image and the corresponding video image have the same timestamp. A spliced ​​image is determined based on the multiple target images with the same timestamp to obtain multiple spliced ​​images. The multiple spliced ​​images are then compressed to obtain video compressed data associated with the videos from the multiple perspectives. In the above method, because the video compression device can compress the target image including the target object, the video compression device needs to analyze fewer pixels. Furthermore, the electronic device does not need to perform pixel restoration processing during decompression, thereby improving decompression accuracy. Furthermore, because the video compression device can splice multiple target images with the same timestamp, the video compression device can compress a single video stream of the spliced ​​image, eliminating the need to compress multiple video streams from multiple perspectives, thereby improving video compression efficiency.

[0080] Based on the embodiment shown in FIG. 2 , the method for determining a spliced ​​image based on multiple target images with the same timestamp in the above video compression method will be further described below in conjunction with FIG. 5 .

[0081] FIG5 is a schematic diagram of a method for determining a stitched image provided by an embodiment of the present disclosure. Referring to FIG5 , the method flow includes steps S501 and S502.

[0082] S501: Determine a target depth image and / or a target transparent image corresponding to each target image.

[0083] Among them, for any group of multiple target images with the same timestamp, the video compression device can determine the target depth image and / or target transparent image corresponding to each target image. Among them, the target depth image can indicate the image depth information of the target image, and the target transparent image can be the transparent image corresponding to the target image. For example, each pixel in the target transparent image can include three RGB channels and an Alpha channel, and the information of the Alpha channel can represent the transparency of the pixel. Specifically, the video compression device can determine the target depth image and / or target transparent image corresponding to each target image based on the following feasible implementation method: determine the depth image and / or transparent image of the video image corresponding to the target image, and based on the cropping method of the video image corresponding to the target image, crop the depth image and / or transparent image to obtain the target depth image and / or target transparent image.

[0084] Optionally, when the video compression device obtains a video image, it may also obtain a depth image and / or a transparent image corresponding to the video image. For example, when a video generation device generates a video from multiple perspectives, it may also generate a depth image and a transparent image corresponding to the video image in each video. Therefore, when the video generation device sends multiple videos from multiple perspectives to the video compression device, it may also send a depth image and a transparent image corresponding to each video image in the multiple videos.

[0085] It should be noted that the video compression device can determine the depth image and / or transparency image of the video image corresponding to the target image based on any feasible implementation method (for example, after the video compression device obtains videos from multiple perspectives, it detects the depth information and transparency information of the video image of each video, and then obtains the depth image and transparency image of the video image). The embodiments of the present disclosure are not limited to this.

[0086] Optionally, the video compression device may crop the depth image and / or transparent image corresponding to the video image based on the cropping method of the video image corresponding to the target image to obtain the target depth image and / or target transparent image. For example, the video compression device may determine the position coordinates when the video image corresponding to the target image is cropped, and then crop the depth image and transparent image using the position coordinates to obtain the target depth image and target transparent image.

[0087] It should be noted that the sizes of the target depth image and the target transparent image associated with the target image may be the same as or different from the target image, and this embodiment of the present disclosure does not limit this.

[0088] The process of obtaining the target depth image is described below with reference to FIG6 .

[0089] FIG6 is a schematic diagram of obtaining a target depth image provided by an embodiment of the present disclosure. Referring to FIG6 , it includes: a video image and a depth image corresponding to the video image, wherein the depth image can indicate depth information of the video image. If a video compression device (not shown in FIG6 ) crops the video image to obtain a target image, the video compression device can crop the depth image based on the same cropping method (i.e., the same position coordinates) to obtain a target depth image corresponding to the target image.

[0090] It should be noted that the method for obtaining the target transparent image corresponding to the target image is the same as that in the embodiment shown in FIG6 , and will not be described in detail in the embodiment of the present disclosure.

[0091] S502 : Perform stitching processing on multiple target images, multiple target depth images, and / or multiple target transparent images to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0092] Optionally, the video compression device may perform stitching processing on multiple target images with the same timestamp and multiple target depth images corresponding to the multiple target images to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0093] Optionally, the video compression device may perform splicing processing on multiple target images with the same timestamp and multiple target transparent images corresponding to the multiple target images to obtain a spliced ​​image corresponding to the multiple target images with the same timestamp.

[0094] Optionally, the video compression device may perform stitching processing on multiple target images with the same timestamp and multiple target transparent images and multiple target depth images corresponding to the multiple target images to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0095] In this way, the stitched image can include the depth information and transparency information of the target image, thereby improving the decoding efficiency and decoding accuracy of the video compression data.

[0096] Specifically, the video compression device can obtain a stitched image corresponding to the multiple target images with the same timestamp based on the following feasible implementation method: obtain the bit width of each target depth image, and when the bit width is greater than the preset bit width, quantize the depth information of the target depth image to obtain a quantized depth image, and stitch multiple target images, multiple quantized depth images and / or multiple target transparent images to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0097] Among them, the bit width of the target depth image can be 4kb, 8kb, etc., which is not limited in the embodiment of the present disclosure. It should be noted that the bit width of the target depth image is determined by the depth image. In the embodiment of the present disclosure, after the video compression device obtains the target depth image, the bit width of the target depth image can be obtained.

[0098] The preset bit width is the maximum bit width that the encoder can process. For example, the preset bit width can be set arbitrarily or based on the encoder's parameters. If the encoder can process a maximum of 8kb of data, the preset bit width can be 8kb. In this way, when the bit width of the target depth image is greater than the preset bit width, the video compression device can actively quantize the target depth image to avoid the loss of depth information caused by the encoder's random quantization of the depth image, thereby improving the accuracy of the video compression data.

[0099] Among them, the video compression device quantizes the depth of the target depth image to obtain a quantized depth image, which can be specifically: obtaining the near clipping plane information and the far clipping plane information of the target depth image, for any pixel in the target depth image, based on the near clipping plane information, the far clipping plane information, the bit width and the pixel value of the pixel, determining the physical depth of the pixel, based on the physical depth of each pixel in the target depth image and the preset target quantization bit width, determining the quantized depth image.

[0100] The near clipping plane information may indicate the depth distance of the target depth image closest to the camera, and the far clipping plane information may indicate the depth distance of the target depth image farthest from the camera. Optionally, when acquiring a depth image, the video compression device may acquire the near clipping plane information and the far clipping plane information in the depth image. The video compression device may also acquire the near clipping plane information and the far clipping plane information of the target depth image based on any other feasible implementation method, which is not limited in the present embodiment.

[0101] Optionally, the video compression device may determine the physical depth of a pixel in the target depth image based on the following formula:

[0102] Among them, depth real is the physical depth of the pixel, N is the bit width of the target depth image, D is the pixel value of the pixel, zfar is the far clipping depth, and znear is the near clipping depth.

[0103] The video compression device can determine the physical depth of each pixel in the target depth image based on the above formula.

[0104] Optionally, the video compression device determines a quantized depth image based on the physical depth and preset bit width of each pixel in the target depth image. Specifically, it can be: based on the physical depth of each pixel, determine the physical depth range associated with the target depth image; based on the physical depth range, the physical depth of each pixel and the preset bit width, determine the quantized depth map.

[0105] For example, if the physical depth corresponding to the pixel with the largest physical depth in the target depth image is depth A, and the physical depth corresponding to the pixel with the smallest physical depth is depth B, the physical depth range of the target depth image is (depth B, depth A).

[0106] Optionally, the video compression device may determine the quantized depth map based on the following formula:

[0107] Among them, D' is the pixel value corresponding to the quantized pixel, depth real is the physical depth of the pixel, N′ is the preset bit width, d far is the maximum value of the physical depth range, dnear The minimum value of the physical depth range.

[0108] Based on the above formula, the video compression device can obtain the pixel value of each pixel in the target depth image after quantization, and then obtain the quantized depth image.

[0109] After obtaining the quantized depth image corresponding to each target depth image, the video compression device may perform stitching processing on multiple target images, multiple quantized depth images and / or multiple target transparent images to obtain multiple stitched images.

[0110] Optionally, after the video compression device quantizes the target depth image to obtain a quantized depth image, the video compression data generated by the video compression device may also include a physical depth range associated with the target depth image. This facilitates the electronic device to decompress the video compression data and improves the decompression efficiency of the electronic device.

[0111] Optionally, the target transparent image compressed by the video compression device is YUV data. Therefore, the video compression device can convert the target transparent image and store the YUV data of the target transparent image in the format of RGB data. Since transparency is a single channel, transparency can be stored in any channel of the RGB channel (such as the B channel). Based on the RGB to YUV conversion formula, the RBG data converted from the target transparent image is YUV converted to obtain new YUV data. When converting based on the RGB to YUV conversion formula, the channel value of the RGB data that does not store transparency is 0, and the channel value that stores transparency is the transparency value of transparency (such as transparency is stored in the B channel, then when converting from RGB to YUV, the R channel and the G channel are 0, and the B channel is the transparency value). Based on the above method, when the electronic device decompresses the spliced ​​image, The YUV data of the stitched image can be converted into RGB data. In the prior art, the target transparent image is converted into RGB data during decompression. However, the RGB data needs to be converted into YUV data during use, resulting in low decompression efficiency. Therefore, the present invention first stores the YUV data of the target transparent image in RGB data format, and then converts RGB to YUV. In this way, when the electronic device decompresses the stitched image, the decompressed target transparent image is YUV data, and there is no need to perform RGB to YUV conversion, thereby improving the decompression efficiency.

[0112] The following describes the stitching of images with reference to FIG7 .

[0113] FIG7 is a schematic diagram of a stitched image provided by an embodiment of the present disclosure. Referring to FIG7 , the stitched image includes: a target image from view 1, a target image from view 2, a target image from view 3, and a target image from view 4; and a target depth image A corresponding to the target image from view 1, a target depth image B corresponding to the target image from view 2, a target depth image C corresponding to the target image from view 3, and a target depth image D corresponding to the target image from view 4. Each target image from each view includes a target object, and each target image from each view has the same timestamp.

[0114] Referring to Figure 7 , the target image and target depth image are stitched together to obtain a stitched image corresponding to that moment. The first row of stitched images, from left to right, includes the target image for view 1, the target image for view 2, target depth image A, and target depth image B. The second row of stitched images, from left to right, includes the target image for view 3, the target image for view 4, target depth image C, and target depth image D. In this way, stitching together multiple target images to obtain a stitched image can convert multiple input streams of videos from multiple viewpoints into an input stream for a single stitched image, thereby improving video compression efficiency.

[0115] The disclosed embodiments provide a method for determining a stitched image, determining a target depth image and / or a target transparent image corresponding to each target image, obtaining the bit width of each target depth image, and when the bit width is greater than a preset bit width, quantizing the depth information of the target depth image to obtain a quantized depth image, stitching multiple target images, multiple quantized depth images, and / or multiple target transparent images to obtain a stitched image corresponding to multiple target images with the same timestamp. In this way, the stitched image can include not only the texture information of the target image, but also the depth information and transparency information of the target image, thereby improving the accuracy of decompression of the electronic device, and multiple target images with the same timestamp can be stitched into one stitched image. Therefore, the video compression device does not need to compress multiple video streams from multiple perspectives, thereby improving the video compression efficiency.

[0116] Based on any one of the above embodiments, the process of the above video compression method will be described below in conjunction with FIG8 .

[0117] FIG8 is a schematic diagram of a video compression method provided by an embodiment of the present disclosure. Referring to FIG8 , the method includes: a video generation device, a video compression device, and a VR device. The video generation device can generate a video of a target object at a 0-degree viewing angle, a video at a 90-degree viewing angle, and a video at a 180-degree viewing angle, and transmit the 0-degree viewing angle, the 90-degree viewing angle, and the 180-degree viewing angle to the video compression device.

[0118] Referring to Figure 8 , after the video compression device acquires videos from multiple perspectives, it can crop the multiple video images and multiple depth images at timestamp 1 to obtain a 0-degree target image, a 90-degree target image, a 180-degree target image, and a target depth image A corresponding to the 0-degree target image, a target depth image B corresponding to the 90-degree target image, and a target depth image C corresponding to the 180-degree target image. The video compression device can also acquire the aforementioned images at timestamps 2 to n, which will not be further described in detail in this embodiment of the present disclosure.

[0119] Referring to FIG. 8 , the video compression device may stitch the images at timestamp 1 to obtain stitched images, where the first row of the stitched images at timestamp 1 includes, from left to right, a 0-degree target image, a 90-degree target image, and a 180-degree target image, and the second row of the stitched images at timestamp 1 includes, from left to right, a target depth image A, a target depth image B, and a target depth image C. The video compression device may also stitch the images at timestamps 2 to n using the same stitching method, which will not be further described in detail in this embodiment of the present disclosure.

[0120] Please refer to Figure 8. The video compression device can compress the stitched images corresponding to multiple timestamps to obtain compressed data of the stitched images, and send the compressed data of the stitched images to the VR device. After receiving the compressed data of the stitched images, the VR device can decompress the compressed data of the stitched images to obtain target images from multiple perspectives. In this way, since the compressed data of the stitched images includes target image information, depth information, and transparency information, the VR device does not need to restore the pixels after receiving the compressed data of the stitched images, and can accurately decompress the compressed data of the stitched images, thereby improving the accuracy of the decompression. In addition, since the video compression device can stitch multiple target images with the same timestamp, the video compression device can compress the video stream of one stitched image, thereby improving the efficiency of video compression.

[0121] FIG9 is a schematic diagram of the structure of a video compression device provided by an embodiment of the present disclosure. Referring to FIG9 , the video compression device 900 includes an acquisition module 901, a cropping module 902, a splicing module 903, and a compression module 904, wherein:

[0122] The acquisition module 901 is used to acquire multiple videos of multiple perspectives associated with the target object, the multiple perspectives corresponding to the multiple videos one-to-one, and each video image in each video includes a timestamp;

[0123] The cropping module 902 is configured to crop each video image in the plurality of videos to obtain a target image corresponding to each video image in each video, wherein the target image includes the target object and includes the same timestamp as the corresponding video image;

[0124] The determining module 903 is configured to determine a stitched image based on multiple target images with the same timestamp to obtain multiple stitched images;

[0125] The compression module 904 is configured to compress the multiple stitched images to obtain video compression data associated with videos of multiple perspectives.

[0126] According to one or more embodiments of the present disclosure, the determining module 903 is specifically configured to:

[0127] For any group of multiple target images with the same timestamp, determine a target depth image and / or a target transparent image corresponding to each target image;

[0128] The multiple target images, the multiple target depth images and / or the multiple target transparent images are stitched together to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0129] According to one or more embodiments of the present disclosure, the determining module 903 is specifically configured to:

[0130] Determining a depth image and / or a transparency image of a video image corresponding to the target image;

[0131] Based on the cropping method of the video image corresponding to the target image, the depth image and / or the transparent image are cropped to obtain the target depth image and / or the target transparent image.

[0132] According to one or more embodiments of the present disclosure, the determining module 903 is specifically configured to:

[0133] Obtaining the bit width of each target depth image;

[0134] When the bit width is greater than a preset bit width, quantizing the depth information of the target depth image to obtain a quantized depth image;

[0135] The multiple target images, the multiple quantized depth images and / or the multiple target transparent images are stitched together to obtain a stitched image corresponding to the multiple target images with the same timestamp.

[0136] According to one or more embodiments of the present disclosure, the determining module 903 is specifically configured to:

[0137] Acquire near clipping plane information and far clipping plane information of the target depth image;

[0138] For any pixel in the target depth image, determine the physical depth of the pixel based on the near plane information, the far plane information, the bit width, and the pixel value of the pixel;

[0139] The quantized depth image is determined based on the physical depth of each pixel in the target depth image and the preset bit width.

[0140] According to one or more embodiments of the present disclosure, the determining module 903 is specifically configured to:

[0141] Determining a physical depth range associated with the target depth image based on the physical depth of each pixel;

[0142] The quantized depth image is determined based on the physical depth range, the physical depth of each pixel, and the preset bit width.

[0143] According to one or more embodiments of the present disclosure, the cropping module 902 is specifically configured to:

[0144] Detecting the position coordinates of the target object in the video image;

[0145] Based on the position coordinates, the video image is cropped to obtain a target image corresponding to the video image.

[0146] According to one or more embodiments of the present disclosure, the video compression data further includes a physical depth range associated with the target depth image.

[0147] The video compression device provided in the embodiment of the present disclosure can be used to implement the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0148] FIG10 is a schematic diagram of the structure of a video compression device provided by an embodiment of the present disclosure. Please refer to FIG10 , which shows a schematic diagram of the structure of a video compression device 1000 suitable for implementing an embodiment of the present disclosure. The video compression device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. The video compression device shown in FIG10 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0149] As shown in FIG10 , video compression device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1008 into a random access memory (RAM) 1003. RAM 1003 also stores various programs and data required for the operation of video compression device 1000. Processing device 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to bus 1004.

[0150] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the video compression device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although FIG10 illustrates a video compression device 1000 having various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0151] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0152] FIG11 is a schematic diagram of the structure of a video processing system provided by an embodiment of the present disclosure. Referring to FIG11 , the video processing system 11 includes a video compression device 111 and a video decompression device 112. The video decompression device 112 is configured to receive compressed video data sent by the video compression device and decompress the compressed video data.

[0153] According to one or more embodiments of the present disclosure, the video decompression device 112 is further configured to merge the decompressed target image into the background image.

[0154] According to one or more embodiments of the present disclosure, the video decompression device 112 is a VR device.

[0155] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0156] The computer-readable medium may be included in the video compression device, or may exist independently without being incorporated into the video compression device.

[0157] The computer-readable medium carries one or more programs. When the one or more programs are executed by the video compression device, the video compression device executes the method shown in the above embodiment.

[0158] An embodiment of the present disclosure provides a computer-readable storage medium having computer-executable instructions stored therein. When a processor executes the computer-executable instructions, the first aspect and various possible data transmission methods involved in the first aspect are implemented.

[0159] An embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the first aspect and various data transmission methods that may be involved in the first aspect.

[0160] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or video compression device. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0161] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0162] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0163] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0164] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0165] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0166] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0167] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0168] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0169] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A video compression method, comprising: Acquire multiple videos of multiple perspectives associated with the target object, wherein the multiple perspectives correspond to the multiple videos one by one, and each video image in each video includes a timestamp; Cropping each video image in the multiple videos to obtain a target image corresponding to each video image in each video, wherein the target image includes the target object and includes a timestamp that is the same as that of the corresponding video image; Based on multiple target images with the same timestamp, a stitched image is determined to obtain multiple stitched images; The multiple spliced ​​images are compressed to obtain video compression data associated with videos of multiple viewing angles.

2. The method according to claim 1, wherein: The step of determining a stitched image based on multiple target images with the same timestamp includes: For any group of multiple target images with the same timestamp, determine a target depth image and / or a target transparent image corresponding to each target image; The multiple target images, the multiple target depth images and / or the multiple target transparent images are stitched together to obtain a stitched image corresponding to the multiple target images with the same timestamp.

3. The method according to claim 2, wherein: The determining of a target depth image and / or a target transparent image corresponding to each target image comprises: Determine a depth image and / or a transparent image of the video image corresponding to the target image; Based on the cropping method of the video image corresponding to the target image, the depth image and / or the transparent image is cropped to obtain the target depth image and / or the target transparent image.

4. The method according to claim 2 or 3, wherein: The stitching process is performed on the multiple target images, the multiple target depth images and / or the multiple target transparent images to obtain a stitched image corresponding to the multiple target images with the same timestamp, including: Obtaining the bit width of each of the target depth images; When the bit width is greater than a preset bit width, quantizing the depth information of the target depth image to obtain a quantized depth image; The multiple target images, the multiple quantized depth images and / or the multiple target transparent images are stitched together to obtain a stitched image corresponding to the multiple target images with the same timestamp.

5. The method according to claim 4, wherein: The quantizing the depth information of the target depth image to obtain a quantized depth image includes: Acquire near clipping plane information and far clipping plane information of the target depth image; For any pixel in the target depth image, determine the physical depth of the pixel based on the near clipping plane information, the far clipping plane information, the bit width and the pixel value of the pixel; The quantized depth image is determined based on the physical depth of each pixel in the target depth image and the preset bit width.

6. The method according to claim 5, wherein: The determining the quantized depth image based on the physical depth of each pixel in the target depth image and the preset bit width includes: Determining a physical depth range associated with the target depth image based on the physical depth of each pixel; The quantized depth image is determined based on the physical depth range, the physical depth of each pixel, and the preset bit width.

7. The method according to any one of claims 1 to 6, wherein: The step of cropping each video image in the plurality of videos to obtain a target image corresponding to each video image in each video includes: Detecting the position coordinates of the target object in the video image; Based on the position coordinates, the video image is cropped to obtain a target image corresponding to the video image.

8. The method according to any one of claims 4 to 6, wherein: The video compression data also includes a physical depth range associated with the target depth image.

9. The method according to any one of claims 1 to 8, wherein: The step of cropping each video image in the plurality of videos to obtain a target image corresponding to each video image in each video comprises: For each video image including multiple target objects, the video image including multiple target objects is cropped to obtain a target image including the multiple target objects, or to obtain multiple target images including a single target object.

10. The method according to any one of claims 1 to 8, wherein: The multiple videos are motion capture videos, and the target image is a virtual object or a virtual character.

11. A video compression device, comprising: An acquisition module is configured to acquire a plurality of videos of a plurality of viewing angles associated with a target object, wherein the plurality of viewing angles correspond one-to-one to the plurality of videos, and each video image in each video includes a timestamp; The cropping module is configured to crop each video image in the multiple videos to obtain a target image corresponding to each video image in each video, wherein the target image includes the target object. The images include the same timestamps as the corresponding video images; A determination module is configured to determine a stitched image based on a plurality of target images with the same timestamp to obtain a plurality of stitched images; The compression module is configured to perform compression processing on the multiple spliced ​​images to obtain video compression data associated with videos of multiple viewing angles.

12. A video compression device, comprising: Memory, which stores computer-executable instructions; A processor is configured to execute the computer-executable instructions stored in the memory, so that the processor executes the video compression method according to any one of claims 1 to 8.

13. A video processing system, comprising: The video compression device according to claim 11 or 12; as well as The video decompression device is configured to receive the video compression data sent by the video compression device and decompress the video compression data.

14. The video processing system according to claim 13, wherein: The video decompression device is further configured to merge the decompressed target into the background image.

15. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the video compression method according to any one of claims 1 to 8 is implemented.

16. A computer program comprising: Instructions, when executed by a processor, cause the processor to perform the video compression method according to any one of claims 1-8.

Citation Information

Patent Citations

  • VR (virtual reality) video clip system

    CN106355554A

  • Driving recording device

    CN108184049A

  • Depth map processing method and device, video reconstruction method and device, equipment and storage medium

    CN113963094A

  • Video picture splicing method and device, terminal and storage medium

    CN114554281A

  • Method and apparatus of 360 degree camera video processing with targeted view

    US20200257918A1