WO2021109827A1 - Method and apparatus for outputting multi-channel image data, and computer device - Google Patents

Method and apparatus for outputting multi-channel image data, and computer device Download PDF

Info

Publication number
WO2021109827A1
WO2021109827A1 PCT/CN2020/128411 CN2020128411W WO2021109827A1 WO 2021109827 A1 WO2021109827 A1 WO 2021109827A1 CN 2020128411 W CN2020128411 W CN 2020128411W WO 2021109827 A1 WO2021109827 A1 WO 2021109827A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
channel
image
target
synchronization signal
Prior art date
Application number
PCT/CN2020/128411
Other languages
French (fr)
Chinese (zh)
Inventor
白炳磊
王辉耀
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2021109827A1 publication Critical patent/WO2021109827A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/04Synchronising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Definitions

  • This application relates to the field of data transmission technology, and in particular to a method, device, storage medium, and computer equipment for outputting multi-channel image data.
  • Real-time monitoring refers to the real-time output and display of the image data captured by the camera. Real-time monitoring can be applied to various scenarios, such as providing safety guarantee for vehicle driving and facilitating drivers and passengers to view the situation in the car. Drivers and passengers can use the on-board camera Monitor the environment inside and outside the compartment.
  • Drivers and passengers can use the on-board camera Monitor the environment inside and outside the compartment.
  • the working process is: first output the analog signal of the camera through AHD (Analog High Definition), then convert it into a digital signal through a conversion IC, and pack it into MIPI-CSI2 format, and then do virtual channel interleaving for multiple channels of data Then send the MIPI interface (Mobile Industry Processor Interface, mobile industry processor interface) to the SOC (System on Chip), and the SOC receives the MIPI interleaved signal, and then deinterleaves the data to obtain the image data of each camera. Then output the display.
  • AHD Analog High Definition
  • MIPI interface Mobile Industry Processor Interface, mobile industry processor interface
  • SOC System on Chip
  • SOC is divided into high-end SOC or low-end SOC.
  • low-end SOC does not add corresponding hardware equipment, so MIPI data de-interleaving is generally not supported, and MIPI multi-channel data cannot be realized. (Virtual channel) support, so after adopting low-end SOC in order to save costs, it is impossible to realize the image display of multiple cameras.
  • the main purpose of this application is to provide a method, device and computer equipment for outputting multi-channel image data, aiming to solve the technical problem that the image display of multiple cameras cannot be realized after the low-end SOC is adopted in the prior art.
  • an embodiment of the present application proposes a method for outputting multi-channel image data, including:
  • each of the target data includes valid data collected by multiple-channel cameras and a target frame synchronization signal
  • the effective data of each channel is obtained from the target data respectively;
  • the effective data of each channel are respectively output in the form of outputting a complete frame of image each time.
  • the embodiment of the present application also proposes a device for outputting multi-channel image data, including:
  • An acquiring target unit for acquiring target data in sequence each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
  • the detection signal unit is configured to obtain the effective data of each channel from the target data when the target frame synchronization signal is detected;
  • the output data unit is used to output the effective data of each channel in the form of outputting a complete frame of image each time.
  • the embodiment of the present application also proposes a storage medium, which is a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the method for outputting multi-channel image data according to any one of the above is realized .
  • the embodiment of the present application also proposes a computer device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the processor implements the above Any one of the output methods of multi-channel image data.
  • This application proposes a method, device, and readable storage medium for outputting multi-channel image data.
  • the received target data includes valid data collected by multiple-channel cameras and a target frame synchronization signal, even if the The low-end SOC does not have corresponding hardware facilities, it can still identify the target data, and then restore the image data of each channel from the target data, so that the image data collected by the multi-channel camera can also be output on the basis of low cost.
  • FIG. 1 is a schematic flowchart of a method for outputting multi-channel image data according to an embodiment of the present application
  • Figure 2 is a schematic diagram of a target data structure in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the target data structure in another embodiment of the present application.
  • FIG. 4 is a schematic block diagram of the structure of a device for outputting multi-channel image data according to an embodiment of the present application
  • FIG. 5 is a schematic block diagram of the structure of an embodiment of the storage medium of the present application.
  • Fig. 6 is a schematic structural block diagram of an embodiment of a computer device of the present application.
  • the present application provides a schematic flow chart of a method for outputting multi-channel image data.
  • the method can be executed by an output device for multi-channel image data.
  • the output device for multi-channel image data can specifically be in the form of software or hardware. achieve.
  • the embodiment of the application provides a multi-channel image data output method, including:
  • Step S1 Acquire target data in sequence, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
  • Step S2 when the target frame synchronization signal is detected, the effective data of each of the channels is obtained from the target data;
  • Step S3 Output the effective data of each channel in the form of outputting a complete frame of image each time.
  • the above target data is the converted data collected and output from the camera.
  • the image data of the multiple-channel camera is output through AHD, and then converted from analog signal to digital signal through the conversion IC, and then packaged
  • the target data includes valid data from multiple channel cameras.
  • the valid data can be data of a complete frame of image, data of a field image, or partial data of a frame of image.
  • the obtained target data is presented in a single-channel camera data output method.
  • the single-channel camera data output method is to add a frame synchronization signal and a line synchronization signal to the effective data of the image.
  • the target data are acquired in sequence, and each target data includes valid data collected by cameras of multiple channels, a target frame synchronization signal, and a line synchronization signal.
  • the valid data and target frame synchronization in the target data The signal and the line synchronization signal have been combined in the manner of the aforementioned single-channel camera data output.
  • the target frame synchronization signal is used by the SOC in the process of receiving data to determine that the data can be processed.
  • the line synchronization signal includes the line head of the image.
  • the line header includes channel information, line information of the image frame data to which it belongs, and frame number information of the image frame to which it belongs in the frame sequence.
  • the target frame synchronization signal of the target data when the target frame synchronization signal of the target data is detected, it means that the SOC can process the target data.
  • the valid data of each channel is independent of the valid data of the other channels.
  • the above-mentioned target frame synchronization signal can obtain the effective data of each channel separately from the target data, and then output the effective data of each channel in the form of a complete frame of image each time, and further display the image data, looping the above Steps and display to complete the video display of each camera.
  • the received target data contains valid data collected by multiple channels of cameras and a target frame synchronization signal, even if the low-end SOC does not have corresponding hardware facilities, the target data can still be identified, and then each channel can be restored from the target data.
  • the image data collected by the multi-channel camera can also be output on the basis of low cost.
  • the valid data of each of the channels carries identification information corresponding to each of the channels, and the above step S2 includes:
  • Step S20 According to the identification information, the effective data of each of the channels corresponding to the identification information is obtained from the target data respectively.
  • the above-mentioned identification information is information used to identify channels.
  • image data is converted from an analog signal to a digital signal to form the above-mentioned target data
  • the identification information corresponding to each channel is added to the above-mentioned valid data.
  • the effective data of each channel can be obtained according to the identification information. Specifically, the identification information of the effective data of each channel is first identified to identify the corresponding to each effective data. Channels, and then obtain the valid data corresponding to each channel from the target data.
  • step S3 includes:
  • Step S31 Determine whether the current valid data from each of the channels is the image data of a complete frame of image
  • Step S32 If the current valid data is image data of a complete frame of image, output the current valid data;
  • Step S33 If the current valid data is not a complete image data of one frame of image, it is determined whether the current valid data is related to the subsequent valid data, and the subsequent valid data is the target received next time.
  • the effective data of the channel obtained in the data, and the association relationship is used to indicate that the two effective data belong to the same frame of image;
  • Step S34 If there is an association relationship, merge the current valid data with the subsequent valid data to update the current valid data, and return to execute the judgment whether the current valid data of each channel is a complete frame of image Of the image data.
  • the effective data of channel A is the data of a complete frame of image
  • the data of channel B is only It is the data of the field picture
  • the field of the C channel is the data of the field of the previous frame and the field of the current frame, or the data of the field of the current frame and the field of the next frame; therefore, first determine whether the current valid data is It is the complete image data of the same frame of image.
  • it can be judged by the line header of the target data whether the data of each channel is the data of a complete frame of image.
  • the line header includes the relative frame information and the real line information. , Where the frame information is the frame number of the frame where the line is located.
  • the frame number of a continuous frame picture of a video can be cycled from 0-7;
  • the line information is the line number of the line in a real and complete frame picture, usually one complete
  • the start line number of the line number of the frame image is 1
  • the end line number is the line height n of the frame image (n is an integer greater than 1).
  • the line information is The row number of is arranged from sequence number 1 to sequence number n, it can be determined that the current valid data is the data of a complete frame of image.
  • the number of rows of target data is greater than the number of rows of each frame of image output by the camera Therefore, generally, the data of the same frame of image is distributed at most in two consecutive target data. If in the current valid data with the same frame sequence number, the only row sequence number is from sequence number 1 to sequence number nm (where m ⁇ n, m is an integer greater than zero), then the current valid data is the image corresponding to the frame number In the first half of the frame, these data can be buffered at this time; if the row sequence numbers of the current valid data with the same frame number are arranged from the sequence number nm (among them, m ⁇ n) to the sequence number n, it means the current valid data It may be the second half of the image frame corresponding to the frame number. At this time, the current valid data is merged with the buffered data.
  • the above-mentioned association relationship is the relationship between the two effective data being data belonging to the same frame image, for example, when the two effective data are data belonging to the same frame image, and If the two pieces of data are complementary, the two valid data are combined to obtain the image data of a complete frame of image, which can be judged by the line information of the line header and the sequence number information of the frame in the frame sequence.
  • the current valid data is merged with the subsequent valid data, thereby updating the current valid data in the cache, and returning to step S31, that is, it is judged again whether the merged current valid data is the image data of a complete frame of image If yes, output the image data.
  • the third valid data Merged with the valid data after the previous two merges and then judge whether the merged valid data is the image data of a complete frame of image, if so, output the image data, and so on, until the channel's data is obtained multiple times
  • the valid data can be combined into image data of one frame of image, and then the image data is output.
  • the aforementioned target data includes the valid data of the A channel and the B channel, and a target frame synchronization signal and a line synchronization signal.
  • the valid data of the A channel and the B channel are obtained through the identification information, respectively.
  • the data of the A channel and the B channel are the image data of a complete frame of image respectively.
  • the A channel is used as a reference, and the effective data of the A channel is the image data of a complete frame of image. At this time, it can be directly output
  • the current valid data of the A channel and the current valid data of the B channel are half-frame image data.
  • the current valid data of the B channel is not the image data of a complete frame of image, and then the current valid data is buffered and received
  • the subsequent valid data of channel A and B are obtained again, and then the subsequent valid data of channel A is determined to be the data of a complete frame of image
  • the subsequent valid data of the B channel is also the image data of the half-frame image.
  • the current valid data of the B channel can be combined with the subsequent valid data. After the effective data is merged, the image data of a complete frame of image is obtained, and then it is output.
  • the above-mentioned target data further includes a C channel. Assuming that the effective data of the C channel in each target data is the image data of one-third frame of image, the above steps need to be repeated. Until the effective data of the C channel acquired three times are combined, the image data of a complete frame of image is obtained, and then output.
  • the amount of valid data for each channel is not limited here. It may be a complete frame of image data, or it may be data such as a half frame, one third or one quarter frame, or Repeat the above steps for the half-frame image data of the current frame and the one-third frame image data of the previous frame. If it is an incomplete frame, it will be buffered. If it is a complete frame or merged into a complete frame, then Output, that is, all the valid data at the end are output in the form of a complete frame of image data.
  • the current valid data can be cached. In the subsequent processing, when the effective data associated with it is obtained, the two are merged; or, the current effective data is deleted.
  • step S1 includes:
  • Step S01 Acquire the image data of each channel in sequence
  • Step S02 sequentially converting the image data acquired by each channel each time from an analog signal to a digital signal, and the digital signal includes the effective data of the image;
  • Step S03 Obtain the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
  • the above-mentioned target data is obtained from a multi-channel camera.
  • the image data of the multi-channel camera is output through AHD, and the image data corresponding to each channel can be obtained from multiple channels through AHD.
  • the image data is packaged in the way of single-channel camera data output to obtain the target data, that is, the effective data in the digital signal of each channel is first obtained, and then the effective data of each channel obtained each time is obtained.
  • the data is packed with the line header and the acquired target frame synchronization signal to form the target data.
  • the valid data in the digital signal of each channel and the corresponding frame synchronization signal of each channel are acquired.
  • the frame synchronization signal of each channel can be defaulted as the additional valid data of the channel. Process together with the above valid data, and then pack the acquired valid data of each channel and the corresponding frame synchronization signal of each channel with the line header and the acquired target frame synchronization signal to form the target data.
  • FIG. 2 is a target data that has been packaged and processed
  • LH is the line header of the target data
  • big-FB is the target frame synchronization signal
  • ch3 -FB is the frame synchronization signal of channel 0, channel 1, channel 2, and channel 3
  • ch0-cur, ch1-cur, ch2-cur, and ch3-cur are the current of channel 0, channel 1, channel 2, and channel 3 respectively.
  • the valid data of the frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of channel 1, channel 2, and channel 3, respectively.
  • the specific formation process is as follows: among the data obtained from the camera through each channel, the data of each channel includes the effective data of the image, the frame synchronization signal and the line synchronization signal.
  • the effective data of the image of each channel The frame synchronization signal is acquired together, that is, the current valid data of the image of channel 0, channel 1, channel 2, and channel 3 (ch0-cur, ch1-cur and ch1-pre, ch2-cur and ch2-pre, ch3) -cur and ch3-pre) and the frame synchronization signal corresponding to each channel (ch0-FB, ch1-FB, ch2-FB, ch3-FB), and then use the frame synchronization information of each channel as additional valid data corresponding to it
  • step S03 includes:
  • Step S031 Generate the target frame synchronization signal according to the frame synchronization signal of the digital signal of any one of the channels.
  • each image data is converted from an analog signal to a digital signal through a conversion IC, where the digital signal includes the effective data of the image, the frame synchronization signal, and the line synchronization signal.
  • the image data of one channel is The frame synchronization signal is used as the target frame synchronization signal of the target data. Specifically, the frame synchronization signal of the image data of any channel is obtained, and then the frame synchronization signal is transformed to obtain the target frame synchronization signal, for example, the image data of channel A
  • the frame synchronization signal has 45 lines.
  • the target data includes a set of data, a common target frame synchronization signal, and a line header formed by a collection of valid data of each channel.
  • the conversion IC needs to synchronize the above-mentioned target frame.
  • Signal buffer and in order to save space and avoid wasting resources, the buffer should be as small as possible.
  • the frame synchronization signal needs to be identified within 1 line. Therefore, the target frame synchronization signal is set to 1 line.
  • the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line header, the valid data of each image data and the frame synchronization signal of the corresponding channel are packed to obtain the target data, that is,
  • the time target data includes a set of data formed by the effective data set of each channel and its frame synchronization signal, a common target frame synchronization signal, and a line header.
  • the above-mentioned common frame synchronization signal can also be preset.
  • each image data is converted from an analog signal to a digital signal through a conversion IC, and then the corresponding valid data is obtained from each image data, and the The preset target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the effective data of each image data and the line header are packed to obtain the target data.
  • obtain the corresponding effective data and its corresponding frame synchronization signal from each image data use the preset target frame synchronization signal as the common frame synchronization signal of the image data of each channel, and compare the effective data of each image data and its corresponding frame synchronization signal.
  • step S03 includes:
  • Step S031 Obtain the target frame synchronization signal
  • Step S032 Parallel the effective data in each of the digital signals or sequentially cyclically sort the row data in the effective data of each channel;
  • Step S033 cyclically sort the row data in the effective data of each channel in parallel or in sequence, and pack each effective data with the target frame synchronization signal to obtain the target data.
  • each valid data is parallelized or sorted, and then processed with the target frame synchronization signal and the line header
  • Figure 2 shows that the effective data of the multi-channel camera image is assembled in a horizontal layout, that is, the effective data is juxtaposed, where LH is the line head of the target data, big-FB is the target frame synchronization signal, and ch0- FB, ch1-FB, ch2-FB, and ch3-FB are the frame synchronization signals of channel 0, channel 1, channel 2, and channel 3 respectively, and ch0-cur, ch1-cur, ch2-cur, and ch3-cur are respectively channel 0 , Channel 1, Channel 2 and Channel 3 are valid data of the current frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of Channel 1, Channel 2 and Channel 3 respectively.
  • the set of the valid data of the current frame of image and the valid data of the previous frame of image is the current valid data of the channel of the target data.
  • the channels 0 and 0 can be obtained respectively according to the identification information.
  • the valid data of channel 1, channel 2 and channel 3, and then the valid data of the previous frame in each channel and the valid data of the corresponding channel that have been buffered are spliced to obtain a complete frame of image and then output, and the current frame of the valid data Valid data cache, for example, for channel 1, combine the ch1-pre of the previous frame in the current valid data and the cached and associated effective data of channel 1 to obtain a complete frame of image data, and then output it
  • the ch1-cur of the current frame in the current valid data is buffered to wait for the ch1-pre of channel 1 to be obtained from the target data received next time.
  • the effective data is assembled in a vertical layout to form the above-mentioned target data, that is, the above-mentioned target data is formed by cyclically sorting the row data of each channel, where chx line nx is the x-th line data of channel x, for example, ch1 line n1, ch2 line n2, ch3 line n3 are the first row of data of channel 1, the second row of data of channel 2, and the third row of data of channel 3.
  • the row data in the data is cyclically sorted, and then collectively processed with the common frame synchronization signal and the line header.
  • the target data is acquired, and the frame number and the frame number of the valid data of each channel are determined according to the line header of the target data. Line number, and then successively splice the valid data of each line to restore the image data of a complete frame of image, and then output it. If it is determined that it is not a complete frame of image, the valid data will be buffered to wait for the next received target data Obtain the effective data of each channel in, repeat the above steps until the data of a complete frame of image is spliced and output.
  • This application also proposes a multi-channel image data output device, which is used to implement the above-mentioned multi-channel image data output method.
  • the multi-channel image data output device can be implemented in the form of software or hardware, and is usually used in hardware equipment.
  • Support multi-channel camera image data input single output low-end SOC. 4 the above-mentioned multi-channel image data output device includes:
  • the acquiring target unit 100 is configured to sequentially acquire target data, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
  • the detection signal unit 200 is configured to obtain the effective data of each channel from the target data when the target frame synchronization signal is detected;
  • the output data unit 300 is configured to output the effective data of each channel in the form of outputting a complete frame of image each time.
  • the target data is the converted data collected and output from the camera.
  • the image data of the multiple-channel camera is output through the AHD, and then the analog signal is converted into the digital signal through the conversion IC, and then After being packaged and transported to the aforementioned SOC, the target data includes valid data from multiple channel cameras. These valid data can be data of a complete frame of image, data of a field image, or partial data of a frame of image.
  • the obtained target data is presented in a single-channel camera data output method.
  • the single-channel camera data output method is to add a frame synchronization signal and a line synchronization signal to the effective data of the image.
  • the target data are acquired in sequence, and each target data includes valid data collected by cameras of multiple channels, a target frame synchronization signal, and a line synchronization signal.
  • the valid data and target frame synchronization in the target data The signal and the line synchronization signal have been combined in the manner of the aforementioned single-channel camera data output.
  • the target frame synchronization signal is used by the SOC in the process of receiving data to determine that the data can be processed.
  • the line synchronization signal includes the line head of the image.
  • the line header includes channel information, line information of the image frame data to which it belongs, and frame number information of the image frame to which it belongs in the frame sequence.
  • the target frame synchronization signal of the target data when the target frame synchronization signal of the target data is detected, it means that the SOC can process the target data.
  • the valid data of each channel is mutually related to the valid data of the other channels.
  • the effective data of each channel can be obtained from the target data, and then the effective data of each channel is output in the form of a complete frame of image each time, and the image data can be further Perform the display, loop the above steps and perform the display to complete the video display of each camera.
  • the received target data contains valid data collected by multiple channels of cameras and a target frame synchronization signal, even if the low-end SOC does not have corresponding hardware facilities, the target data can still be identified, and then each channel can be restored from the target data.
  • the image data collected by the multi-channel camera can also be output on the basis of low cost.
  • the valid data of each channel carries identification information corresponding to each channel
  • the above-mentioned detection signal unit 200 includes:
  • the data obtaining subunit is configured to obtain the effective data of each of the channels corresponding to the identification information from the target data according to the identification information.
  • the above-mentioned identification information is information used to identify channels.
  • image data is converted from an analog signal to a digital signal to form the above-mentioned target data
  • the identification information corresponding to each channel is added to the above-mentioned valid data.
  • the effective data of each channel can be obtained according to the identification information. Specifically, the identification information of the effective data of each channel is first identified to identify the corresponding to each effective data. Channels, and then obtain the valid data corresponding to each channel from the target data.
  • the aforementioned output data unit 300 includes:
  • the first judging subunit is used to judge whether the current valid data from each of the channels is a complete image data of one frame of image;
  • the output data subunit is configured to output the current valid data if the current valid data is image data of a complete frame of image
  • the second judging subunit is used for judging whether the current valid data is related to subsequent valid data if the current valid data is not a complete image data of one frame of image, and the subsequent valid data is the next valid data.
  • the valid data of the channel acquired in the target data received at one time, and the association relationship is used to indicate that the two valid data belong to the same frame of image;
  • the first merging subunit is used to merge the current valid data with the subsequent valid data if there is an association relationship to update the current valid data, and return to execute the judgment whether the current valid data of each channel is Complete the image data of one frame of image.
  • first judgment subunit and output data subunit when acquiring the image data of the current frame of each channel, you can specify to process the data of one of the channels first, or process the data of all channels at the same time, or process the data of some channels at the same time. Data, or process the data of each channel according to the preset priority order. First, obtain the current valid data of the channel from the target data, and then determine whether the current valid data is the image data of a complete frame of image. It should be noted that the currently acquired target data may contain data from multiple channels, and the amount of data in each channel may be the same or different.
  • the effective data of channel A is the data of a complete frame of image
  • the data of channel B is only It is the data of the field picture
  • the field of the C channel is the data of the field of the previous frame and the field of the current frame, or the data of the field of the current frame and the field of the next frame; therefore, first determine whether the current valid data is It is the complete image data of the same frame of image.
  • it can be judged by the line header of the target data whether the data of each channel is the data of a complete frame of image.
  • the line header includes the relative frame information and the real line information. , Where the frame information is the frame number of the frame where the line is located.
  • the frame number of a continuous frame picture of a video can be cycled from 0-7;
  • the line information is the line number of the line in a real and complete frame picture, usually one complete
  • the start line number of the line number of the frame picture is 1, and the end line number is the line height n of the frame picture.
  • the number of rows of target data is larger than the number of rows of each frame of image output by the camera Therefore, generally, the data of the same frame of image is distributed at most in two consecutive target data. If in the current valid data with the same frame sequence number, the only row sequence number is from sequence number 1 to sequence number nm (where m ⁇ n, m is an integer greater than zero), then the current valid data is the image corresponding to the frame number In the first half of the frame, these data can be buffered at this time; if the row sequence numbers of the current valid data with the same frame number are only from the sequence number nm (among them, m ⁇ n) to the sequence number n, it means the current valid data It may be the second half of the image frame corresponding to the frame number. At this time, the current valid data is merged with the buffered data.
  • the current valid data is not the image data of a complete frame of image
  • the latter valid data is the valid data of the channel acquired in the target data received next time.
  • the above-mentioned association relationship is the relationship between the two valid data being the data belonging to the same frame picture. For example, when the two valid data belong to the same frame. Frame image data, and they are two complementary parts of the data, then the two valid data are combined to obtain the image data of a complete frame of image, which can be judged by the line information of the line header and the sequence number information of the frame in the frame sequence.
  • the current valid data and the later valid data are merged, thereby updating the current valid data in the cache, and returning to execute the above-mentioned first determination subunit, that is, determining the merged data again Whether the current valid data is the image data of a complete frame of image, if so, the image data is output.
  • the third valid data it is named the third valid data here, and then it is judged whether the third valid data is related to the previous two merged data. If so, the third valid data is compared with the first two After the merged valid data is merged, then it is judged whether the merged valid data is the image data of a complete frame of image, if it is, the image data is output, and so on, until the valid data of the channel is obtained multiple times. Combine the image data into one frame of image, and then output the image data.
  • the aforementioned target data includes the valid data of the A channel and the B channel, and a target frame synchronization signal and a line synchronization signal.
  • the valid data of the A channel and the B channel are obtained through the identification information, respectively.
  • the data of the A channel and the B channel are the image data of a complete frame of image respectively.
  • the A channel is used as a reference, and the effective data of the A channel is the image data of a complete frame of image. At this time, it can be directly output
  • the current valid data of the A channel and the current valid data of the B channel are half-frame image data.
  • the current valid data of the B channel is not the image data of a complete frame of image, and then the current valid data is buffered and received
  • the subsequent valid data of channel A and B are obtained again, and then the subsequent valid data of channel A is determined to be the data of a complete frame of image
  • the subsequent valid data of the B channel is also the image data of the half-frame image.
  • the current valid data of the B channel can be combined with the subsequent valid data. After the effective data is merged, the image data of a complete frame of image is obtained, and then it is output.
  • the above-mentioned target data further includes a C channel. Assuming that the effective data of the C channel in each target data is the image data of one-third frame of image, the above steps need to be repeated. Until the effective data of the C channel acquired three times are combined, the image data of a complete frame of image is obtained, and then output.
  • the amount of valid data for each channel is not limited here. It may be the data of a complete frame of image, or it may be data such as half frame or one-third or one-quarter frame, or Repeat the above steps for the half-frame image data of the current frame and the one-third frame image data of the previous frame. If it is an incomplete frame, it will be buffered. If it is a complete frame or merged into a complete frame, then Output, that is, all the valid data at the end are output in the form of a complete frame of image data.
  • the current valid data can be cached. In the subsequent processing, when the effective data associated with it is obtained, the two are merged; or, the current effective data is deleted.
  • the foregoing acquisition target unit 100 includes:
  • the acquiring subunit is used to acquire the image data of each channel in turn;
  • the data conversion subunit is configured to sequentially convert the image data acquired by each channel each time from an analog signal to a digital signal, and the digital signal includes the effective data of the image;
  • the signal acquisition subunit is used to acquire the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
  • the above-mentioned target data is obtained from a multi-channel camera.
  • the image data of the multi-channel camera is output through AHD, and the image data corresponding to each channel can be obtained from multiple channels through AHD.
  • the image data is packaged in the way of single-channel camera data output to obtain the target data, that is, the effective data in the digital signal of each channel is first obtained, and then the effective data of each channel obtained each time is obtained.
  • the data is packed with the line header and the acquired target frame synchronization signal to form the target data.
  • the valid data in the digital signal of each channel and the corresponding frame synchronization signal of each channel are obtained.
  • the frame synchronization signal of each channel can be defaulted as the additional valid data of the channel. Process together with the above valid data, and then pack the acquired valid data of each channel and the corresponding frame synchronization signal of each channel with the line header and the acquired target frame synchronization signal to form the target data.
  • FIG. 2 is a target data that has been packaged and processed
  • LH is the line header of the target data
  • big-FB is the target frame synchronization signal
  • ch3 -FB is the frame synchronization signal of channel 0, channel 1, channel 2, and channel 3
  • ch0-cur, ch1-cur, ch2-cur, and ch3-cur are the current of channel 0, channel 1, channel 2, and channel 3 respectively.
  • the valid data of the frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of channel 1, channel 2, and channel 3, respectively.
  • the specific formation process is as follows: among the data obtained from the camera through each channel, the data of each channel includes the effective data of the image, the frame synchronization signal and the line synchronization signal.
  • the effective data of the image of each channel The frame synchronization signal is acquired together, that is, the current valid data of the image of channel 0, channel 1, channel 2, and channel 3 (ch0-cur, ch1-cur and ch1-pre, ch2-cur and ch2-pre, ch3) -cur and ch3-pre) and the frame synchronization signal corresponding to each channel (ch0-FB, ch1-FB, ch2-FB, ch3-FB), and then use the frame synchronization information of each channel as additional valid data corresponding to it
  • the foregoing signal acquisition subunit includes:
  • the signal generating subunit is used to generate the target frame synchronization signal according to the frame synchronization signal of the digital signal of any one of the channels.
  • each image data is converted from an analog signal to a digital signal through a conversion IC, where the digital signal includes the effective data of the image, the frame synchronization signal, and the line synchronization signal.
  • the image data of one channel is The frame synchronization signal is used as the target frame synchronization signal of the target data. Specifically, the frame synchronization signal of the image data of any channel is obtained, and then the frame synchronization signal is transformed to obtain the target frame synchronization signal, for example, the image data of channel A
  • the frame synchronization signal has 45 lines.
  • the target data includes a set of data, a common target frame synchronization signal, and a line header formed by a collection of valid data of each channel.
  • the conversion IC needs to synchronize the above-mentioned target frame.
  • Signal buffer and in order to save space and avoid wasting resources, the buffer should be as small as possible.
  • the frame synchronization signal needs to be identified within 1 line. Therefore, the target frame synchronization signal is set to 1 line.
  • the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line header, the valid data of each image data and the frame synchronization signal of the corresponding channel are packed to obtain the target data, that is,
  • the time target data includes a set of data formed by the effective data set of each channel and its frame synchronization signal, a common target frame synchronization signal, and a line header.
  • the above-mentioned common frame synchronization signal can also be preset.
  • each image data is converted from an analog signal to a digital signal through a conversion IC, and then the corresponding valid data is obtained from each image data, and the The preset target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the effective data of each image data and the line header are packed to obtain the target data.
  • obtain the corresponding effective data and its corresponding frame synchronization signal from each image data use the preset target frame synchronization signal as the common frame synchronization signal of the image data of each channel, and compare the effective data of each image data and its corresponding frame synchronization signal.
  • the foregoing signal acquisition subunit includes:
  • the sorting data module is used to parallel the effective data in each of the digital signals or sequentially cyclically sort the row data in the effective data of each channel;
  • the packed data module is used to pack each of the effective data and the target frame synchronization signal after parallel or sequential row data in the effective data of each channel is cyclically sorted to obtain the target data.
  • each valid data is parallelized or sorted, and then processed with the target frame synchronization signal and the line header
  • Figure 2 shows that the effective data of the multi-channel camera image is assembled in a horizontal layout, that is, the effective data is juxtaposed, where LH is the line head of the target data, big-FB is the target frame synchronization signal, and ch0- FB, ch1-FB, ch2-FB, and ch3-FB are the frame synchronization signals of channel 0, channel 1, channel 2, and channel 3 respectively, and ch0-cur, ch1-cur, ch2-cur, and ch3-cur are respectively channel 0 , Channel 1, Channel 2 and Channel 3 are valid data of the current frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of Channel 1, Channel 2 and Channel 3 respectively.
  • the set of the valid data of the current frame of image and the valid data of the previous frame of image is the current valid data of the channel of the target data.
  • the channels 0 and 0 can be obtained respectively according to the identification information.
  • the valid data of channel 1, channel 2 and channel 3, and then the valid data of the previous frame in each channel and the valid data of the corresponding channel that have been buffered are spliced to obtain a complete frame of image and then output, and the current frame of the valid data Valid data cache, for example, for channel 1, combine the ch1-pre of the previous frame in the current valid data and the cached and associated effective data of channel 1 to obtain a complete frame of image data, and then output it
  • the ch1-cur of the current frame in the current valid data is buffered to wait for the ch1-pre of channel 1 to be obtained from the target data received next time.
  • the effective data is assembled in a vertical layout to form the above-mentioned target data, that is, the above-mentioned target data is formed by cyclically sorting the row data of each channel, where chx line nx is the x-th line data of channel x, for example, ch1 line n1, ch2 line n2, ch3 line n3 are the first row of data of channel 1, the second row of data of channel 2, and the third row of data of channel 3.
  • the row data in the data is cyclically sorted, and then collectively processed with the common frame synchronization signal and the line header.
  • the target data is acquired, and the frame number and the frame number of the valid data of each channel are determined according to the line header of the target data. Line number, and then successively splice the valid data of each line to restore the image data of a complete frame of image, and then output it. If it is determined that it is not a complete frame of image, the valid data will be buffered to wait for the next received target data Obtain the effective data of each channel in, repeat the above steps until the data of a complete frame of image is spliced and output.
  • the present application also provides a computer-readable storage medium 21.
  • the storage medium 21 stores a computer program 22, which when running on a computer, causes the computer to execute the multi-channel image data described in the above embodiments.
  • the output method is also provided.
  • the present application also provides a computer device 34 containing instructions.
  • the computer device includes a memory 31 and a processor 33.
  • the memory 31 stores a computer program 22.
  • the processor 33 executes the computer program 22, the description in the above embodiment is implemented.
  • the output method of multi-channel image data is implemented.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Abstract

Disclosed are a method and apparatus for outputting multi-channel image data, and a computer device. The method comprises: sequentially acquiring target data; when a target frame synchronization signal is detected, respectively acquiring valid data of each channel from the target data; and respectively outputting the valid data of each channel in the form of outputting a complete frame of image each time. The target data is identified, and image data of each channel is restored from the target data, such that the output of multi-channel image data on hardware having a low-level configuration is realized.

Description

多通道图像数据的输出方法、装置及计算机设备Multi-channel image data output method, device and computer equipment
本申请要求于2019年12月3日提交中国专利局、申请号为201911222224.6,发明名称为“多通道图像数据的输出方法、装置及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 3, 2019, the application number is 201911222224.6, and the invention title is "Multi-channel image data output method, device and computer equipment", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及数据传输技术领域,具体涉及一种多通道图像数据的输出方法、装置、存储介质及计算机设备。This application relates to the field of data transmission technology, and in particular to a method, device, storage medium, and computer equipment for outputting multi-channel image data.
背景技术Background technique
实时监控是指将摄像头所捕获的图像数据进行实时输出展示,实时监控可应用到各场景中,例如为车辆行驶提供安全保障以及方便驾乘人员查看车内情况等,驾乘人员可通过车载摄像头对车厢内外环境进行监控。目前,市面上存在单路车载摄像头,也存在多路车载摄像头。Real-time monitoring refers to the real-time output and display of the image data captured by the camera. Real-time monitoring can be applied to various scenarios, such as providing safety guarantee for vehicle driving and facilitating drivers and passengers to view the situation in the car. Drivers and passengers can use the on-board camera Monitor the environment inside and outside the compartment. Currently, there are single-channel vehicle-mounted cameras and multiple-channel vehicle-mounted cameras on the market.
对于多路车载摄像头,其工作过程为:首先将摄像头模拟信号通过AHD(Analog High Definition)输出然后通过转换IC转化成数字信号,并打包成MIPI-CSI2格式,然后多路数据做虚拟通道交织,再以MIPI接口(Mobile Industry Processor Interface,移动产业处理器接口)发送给SOC(System on Chip,系统级芯片),SOC接受MIPI 交织信号,再做数据解交织,从而得到每路摄像头的图像数据,然后输出显示。For a multi-channel vehicle camera, the working process is: first output the analog signal of the camera through AHD (Analog High Definition), then convert it into a digital signal through a conversion IC, and pack it into MIPI-CSI2 format, and then do virtual channel interleaving for multiple channels of data Then send the MIPI interface (Mobile Industry Processor Interface, mobile industry processor interface) to the SOC (System on Chip), and the SOC receives the MIPI interleaved signal, and then deinterleaves the data to obtain the image data of each camera. Then output the display.
然而,在实际中,SOC分为高端SOC或中低端SOC,而中低端SOC为了降低制作成本,并没有加入相应的硬件设备,故一般不支持MIPI数据解交织,无法实现MIPI 多路数据(virtual channel)的支持,因而为了节省成本采用了中低端SOC后,却无法实现多路摄像头的图像显示。However, in practice, SOC is divided into high-end SOC or low-end SOC. In order to reduce production cost, low-end SOC does not add corresponding hardware equipment, so MIPI data de-interleaving is generally not supported, and MIPI multi-channel data cannot be realized. (Virtual channel) support, so after adopting low-end SOC in order to save costs, it is impossible to realize the image display of multiple cameras.
技术问题technical problem
本申请的主要目的为提供一种多通道图像数据的输出方法、装置及计算机设备,旨在解决现有技术中采用了中低端SOC后,却无法实现多路摄像头的图像显示的技术问题。The main purpose of this application is to provide a method, device and computer equipment for outputting multi-channel image data, aiming to solve the technical problem that the image display of multiple cameras cannot be realized after the low-end SOC is adopted in the prior art.
技术解决方案Technical solutions
基于上述发明目的,本申请实施例提出一种多通道图像数据的输出方法,包括:Based on the above-mentioned purpose of the invention, an embodiment of the present application proposes a method for outputting multi-channel image data, including:
依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;Acquire target data in sequence, each of the target data includes valid data collected by multiple-channel cameras and a target frame synchronization signal;
当检测到所述目标帧同步信号,则从所述目标数据中分别获取各通道的所述有效数据;When the target frame synchronization signal is detected, the effective data of each channel is obtained from the target data respectively;
以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。The effective data of each channel are respectively output in the form of outputting a complete frame of image each time.
本申请实施例还提出了一种多通道图像数据的输出装置,包括:The embodiment of the present application also proposes a device for outputting multi-channel image data, including:
获取目标单元,用于依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;An acquiring target unit for acquiring target data in sequence, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
检测信号单元,用于当检测到所述目标帧同步信号,则从所述目标数据中分别获取各通道的所述有效数据;The detection signal unit is configured to obtain the effective data of each channel from the target data when the target frame synchronization signal is detected;
输出数据单元,用于以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。The output data unit is used to output the effective data of each channel in the form of outputting a complete frame of image each time.
本申请实施例还提出了一种存储介质,其为计算机可读的存储介质,其上存储有计算机程序,所述计算机程序被执行时实现上述任一项所述的多通道图像数据的输出方法。The embodiment of the present application also proposes a storage medium, which is a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the method for outputting multi-channel image data according to any one of the above is realized .
本申请实施例还提出了一种计算机设备,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述的多通道图像数据的输出方法。The embodiment of the present application also proposes a computer device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The processor implements the above Any one of the output methods of multi-channel image data.
有益效果Beneficial effect
本申请提出了一种多通道图像数据的输出方法、装置及可读存储介质,该方法中,由于接收到的目标数据包含有多个通道摄像头采集的有效数据以及一目标帧同步信号,即便中低端SOC没有相应的硬件设施,仍然可以识别该目标数据,然后从目标数据中还原各通道的图像数据,从而实现多通道摄像头采集的图像数据在低成本的基础上同样可以完成输出。This application proposes a method, device, and readable storage medium for outputting multi-channel image data. In this method, since the received target data includes valid data collected by multiple-channel cameras and a target frame synchronization signal, even if the The low-end SOC does not have corresponding hardware facilities, it can still identify the target data, and then restore the image data of each channel from the target data, so that the image data collected by the multi-channel camera can also be output on the basis of low cost.
附图说明Description of the drawings
图1 是本申请一实施例的多通道图像数据的输出方法的流程示意图;FIG. 1 is a schematic flowchart of a method for outputting multi-channel image data according to an embodiment of the present application;
图2 是本申请一实施例中的目标数据结构示意图;Figure 2 is a schematic diagram of a target data structure in an embodiment of the present application;
图3 是本申请另一实施例中的目标数据结构示意图;FIG. 3 is a schematic diagram of the target data structure in another embodiment of the present application;
图4 是本申请一实施例的多通道图像数据的输出装置的结构示意框图;4 is a schematic block diagram of the structure of a device for outputting multi-channel image data according to an embodiment of the present application;
图5 是本申请的存储介质的一实施例的结构示意框图;FIG. 5 is a schematic block diagram of the structure of an embodiment of the storage medium of the present application;
图6 是本申请的计算机设备的一实施例的结构示意框图。Fig. 6 is a schematic structural block diagram of an embodiment of a computer device of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的最佳实施方式The best mode of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
参照图1,本申请提供的一种多通道图像数据的输出方法的流程示意图,该方法可以由多通道图像数据的输出装置来执行,多通道图像数据的输出装置具体可通过软件或硬件的形式实现。通常应用于硬件装备不支持多路摄像头图像数据输入单路输出的中低端SOC,本申请实施例提供了一种多通道图像数据的输出方法,包括:1, the present application provides a schematic flow chart of a method for outputting multi-channel image data. The method can be executed by an output device for multi-channel image data. The output device for multi-channel image data can specifically be in the form of software or hardware. achieve. Generally applied to low-end SOC where the hardware equipment does not support multi-channel camera image data input and single output, the embodiment of the application provides a multi-channel image data output method, including:
步骤S1:依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;Step S1: Acquire target data in sequence, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
步骤S2:当检测到所述目标帧同步信号,则从所述目标数据中分别获取各所述通道的所述有效数据;Step S2: when the target frame synchronization signal is detected, the effective data of each of the channels is obtained from the target data;
步骤S3:以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。Step S3: Output the effective data of each channel in the form of outputting a complete frame of image each time.
如上述步骤S1所述,上述目标数据为从摄像头采集得到并输出的经过转换的数据,首先多个通道摄像头的图像数据通过AHD输出,然后通过转换IC从模拟信号转化成数字信号,然后经打包输送到上述SOC,此时目标数据包括多个通道摄像头的有效数据,这些有效数据可以为完整一帧图的数据,也可以为半帧图的数据,或者一帧图像中的部分数据。其中,获取得到的目标数据所呈现的方式为单路摄像头数据输出的方式,本实施例中,上述单路摄像头数据输出的方式即是在图像的有效数据中加入一个帧同步信号以及一个行同步信号,并将上述有效数据、帧同步信号以及行同步信号按预设方式集合而得到的布局方式。本实施例中,依次获取目标数据,每个目标数据均包括多个通道的摄像头采集到的有效数据、一个目标帧同步信号以及一个行同步信号,此时目标数据中的有效数据、目标帧同步信号以及行同步信号已按上述单路摄像头数据输出的方式组合,上述目标帧同步信号用于SOC在接收数据的过程中,用来确定可以对该数据进行处理,行同步信号包括图像的行头,该行头包括通道信息、其所属图像帧数据的行信息以及所属图像帧在帧序列中的帧序号信息等。As mentioned in the above step S1, the above target data is the converted data collected and output from the camera. First, the image data of the multiple-channel camera is output through AHD, and then converted from analog signal to digital signal through the conversion IC, and then packaged When delivered to the aforementioned SOC, the target data includes valid data from multiple channel cameras. The valid data can be data of a complete frame of image, data of a field image, or partial data of a frame of image. Among them, the obtained target data is presented in a single-channel camera data output method. In this embodiment, the single-channel camera data output method is to add a frame synchronization signal and a line synchronization signal to the effective data of the image. Signal, and the layout mode obtained by integrating the above-mentioned valid data, frame synchronization signal, and line synchronization signal in a preset manner. In this embodiment, the target data are acquired in sequence, and each target data includes valid data collected by cameras of multiple channels, a target frame synchronization signal, and a line synchronization signal. At this time, the valid data and target frame synchronization in the target data The signal and the line synchronization signal have been combined in the manner of the aforementioned single-channel camera data output. The target frame synchronization signal is used by the SOC in the process of receiving data to determine that the data can be processed. The line synchronization signal includes the line head of the image. The line header includes channel information, line information of the image frame data to which it belongs, and frame number information of the image frame to which it belongs in the frame sequence.
如上述步骤S2-S3所述,当检测到目标数据的目标帧同步信号,即说明SOC可以对该目标数据进行处理,每个通道的有效数据均与其余通道的有效数据相互独立,当检测到上述目标帧同步信号,可从目标数据中分别获取到各个通道的有效数据,然后每一次均以完整一帧图像的形式,输出各个通道的有效数据,进一步可将该图像数据进行显示,循环上述步骤并进行显示即完成各路摄像头的视频显示。As mentioned in the above steps S2-S3, when the target frame synchronization signal of the target data is detected, it means that the SOC can process the target data. The valid data of each channel is independent of the valid data of the other channels. The above-mentioned target frame synchronization signal can obtain the effective data of each channel separately from the target data, and then output the effective data of each channel in the form of a complete frame of image each time, and further display the image data, looping the above Steps and display to complete the video display of each camera.
这样由于接收到的目标数据包含有多个通道摄像头采集的有效数据以及一目标帧同步信号,即便中低端SOC没有相应的硬件设施,仍然可以识别该目标数据,然后从目标数据中还原各通道的图像数据,从而实现多通道摄像头采集的图像数据在低成本的基础上同样可以完成输出。In this way, because the received target data contains valid data collected by multiple channels of cameras and a target frame synchronization signal, even if the low-end SOC does not have corresponding hardware facilities, the target data can still be identified, and then each channel can be restored from the target data. In order to realize that the image data collected by the multi-channel camera can also be output on the basis of low cost.
在一个实施例中,每个所述通道的有效数据均携带有与各所述通道对应的标识信息,上述步骤S2,包括:In an embodiment, the valid data of each of the channels carries identification information corresponding to each of the channels, and the above step S2 includes:
步骤S20:依据所述标识信息,分别从所述目标数据中获取与所述标识信息对应的各所述通道的所述有效数据。Step S20: According to the identification information, the effective data of each of the channels corresponding to the identification information is obtained from the target data respectively.
本实施例中,上述标识信息为用于识别通道的信息,当图像数据从模拟信号转换成数字信号,形成上述目标数据的过程中,将对应各通道的识别信息加入到上述有效数据中,以使后续还原各通道的图像时,可依据该标识信息获取到每个通道的有效数据,具体而言,先识别出每个通道的有效数据的标识信息,以识别出每个有效数据所对应的通道,然后分别从目标数据中获取对应各通道的有效数据。In this embodiment, the above-mentioned identification information is information used to identify channels. When image data is converted from an analog signal to a digital signal to form the above-mentioned target data, the identification information corresponding to each channel is added to the above-mentioned valid data. When restoring the images of each channel subsequently, the effective data of each channel can be obtained according to the identification information. Specifically, the identification information of the effective data of each channel is first identified to identify the corresponding to each effective data. Channels, and then obtain the valid data corresponding to each channel from the target data.
在一个实施例中,上述步骤S3,包括:In an embodiment, the above step S3 includes:
步骤S31:判断从各所述通道的当前有效数据是否为完整的一帧图像的图像数据;Step S31: Determine whether the current valid data from each of the channels is the image data of a complete frame of image;
步骤S32:若所述当前有效数据为完整的一帧图像的图像数据,则将所述当前有效数据输出;Step S32: If the current valid data is image data of a complete frame of image, output the current valid data;
步骤S33:若所述当前有效数据不为完整的一帧图像的图像数据,则判断所述当前有效数据是否与在后有效数据有关联关系,所述在后有效数据为下一次接收到的目标数据中获取到的所述通道的有效数据,所述关联关系用于表示两个有效数据均属于同一帧图像;Step S33: If the current valid data is not a complete image data of one frame of image, it is determined whether the current valid data is related to the subsequent valid data, and the subsequent valid data is the target received next time. The effective data of the channel obtained in the data, and the association relationship is used to indicate that the two effective data belong to the same frame of image;
步骤S34:若有关联关系,则将所述当前有效数据与所述在后有效数据合并以更新当前有效数据,并返回执行所述判断各所述通道的当前有效数据是否为完整的一帧图像的图像数据的步骤。Step S34: If there is an association relationship, merge the current valid data with the subsequent valid data to update the current valid data, and return to execute the judgment whether the current valid data of each channel is a complete frame of image Of the image data.
如上述步骤S31-S32所述,在获取各通道当前帧的图像数据时,可指定优先处理其中一个通道的数据,或者同时处理所有通道的数据,或者同时处理部分通道的数据,或者按预设的优先顺序处理各通道的数据。首先从目标数据中获取通道的当前有效数据,然后判断该当前有效数据是否为完整的一帧图像的图像数据。需知当前获取到的目标数据可能包含多个通道的数据,每个通道的数据量可能一样,也可能均不一样,例如A通道的有效数据为完整一帧图的数据,而B通道的仅为半帧图的数据,C通道的为上一帧的半帧与当前帧的半帧的数据,或者为当前帧的半帧与下一帧的半帧的数据;故先判断当前有效数据是否为完整的同一帧图像的图像数据,具体可通过目标数据的行头判断出各通道的数据是否为完整的一帧图的数据,如通过上述行头进行判断,行头中包括相对帧信息以及真实行信息,其中帧信息即该行所在帧的帧序号,例如一视频的连续帧图的帧序号可从0-7循环;行信息为该行在真实完整的一帧图中的行序号,通常完整一帧图的行序号的起始行序号为1、结束行序号为该帧图的行高n(n为大于1的整数),当判定当前有效数据中的每一行的帧序号一致,且行信息中的行序号排列起来是从序号1至序号n,则可确定当前有效数据为完整一帧图像的数据,本实施例中,目标数据的行数要比摄像头输出的每帧图像的行数要大,故而一般同一帧图像的数据最多分布于前后连续的两个目标数据中。若在帧序号一致的当前有效数据中,其行序号排列时仅有的是从序号1至序号n-m(其中,m<n,m为大于零的整数),则说明当前有效数据为帧序号所对应图像帧的前半帧,这时可将这些数据缓存;若在帧序号一致的当前有效数据中,其行序号排列时仅有的是从序号n-m(其中,m<n)至序号n,则说明当前有效数据可能为帧序号所对应图像帧的后半帧,这时将当前有效数据与缓存的数据合并。As mentioned in the above steps S31-S32, when acquiring the image data of the current frame of each channel, you can specify the priority to process the data of one of the channels, or process the data of all channels at the same time, or process the data of some channels at the same time, or press the preset Process the data of each channel in the order of priority. First, obtain the current valid data of the channel from the target data, and then determine whether the current valid data is the image data of a complete frame of image. It should be noted that the currently acquired target data may contain data from multiple channels, and the amount of data in each channel may be the same or different. For example, the effective data of channel A is the data of a complete frame of image, while the data of channel B is only It is the data of the field picture, the field of the C channel is the data of the field of the previous frame and the field of the current frame, or the data of the field of the current frame and the field of the next frame; therefore, first determine whether the current valid data is It is the complete image data of the same frame of image. Specifically, it can be judged by the line header of the target data whether the data of each channel is the data of a complete frame of image. For example, the line header includes the relative frame information and the real line information. , Where the frame information is the frame number of the frame where the line is located. For example, the frame number of a continuous frame picture of a video can be cycled from 0-7; the line information is the line number of the line in a real and complete frame picture, usually one complete The start line number of the line number of the frame image is 1, and the end line number is the line height n of the frame image (n is an integer greater than 1). When it is determined that the frame number of each line in the current valid data is consistent, and the line information is The row number of is arranged from sequence number 1 to sequence number n, it can be determined that the current valid data is the data of a complete frame of image. In this embodiment, the number of rows of target data is greater than the number of rows of each frame of image output by the camera Therefore, generally, the data of the same frame of image is distributed at most in two consecutive target data. If in the current valid data with the same frame sequence number, the only row sequence number is from sequence number 1 to sequence number nm (where m<n, m is an integer greater than zero), then the current valid data is the image corresponding to the frame number In the first half of the frame, these data can be buffered at this time; if the row sequence numbers of the current valid data with the same frame number are arranged from the sequence number nm (among them, m<n) to the sequence number n, it means the current valid data It may be the second half of the image frame corresponding to the frame number. At this time, the current valid data is merged with the buffered data.
如上述步骤S33-S34所述,当判定上述当前有效数据不为完整一帧图像的图像数据,则判断上述当前有效数据是否与在后有效数据有关联关系,该在后有效数据为下一次接收到的目标数据中获取到的通道的有效数据,上述关联关系为两个有效数据为均属于同一帧图的数据的关系,例如,当两个有效数据分别为属于同一帧图像的数据,且分别为互补的两部分数据,则该两个有效数据合并得到完整一帧图像的图像数据,可通过行头中行信息以及所在帧在帧序列中的序号信息来进行判断,当判定当前有效数据与在后有效数据具有关联关系,则将当前有效数据与在后有效数据合并,从而更新缓存中的当前有效数据,并返回步骤S31,即再次判断合并后的当前有效数据是否为完整一帧图像的图像数据,若是,则将图像数据输出。As described in the above steps S33-S34, when it is determined that the current valid data is not the image data of a complete frame of image, then it is determined whether the current valid data is related to the subsequent valid data, and the subsequent valid data is the next time received For the effective data of the channel acquired in the target data, the above-mentioned association relationship is the relationship between the two effective data being data belonging to the same frame image, for example, when the two effective data are data belonging to the same frame image, and If the two pieces of data are complementary, the two valid data are combined to obtain the image data of a complete frame of image, which can be judged by the line information of the line header and the sequence number information of the frame in the frame sequence. When it is judged that the current valid data and the following If the valid data has an association relationship, the current valid data is merged with the subsequent valid data, thereby updating the current valid data in the cache, and returning to step S31, that is, it is judged again whether the merged current valid data is the image data of a complete frame of image If yes, output the image data.
当上述当前有效数据与在后有效数据合并不为完整一帧图像的图像数据,即说明还需要补充该帧图像的其余数据,这时重复上述步骤S33-S34,即接收再一次的目标数据,然后从对应通道中获取有效数据,为了便于区别,此处命名为第三有效数据,然后判断第三有效数据是否与前两次合并的数据有关联关系,若有,则将该第三有效数据与前两次合并后的有效数据合并,然后再判断此次合并后的有效数据是否为完整一帧图像的图像数据,若是则输出该图像数据,以此类推,直到多次获取到该通道的有效数据可合并为一帧图像的图像数据,然后输出该图像数据。When the above-mentioned current valid data and subsequent valid data are not combined into the image data of a complete frame of image, it means that the remaining data of the frame of image needs to be supplemented. At this time, the above steps S33-S34 are repeated, that is, the target data is received again. Then obtain the valid data from the corresponding channel. In order to facilitate the distinction, it is named the third valid data here, and then it is judged whether the third valid data is related to the previously merged data. If so, the third valid data Merged with the valid data after the previous two merges, and then judge whether the merged valid data is the image data of a complete frame of image, if so, output the image data, and so on, until the channel's data is obtained multiple times The valid data can be combined into image data of one frame of image, and then the image data is output.
举例地,上述目标数据包括A通道以及B通道的有效数据,以及一个目标帧同步信号和行同步信号,当检测到目标帧同步信号时,分别通过标识信息获取A通道和B通道的有效数据,然后判断A通道与B通道的数据是否分别为完整一帧图像的图像数据,本实施例中,以A通道为基准,A通道的有效数据为完整一帧图像的图像数据,这时可直接输出A通道的当前有效数据,而B通道的当前有效数据为半帧图像的数据,这时判定B通道的当前有效数据不为完整一帧图像的图像数据,然后将该当前有效数据缓存,在接收到下一次的目标数据,并检测到该目标数据的帧同步信号时,再次分别获取A通道以及B通道的在后有效数据,然后判定A通道的在后有效数据为完整一帧图像的数据时将其输出,并判断B通道的当前有效数据与在后有效数据有关联关系时,说明B通道的在后有效数据也为半帧图像的图像数据,这时可将B通道的当前有效数据与在后有效数据合并,得到完整一帧图像的图像数据,然后将其输出。For example, the aforementioned target data includes the valid data of the A channel and the B channel, and a target frame synchronization signal and a line synchronization signal. When the target frame synchronization signal is detected, the valid data of the A channel and the B channel are obtained through the identification information, respectively. Then it is judged whether the data of the A channel and the B channel are the image data of a complete frame of image respectively. In this embodiment, the A channel is used as a reference, and the effective data of the A channel is the image data of a complete frame of image. At this time, it can be directly output The current valid data of the A channel and the current valid data of the B channel are half-frame image data. At this time, it is determined that the current valid data of the B channel is not the image data of a complete frame of image, and then the current valid data is buffered and received When the next target data is detected and the frame synchronization signal of the target data is detected, the subsequent valid data of channel A and B are obtained again, and then the subsequent valid data of channel A is determined to be the data of a complete frame of image When outputting it and judging that the current valid data of the B channel is related to the subsequent valid data, it means that the subsequent valid data of the B channel is also the image data of the half-frame image. At this time, the current valid data of the B channel can be combined with the subsequent valid data. After the effective data is merged, the image data of a complete frame of image is obtained, and then it is output.
在另一个实施例中,上述目标数据还包括有C通道,假设每个目标数据中的C通道的有效数据的数据量均为三分之一帧图像的图像数据,这时需重复上述步骤,直到将三次获取到的C通道的有效数据合并,得到完整一帧图像的图像数据,然后输出。In another embodiment, the above-mentioned target data further includes a C channel. Assuming that the effective data of the C channel in each target data is the image data of one-third frame of image, the above steps need to be repeated. Until the effective data of the C channel acquired three times are combined, the image data of a complete frame of image is obtained, and then output.
值得注意的是,此处并不限定每个通道的有效数据的数据量,有可能为完整一帧图像的数据,也有可能为半帧或三分之一或四分之一帧等数据,或者为当前帧的半帧图像的数据与上一帧的三分之一帧图像数据,重复上述步骤,若为不完整一帧图像则缓存,若为完整一帧或合并后为完整一帧图像则输出,即最后所有的有效数据均通过完整一帧图像的数据形式输出。It is worth noting that the amount of valid data for each channel is not limited here. It may be a complete frame of image data, or it may be data such as a half frame, one third or one quarter frame, or Repeat the above steps for the half-frame image data of the current frame and the one-third frame image data of the previous frame. If it is an incomplete frame, it will be buffered. If it is a complete frame or merged into a complete frame, then Output, that is, all the valid data at the end are output in the form of a complete frame of image data.
在另一实施例中,若判定该通道的当前有效数据与在后有效数据无关联关系,则说明在处理数据过程中可能存在数据丢失或顺序错乱的情况,可将该当前有效数据缓存,当在后续处理过程中获取到与其有关联关系的有效数据时再将该两者合并;或者,将该当前有效数据删除。In another embodiment, if it is determined that there is no correlation between the current valid data of the channel and the later valid data, it means that there may be data loss or disorder in the process of data processing, and the current valid data can be cached. In the subsequent processing, when the effective data associated with it is obtained, the two are merged; or, the current effective data is deleted.
在一个实施例中,上述步骤S1,包括:In an embodiment, the above step S1 includes:
步骤S01:依次获取每一所述通道的图像数据;Step S01: Acquire the image data of each channel in sequence;
步骤S02:依次将每次各所述通道获取的所述图像数据从模拟信号转换成数字信号,所述数字信号包括图像的有效数据;Step S02: sequentially converting the image data acquired by each channel each time from an analog signal to a digital signal, and the digital signal includes the effective data of the image;
步骤S03:获取所述目标帧同步信号,并将每次获取到的各所述通道的数字信号中的有效数据,和所述目标帧同步信号打包形成所述目标数据。Step S03: Obtain the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
本实施例中,上述目标数据从多路摄像头获取,首先多个通道摄像头的图像数据通过AHD输出,即可通过AHD从多个通道中获取与各通道相应的图像数据,然后在转换IC从模拟信号转化成数字信号的过程中,将这些图像数据按照单路摄像头数据输出的方式打包得到目标数据,即首先获取各通道的数字信号中的有效数据,然后将每次获取到的各通道的有效数据,和上述行头以及获取到的目标帧同步信号打包处理形成上述目标数据。In this embodiment, the above-mentioned target data is obtained from a multi-channel camera. First, the image data of the multi-channel camera is output through AHD, and the image data corresponding to each channel can be obtained from multiple channels through AHD. In the process of signal conversion into digital signal, the image data is packaged in the way of single-channel camera data output to obtain the target data, that is, the effective data in the digital signal of each channel is first obtained, and then the effective data of each channel obtained each time is obtained. The data is packed with the line header and the acquired target frame synchronization signal to form the target data.
在另一实施例中,获取各通道的数字信号中的有效数据及其对应的每个通道的帧同步信号,此时可将各通道的帧同步信号默认作为该通道额外的有效数据,将其与上述有效数据一并处理,然后将每次获取到的各通道的有效数据及其对应的每个通道的帧同步信号,和上述行头以及获取到的目标帧同步信号打包处理形成上述目标数据。举例地,如图2所示的为已打包处理后的一目标数据,其中,LH为目标数据的行头,big-FB为目标帧同步信号,ch0-FB、ch1-FB、ch2-FB、ch3-FB分别为通道0、通道1、通道2以及通道3的帧同步信号,ch0-cur、ch1-cur、ch2-cur、ch3-cur分别为通道0、通道1、通道2以及通道3的当前帧图像的有效数据,ch1-pre、ch2-pre、ch3-pre分别为通道1、通道2以及通道3的上一帧图像的有效数据。具体形成过程为:由于通过各个通道从摄像头获取的数据当中,每个通道的数据均包括图像的有效数据、帧同步信号以及行同步信号,本实施例子中,将各通道的图像的有效数据、帧同步信号一并获取,即首先分别获取通道0、通道1、通道2以及通道3的图像的当前有效数据(ch0-cur、ch1-cur与ch1-pre、ch2-cur与ch2-pre、ch3-cur与ch3-pre)以及对应每个通道的帧同步信号(ch0-FB、ch1-FB、ch2-FB、ch3-FB),然后将每个通道的帧同步信息作为额外的有效数据与其对应的图像有效数据集合处理,再与行头(LH)以及目标帧同步信号(big-FB)打包处理,这时由于每个通道的帧同步信息默认为额外的有效数据,当目标数据发送至SOC时,无需检测到各个通道的帧同步信号,只需检测到目标帧同步信号,即可进入获取有效数据的程序。In another embodiment, the valid data in the digital signal of each channel and the corresponding frame synchronization signal of each channel are acquired. At this time, the frame synchronization signal of each channel can be defaulted as the additional valid data of the channel. Process together with the above valid data, and then pack the acquired valid data of each channel and the corresponding frame synchronization signal of each channel with the line header and the acquired target frame synchronization signal to form the target data. For example, as shown in Figure 2 is a target data that has been packaged and processed, where LH is the line header of the target data, big-FB is the target frame synchronization signal, ch0-FB, ch1-FB, ch2-FB, ch3 -FB is the frame synchronization signal of channel 0, channel 1, channel 2, and channel 3, ch0-cur, ch1-cur, ch2-cur, and ch3-cur are the current of channel 0, channel 1, channel 2, and channel 3 respectively. The valid data of the frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of channel 1, channel 2, and channel 3, respectively. The specific formation process is as follows: among the data obtained from the camera through each channel, the data of each channel includes the effective data of the image, the frame synchronization signal and the line synchronization signal. In this embodiment, the effective data of the image of each channel, The frame synchronization signal is acquired together, that is, the current valid data of the image of channel 0, channel 1, channel 2, and channel 3 (ch0-cur, ch1-cur and ch1-pre, ch2-cur and ch2-pre, ch3) -cur and ch3-pre) and the frame synchronization signal corresponding to each channel (ch0-FB, ch1-FB, ch2-FB, ch3-FB), and then use the frame synchronization information of each channel as additional valid data corresponding to it The image effective data collection process of the image, and then packaged with the line header (LH) and the target frame synchronization signal (big-FB), at this time, because the frame synchronization information of each channel defaults to additional valid data, when the target data is sent to the SOC , No need to detect the frame synchronization signal of each channel, only need to detect the target frame synchronization signal, you can enter the program to obtain valid data.
在一个实施例中,上述步骤S03,包括:In an embodiment, the above step S03 includes:
步骤S031:依据任一所述通道的数字信号的帧同步信号生成所述目标帧同步信号。Step S031: Generate the target frame synchronization signal according to the frame synchronization signal of the digital signal of any one of the channels.
本实施例中,通过转换IC将各图像数据从模拟信号转化成数字信号,其中,数字信号包括图像的有效数据、帧同步信号、行同步信号,本实施例中,将其中一通道的图像数据的帧同步信号作为上述目标数据的目标帧同步信号,具体而言,获取任一通道的图像数据的帧同步信号,然后将该帧同步信号变换得到上述目标帧同步信号,例如A通道图像数据的帧同步信号有45行,只取其中1行生成上述目标帧同步信号,以使目标帧同步信号所占容量尽量小,预留更多空间放置各通道的有效数据,其余44行当作额外的有效数据与A通道中的图像有效数据集合,再将各行同步信号合并得到目标数据的行头,然后将目标帧同步信号作为各通道的图像数据的共同帧同步信号,与行头以及各图像数据的有效数据进行打包处理得到目标数据,此时的目标数据包含由各通道的有效数据集合而成的一个集合数据、一个共同的目标帧同步信号以及一个行头。值得注意的是,在形成上述目标数据的过程中,加入上述目标帧同步信号的同时,由于需要接收各通道传输过来的真实图像的有效数据,为了不丢失数据,转换IC需要将上述目标帧同步信号缓存,且为了节省空间避免浪费资源,缓存应尽量小,此外,通常中低端SOC由于硬件设施的限制,其处理能力有一定的要求,需要在1行的时间内识别出帧同步信号,故而将目标帧同步信号设置为1行。在另一个实施例中,将目标帧同步信号作为各通道的图像数据的共同帧同步信号,与行头以及各图像数据的有效数据及对应的通道的帧同步信号进行打包处理得到目标数据,即此时的目标数据包含由各通道的有效数据集合及其帧同步信号而成的一个集合数据、一个共同的目标帧同步信号以及一个行头。In this embodiment, each image data is converted from an analog signal to a digital signal through a conversion IC, where the digital signal includes the effective data of the image, the frame synchronization signal, and the line synchronization signal. In this embodiment, the image data of one channel is The frame synchronization signal is used as the target frame synchronization signal of the target data. Specifically, the frame synchronization signal of the image data of any channel is obtained, and then the frame synchronization signal is transformed to obtain the target frame synchronization signal, for example, the image data of channel A The frame synchronization signal has 45 lines. Only one line is used to generate the above-mentioned target frame synchronization signal, so that the capacity occupied by the target frame synchronization signal is as small as possible, and more space is reserved for the effective data of each channel. The remaining 44 lines are regarded as additional effective The data and the image effective data in the A channel are combined, and then the line synchronization signals are combined to obtain the line head of the target data, and then the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line head and the effective data of each image data Packing is performed to obtain the target data. At this time, the target data includes a set of data, a common target frame synchronization signal, and a line header formed by a collection of valid data of each channel. It is worth noting that in the process of forming the above-mentioned target data, while adding the above-mentioned target frame synchronization signal, since it needs to receive the effective data of the real image transmitted by each channel, in order not to lose data, the conversion IC needs to synchronize the above-mentioned target frame. Signal buffer, and in order to save space and avoid wasting resources, the buffer should be as small as possible. In addition, usually low-end SOC due to the limitation of hardware facilities, its processing capacity has certain requirements, and the frame synchronization signal needs to be identified within 1 line. Therefore, the target frame synchronization signal is set to 1 line. In another embodiment, the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line header, the valid data of each image data and the frame synchronization signal of the corresponding channel are packed to obtain the target data, that is, The time target data includes a set of data formed by the effective data set of each channel and its frame synchronization signal, a common target frame synchronization signal, and a line header.
在另一实施例中,上述共同的帧同步信号也可以为预设的,先通过转换IC将各图像数据从模拟信号转化成数字信号,然后从每个图像数据中获取相应的有效数据,将预设的目标帧同步信号作为各通道的图像数据的共同帧同步信号,与各图像数据的有效数据以及行头打包处理得到上述目标数据。或者,从每个图像数据中获取相应的有效数据及其相应的帧同步信号,将预设的目标帧同步信号作为各通道的图像数据的共同帧同步信号,与各图像数据的有效数据及其对应各通道的帧同步信号,以及行头打包处理得到上述目标数据。In another embodiment, the above-mentioned common frame synchronization signal can also be preset. First, each image data is converted from an analog signal to a digital signal through a conversion IC, and then the corresponding valid data is obtained from each image data, and the The preset target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the effective data of each image data and the line header are packed to obtain the target data. Or, obtain the corresponding effective data and its corresponding frame synchronization signal from each image data, use the preset target frame synchronization signal as the common frame synchronization signal of the image data of each channel, and compare the effective data of each image data and its corresponding frame synchronization signal. Corresponding to the frame synchronization signal of each channel, and the line header packing process to obtain the above-mentioned target data.
在一个实施例中,上述步骤S03,包括:In an embodiment, the above step S03 includes:
步骤S031:获取所述目标帧同步信号;Step S031: Obtain the target frame synchronization signal;
步骤S032:将各所述数字信号中的有效数据并列或依次将各所述通道有效数据中的行数据进行循环排序;Step S032: Parallel the effective data in each of the digital signals or sequentially cyclically sort the row data in the effective data of each channel;
步骤S033:将并列或依次将各所述通道有效数据中的行数据进行循环排序后的各所述有效数据与所述目标帧同步信号打包处理得到所述目标数据。Step S033: cyclically sort the row data in the effective data of each channel in parallel or in sequence, and pack each effective data with the target frame synchronization signal to obtain the target data.
本实施例中,在获得上述目标数据的过程中,可以通过按横向布局的方式或按纵向布局的方式进行,即将各有效数据进行并列或排序,然后与目标帧同步信号以及行头进行处理,如图2所表示的为将多路摄像头图像的有效数据按横向布局的方式进行集合,即为将各有效数据并列,其中,LH为目标数据的行头,big-FB为目标帧同步信号,ch0-FB、ch1-FB、ch2-FB、ch3-FB分别为通道0、通道1、通道2以及通道3的帧同步信号,ch0-cur、ch1-cur、ch2-cur、ch3-cur分别为通道0、通道1、通道2以及通道3的当前帧图像的有效数据,ch1-pre、ch2-pre、ch3-pre分别为通道1、通道2以及通道3的上一帧图像的有效数据,此处的当前帧图像的有效数据和上一帧图像的有效数据的集合即为该目标数据的该通道的当前有效数据,本实施例中,获取到目标数据时,可分别依据标识信息获取到通道0、通道1、通道2以及通道3的有效数据,然后各通道中上一帧的有效数据与已缓存的对应该通道的有效数据拼接得到完整一帧图像然后输出,并将有效数据中的当前帧的有效数据缓存,例如针对通道1,将当前有效数据中上一帧的ch1-pre与已缓存的并有关联关系的通道1的有效数据合并还原得到完整一帧图像的数据,然后输出,并将当前有效数据中的当前帧的ch1-cur缓存,以等待从下一次接收到的目标数据中获取通道1的ch1-pre。In this embodiment, in the process of obtaining the above-mentioned target data, it can be carried out in a horizontal layout or a vertical layout, that is, each valid data is parallelized or sorted, and then processed with the target frame synchronization signal and the line header, such as Figure 2 shows that the effective data of the multi-channel camera image is assembled in a horizontal layout, that is, the effective data is juxtaposed, where LH is the line head of the target data, big-FB is the target frame synchronization signal, and ch0- FB, ch1-FB, ch2-FB, and ch3-FB are the frame synchronization signals of channel 0, channel 1, channel 2, and channel 3 respectively, and ch0-cur, ch1-cur, ch2-cur, and ch3-cur are respectively channel 0 , Channel 1, Channel 2 and Channel 3 are valid data of the current frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of Channel 1, Channel 2 and Channel 3 respectively. The set of the valid data of the current frame of image and the valid data of the previous frame of image is the current valid data of the channel of the target data. In this embodiment, when the target data is acquired, the channels 0 and 0 can be obtained respectively according to the identification information. The valid data of channel 1, channel 2 and channel 3, and then the valid data of the previous frame in each channel and the valid data of the corresponding channel that have been buffered are spliced to obtain a complete frame of image and then output, and the current frame of the valid data Valid data cache, for example, for channel 1, combine the ch1-pre of the previous frame in the current valid data and the cached and associated effective data of channel 1 to obtain a complete frame of image data, and then output it The ch1-cur of the current frame in the current valid data is buffered to wait for the ch1-pre of channel 1 to be obtained from the target data received next time.
如图3所表示的为将有效数据按纵向布局的方式进行集合形成上述目标数据,即按各通道的行数据循环排序形成上述目标数据,其中chx line nx为通道x的第x行数据,例如ch1 line n1、ch2 line n2、ch3 line n3分别为通道1的第一行数据、通道2的第二行数据以及通道3的第三行数据,即是在生成上述目标数据过程中,将各通道的有效数据中的行数据进行循环排序,再与共同的帧同步信号以及行头进行集合处理,本实施例中,获取到目标数据中,依据目标数据的行头,确定每个通道的有效数据的帧序号以及行序号,然后依次将每行的有效数据拼接还原出完整一帧图像的图像数据,再输出,若判定不为完整一帧图像,则将这些有效数据缓存,以等待下一次接收到的目标数据中获取各通道的有效数据,重复上述步骤,直到拼接出完整一帧图像的数据,并输出。As shown in Figure 3, the effective data is assembled in a vertical layout to form the above-mentioned target data, that is, the above-mentioned target data is formed by cyclically sorting the row data of each channel, where chx line nx is the x-th line data of channel x, for example, ch1 line n1, ch2 line n2, ch3 line n3 are the first row of data of channel 1, the second row of data of channel 2, and the third row of data of channel 3. The row data in the data is cyclically sorted, and then collectively processed with the common frame synchronization signal and the line header. In this embodiment, the target data is acquired, and the frame number and the frame number of the valid data of each channel are determined according to the line header of the target data. Line number, and then successively splice the valid data of each line to restore the image data of a complete frame of image, and then output it. If it is determined that it is not a complete frame of image, the valid data will be buffered to wait for the next received target data Obtain the effective data of each channel in, repeat the above steps until the data of a complete frame of image is spliced and output.
本申请还提出了一种多通道图像数据的输出装置,用于执行上述多通道图像数据的输出方法,多通道图像数据的输出装置具体可通过软件或硬件的形式实现,通常应用于硬件装备不支持多路摄像头图像数据输入单路输出的中低端SOC。参照图4,上述多通道图像数据的输出装置包括:This application also proposes a multi-channel image data output device, which is used to implement the above-mentioned multi-channel image data output method. The multi-channel image data output device can be implemented in the form of software or hardware, and is usually used in hardware equipment. Support multi-channel camera image data input single output low-end SOC. 4, the above-mentioned multi-channel image data output device includes:
获取目标单元100,用于依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;The acquiring target unit 100 is configured to sequentially acquire target data, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
检测信号单元200,用于当检测到所述目标帧同步信号,则从所述目标数据中分别获取各通道的所述有效数据;The detection signal unit 200 is configured to obtain the effective data of each channel from the target data when the target frame synchronization signal is detected;
输出数据单元300,用于以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。The output data unit 300 is configured to output the effective data of each channel in the form of outputting a complete frame of image each time.
如上述获取目标单元100所述,上述目标数据为从摄像头采集得到并输出的经过转换的数据,首先多个通道摄像头的图像数据通过AHD输出,然后通过转换IC从模拟信号转化成数字信号,然后经打包输送到上述SOC,此时目标数据包括多个通道摄像头的有效数据,这些有效数据可以为完整一帧图的数据,也可以为半帧图的数据,或者一帧图像中的部分数据。其中,获取得到的目标数据所呈现的方式为单路摄像头数据输出的方式,本实施例中,上述单路摄像头数据输出的方式即是在图像的有效数据中加入一个帧同步信号以及一个行同步信号,并将上述有效数据、帧同步信号以及行同步信号按预设方式集合而得到的布局方式。本实施例中,依次获取目标数据,每个目标数据均包括多个通道的摄像头采集到的有效数据、一个目标帧同步信号以及一个行同步信号,此时目标数据中的有效数据、目标帧同步信号以及行同步信号已按上述单路摄像头数据输出的方式组合,上述目标帧同步信号用于SOC在接收数据的过程中,用来确定可以对该数据进行处理,行同步信号包括图像的行头,该行头包括通道信息、其所属图像帧数据的行信息以及所属图像帧在帧序列中的帧序号信息等。As described in the acquisition target unit 100, the target data is the converted data collected and output from the camera. First, the image data of the multiple-channel camera is output through the AHD, and then the analog signal is converted into the digital signal through the conversion IC, and then After being packaged and transported to the aforementioned SOC, the target data includes valid data from multiple channel cameras. These valid data can be data of a complete frame of image, data of a field image, or partial data of a frame of image. Among them, the obtained target data is presented in a single-channel camera data output method. In this embodiment, the single-channel camera data output method is to add a frame synchronization signal and a line synchronization signal to the effective data of the image. Signal, and the layout mode obtained by integrating the above-mentioned valid data, frame synchronization signal, and line synchronization signal in a preset manner. In this embodiment, the target data are acquired in sequence, and each target data includes valid data collected by cameras of multiple channels, a target frame synchronization signal, and a line synchronization signal. At this time, the valid data and target frame synchronization in the target data The signal and the line synchronization signal have been combined in the manner of the aforementioned single-channel camera data output. The target frame synchronization signal is used by the SOC in the process of receiving data to determine that the data can be processed. The line synchronization signal includes the line head of the image. The line header includes channel information, line information of the image frame data to which it belongs, and frame number information of the image frame to which it belongs in the frame sequence.
如上述检测信号单元200以及输出数据单元300所述,当检测到目标数据的目标帧同步信号,即说明SOC可以对该目标数据进行处理,每个通道的有效数据均与其余通道的有效数据相互独立,当检测到上述目标帧同步信号,可从目标数据中分别获取到各个通道的有效数据,然后每一次均以完整一帧图像的形式,输出各个通道的有效数据,进一步可将该图像数据进行显示,循环上述步骤并进行显示即完成各路摄像头的视频显示。As described in the detection signal unit 200 and the output data unit 300, when the target frame synchronization signal of the target data is detected, it means that the SOC can process the target data. The valid data of each channel is mutually related to the valid data of the other channels. Independent, when the above-mentioned target frame synchronization signal is detected, the effective data of each channel can be obtained from the target data, and then the effective data of each channel is output in the form of a complete frame of image each time, and the image data can be further Perform the display, loop the above steps and perform the display to complete the video display of each camera.
这样由于接收到的目标数据包含有多个通道摄像头采集的有效数据以及一目标帧同步信号,即便中低端SOC没有相应的硬件设施,仍然可以识别该目标数据,然后从目标数据中还原各通道的图像数据,从而实现多通道摄像头采集的图像数据在低成本的基础上同样可以完成输出。In this way, because the received target data contains valid data collected by multiple channels of cameras and a target frame synchronization signal, even if the low-end SOC does not have corresponding hardware facilities, the target data can still be identified, and then each channel can be restored from the target data. In order to realize that the image data collected by the multi-channel camera can also be output on the basis of low cost.
在一个实施例中,每个所述通道的有效数据均携带有与各所述通道对应的标识信息,上述检测信号单元200,包括:In an embodiment, the valid data of each channel carries identification information corresponding to each channel, and the above-mentioned detection signal unit 200 includes:
获取数据子单元,用于依据所述标识信息,分别从所述目标数据中获取与所述标识信息所对应的各所述通道的所述有效数据。The data obtaining subunit is configured to obtain the effective data of each of the channels corresponding to the identification information from the target data according to the identification information.
本实施例中,上述标识信息为用于识别通道的信息,当图像数据从模拟信号转换成数字信号,形成上述目标数据的过程中,将对应各通道的识别信息加入到上述有效数据中,以使后续还原各通道的图像时,可依据该标识信息获取到每个通道的有效数据,具体而言,先识别出每个通道的有效数据的标识信息,以识别出每个有效数据所对应的通道,然后分别从目标数据中获取对应各通道的有效数据。In this embodiment, the above-mentioned identification information is information used to identify channels. When image data is converted from an analog signal to a digital signal to form the above-mentioned target data, the identification information corresponding to each channel is added to the above-mentioned valid data. When restoring the images of each channel subsequently, the effective data of each channel can be obtained according to the identification information. Specifically, the identification information of the effective data of each channel is first identified to identify the corresponding to each effective data. Channels, and then obtain the valid data corresponding to each channel from the target data.
在一个实施例中,上述输出数据单元300,包括:In an embodiment, the aforementioned output data unit 300 includes:
第一判断子单元,用于判断从各所述通道的当前有效数据是否为完整的一帧图像的图像数据;The first judging subunit is used to judge whether the current valid data from each of the channels is a complete image data of one frame of image;
输出数据子单元,用于若所述当前有效数据为完整的一帧图像的图像数据,则将所述当前有效数据输出;The output data subunit is configured to output the current valid data if the current valid data is image data of a complete frame of image;
第二判断子单元,用于若所述当前有效数据不为完整的一帧图像的图像数据,则判断所述当前有效数据是否与在后有效数据有关联关系,所述在后有效数据为下一次接收到的目标数据中获取到的所述通道的有效数据,所述关联关系用于表示两个有效数据为均属于同一帧图像;The second judging subunit is used for judging whether the current valid data is related to subsequent valid data if the current valid data is not a complete image data of one frame of image, and the subsequent valid data is the next valid data. The valid data of the channel acquired in the target data received at one time, and the association relationship is used to indicate that the two valid data belong to the same frame of image;
第一合并子单元,用于若有关联关系,则将所述当前有效数据与所述在后有效数据合并以更新当前有效数据,并返回执行所述判断各所述通道的当前有效数据是否为完整的一帧图像的图像数据的步骤。The first merging subunit is used to merge the current valid data with the subsequent valid data if there is an association relationship to update the current valid data, and return to execute the judgment whether the current valid data of each channel is Complete the image data of one frame of image.
如上述第一判断子单元以及输出数据子单元所述,在获取各通道当前帧的图像数据时,可指定优先处理其中一个通道的数据,或者同时处理所有通道的数据,或者同时处理部分通道的数据,或者按预设的优先顺序处理各通道的数据。首先从目标数据中获取通道的当前有效数据,然后判断该当前有效数据是否为完整的一帧图像的图像数据。需知当前获取到的目标数据可能包含多个通道的数据,每个通道的数据量可能一样,也可能均不一样,例如A通道的有效数据为完整一帧图的数据,而B通道的仅为半帧图的数据,C通道的为上一帧的半帧与当前帧的半帧的数据,或者为当前帧的半帧与下一帧的半帧的数据;故先判断当前有效数据是否为完整的同一帧图像的图像数据,具体可通过目标数据的行头判断出各通道的数据是否为完整的一帧图的数据,如通过上述行头进行判断,行头中包括相对帧信息以及真实行信息,其中帧信息即该行所在帧的帧序号,例如一视频的连续帧图的帧序号可从0-7循环;行信息为该行在真实完整的一帧图中的行序号,通常完整一帧图的行序号的起始行序号为1、结束行序号为该帧图的行高n,当判定当前有效数据中的每一行的帧序号一致,且行信息中的行序号排列起来是从序号1至序号n(n为大于1的整数),则可确定当前有效数据为完整一帧图像的数据,本实施例中,目标数据的行数要比摄像头输出的每帧图像的行数要大,故而一般同一帧图像的数据最多分布于前后连续的两个目标数据中。若在帧序号一致的当前有效数据中,其行序号排列时仅有的是从序号1至序号n-m(其中,m<n,m为大于零的整数),则说明当前有效数据为帧序号所对应图像帧的前半帧,这时可将这些数据缓存;若在帧序号一致的当前有效数据中,其行序号排列时仅有的是从序号n-m(其中,m<n)至序号n,则说明当前有效数据可能为帧序号所对应图像帧的后半帧,这时将当前有效数据与缓存的数据合并。As described in the above-mentioned first judgment subunit and output data subunit, when acquiring the image data of the current frame of each channel, you can specify to process the data of one of the channels first, or process the data of all channels at the same time, or process the data of some channels at the same time. Data, or process the data of each channel according to the preset priority order. First, obtain the current valid data of the channel from the target data, and then determine whether the current valid data is the image data of a complete frame of image. It should be noted that the currently acquired target data may contain data from multiple channels, and the amount of data in each channel may be the same or different. For example, the effective data of channel A is the data of a complete frame of image, while the data of channel B is only It is the data of the field picture, the field of the C channel is the data of the field of the previous frame and the field of the current frame, or the data of the field of the current frame and the field of the next frame; therefore, first determine whether the current valid data is It is the complete image data of the same frame of image. Specifically, it can be judged by the line header of the target data whether the data of each channel is the data of a complete frame of image. For example, the line header includes the relative frame information and the real line information. , Where the frame information is the frame number of the frame where the line is located. For example, the frame number of a continuous frame picture of a video can be cycled from 0-7; the line information is the line number of the line in a real and complete frame picture, usually one complete The start line number of the line number of the frame picture is 1, and the end line number is the line height n of the frame picture. When it is determined that the frame number of each line in the current valid data is the same, and the line numbers in the line information are arranged from the sequence number 1 to number n (n is an integer greater than 1), it can be determined that the current valid data is the data of a complete frame of image. In this embodiment, the number of rows of target data is larger than the number of rows of each frame of image output by the camera Therefore, generally, the data of the same frame of image is distributed at most in two consecutive target data. If in the current valid data with the same frame sequence number, the only row sequence number is from sequence number 1 to sequence number nm (where m<n, m is an integer greater than zero), then the current valid data is the image corresponding to the frame number In the first half of the frame, these data can be buffered at this time; if the row sequence numbers of the current valid data with the same frame number are only from the sequence number nm (among them, m<n) to the sequence number n, it means the current valid data It may be the second half of the image frame corresponding to the frame number. At this time, the current valid data is merged with the buffered data.
如上述第二判断子单元以及第一合并子单元所述,当判定上述当前有效数据不为完整一帧图像的图像数据,则判断上述当前有效数据是否与在后有效数据有关联关系,该在后有效数据为下一次接收到的目标数据中获取到的通道的有效数据,上述关联关系为两个有效数据为均属于同一帧图的数据的关系,例如,当两个有效数据分别为属于同一帧图像的数据,且分别为互补的两部分数据,则该两个有效数据合并得到完整一帧图像的图像数据,可通过行头中行信息以及所在帧在帧序列中的序号信息来进行判断,当判定当前有效数据与在后有效数据具有关联关系,则将当前有效数据与在后有效数据合并,从而更新缓存中的当前有效数据,并返回执行上述第一判断子单元,即再次判断合并后的当前有效数据是否为完整一帧图像的图像数据,若是,则将图像数据输出。As described in the second judging subunit and the first merging subunit, when it is judged that the current valid data is not the image data of a complete frame of image, it is judged whether the current valid data is related to the subsequent valid data. The latter valid data is the valid data of the channel acquired in the target data received next time. The above-mentioned association relationship is the relationship between the two valid data being the data belonging to the same frame picture. For example, when the two valid data belong to the same frame. Frame image data, and they are two complementary parts of the data, then the two valid data are combined to obtain the image data of a complete frame of image, which can be judged by the line information of the line header and the sequence number information of the frame in the frame sequence. If it is determined that the current valid data has an association relationship with the later valid data, the current valid data and the later valid data are merged, thereby updating the current valid data in the cache, and returning to execute the above-mentioned first determination subunit, that is, determining the merged data again Whether the current valid data is the image data of a complete frame of image, if so, the image data is output.
当上述当前有效数据与在后有效数据合并不为完整一帧图像的图像数据,即说明还需要补充该帧图像的其余数据,这时重复上述步骤,即接收再一次的目标数据,然后从对应通道中获取有效数据,为了便于区别,此处命名为第三有效数据,然后判断第三有效数据是否与前两次合并的数据有关联关系,若有,则将该第三有效数据与前两次合并后的有效数据合并,然后再判断此次合并后的有效数据是否为完整一帧图像的图像数据,若是则输出该图像数据,以此类推,直到多次获取到该通道的有效数据可合并为一帧图像的图像数据,然后输出该图像数据。When the above-mentioned current valid data and subsequent valid data are not merged into the image data of a complete frame of image, it means that the remaining data of the frame of image needs to be supplemented. At this time, repeat the above steps, namely receive the target data again, and then download the corresponding Obtain valid data from the channel. In order to facilitate the distinction, it is named the third valid data here, and then it is judged whether the third valid data is related to the previous two merged data. If so, the third valid data is compared with the first two After the merged valid data is merged, then it is judged whether the merged valid data is the image data of a complete frame of image, if it is, the image data is output, and so on, until the valid data of the channel is obtained multiple times. Combine the image data into one frame of image, and then output the image data.
举例地,上述目标数据包括A通道以及B通道的有效数据,以及一个目标帧同步信号和行同步信号,当检测到目标帧同步信号时,分别通过标识信息获取A通道和B通道的有效数据,然后判断A通道与B通道的数据是否分别为完整一帧图像的图像数据,本实施例中,以A通道为基准,A通道的有效数据为完整一帧图像的图像数据,这时可直接输出A通道的当前有效数据,而B通道的当前有效数据为半帧图像的数据,这时判定B通道的当前有效数据不为完整一帧图像的图像数据,然后将该当前有效数据缓存,在接收到下一次的目标数据,并检测到该目标数据的帧同步信号时,再次分别获取A通道以及B通道的在后有效数据,然后判定A通道的在后有效数据为完整一帧图像的数据时将其输出,并判断B通道的当前有效数据与在后有效数据有关联关系时,说明B通道的在后有效数据也为半帧图像的图像数据,这时可将B通道的当前有效数据与在后有效数据合并,得到完整一帧图像的图像数据,然后将其输出。For example, the aforementioned target data includes the valid data of the A channel and the B channel, and a target frame synchronization signal and a line synchronization signal. When the target frame synchronization signal is detected, the valid data of the A channel and the B channel are obtained through the identification information, respectively. Then it is judged whether the data of the A channel and the B channel are the image data of a complete frame of image respectively. In this embodiment, the A channel is used as a reference, and the effective data of the A channel is the image data of a complete frame of image. At this time, it can be directly output The current valid data of the A channel and the current valid data of the B channel are half-frame image data. At this time, it is determined that the current valid data of the B channel is not the image data of a complete frame of image, and then the current valid data is buffered and received When the next target data is detected and the frame synchronization signal of the target data is detected, the subsequent valid data of channel A and B are obtained again, and then the subsequent valid data of channel A is determined to be the data of a complete frame of image When outputting it and judging that the current valid data of the B channel is related to the subsequent valid data, it means that the subsequent valid data of the B channel is also the image data of the half-frame image. At this time, the current valid data of the B channel can be combined with the subsequent valid data. After the effective data is merged, the image data of a complete frame of image is obtained, and then it is output.
在另一个实施例中,上述目标数据还包括有C通道,假设每个目标数据中的C通道的有效数据的数据量均为三分之一帧图像的图像数据,这时需重复上述步骤,直到将三次获取到的C通道的有效数据合并,得到完整一帧图像的图像数据,然后输出。In another embodiment, the above-mentioned target data further includes a C channel. Assuming that the effective data of the C channel in each target data is the image data of one-third frame of image, the above steps need to be repeated. Until the effective data of the C channel acquired three times are combined, the image data of a complete frame of image is obtained, and then output.
值得注意的是,此处并不限定每个通道的有效数据的数据量,有可能为完整一帧图像的数据,也有可能为半帧或三分之一或四分之一帧等数据,或者为当前帧的半帧图像的数据与上一帧的三分之一帧图像数据,重复上述步骤,若为不完整一帧图像则缓存,若为完整一帧或合并后为完整一帧图像则输出,即最后所有的有效数据均通过完整一帧图像的数据形式输出。It is worth noting that the amount of valid data for each channel is not limited here. It may be the data of a complete frame of image, or it may be data such as half frame or one-third or one-quarter frame, or Repeat the above steps for the half-frame image data of the current frame and the one-third frame image data of the previous frame. If it is an incomplete frame, it will be buffered. If it is a complete frame or merged into a complete frame, then Output, that is, all the valid data at the end are output in the form of a complete frame of image data.
在另一实施例中,若判定该通道的当前有效数据与在后有效数据无关联关系,则说明在处理数据过程中可能存在数据丢失或顺序错乱的情况,可将该当前有效数据缓存,当在后续处理过程中获取到与其有关联关系的有效数据时再将该两者合并;或者,将该当前有效数据删除。In another embodiment, if it is determined that there is no correlation between the current valid data of the channel and the later valid data, it means that there may be data loss or disorder in the process of data processing, and the current valid data can be cached. In the subsequent processing, when the effective data associated with it is obtained, the two are merged; or, the current effective data is deleted.
在一个实施例中,上述获取目标单元100,包括:In an embodiment, the foregoing acquisition target unit 100 includes:
获取通数子单元,用于依次获取每一所述通道的图像数据;The acquiring subunit is used to acquire the image data of each channel in turn;
转换数据子单元,用于依次将每次各所述通道获取的所述图像数据从模拟信号转换成数字信号,所述数字信号包括图像的有效数据;The data conversion subunit is configured to sequentially convert the image data acquired by each channel each time from an analog signal to a digital signal, and the digital signal includes the effective data of the image;
获取信号子单元,用于获取所述目标帧同步信号,并将每次获取到的各所述通道的数字信号中的有效数据,和所述目标帧同步信号打包形成所述目标数据。The signal acquisition subunit is used to acquire the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
本实施例中,上述目标数据从多路摄像头获取,首先多个通道摄像头的图像数据通过AHD输出,即可通过AHD从多个通道中获取与各通道相应的图像数据,然后在转换IC从模拟信号转化成数字信号的过程中,将这些图像数据按照单路摄像头数据输出的方式打包得到目标数据,即首先获取各通道的数字信号中的有效数据,然后将每次获取到的各通道的有效数据,和上述行头以及获取到的目标帧同步信号打包处理形成上述目标数据。In this embodiment, the above-mentioned target data is obtained from a multi-channel camera. First, the image data of the multi-channel camera is output through AHD, and the image data corresponding to each channel can be obtained from multiple channels through AHD. In the process of signal conversion into digital signal, the image data is packaged in the way of single-channel camera data output to obtain the target data, that is, the effective data in the digital signal of each channel is first obtained, and then the effective data of each channel obtained each time is obtained. The data is packed with the line header and the acquired target frame synchronization signal to form the target data.
在另一实施例中,获取各通道的数字信号中的有效数据及其对应的每个通道的帧同步信号,此时可将各通道的帧同步信号默认作为该通道额外的有效数据,将其与上述有效数据一并处理,然后将每次获取到的各通道的有效数据及其对应的每个通道的帧同步信号,和上述行头以及获取到的目标帧同步信号打包处理形成上述目标数据。举例地,如图2所示的为已打包处理后的一目标数据,其中,LH为目标数据的行头,big-FB为目标帧同步信号,ch0-FB、ch1-FB、ch2-FB、ch3-FB分别为通道0、通道1、通道2以及通道3的帧同步信号,ch0-cur、ch1-cur、ch2-cur、ch3-cur分别为通道0、通道1、通道2以及通道3的当前帧图像的有效数据,ch1-pre、ch2-pre、ch3-pre分别为通道1、通道2以及通道3的上一帧图像的有效数据。具体形成过程为:由于通过各个通道从摄像头获取的数据当中,每个通道的数据均包括图像的有效数据、帧同步信号以及行同步信号,本实施例子中,将各通道的图像的有效数据、帧同步信号一并获取,即首先分别获取通道0、通道1、通道2以及通道3的图像的当前有效数据(ch0-cur、ch1-cur与ch1-pre、ch2-cur与ch2-pre、ch3-cur与ch3-pre)以及对应每个通道的帧同步信号(ch0-FB、ch1-FB、ch2-FB、ch3-FB),然后将每个通道的帧同步信息作为额外的有效数据与其对应的图像有效数据集合处理,再与行头(LH)以及目标帧同步信号(big-FB)打包处理,这时由于每个通道的帧同步信息默认为额外的有效数据,当目标数据发送至SOC时,无需检测到各个通道的帧同步信号,只需检测到目标帧同步信号,即可进入获取有效数据的程序。In another embodiment, the valid data in the digital signal of each channel and the corresponding frame synchronization signal of each channel are obtained. At this time, the frame synchronization signal of each channel can be defaulted as the additional valid data of the channel. Process together with the above valid data, and then pack the acquired valid data of each channel and the corresponding frame synchronization signal of each channel with the line header and the acquired target frame synchronization signal to form the target data. For example, as shown in Figure 2 is a target data that has been packaged and processed, where LH is the line header of the target data, big-FB is the target frame synchronization signal, ch0-FB, ch1-FB, ch2-FB, ch3 -FB is the frame synchronization signal of channel 0, channel 1, channel 2, and channel 3, ch0-cur, ch1-cur, ch2-cur, and ch3-cur are the current of channel 0, channel 1, channel 2, and channel 3 respectively. The valid data of the frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of channel 1, channel 2, and channel 3, respectively. The specific formation process is as follows: among the data obtained from the camera through each channel, the data of each channel includes the effective data of the image, the frame synchronization signal and the line synchronization signal. In this embodiment, the effective data of the image of each channel, The frame synchronization signal is acquired together, that is, the current valid data of the image of channel 0, channel 1, channel 2, and channel 3 (ch0-cur, ch1-cur and ch1-pre, ch2-cur and ch2-pre, ch3) -cur and ch3-pre) and the frame synchronization signal corresponding to each channel (ch0-FB, ch1-FB, ch2-FB, ch3-FB), and then use the frame synchronization information of each channel as additional valid data corresponding to it The image effective data collection process of the image, and then packaged with the line header (LH) and the target frame synchronization signal (big-FB), at this time, because the frame synchronization information of each channel defaults to additional valid data, when the target data is sent to the SOC , No need to detect the frame synchronization signal of each channel, only need to detect the target frame synchronization signal, you can enter the program to obtain valid data.
在一个实施例中,上述获取信号子单元,包括:In an embodiment, the foregoing signal acquisition subunit includes:
生成信号子单元,用于依据任一所述通道的数字信号的帧同步信号生成所述目标帧同步信号。The signal generating subunit is used to generate the target frame synchronization signal according to the frame synchronization signal of the digital signal of any one of the channels.
本实施例中,通过转换IC将各图像数据从模拟信号转化成数字信号,其中,数字信号包括图像的有效数据、帧同步信号、行同步信号,本实施例中,将其中一通道的图像数据的帧同步信号作为上述目标数据的目标帧同步信号,具体而言,获取任一通道的图像数据的帧同步信号,然后将该帧同步信号变换得到上述目标帧同步信号,例如A通道图像数据的帧同步信号有45行,只取其中1行生成上述目标帧同步信号,以使目标帧同步信号所占容量尽量小,预留更多空间放置各通道的有效数据,其余44行当作额外的有效数据与A通道中的图像有效数据集合,再将各行同步信号合并得到目标数据的行头,然后将目标帧同步信号作为各通道的图像数据的共同帧同步信号,与行头以及各图像数据的有效数据进行打包处理得到目标数据,此时的目标数据包含由各通道的有效数据集合而成的一个集合数据、一个共同的目标帧同步信号以及一个行头。值得注意的是,在形成上述目标数据的过程中,加入上述目标帧同步信号的同时,由于需要接收各通道传输过来的真实图像的有效数据,为了不丢失数据,转换IC需要将上述目标帧同步信号缓存,且为了节省空间避免浪费资源,缓存应尽量小,此外,通常中低端SOC由于硬件设施的限制,其处理能力有一定的要求,需要在1行的时间内识别出帧同步信号,故而将目标帧同步信号设置为1行。在另一个实施例中,将目标帧同步信号作为各通道的图像数据的共同帧同步信号,与行头以及各图像数据的有效数据及对应的通道的帧同步信号进行打包处理得到目标数据,即此时的目标数据包含由各通道的有效数据集合及其帧同步信号而成的一个集合数据、一个共同的目标帧同步信号以及一个行头。In this embodiment, each image data is converted from an analog signal to a digital signal through a conversion IC, where the digital signal includes the effective data of the image, the frame synchronization signal, and the line synchronization signal. In this embodiment, the image data of one channel is The frame synchronization signal is used as the target frame synchronization signal of the target data. Specifically, the frame synchronization signal of the image data of any channel is obtained, and then the frame synchronization signal is transformed to obtain the target frame synchronization signal, for example, the image data of channel A The frame synchronization signal has 45 lines. Only one line is used to generate the above-mentioned target frame synchronization signal, so that the capacity occupied by the target frame synchronization signal is as small as possible, and more space is reserved for the effective data of each channel. The remaining 44 lines are regarded as additional effective The data and the image effective data in the A channel are combined, and then the line synchronization signals are combined to obtain the line head of the target data, and then the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line head and the effective data of each image data Packing is performed to obtain the target data. At this time, the target data includes a set of data, a common target frame synchronization signal, and a line header formed by a collection of valid data of each channel. It is worth noting that in the process of forming the above-mentioned target data, while adding the above-mentioned target frame synchronization signal, since it needs to receive the effective data of the real image transmitted by each channel, in order not to lose data, the conversion IC needs to synchronize the above-mentioned target frame. Signal buffer, and in order to save space and avoid wasting resources, the buffer should be as small as possible. In addition, usually low-end SOC due to the limitation of hardware facilities, its processing capacity has certain requirements, and the frame synchronization signal needs to be identified within 1 line. Therefore, the target frame synchronization signal is set to 1 line. In another embodiment, the target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the line header, the valid data of each image data and the frame synchronization signal of the corresponding channel are packed to obtain the target data, that is, The time target data includes a set of data formed by the effective data set of each channel and its frame synchronization signal, a common target frame synchronization signal, and a line header.
在另一实施例中,上述共同的帧同步信号也可以为预设的,先通过转换IC将各图像数据从模拟信号转化成数字信号,然后从每个图像数据中获取相应的有效数据,将预设的目标帧同步信号作为各通道的图像数据的共同帧同步信号,与各图像数据的有效数据以及行头打包处理得到上述目标数据。或者,从每个图像数据中获取相应的有效数据及其相应的帧同步信号,将预设的目标帧同步信号作为各通道的图像数据的共同帧同步信号,与各图像数据的有效数据及其对应各通道的帧同步信号,以及行头打包处理得到上述目标数据。In another embodiment, the above-mentioned common frame synchronization signal can also be preset. First, each image data is converted from an analog signal to a digital signal through a conversion IC, and then the corresponding valid data is obtained from each image data, and the The preset target frame synchronization signal is used as the common frame synchronization signal of the image data of each channel, and the effective data of each image data and the line header are packed to obtain the target data. Or, obtain the corresponding effective data and its corresponding frame synchronization signal from each image data, use the preset target frame synchronization signal as the common frame synchronization signal of the image data of each channel, and compare the effective data of each image data and its corresponding frame synchronization signal. Corresponding to the frame synchronization signal of each channel, and the line header packing process to obtain the above-mentioned target data.
在一个实施例中,上述获取信号子单元,包括:In an embodiment, the foregoing signal acquisition subunit includes:
获取目标模块,用于获取所述目标帧同步信号;An acquiring target module for acquiring the target frame synchronization signal;
排序数据模块,用于将各所述数字信号中的有效数据并列或依次将各所述通道有效数据中的行数据进行循环排序;The sorting data module is used to parallel the effective data in each of the digital signals or sequentially cyclically sort the row data in the effective data of each channel;
打包数据模块,用于将并列或依次将各所述通道有效数据中的行数据进行循环排序后的各所述有效数据与所述目标帧同步信号打包处理得到所述目标数据。The packed data module is used to pack each of the effective data and the target frame synchronization signal after parallel or sequential row data in the effective data of each channel is cyclically sorted to obtain the target data.
本实施例中,在获得上述目标数据的过程中,可以通过按横向布局的方式或按纵向布局的方式进行,即将各有效数据进行并列或排序,然后与目标帧同步信号以及行头进行处理,如图2所表示的为将多路摄像头图像的有效数据按横向布局的方式进行集合,即为将各有效数据并列,其中,LH为目标数据的行头,big-FB为目标帧同步信号,ch0-FB、ch1-FB、ch2-FB、ch3-FB分别为通道0、通道1、通道2以及通道3的帧同步信号,ch0-cur、ch1-cur、ch2-cur、ch3-cur分别为通道0、通道1、通道2以及通道3的当前帧图像的有效数据,ch1-pre、ch2-pre、ch3-pre分别为通道1、通道2以及通道3的上一帧图像的有效数据,此处的当前帧图像的有效数据和上一帧图像的有效数据的集合即为该目标数据的该通道的当前有效数据,本实施例中,获取到目标数据时,可分别依据标识信息获取到通道0、通道1、通道2以及通道3的有效数据,然后各通道中上一帧的有效数据与已缓存的对应该通道的有效数据拼接得到完整一帧图像然后输出,并将有效数据中的当前帧的有效数据缓存,例如针对通道1,将当前有效数据中上一帧的ch1-pre与已缓存的并有关联关系的通道1的有效数据合并还原得到完整一帧图像的数据,然后输出,并将当前有效数据中的当前帧的ch1-cur缓存,以等待从下一次接收到的目标数据中获取通道1的ch1-pre。In this embodiment, in the process of obtaining the above-mentioned target data, it can be carried out in a horizontal layout or a vertical layout, that is, each valid data is parallelized or sorted, and then processed with the target frame synchronization signal and the line header, such as Figure 2 shows that the effective data of the multi-channel camera image is assembled in a horizontal layout, that is, the effective data is juxtaposed, where LH is the line head of the target data, big-FB is the target frame synchronization signal, and ch0- FB, ch1-FB, ch2-FB, and ch3-FB are the frame synchronization signals of channel 0, channel 1, channel 2, and channel 3 respectively, and ch0-cur, ch1-cur, ch2-cur, and ch3-cur are respectively channel 0 , Channel 1, Channel 2 and Channel 3 are valid data of the current frame image, ch1-pre, ch2-pre, and ch3-pre are the valid data of the previous frame image of Channel 1, Channel 2 and Channel 3 respectively. The set of the valid data of the current frame of image and the valid data of the previous frame of image is the current valid data of the channel of the target data. In this embodiment, when the target data is acquired, the channels 0 and 0 can be obtained respectively according to the identification information. The valid data of channel 1, channel 2 and channel 3, and then the valid data of the previous frame in each channel and the valid data of the corresponding channel that have been buffered are spliced to obtain a complete frame of image and then output, and the current frame of the valid data Valid data cache, for example, for channel 1, combine the ch1-pre of the previous frame in the current valid data and the cached and associated effective data of channel 1 to obtain a complete frame of image data, and then output it The ch1-cur of the current frame in the current valid data is buffered to wait for the ch1-pre of channel 1 to be obtained from the target data received next time.
如图3所表示的为将有效数据按纵向布局的方式进行集合形成上述目标数据,即按各通道的行数据循环排序形成上述目标数据,其中chx line nx为通道x的第x行数据,例如ch1 line n1、ch2 line n2、ch3 line n3分别为通道1的第一行数据、通道2的第二行数据以及通道3的第三行数据,即是在生成上述目标数据过程中,将各通道的有效数据中的行数据进行循环排序,再与共同的帧同步信号以及行头进行集合处理,本实施例中,获取到目标数据中,依据目标数据的行头,确定每个通道的有效数据的帧序号以及行序号,然后依次将每行的有效数据拼接还原出完整一帧图像的图像数据,再输出,若判定不为完整一帧图像,则将这些有效数据缓存,以等待下一次接收到的目标数据中获取各通道的有效数据,重复上述步骤,直到拼接出完整一帧图像的数据,并输出。As shown in Figure 3, the effective data is assembled in a vertical layout to form the above-mentioned target data, that is, the above-mentioned target data is formed by cyclically sorting the row data of each channel, where chx line nx is the x-th line data of channel x, for example, ch1 line n1, ch2 line n2, ch3 line n3 are the first row of data of channel 1, the second row of data of channel 2, and the third row of data of channel 3. The row data in the data is cyclically sorted, and then collectively processed with the common frame synchronization signal and the line header. In this embodiment, the target data is acquired, and the frame number and the frame number of the valid data of each channel are determined according to the line header of the target data. Line number, and then successively splice the valid data of each line to restore the image data of a complete frame of image, and then output it. If it is determined that it is not a complete frame of image, the valid data will be buffered to wait for the next received target data Obtain the effective data of each channel in, repeat the above steps until the data of a complete frame of image is spliced and output.
参考图5,本申请还提供了一种计算机可读的存储介质21,存储介质21中存储有计算机程序22,当其在计算机上运行时,使得计算机执行以上实施例所描述的多通道图像数据的输出方法。With reference to FIG. 5, the present application also provides a computer-readable storage medium 21. The storage medium 21 stores a computer program 22, which when running on a computer, causes the computer to execute the multi-channel image data described in the above embodiments. The output method.
参考图6,本申请还提供了一种包含指令的计算机设备34,计算机设备包括存储器31和处理器33,存储器31存储有计算机程序22,处理器33执行计算机程序22时实现以上实施例所描述的多通道图像数据的输出方法。6, the present application also provides a computer device 34 containing instructions. The computer device includes a memory 31 and a processor 33. The memory 31 stores a computer program 22. When the processor 33 executes the computer program 22, the description in the above embodiment is implemented. The output method of multi-channel image data.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of the specification and drawings of this application, or directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of this application.

Claims (15)

  1. 一种多通道图像数据的输出方法,其特征在于,包括:A method for outputting multi-channel image data, which is characterized in that it includes:
    依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;Acquire target data in sequence, each of the target data includes valid data collected by multiple-channel cameras and a target frame synchronization signal;
    当检测到所述目标帧同步信号,则从所述目标数据中分别获取各所述通道的所述有效数据;When the target frame synchronization signal is detected, the effective data of each of the channels is obtained from the target data;
    以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。The effective data of each channel are respectively output in the form of outputting a complete frame of image each time.
  2. 如权利要求1所述的多通道图像数据的输出方法,其特征在于,每个所述通道的有效数据均携带有与各所述通道对应的标识信息,所述从所述目标数据中分别获取各所述通道的所述有效数据的步骤,包括:The method for outputting multi-channel image data according to claim 1, wherein the effective data of each channel carries identification information corresponding to each of the channels, and the target data is obtained separately from the target data. The steps of the valid data of each of the channels include:
    依据所述标识信息,分别从所述目标数据中获取与所述标识信息对应的各所述通道的所述有效数据。According to the identification information, the valid data of each of the channels corresponding to the identification information is obtained from the target data respectively.
  3. 如权利要求1所述的多通道图像数据的输出方法,其特征在于,所述以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据的步骤,包括:The method for outputting multi-channel image data according to claim 1, wherein the step of outputting the effective data of each channel in the form of outputting a complete frame of image each time comprises:
    判断各所述通道的当前有效数据是否为完整的一帧图像的图像数据;Judging whether the current valid data of each channel is a complete image data of one frame of image;
    若所述当前有效数据为完整的一帧图像的图像数据,则将所述当前有效数据输出;If the current valid data is image data of a complete frame of image, output the current valid data;
    若所述当前有效数据不为完整的一帧图像的图像数据,则判断所述当前有效数据是否与在后有效数据有关联关系,所述在后有效数据为下一次接收到的目标数据中获取到的所述通道的有效数据,所述关联关系用于表示两个有效数据均属于同一帧图像;If the current valid data is not a complete image data of one frame of image, it is determined whether the current valid data is related to the subsequent valid data, and the subsequent valid data is obtained from the target data received next time The effective data of the channel obtained, the association relationship is used to indicate that the two effective data belong to the same frame of image;
    若有关联关系,则将所述当前有效数据与所述在后有效数据合并以更新当前有效数据,并返回执行所述判断各所述通道的当前有效数据是否为完整的一帧图像的图像数据的步骤。If there is an association relationship, merge the current valid data with the subsequent valid data to update the current valid data, and return to execute the image data for judging whether the current valid data of each channel is a complete frame of image A step of.
  4. 如权利要求1所述的多通道图像数据的输出方法,其特征在于,所述依次获取目标数据的步骤,包括:The method for outputting multi-channel image data according to claim 1, wherein the step of sequentially acquiring target data comprises:
    依次获取每一所述通道的图像数据;Sequentially acquiring the image data of each of the channels;
    依次将每次从各所述通道获取的所述图像数据从模拟信号转换成数字信号,所述数字信号包括图像的有效数据;Sequentially converting the image data acquired from each of the channels each time from an analog signal to a digital signal, the digital signal including the effective data of the image;
    获取所述目标帧同步信号,并将每次获取到的各所述通道的数字信号中的有效数据,和所述目标帧同步信号打包形成所述目标数据。Acquire the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
  5. 如权利要求4所述的多通道图像数据的输出方法,其特征在于,所述获取所述目标帧同步信号,并将每次获取到的各所述通道的数字信号中的有效数据,和所述目标帧同步信号打包形成所述目标数据的步骤,包括:The method for outputting multi-channel image data according to claim 4, wherein said acquiring said target frame synchronization signal, and each acquired effective data in the digital signal of each said channel, and The step of packing the target frame synchronization signal to form the target data includes:
    获取所述目标帧同步信号;Acquiring the target frame synchronization signal;
    将各所述数字信号中的有效数据并列或依次将各所述通道有效数据中的行数据进行循环排序;Paralleling the effective data in each of the digital signals or sequentially cyclically sorting the row data in the effective data of each of the channels;
    将并列或依次将各所述通道有效数据中的行数据进行循环排序后的各所述有效数据与所述目标帧同步信号打包处理得到所述目标数据。The target data is obtained by packing each of the valid data and the target frame synchronization signal after the row data in the valid data of each channel is cyclically sorted in parallel or in sequence.
  6. 如权利要求4所述的多通道图像数据的输出方法,其特征在于,所述各所述通道的数字信号还包括与各所述通道对应的帧同步信号;所述获取所述目标帧同步信号的步骤,包括:The method for outputting multi-channel image data according to claim 4, wherein the digital signal of each of the channels further includes a frame synchronization signal corresponding to each of the channels; and the acquisition of the target frame synchronization signal The steps include:
    依据任一所述通道的数字信号的帧同步信号生成所述目标帧同步信号。The target frame synchronization signal is generated according to the frame synchronization signal of the digital signal of any one of the channels.
  7. 如权利要求4所述的多通道图像数据的输出方法,其特征在于,所述目标帧同步信号为预设的帧同步信号。5. The method for outputting multi-channel image data according to claim 4, wherein the target frame synchronization signal is a preset frame synchronization signal.
  8. 一种多通道图像数据的输出装置,其特征在于,包括:A device for outputting multi-channel image data, which is characterized in that it comprises:
    获取目标单元,用于依次获取目标数据,每一所述目标数据均包括多个通道摄像头采集的有效数据以及一目标帧同步信号;An acquiring target unit for acquiring target data in sequence, each of the target data includes valid data collected by multiple channel cameras and a target frame synchronization signal;
    检测信号单元,用于当检测到所述目标帧同步信号,则从所述目标数据中分别获取各通道的所述有效数据;The detection signal unit is configured to obtain the effective data of each channel from the target data when the target frame synchronization signal is detected;
    输出数据单元,用于以每一次输出完整一帧图像的形式分别输出各所述通道的所述有效数据。The output data unit is used to output the effective data of each channel in the form of outputting a complete frame of image each time.
  9. 如权利要求8所述的多通道数据的输出装置,其特征在于,每个所述通道的有效数据均携带有与各所述通道对应的标识信息,所述检测信号单元,包括:8. The multi-channel data output device according to claim 8, wherein the valid data of each of the channels carries identification information corresponding to each of the channels, and the detection signal unit includes:
    获取数据子单元,用于依据所述标识信息,分别从所述目标数据中获取与所述标识信息对应的各所述通道的所述有效数据。The data obtaining subunit is configured to obtain the valid data of each of the channels corresponding to the identification information from the target data according to the identification information.
  10. 如权利要求8所述的多通道数据的输出装置,其特征在于,所述输出数据单元包括:8. The multi-channel data output device of claim 8, wherein the output data unit comprises:
    第一判断子单元,用于判断各所述通道的当前有效数据是否为完成一帧图像的图像数据;The first judging subunit is used for judging whether the current valid data of each channel is image data for completing one frame of image;
    输出数据子单元,用于若所述当前有效数据为完整的一帧图像的图像数据,则将所述当前有效数据输出;The output data subunit is configured to output the current valid data if the current valid data is image data of a complete frame of image;
    第二判断子单元,用于若所述当前有效数据不为完整的一帧图像的图像数据,则判断所述当前有效数据是否与在后有效数据有关联关系,所述在后有效数据为下一次接收到的目标数据中获取到的所述通道的有效数据,所述关联关系用于表示两个有效数据均属于同一帧图像;The second judging subunit is used for judging whether the current valid data is related to subsequent valid data if the current valid data is not the complete image data of one frame of image, and the subsequent valid data is the next valid data. The valid data of the channel acquired in the target data received at one time, and the association relationship is used to indicate that the two valid data belong to the same frame of image;
    第一合并子单元,用于若有关联关系,则将所述当前有效数据与所述在后有效数据合并以更新当前有效数据,并返回执行所述判断各所述通道的当前有效数据是否为完整的一帧图像的图像数据的步骤。The first merging subunit is used to merge the current valid data with the subsequent valid data if there is an association relationship to update the current valid data, and return to execute the judgment whether the current valid data of each channel is Complete the image data of one frame of image.
  11. 如权利要求8所述的多通道数据的输出装置,其特征在于,所述获取目标单元包括:8. The multi-channel data output device according to claim 8, wherein the acquisition target unit comprises:
    获取通数子单元,用于依次获取每一所述通道的图像数据;The acquiring subunit is used to acquire the image data of each channel in turn;
    转换数据子单元,用于依次将每次从各所述通道获取的所述图像数据从模拟信号转换成数字信号,所述数字信号包括图像的有效数据;The data conversion subunit is used to sequentially convert the image data acquired from each channel each time from an analog signal to a digital signal, and the digital signal includes the effective data of the image;
    获取信号子单元,用于获取所述目标帧同步信号,并将每次获取到的各所述通道的数字信号中的有效数据,和所述目标帧同步信号打包形成所述目标数据。The signal acquisition subunit is used to acquire the target frame synchronization signal, and pack the acquired valid data in the digital signal of each channel each time with the target frame synchronization signal to form the target data.
  12. 如权利要求11所述的多通道数据的输出装置,其特征在于,所述获取信号子单元,包括:The multi-channel data output device according to claim 11, wherein the signal acquisition sub-unit comprises:
    获取目标模块,用于获取所述目标帧同步信号;An acquiring target module for acquiring the target frame synchronization signal;
    排序数据模块,用于将各所述数字信号中的有效数据并列或依次将各所述通道有效数据中的行数据进行循环排序;The sorting data module is used to parallel the effective data in each of the digital signals or sequentially cyclically sort the row data in the effective data of each channel;
    打包数据模块,用于将并列或依次将各所述通道有效数据中的行数据进行循环排序后的各所述有效数据与所述目标帧同步信号打包处理得到所述目标数据。The packed data module is used to pack each of the effective data and the target frame synchronization signal after parallel or sequential row data in the effective data of each channel is cyclically sorted to obtain the target data.
  13. 如权利要求11所述的多通道数据的输出装置,其特征在于,所述各所述通道的数字信号还包括与各所述通道对应的帧同步信号;所述获取信号子单元,包括:The multi-channel data output device according to claim 11, wherein the digital signal of each of the channels further includes a frame synchronization signal corresponding to each of the channels; the signal acquisition subunit includes:
    生成信号子单元,用于依据任一所述通道的数字信号的帧同步信号生成所述目标帧同步信号。The signal generating subunit is used to generate the target frame synchronization signal according to the frame synchronization signal of the digital signal of any one of the channels.
  14. 如权利要求11所述的多通道数据的输出装置,其特征在于,The multi-channel data output device of claim 11, wherein:
    所述获取目标单元获取的所述目标帧同步信号为预设的帧同步信号。The target frame synchronization signal acquired by the acquisition target unit is a preset frame synchronization signal.
  15. 一种计算机设备,其特征在于,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1~7任一项所述的多通道图像数据的输出方法。A computer device, characterized in that it includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The processor executes the computer program as claimed in claim 1. The output method of multi-channel image data according to any one of ~7.
PCT/CN2020/128411 2019-12-03 2020-11-12 Method and apparatus for outputting multi-channel image data, and computer device WO2021109827A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911222224.6A CN110855852B (en) 2019-12-03 2019-12-03 Multi-channel image data output method and device and storage medium
CN201911222224.6 2019-12-03

Publications (1)

Publication Number Publication Date
WO2021109827A1 true WO2021109827A1 (en) 2021-06-10

Family

ID=69607455

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128411 WO2021109827A1 (en) 2019-12-03 2020-11-12 Method and apparatus for outputting multi-channel image data, and computer device

Country Status (2)

Country Link
CN (1) CN110855852B (en)
WO (1) WO2021109827A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855852B (en) * 2019-12-03 2022-01-04 深圳市沃特沃德股份有限公司 Multi-channel image data output method and device and storage medium
WO2022041164A1 (en) * 2020-08-29 2022-03-03 华为技术有限公司 Image transmission method and apparatus
CN114615457B (en) * 2022-05-10 2022-08-16 全时云商务服务股份有限公司 Method and device for smooth switching of real-time screen-closing layout in cloud conference
CN115379207A (en) * 2022-08-24 2022-11-22 中国第一汽车股份有限公司 Camera simulation method and device, electronic equipment and readable medium
CN115659154B (en) * 2022-12-13 2023-06-27 广汽埃安新能源汽车股份有限公司 Data transmission method, device, server and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202541A (en) * 2014-09-26 2014-12-10 北京华建纵横科技有限公司 Image synthesizer
CN106341619A (en) * 2016-09-27 2017-01-18 北京乐景科技有限公司 Video data synchronous transmission method, device and system
CN106961571A (en) * 2017-03-07 2017-07-18 深圳市广和通无线通信软件有限公司 The method and system that multiway images data are received simultaneously
CN109644290A (en) * 2018-11-02 2019-04-16 上海极清慧视科技有限公司 Data switching device, data acquisition device and system, method
US20190289300A1 (en) * 2018-03-16 2019-09-19 Mstar Semiconductor, Inc. Image compression system and image compression method using image compression system
CN110855852A (en) * 2019-12-03 2020-02-28 深圳市沃特沃德股份有限公司 Multi-channel image data output method and device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10437744B2 (en) * 2017-12-18 2019-10-08 Intel Corporation Reconfigurable camera serial interface
CN109600532B (en) * 2018-12-13 2020-04-03 中国科学院西安光学精密机械研究所 Unmanned aerial vehicle multi-channel video seamless switching system and method
CN110505381A (en) * 2019-08-26 2019-11-26 山东浪潮人工智能研究院有限公司 It is a kind of to realize vehicle-mounted camera video acquisition, coding and the method and system of transmission

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202541A (en) * 2014-09-26 2014-12-10 北京华建纵横科技有限公司 Image synthesizer
CN106341619A (en) * 2016-09-27 2017-01-18 北京乐景科技有限公司 Video data synchronous transmission method, device and system
CN106961571A (en) * 2017-03-07 2017-07-18 深圳市广和通无线通信软件有限公司 The method and system that multiway images data are received simultaneously
US20190289300A1 (en) * 2018-03-16 2019-09-19 Mstar Semiconductor, Inc. Image compression system and image compression method using image compression system
CN109644290A (en) * 2018-11-02 2019-04-16 上海极清慧视科技有限公司 Data switching device, data acquisition device and system, method
CN110855852A (en) * 2019-12-03 2020-02-28 深圳市沃特沃德股份有限公司 Multi-channel image data output method and device and storage medium

Also Published As

Publication number Publication date
CN110855852B (en) 2022-01-04
CN110855852A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
WO2021109827A1 (en) Method and apparatus for outputting multi-channel image data, and computer device
TWI595786B (en) Timestamp-based audio and video processing method and system thereof
KR20210086420A (en) Neural network data processing apparatus, method and electronic device
US11671678B2 (en) Method and device, equipment, and storage medium for data processing
WO2023165608A1 (en) Frame dropping method and apparatus, and server and medium
CN113992967A (en) Screen projection data transmission method and device, electronic equipment and storage medium
US11237991B2 (en) Image processing accelerator
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
CN113132552B (en) Video stream processing method and device
JPWO2006137480A1 (en) Image data communication device
CN114466145B (en) Video processing method, device, equipment and storage medium
CN113409801B (en) Noise processing method, system, medium and device for real-time audio stream playing
JP2007104568A5 (en)
CN112995557B (en) Parallel processing method and device for multichannel image
US8178847B2 (en) Data processing using reduced onboard memory
CN110661785A (en) Video processing method, device and system, electronic equipment and readable storage medium
CN106164877B (en) Data processing apparatus, data processing system and method
US20100121982A1 (en) Moving-picture processing device and moving-picture processing method
US11863712B1 (en) Daisy chaining dash cams
US20040174319A1 (en) Information transmission apparatus and information transmission method
CN218825618U (en) Video data processing device and vehicle
US20240048784A1 (en) Signal processing apparatus and signal processing method
CN116361254B (en) Image storage method, apparatus, electronic device, and computer-readable medium
WO2022022650A1 (en) Fusion apparatus for multiple data transmission channels, and electronic device
JP2010193045A (en) Method for transmitting radio data, and radio data transmitting/receiving apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20896218

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20896218

Country of ref document: EP

Kind code of ref document: A1