A method and system for realizing 3D video splicing supporting dual chips
Through the dual-channel SoC solution, in 3D/3DVR video splicing, the auxiliary SoC is used for video slice merging, which solves the problem of single SoC performance limitation and high cost of dual SoC, and achieves efficient and real-time video splicing processing.
Patent Information
- Application Number
- CN202410727544.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-06
AI Technical Summary
When existing 3D/3DVR video splicing technology processes high-resolution videos, the performance limitations of a single SoC chip and the need for twice the decoding and encoding performance of dual SoC chips lead to high costs and insufficient real-time performance.
Adopting a dual-channel SoC solution, the auxiliary SoC is used to merge H264/H265 video slices, and any SoC is used to complete auxiliary processing, reducing the overall solution cost and ensuring the real-time performance of 3D/3DVR video splicing.
It supports real-time splicing of high-resolution videos without doubling the encoding and decoding performance, significantly reducing the cost of the overall solution while ensuring the real-time nature of 3D/3DVR video splicing.
Smart Images

Figure CN118301307B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video splicing, and more particularly to a method and system for realizing 3D video splicing supporting dual chips. Background Art
[0002] There are two common 3D / 3DVR video splicing technologies:
[0003] 1. Single SoC, supports two CMOS channels, and uses a single SoC for video processing, video splicing and encoding. This is the most common solution, but because the performance limit of the SoC is already designed when it is designed, for example, when the performance of the SoC is designed to process a maximum of 4K30FPS, it cannot process videos exceeding 4K30FPS in real time. If you want to process higher resolution videos in real time, such as 8K30FPS videos, the traditional approach is to replace a higher performance SoC chip, but if there is no higher performance SoC chip, a single SoC chip cannot meet the requirements.
[0004] 2. Dual-channel SoC, the two SoCs have independent outputs. The two-channel videos are decoded on the back-end high-performance platform (usually a PC), and then spliced and encoded. However, this requires the back-end processing capabilities to support twice the video decoding and encoding capabilities of a single SoC.
[0005] Therefore, how to provide a 3D video splicing implementation method and system supporting dual chips to reduce the cost of the overall solution while ensuring the real-time performance of 3D / 3DVR video splicing is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0006] In view of this, the present invention provides a dual-chip 3D video splicing implementation method and system, which adopts a dual-channel SoC solution and uses an auxiliary SoC to merge H264 / H265 video slices, but does not require twice the encoding and decoding performance of a single SoC. Usually, this auxiliary SoC can be completed by any one of the dual-channel SoCs, which can greatly reduce the cost of the overall solution while ensuring the real-time performance of 3D / 3DVR video splicing.
[0007] In order to achieve the above object, the present invention adopts the following technical solution: a method for realizing 3D video splicing supporting dual chips, comprising:
[0008] Acquire a first image and a second image respectively;
[0009] Constructing a first chip and a second chip, wherein data is transmitted between the first chip and the second chip;
[0010] The first chip receives the first image, and processes the first image directly or indirectly to obtain a first segmented image and a third segmented image; the second chip receives the second image, and processes the second image directly or indirectly to obtain a second segmented image and a fourth segmented image;
[0011] The first segmented image and the third segmented image are combined by a first chip to obtain a first stitched image; the second segmented image and the fourth segmented image are combined by a second chip to obtain a second stitched image;
[0012] Encoding the first spliced image into a first coded slice by hardware or software; encoding the second spliced image into a second coded slice by hardware or software;
[0013] In the CPU of the first chip or the CPU of the second chip, the first coded slice and the second coded slice are combined and repaired to obtain complete image coded data;
[0014] A video file is formed by processing image frame data of multiple frames.
[0015] Preferably, directly processing the first image and directly processing the second image include:
[0016] The first chip includes a first SoC chip, and the second chip includes a second SoC chip;
[0017] The first SoC chip horizontally divides the first image into a first divided image and a second divided image; the second SoC chip horizontally divides the second image into a third divided image and a fourth divided image;
[0018] The first SoC chip sends the second segmented image to the second SoC chip;
[0019] The second SoC chip sends the third segmented image to the first SoC chip.
[0020] Preferably, the indirect processing of the first image and the indirect processing of the second image include:
[0021] The first chip includes a first data multiplexer and a first SoC chip, and the second chip includes a second data multiplexer and a second SoC chip;
[0022] A first data multiplexer receives the first image; the first data multiplexer copies the first image and sends the first image to the first SoC chip and the second SoC chip respectively;
[0023] The second data multiplexer receives the second image; the second data multiplexer copies the second image and sends the second image to the first SoC chip and the second SoC chip respectively;
[0024] The first SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the first segmented image and the third segmented image, while filtering out the second segmented image and the fourth segmented image;
[0025] The second SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the second segmented image and the fourth segmented image, while filtering out the first segmented image and the third segmented image.
[0026] Preferably, the first image is acquired by a first image sensor, and the second image is acquired by a second image sensor.
[0027] Preferably, the height of the first image and the second image is set to n lines; horizontal segmentation is performed by hardware or software;
[0028] The first image is horizontally divided into a first segmented image and a second segmented image; wherein [1, n / 2] is the first segmented image, and [n / 2+1, n] is the second segmented image;
[0029] The second image is horizontally divided into a third segmented image and a fourth segmented image; wherein [1, n / 2] is the third segmented image, and [n / 2+1, n] is the fourth segmented image.
[0030] Preferably, the width of the first stitched image is n / 2, and the length is twice that of the first image / the second image;
[0031] The width of the second stitched image is n / 2, and the length is twice that of the first image / the second image.
[0032] Preferably, if the first chip directly processes the first image, the second chip also directly processes the second image;
[0033] If the first chip indirectly processes the first image, the second chip also indirectly processes the second image.
[0034] Preferably, a dual-chip 3D video splicing implementation system includes:
[0035] A first image sensor, used to acquire a first image;
[0036] A second image sensor, used to acquire a second image;
[0037] A first chip, the first chip comprising a first direct processing unit or a first indirect processing unit, configured to receive the first image, directly or indirectly process the first image to obtain a first segmented image and a third segmented image, and merge and encode the first segmented image and the third segmented image to obtain a first coded slice;
[0038] a second chip, the second chip comprising a second direct processing unit or a second indirect processing unit, configured to receive the second image, directly or indirectly process the second image to obtain a second segmented image and a fourth segmented image, and merge and encode the second segmented image and the fourth segmented image to obtain a second coded slice;
[0039] Data transmission is performed between the first chip and the second chip;
[0040] The main processor is used to merge and repair the first coded slice and the second coded slice to obtain complete image coding data.
[0041] Preferably, the first direct processing unit comprises: a first SoC chip;
[0042] The second direct processing unit includes: a second SoC chip;
[0043] The first image sensor transmits images to the first SoC chip;
[0044] The second image sensor transmits images to the second SoC chip;
[0045] The first SoC chip and the second SoC chip perform image interaction.
[0046] Preferably, the first indirect processing unit comprises: a first data multiplexer and a first SoC chip;
[0047] The second indirect processing unit includes: a second data multiplexer and a second SoC chip;
[0048] The first image sensor and the first data multiplexer perform image transmission;
[0049] The second image sensor and the second data multiplexer perform image transmission;
[0050] The first data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively;
[0051] The second data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively.
[0052] Through the above technical solution, it can be known that compared with the prior art, the present invention discloses a 3D video stitching implementation method and system supporting dual chips, including: respectively acquiring a first image and a second image; constructing a first chip and a second chip, and transmitting data between the first chip and the second chip; the first chip receives the first image, and directly or indirectly processes the first image to obtain a first segmented image and a third segmented image; the second chip receives the second image, and directly or indirectly processes the second image to obtain a second segmented image and a fourth segmented image; the first chip merges the first segmented image and the third segmented image to obtain a first stitched image; the second chip merges the second segmented image and the fourth segmented image to obtain a second stitched image; the first stitched image is encoded into a first coded slice by hardware or software; the second stitched image is encoded into a second coded slice by hardware or software; in the CPU of the first chip or the CPU of the second chip, the first coded slice and the second coded slice are merged and repaired to obtain complete image coding data; a video file is formed by processing multiple frames of image frame data. The present invention adopts a dual-channel SoC solution, and uses an auxiliary SoC to merge H264 / H265 video slices, but does not require twice the encoding and decoding performance of a single SoC. Usually, this auxiliary SoC can be completed by any one of the dual-channel SoCs, which can greatly reduce the cost of the overall solution while ensuring the real-time performance of 3D / 3DVR video splicing. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0054] Figure 1 A schematic flow chart of a method for realizing 3D video splicing supporting dual chips provided by the present invention.
[0055] FIG. 2( a ) is a schematic diagram showing the formats of the left and right parts of a 3D video according to an embodiment of the present invention.
[0056] FIG. 2( b ) is a schematic diagram showing actual image formats of left and right parts of a 3D video provided by an embodiment of the present invention.
[0057] Figure 3A schematic diagram of a direct processing process of a first image and a second image provided by an embodiment of the present invention.
[0058] Figure 4 A schematic diagram of the indirect processing process of the first image and the second image provided by an embodiment of the present invention.
[0059] Figure 5 A schematic diagram of a process of horizontally segmenting a first image provided by an embodiment of the present invention.
[0060] Figure 6 A schematic diagram of horizontal segmentation results of a first image and a second image provided by an embodiment of the present invention.
[0061] Figure 7 A schematic diagram of image transmission after horizontal segmentation of a first image and a second image provided by an embodiment of the present invention.
[0062] Figure 8 A schematic diagram of a process of merging a first segmented image and a third segmented image provided by an embodiment of the present invention.
[0063] Fig. 9 A schematic diagram of a process of generating a first stitched image and a second stitched image provided by an embodiment of the present invention.
[0064] Fig.10 A schematic diagram of a process for generating a first coded slice and a second coded slice provided in an embodiment of the present invention.
[0065] Fig.11 A schematic diagram of a process for merging and repairing a first coded slice and a second coded slice provided in an embodiment of the present invention.
[0066] FIG12( a ) is a schematic diagram of generating a first image in a practical application provided by an embodiment of the present invention.
[0067] FIG12( b ) is a schematic diagram of generating a second image in a practical application provided by an embodiment of the present invention.
[0068] Fig.13 A schematic diagram of a process of processing a first image and a second image in a practical application provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0070] The embodiment of the present invention discloses a method and system for realizing 3D video stitching supporting dual chips, comprising: acquiring a first image and a second image respectively; constructing a first chip and a second chip, and transmitting data between the first chip and the second chip; the first chip receives the first image, and directly or indirectly processes the first image to obtain a first segmented image and a third segmented image; the second chip receives the second image, and directly or indirectly processes the second image to obtain a second segmented image and a fourth segmented image; the first chip merges the first segmented image and the third segmented image to obtain a first stitched image; the second chip merges the second segmented image and the fourth segmented image to obtain a second stitched image; the first stitched image is encoded into a first coded slice by hardware or software; the second stitched image is encoded into a second coded slice by hardware or software; in the CPU of the first chip or the CPU of the second chip, the first coded slice and the second coded slice are merged and repaired to obtain complete image coded data; and a video file is formed by processing multiple frames of image frame data. The embodiment of the present invention adopts a dual-channel SoC solution, and uses an auxiliary SoC to merge H264 / H265 video slices, but does not require twice the encoding and decoding performance of a single SoC. Usually, this auxiliary SoC can be completed by any one of the dual-channel SoCs, which can greatly reduce the cost of the overall solution while ensuring the real-time performance of 3D / 3DVR video splicing.
[0071] Specifically, an embodiment of the present invention provides a method for implementing 3D video splicing supporting dual chips, such as Figure 1 As shown, including:
[0072] Acquire a first image and a second image respectively;
[0073] Constructing a first chip and a second chip, wherein data is transmitted between the first chip and the second chip;
[0074] The first chip receives the first image, and processes the first image directly or indirectly to obtain a first segmented image and a third segmented image; the second chip receives the second image, and processes the second image directly or indirectly to obtain a second segmented image and a fourth segmented image;
[0075] The first segmented image and the third segmented image are combined by a first chip to obtain a first stitched image; the second segmented image and the fourth segmented image are combined by a second chip to obtain a second stitched image;
[0076] Encoding the first spliced image into a first coded slice by hardware or software; encoding the second spliced image into a second coded slice by hardware or software;
[0077] In the CPU of the first chip or the CPU of the second chip, the first coded slice and the second coded slice are combined and repaired to obtain complete image coded data;
[0078] A video file is formed by processing image frame data of multiple frames.
[0079] Specifically, the first image is acquired through the first image sensor, and the second image is acquired through the second image sensor.
[0080] Common 3D or 3DVR, usually divided into two parts, left and right, the video format is shown in Figure 2 (a), 3D and 3DVR video only differ in aspect ratio, as shown in Figure 2 (b) is a practical example of 3DVR video format; in order to achieve the final video format, such as Figure 3 and Figure 4 As shown, the hardware connection architecture of the direct processing and indirect processing processes provided by the embodiments of the present invention are respectively shown.
[0081] Specifically, directly processing the first image and directly processing the second image include:
[0082] The first chip includes a first SoC chip, and the second chip includes a second SoC chip;
[0083] The first SoC chip horizontally divides the first image into a first segmented image and a second segmented image; the second SoC chip horizontally divides the second image into a third segmented image and a fourth segmented image; the first segmented image and the second segmented image are respectively half of the first image; the third segmented image and the fourth segmented image are respectively half of the second image;
[0084] The first SoC chip sends the second segmented image to the second SoC chip;
[0085] The second SoC chip sends the third segmented image to the first SoC chip.
[0086] Specifically, Figure 3As shown, the first image sensor Sensor1 is directly connected to the first SoC chip SoC1, and the second image sensor Sensor2 is directly connected to the second SoC chip SoC2. The first SoC chip SoC1 and the second SoC chip SoC2 are connected at high speed to facilitate the mutual transmission of image data; the data of the first image sensor Sensor1 is first sent to the first SoC chip SoC1, and then half of the data is sent to the second SoC chip SoC2, and the second image sensor Sensor2 is processed similarly. The data of the second image sensor Sensor2 is first sent to the second SoC chip SoC2, and then the same half of the data is sent to the first SoC chip SoC1.
[0087] Specifically, indirectly processing the first image and indirectly processing the second image include:
[0088] The first chip includes a first data multiplexer and a first SoC chip, and the second chip includes a second data multiplexer and a second SoC chip;
[0089] A first data multiplexer receives the first image; the first data multiplexer copies the first image and sends the first image to the first SoC chip and the second SoC chip respectively;
[0090] The second data multiplexer receives the second image; the second data multiplexer copies the second image and sends the second image to the first SoC chip and the second SoC chip respectively;
[0091] The first SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the first segmented image and the third segmented image, while filtering out the second segmented image and the fourth segmented image;
[0092] The second SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the second segmented image and the fourth segmented image, while filtering out the first segmented image and the third segmented image. The first segmented image and the second segmented image are respectively half of the first image; and the third segmented image and the fourth segmented image are respectively half of the second image.
[0093] Specifically, in Figure 4 In the embodiment, the first image sensor Sensor1 and the second image sensor Sensor2 respectively transmit images through the first data multiplexer and the second data multiplexer, and transmit the images to the first SoC chip SoC1 and the second SoC chip SoC2. The other backend structures are the same as Figure 3The first image sensor Sensor1 sends data to the first data multiplexer repeat1, and the first data multiplexer repeat1 divides the data into two and sends them to the first SoC chip SoC1 and the second SoC chip SoC2 respectively. The data processing method of the second image sensor Sensor2 is similar. The second image sensor Sensor2 sends data to the second data multiplexer repeat2, and the second data multiplexer repeat2 divides the data into two and sends them to the first SoC chip SoC1 and the second SoC chip SoC2 respectively.
[0094] The first SoC chip SoC1 retains the upper half images of the first image and the second image, and the second SoC chip SoC2 retains the lower half images of the first image and the second image.
[0095] Specifically, after the first data multiplexer is copied, there are two copies of the first image, one is sent to the first SoC chip, and the other is sent to the second SoC chip; after the second data multiplexer is copied, there are two copies of the second image, one is sent to the first SoC chip, and the other is sent to the second SoC chip.
[0096] Specifically, Figure 5 As shown, the height of the first image and the second image is set to n lines; horizontal segmentation is performed by hardware or software;
[0097] The first image is horizontally divided into a first segmented image and a second segmented image; wherein [1, n / 2] is the first segmented image, and [n / 2+1, n] is the second segmented image;
[0098] The second image is horizontally divided into a third segmented image and a fourth segmented image; wherein [1, n / 2] is the third segmented image, and [n / 2+1, n] is the fourth segmented image.
[0099] Among them, the first SoC chip horizontally divides the image through hardware or software, and the second SoC chip also divides the image horizontally through hardware or software; among them, [1, n / 2] is the first segmented image, [n / 2+1, n] is the second segmented image; [1, n / 2] is the third segmented image, and [n / 2+1, n] is the fourth segmented image.
[0100] In a specific embodiment of the present invention, the first image sensor Sensor1 receives an image as left, and the second image sensor receives an image as right. Furthermore, the embodiment of the present invention divides the left image into two parts, namely, LT (left top) and LB (left bottom). The right image can also be divided into two parts: RT (right top) and RB (right bottom), as shown in FIG. Figure 5 and Figure 6 shown.
[0101] Taking the first image sensor Sensor1 as an example, after the first SoC chip SoC1 receives the left image, assuming that the height of the left image is n lines, the first SoC chip SoC1 can divide the image vertically into two parts by hardware or software, where [1, n / 2] is one part, namely the LT part, and [n / 2+1, n] is the other part, namely the LB part, as shown in FIG. Figure 5 shown.
[0102] At a certain moment, when the first image sensor Sensor1 and the second image sensor Sensor2 obtain the left image and the right image respectively, the first SoC chip SoC1 directly processes the left image into LT and LB, and the second SoC chip SoC2 directly processes the right image into RT and RB. Figure 6 As shown, the entire picture to be spliced is divided into four parts (LT, LB, RT and RB). The first SoC chip SoC1 sends the image part of LB at this time to the second SoC chip SoC2. The transmission method of the image sending here can be completed through the built-in mipi, USB or other high-speed transmission interface methods of the first SoC chip SoC. At the same time, the second SoC chip SoC2 is similar, sending the image part of RB to the first SoC chip SoC1. The transmission method of image sending can be completed through the built-in mipi, USB or other high-speed transmission interface methods of the second SoC chip SoC2. In this way, the first SoC chip SoC1 has two parts, LT and RT, and the second SoC chip SoC2 has two parts, LB and RB. Figure 7 shown.
[0103] Alternatively, when the first image sensor Sensor1 and the second image sensor Sensor2 acquire the left image and the right image respectively, the first data multiplexer copies the left image and sends it to the first SoC chip SoC1 and the second SoC chip SoC2 respectively; the second data multiplexer copies the right image and sends it to the first SoC chip SoC1 and the second SoC chip SoC2 respectively; at this time, the first SoC chip SoC1 contains the complete left image and the right image, and the second SoC chip SoC2 contains the complete left image and the right image; the first SoC chip horizontally divides the left image into the first segmented image LT and the second segmented image LB, and divides the right image horizontally into the third segmented image RT and the fourth segmented image RB; and retains the first segmented image LT and the third segmented image RT, while filtering out the second segmented image LB and the fourth segmented image RB; the second SoC chip horizontally divides the left image into the first segmented image LT and the second segmented image LB, and divides the right image horizontally into the third segmented image RT and the fourth segmented image RB; and retains the second segmented image LB and the fourth segmented image RB, while filtering out the first segmented image LT and the third segmented image RT. Through the front data multiplexer, the image data will be sent to two SoC chips respectively. The SoC chip filters out unnecessary image data according to the required data, and there is no need to transmit image data between SoC chips.
[0104] Specifically, Figure 8 As shown, the width of the first stitched image is n / 2, and the length is twice that of the first image / the second image;
[0105] The width of the second stitched image is n / 2, and the length is twice that of the first image / the second image.
[0106] Specifically, if the first chip directly processes the first image, the second chip also directly processes the second image;
[0107] If the first chip indirectly processes the first image, the second chip also indirectly processes the second image.
[0108] In a specific embodiment of the present invention, Figure 8 As shown, the first SoC chip SoC1 horizontally merges the LT and RT images by hardware or software to form an image with a height of n / 2 and a width twice that of the original image. Here, the image after the LT and RT images are merged is called top. Similarly, the second SoC chip SoC2 horizontally merges the LB and RB images. Here, the image after the LT and RT images are merged is called bottom. Fig. 9As shown, in this way, the embodiment of the present invention obtains two images, top and bottom, in the first SoC chip SoC1 and the second SoC chip SoC2, respectively.
[0109] The first SoC chip SoC1 encodes the top image into a topencode slice by hardware or software H264 / H265. Similarly, the second SoC chip SoC2 encodes the bottom image into a bottom encode slice, such as Fig.10 shown.
[0110] The first SoC chip SoC1 sends the top encode slice data to the CPU, and the second SoC chip SoC2 also sends the bottom encode slice to the CPU, so that the CPU has the encode slices of the top and bottom parts of the image at the same time. Fig.11 shown.
[0111] The top encode slice and bottom encode slice data are processed by the CPU. Taking H264 as an example, after the CPU receives data from the first SoC chip SoC1 and the second SoC chip SoC2, the CPU needs to modify the SPS data of H264, modify the pic_height_in_map_units_minus1 of the SPS of the top encode slice to the actual height after splicing, and then write the top encode slice to the file, delete the SPS data of the bottom encode slice, and modify the first_mb_in_slice from the bottom encode slice, and write it to the continuous position after the top encode slice, and finally form a video file by processing the encode slice of multiple frames. The process of forming a video file is the same as the processing process of a conventional H264 / h265 video file. The CPU here can be an independent CPU hardware with a physical data channel with SoC1 and SoC2, or it can be any CPU in the first SoC chip SoC1 or the second SoC chip SoC2.
[0112] In a specific embodiment of the present invention, a dual-chip 3D video splicing implementation system includes:
[0113] A first image sensor, used to acquire a first image;
[0114] A second image sensor, used to acquire a second image;
[0115] A first chip, the first chip comprising a first direct processing unit or a first indirect processing unit, configured to receive the first image, directly or indirectly process the first image to obtain a first segmented image and a third segmented image, and merge and encode the first segmented image and the third segmented image to obtain a first coded slice;
[0116] a second chip, the second chip comprising a second direct processing unit or a second indirect processing unit, configured to receive the second image, directly or indirectly process the second image to obtain a second segmented image and a fourth segmented image, and merge and encode the second segmented image and the fourth segmented image to obtain a second coded slice;
[0117] Data transmission is performed between the first chip and the second chip;
[0118] The main processor is used to merge and repair the first coded slice and the second coded slice to obtain complete image coding data.
[0119] Specifically, the first direct processing unit includes: a first SoC chip;
[0120] The second direct processing unit includes: a second SoC chip;
[0121] The first image sensor transmits images to the first SoC chip;
[0122] The second image sensor transmits images to the second SoC chip;
[0123] The first SoC chip and the second SoC chip perform image interaction.
[0124] Specifically, the first indirect processing unit includes: a first data multiplexer and a first SoC chip;
[0125] The second indirect processing unit includes: a second data multiplexer and a second SoC chip;
[0126] The first image sensor and the first data multiplexer perform image transmission;
[0127] The second image sensor and the second data multiplexer perform image transmission;
[0128] The first data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively;
[0129] The second data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively.
[0130] In a specific embodiment of the present invention, as shown in Figures 12(a) and 12(b), the camera captures two images synchronously by the first image sensor and the second image sensor, and transmits them to the first SoC chip SoC1 and the second SoC chip SoC2; then, the first SoC chip SoC1 divides the left image into LT and LB, and the second SoC chip SoC2 divides the right image into RT and RB; the first SoC chip SoC1 sends the LB data to the second SoC chip SoC2, and the second SoC chip SoC2 sends the RT data to the first SoC chip SoC1, and then the first SoC chip SoC1 and the second SoC chip SoC2 simultaneously perform horizontal merging and encoding, as shown in Figure 12(a) and Figure 12(b). Fig.13 As shown; finally, the first SoC chip SoC1 and the second SoC chip SoC2 send the corresponding encoded images to the CPU, which merges the encoded data to form the encoded data of the complete image, and writes the encoded data into the video file.
[0131] In another specific embodiment of the present invention, the camera captures two images synchronously by the first image sensor and the second image sensor, and transmits them to the first data multiplexer and the second data multiplexer; then, the first data multiplexer and the second data multiplexer copy the received images and send them to the first SoC chip SoC1 and the second SoC chip SoC2 respectively; at this time, the first SoC chip SoC1 contains the first image and the second image, and the second SoC chip SoC2 contains the first image and the second image; the first SoC chip horizontally divides the first image into a first segmented image LT and a second segmented image LB, and divides the second image horizontally into a third segmented image RT and a fourth segmented image RB; and retains the first segmented image LT and the third segmented image RT, while filtering out the second segmented image LB and the fourth segmented image RB; the second SoC chip horizontally divides the first image into a first segmented image LT and a second segmented image LB, and divides the second image horizontally into a third segmented image RT and a fourth segmented image RB; and retains the second segmented image LB and the fourth segmented image RB, while filtering out the first segmented image LT and the third segmented image RT. Then the first SoC chip and the second SoC chip simultaneously merge horizontally and encode. Finally, the first SoC chip and the second SoC chip send the corresponding encoded images to the CPU, which merges the encoded data to form encoded data of the complete image and writes the encoded data into the video file.
[0132] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0133] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A 3D video splicing implementation method supporting dual chips, It is characterized in that include: Acquire a first image and a second image respectively; Constructing a first chip and a second chip, wherein data is transmitted between the first chip and the second chip; The first chip receives the first image and directly processes the first image to obtain a first segmented image and a second segmented image; the second chip receives the second image and directly processes the second image to obtain a third segmented image and a fourth segmented image; or the first chip receives the first image and indirectly processes the first image to obtain a first segmented image and a second segmented image; the second chip receives the second image and indirectly processes the second image to obtain a third segmented image and a fourth segmented image; Performing horizontal merging processing on the first segmented image and the third segmented image through a first chip to obtain a first stitched image; performing horizontal merging processing on the second segmented image and the fourth segmented image through a second chip to obtain a second stitched image; Encoding the first spliced image into a first coded slice by hardware or software; encoding the second spliced image into a second coded slice by hardware or software; In the CPU of the first chip or the CPU of the second chip, the first coded slice and the second coded slice are combined and repaired to obtain complete image coded data; By processing the image encoding data of multiple frames, a video file is formed; The indirect processing of the first image and the indirect processing of the second image include: The first chip includes a first data multiplexer and a first SoC chip, and the second chip includes a second data multiplexer and a second SoC chip; A first data multiplexer receives the first image; the first data multiplexer copies the first image and sends the first image to the first SoC chip and the second SoC chip respectively; The second data multiplexer receives the second image; the second data multiplexer copies the second image and sends the second image to the first SoC chip and the second SoC chip respectively; The first SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the first segmented image and the third segmented image, while filtering out the second segmented image and the fourth segmented image; The second SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the second segmented image and the fourth segmented image, while filtering out the first segmented image and the third segmented image; The first segmented image and the second segmented image are the upper half and the lower half of the first image respectively; The third segmented image and the fourth segmented image are the upper half and the lower half of the second image, respectively.
2. A method for realizing 3D video splicing supporting dual chips according to claim 1, It is characterized in that Directly processing the first image and directly processing the second image include: The first chip includes a first SoC chip, and the second chip includes a second SoC chip; The first SoC chip horizontally divides the first image into a first divided image and a second divided image; the second SoC chip horizontally divides the second image into a third divided image and a fourth divided image; The first SoC chip sends the second segmented image to the second SoC chip; The second SoC chip sends the third segmented image to the first SoC chip.
3. The method for realizing 3D video splicing supporting dual chips according to claim 1, It is characterized in that A first image is acquired through a first image sensor, and a second image is acquired through a second image sensor.
4. A method for realizing 3D video splicing supporting dual chips according to claim 1 or 2, It is characterized in that The height of the first image and the second image is set to n lines; and horizontal segmentation is performed by hardware or software; The first image is horizontally divided into a first segmented image and a second segmented image; wherein [1, n / 2] is the first segmented image, and [n / 2+1, n] is the second segmented image; The second image is horizontally divided into a third segmented image and a fourth segmented image; wherein [1, n / 2] is the third segmented image, and [n / 2+1, n] is the fourth segmented image.
5. A method for realizing 3D video splicing supporting dual chips according to claim 4, It is characterized in that The width of the first stitched image is n / 2, and the length is twice that of the first image / the second image; The width of the second stitched image is n / 2, and the length is twice that of the first image / the second image.
6. A system for realizing 3D video splicing supporting dual chips, using a method for realizing 3D video splicing supporting dual chips as claimed in any one of claims 1 to 5, It is characterized in that The system comprises: a first image sensor, a second image sensor, a main processor, a first chip and a second chip; A first image sensor, used to acquire a first image; A second image sensor, used to acquire a second image; Data transmission is performed between the first chip and the second chip; Wherein, the first chip includes a first direct processing unit, and the second chip includes a second direct processing unit; the first chip receives a first image, and directly processes the first image through the first direct processing unit to obtain a first segmented image and a second segmented image; the second chip receives the second image, and directly processes the second image through the second direct processing unit to obtain a third segmented image and a fourth segmented image; or, the first chip includes a first indirect processing unit, and the second chip includes a second indirect processing unit; the first chip receives the first image, and indirectly processes the first image through the first indirect processing unit to obtain a first segmented image and a second segmented image; the second chip receives the second image, and indirectly processes the second image through the second indirect processing unit to obtain a third segmented image and a fourth segmented image; The first chip horizontally merges and encodes the first segmented image and the third segmented image to obtain a first coded slice; the second chip horizontally merges and encodes the second segmented image and the fourth segmented image to obtain a second coded slice; A general processor, used for merging and repairing the first coded slice and the second coded slice to obtain complete image coded data; Wherein, the first indirect processing unit includes: a first data multiplexer and a first SoC chip; The second indirect processing unit includes: a second data multiplexer and a second SoC chip; The first image sensor and the first data multiplexer perform image transmission; The second image sensor and the second data multiplexer perform image transmission; The first data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively; The second data multiplexer performs image transmission with the first SoC chip and the second SoC chip respectively; Indirectly processing the first image and indirectly processing the second image include: A first data multiplexer receives the first image; the first data multiplexer copies the first image and sends the first image to the first SoC chip and the second SoC chip respectively; The second data multiplexer receives the second image; the second data multiplexer copies the second image and sends the second image to the first SoC chip and the second SoC chip respectively; The first SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the first segmented image and the third segmented image, while filtering out the second segmented image and the fourth segmented image; The second SoC chip horizontally divides the first image into a first segmented image and a second segmented image, and horizontally divides the second image into a third segmented image and a fourth segmented image; and retains the second segmented image and the fourth segmented image, while filtering out the first segmented image and the third segmented image; The first segmented image and the second segmented image are the upper half and the lower half of the first image respectively; The third segmented image and the fourth segmented image are the upper half and the lower half of the second image, respectively.
7. A dual-chip 3D video splicing implementation system according to claim 6, It is characterized in that The first direct processing unit includes: a first SoC chip; The second direct processing unit includes: a second SoC chip; The first image sensor transmits images to the first SoC chip; The second image sensor transmits images to the second SoC chip; The first SoC chip and the second SoC chip perform image interaction.
