WO2018228352A1 - Synchronous exposure method and apparatus and terminal device - Google Patents

Synchronous exposure method and apparatus and terminal device Download PDF

Info

Publication number
WO2018228352A1
WO2018228352A1 PCT/CN2018/090743 CN2018090743W WO2018228352A1 WO 2018228352 A1 WO2018228352 A1 WO 2018228352A1 CN 2018090743 W CN2018090743 W CN 2018090743W WO 2018228352 A1 WO2018228352 A1 WO 2018228352A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
image
camera system
synchronized
identification information
Prior art date
Application number
PCT/CN2018/090743
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 WO2018228352A1 publication Critical patent/WO2018228352A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • H04N25/58Control of the dynamic range involving two or more exposures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Definitions

  • the invention belongs to the technical field of multi-camera systems, and in particular relates to a synchronous exposure method, device and terminal device.
  • the multi-camera system is a system based on the principle of computer vision, which combines multiple cameras, light sources, storage devices, etc., and is commonly used in 3D reconstruction, motion capture, multi-view video, and the like.
  • optical motion capture is a technique for capturing motion by monitoring and tracking target feature points from different angles by multiple high-speed cameras based on the principle of computer vision. For any point in space, as long as it is seen by both cameras at the same time, the position of the point in space at this moment can be determined. When the camera continuously shoots at a high enough rate, the image sequence can be obtained. The trajectory of the point, if a plurality of points are marked on one object, and the object is photographed simultaneously by multiple cameras, the motion trajectory of the object can be obtained. This also requires exposure alignment when multiple cameras participating in the capture capture each frame of the image.
  • each camera in the multi-camera system will immediately send the server after acquiring the image, and the server processes the image acquired at the same time as the image of the synchronous exposure.
  • the server processes the image acquired at the same time as the image of the synchronous exposure.
  • the present invention provides a synchronous exposure method, apparatus, and terminal device that solve the problem of inaccuracy in recognizing an image of synchronous exposure.
  • a method of simultaneous exposure for use in a multi-camera system, the method comprising:
  • the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, such that the images to be synchronized of each camera have the same synchronization identification information, and each camera is to be
  • the synchronized image is an image acquired by each camera separately when all cameras in the multi-camera system are simultaneously exposed.
  • a synchronous exposure apparatus for use in a multi-camera system, the apparatus comprising:
  • a synchronization module configured to adjust an exposure time of the camera in the multi-camera system, such that all cameras in the multi-camera system simultaneously perform exposure when acquiring images
  • An association module configured to acquire synchronization identification information, so that the synchronization identification information is associated with an image to be synchronized of each camera in the multi-camera system, such that images to be synchronized of each camera have the same synchronization identification information,
  • the image to be synchronized of each camera is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • a terminal device is provided, the terminal device being applied to a multi-camera system, the terminal device comprising a memory, a processor, and a computer stored in the memory and operable on the processor a program that, when the processor executes the computer program, implements the steps of the method provided by the first aspect above.
  • a fourth aspect of the invention provides a computer readable storage medium storing a computer program, the computer program being executed by one or more processors to implement the The steps of the method.
  • the technical solution provided by the present invention firstly needs to adjust the synchronous exposure when the camera captures an image in the multi-camera system, and acquires synchronization identification information based on the multi-camera synchronous exposure, and the synchronization identification information can be combined with the multi-camera system. Correlating the images to be synchronized of each of the cameras, or compressing the synchronization identification information into the image data to be synchronized of each camera in the multi-camera system, so that all images of the synchronized exposure have the same synchronization identification information, even if In a multi-camera system, each camera captures an image and sends it to the server for a different time, and does not cause inaccuracies in identifying the simultaneously exposed image.
  • FIG. 1 is a schematic flow chart of a first embodiment of a synchronous exposure method provided by the present invention
  • FIG. 2 is a schematic flow chart of still another embodiment of a synchronous exposure method provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of an embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • step S101 in the first embodiment provided by the present invention is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention.
  • Figure 10 is a schematic block diagram of an embodiment of a synchronous exposure apparatus provided by the present invention.
  • FIG. 11 is a schematic block diagram of an embodiment of a terminal device provided by the present invention.
  • multi-camera systems are used for 3D reconstruction, motion capture, multi-view video, and the like. This requires multiple cameras participating in the multi-camera system to capture the exposure alignment of each frame of the image; at the same time, because the multi-camera system continuously shoots at a higher rate, then the image sequence of the higher-speed continuous shooting is sent to the server or Data processing systems, servers or data processing systems need to identify synchronized exposure images from a large number of images received, in the prior art where the server identifies synchronized exposure images based on the time of receipt.
  • cameras in multi-camera systems are not guaranteed to have the same model, and different models of cameras have synchronized exposure, but the time elapsed since acquiring one frame of image It may be different, the camera in the multi-camera system will send the image to the server or data processing system immediately after the image is acquired, so that the image acquired by the synchronous exposure will not be sent to the server or image processing system at the same time, if the server or image processing It is obviously inaccurate that the system still recognizes the image of the synchronized exposure based on the time of reception.
  • FIG. 1 is a schematic flow chart of a first embodiment of a synchronous exposure method according to the present invention.
  • the synchronous exposure method shown in FIG. 1 may include the following steps:
  • Step S101 adjusting an exposure time of a camera in the multi-camera system such that all cameras in the multi-camera system simultaneously expose images when acquiring images.
  • the application range of the multi-camera system determines that the image captured by the multi-camera system should be an image of synchronous exposure, so it is first necessary to adjust the camera in the multi-camera system so that all cameras in the multi-camera system are synchronized when acquiring images. exposure.
  • one of the multi-camera systems can be selected as the main camera, and the other cameras as the slave cameras are adjusted according to the difference between the exposure time of the main camera and the slave camera.
  • the exposure time of the cameras in the camera system causes simultaneous exposure of all cameras in the multi-camera system when capturing images.
  • Step S102 acquiring synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, so that the images to be synchronized of each camera have the same synchronization identification information, each of which The image to be synchronized of the camera is an image respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • multi-camera systems after implementing simultaneous exposure of all cameras in a multi-camera system, as previously described, multi-camera systems often require multiple cameras to continuously capture at a sufficiently high rate to obtain motion trajectories of objects from a sequence of images. Etc., so the server or data processing system will receive a sequence of images sent by multiple cameras at a high enough rate. If there are different models of cameras in the multi-camera system, even if all the cameras have the same exposure time, the timing at which each camera sends the captured images to the server is different, then the server still judges whether the images are synchronized or not according to the time when the images are acquired. Obviously it is not accurate.
  • the synchronization identification information can be acquired, and the synchronization identification information is notified to the corresponding camera in the multi-camera system.
  • all cameras in the multi-camera system can associate the synchronization identification information with the image to be synchronized, for example, the camera in the multi-camera system can add synchronization identification information to the image to be synchronized, or compress the synchronization identification information.
  • the synchronized image data is entered so that the simultaneously exposed images (ie, the images to be synchronized) have the same synchronization identification information.
  • the server or the data processing system can determine, according to the synchronization identification information, which of the plurality of images received are images respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • the synchronization identification information may be an image frame number of an image to be synchronized in the main camera, or may be randomly generated information, for example, composed of different characters or different numbers.
  • the synchronization identifier information is obtained in multiple manners, for example, by using an external control device, and then the synchronization identifier information may be sent to each camera in the multi-camera system after acquiring the synchronization identifier information, so as to facilitate Each camera can associate the synchronization identification information with the image to be synchronized such that the synchronously exposed images have the same synchronization identification information; and, for example, the synchronization identification information is generated by one of the cameras, then the synchronization identification information is acquired at this time. Thereafter, the synchronization identification information can be transmitted to the remaining cameras in the multi-camera system such that the images respectively acquired by each camera have the same identification information when all cameras in the multi-camera system are simultaneously exposed.
  • the synchronization identification information is sent to the corresponding camera by synchronously exposing all the cameras in the multi-camera system, and then each camera associates the synchronization identification information with the image to be synchronized so that all the images exposed by the camera at the same time have the image. Same synchronization identification information.
  • the server can determine whether the acquired images sent by the respective cameras are synchronized according to the synchronization identification information in the received captured image.
  • FIG. 2 is a schematic flow chart of still another embodiment of the synchronous exposure method provided by the present invention.
  • the synchronous exposure method shown in FIG. 2 may include the following steps:
  • step S201 the exposure time of the camera in the multi-camera system is adjusted such that all the cameras in the multi-camera system simultaneously perform exposure when acquiring images.
  • Step S202 Acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information.
  • the image frame number of the image to be synchronized of a certain camera may also be used as the synchronization identification information, and the image to be synchronized is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • the selected camera can be the same camera as the main camera, or it can be a different camera.
  • the image frame number of the image to be synchronized of the camera is obtained as the synchronization identification information, which can be selected according to the actual application scenario. .
  • Step S203 sending an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that the camera in the multi-camera system adjusts the image to be synchronized according to the received image frame number.
  • Image frame number
  • the image frame number is sent to a corresponding camera in the multi-camera system, and the camera in the multi-camera system is receiving
  • the image frame number of the image to be synchronized is adjusted after the image frame number, so that the images of the synchronous exposure in the multi-camera system have the same image frame number.
  • each camera in the multi-camera system compares the image frame number as the synchronization identification information with the frame number of the image to be synchronized, and determines whether adjustment is needed, if necessary, The frame number of the image to be synchronized itself is adjusted to the image frame number as the synchronization identification information.
  • the embodiment of the present invention obtains the image frame number of the image to be synchronized of one of the cameras in the multi-camera system as the synchronization identification information, and the other cameras adjust the image frame number of the image to be synchronized into the image to be synchronized in the image to be synchronized as the synchronization identification information.
  • the image frame number is such that the images exposed by all the cameras in the multi-camera system at the same time have the same image frame number, so that the server can judge whether the acquired images sent by the respective cameras are synchronized according to the image frame number in the received captured image.
  • the method may further include:
  • the multi-camera system does not perform a synchronous exposure before each frame of image is taken, that is, a synchronous exposure may be performed at a certain time interval, and then we may consider adding synchronization in the image of the synchronous exposure.
  • the synchronization identification sub-sequence information is generated according to the synchronization identification information, and the synchronization identification sub-sequence information is added to the image sequence captured after the synchronously exposed image.
  • the synchronization identification information is regenerated, and after the synchronization exposure again.
  • the sequence of captured images is sequentially added to the synchronization identification subsequence information.
  • the synchronization identification information added in the image to be synchronized during the first synchronous exposure is eight-digit information 00010000
  • the synchronization identification information added in the image to be synchronized in the second synchronization exposure is 00020000
  • the first four bits represent the sequence of images to be synchronized during simultaneous exposure.
  • Multiple sets of images may be taken between each synchronized exposure, and multiple image sequences captured between the image to be synchronized during the first simultaneous exposure and the image to be synchronized during the second simultaneous exposure may use 00010001, 00010002, 00010003... ...
  • the image sequence between the image to be synchronized and the image to be synchronized during the third simultaneous exposure may be represented by 00020001, 00020002, 00020003, etc., and so on, and the last four digits are indicated.
  • a sequence of images between images to be synchronized during two simultaneous exposures may be represented by 00020001, 00020002, 00020003, etc., and so on, and the last four digits are indicated.
  • the synchronization identifier subsequence may be sent to the corresponding camera in the multi camera system.
  • all cameras can associate the acquired synchronization identification subsequence with the image after the image to be synchronized, such that images acquired after multiple cameras to be synchronized images (synchronized exposure images) in the multi-camera system also have the same identification information.
  • the images acquired after the plurality of cameras to be synchronized images can also have the same synchronization identifier subsequence information by synchronizing the identifier subsequence information, so that the server or the data processing system can obtain the synchronization identification information when receiving a large number of images. Or synchronizing the sub-sequence information to know which images can be used as images for simultaneous exposure.
  • the cameras in the multi-camera system can be adjusted in such a manner that all of the cameras in the multi-camera system are simultaneously exposed when images are captured.
  • Step S301 one of the multi-camera systems is selected as a main camera, and a camera other than the main camera is used as a slave camera.
  • Step S302 acquiring a difference between the exposure time of the main camera and the slave camera;
  • Step S303 adjusting an exposure time of the camera in the multi-camera system according to a difference between the exposure time of the main camera and the slave camera such that all cameras in the multi-camera system acquire images synchronously.
  • one of the cameras may be selected as the main camera from the multi-camera system, and the other cameras as the slave cameras respectively acquire the main camera and the camera.
  • the difference in the exposure time of the camera is due to the existence of this difference, which will result in the camera not being able to achieve simultaneous exposure in a multi-camera system. Therefore, the exposure time of each camera can be adjusted according to this difference so that all cameras are simultaneously exposed.
  • embodiments of the present invention require that the exposure time of the cameras in the multi-camera system be adjusted such that all cameras in the multi-camera system are simultaneously exposed when capturing images.
  • Some examples have been made in steps S301 to S303.
  • synchronization exposure may be achieved when images are acquired by a plurality of cameras in a multi-camera system by other methods. It can be understood that the purpose of adjusting the exposure time can be achieved by adjusting the frame length of the image captured by the camera.
  • the hardware time code is the minimum timing unit of the camera sensor input clock (MCLK) crystal oscillation period, that is, every crystal clock cycle
  • MCLK camera sensor input clock
  • the hardware time codes passed by all the cameras to capture one frame of image are the same.
  • the image sensor models of all cameras are different (and other hardware and software configurations are the same)
  • the image resolution of the camera is different at this time, but the hardware time code of all the cameras capturing one frame of image is still the same.
  • the oscillation period of the actual crystal oscillator of the camera is constantly changing due to some factors such as temperature and humidity.
  • the crystal oscillation period of each camera is not necessarily equal, so the time elapsed when each camera captures one frame of images in a multi-camera system is not necessarily the same, which is the root cause of camera exposure unsynchronization in a multi-camera system.
  • One of the embodiments may implement simultaneous exposure of a plurality of cameras in a multi-camera system by externally controlling a multi-camera system, and the control device may control simultaneous exposure of a plurality of cameras in the multi-camera system.
  • the steps in the above embodiments may also be performed by The control device is completed, and the specific implementation steps are as follows:
  • FIG. 4 is a schematic flowchart of still another embodiment of step S101 in the first embodiment of the present invention.
  • the method for synchronously exposing the plurality of cameras as shown in FIG. 4 may include the following steps:
  • Step S401 after receiving the instruction of synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system to obtain a plurality of initial hardware time codes.
  • the method of the embodiments of the present invention can be integrated into a control device for application to a multi-camera system, and an embodiment of the present invention is for simultaneously taking photos of multiple cameras in a multi-camera system.
  • the instructions for simultaneous exposure can be issued by one of the cameras in the multi-camera system or by the external control device itself.
  • the synchronous exposure command may be a timer inside the control device or the camera, and a synchronous exposure command is issued each time the timer counts out.
  • the input clock of the camera sensor is 40 MHz
  • the clock phase will drift for one exposure period (1 ms) in about 30 seconds, so it is necessary to perform a simultaneous exposure within 30 s, and then every 20 s can be set.
  • An instruction to issue a simultaneous exposure when the input clock of the camera sensor is 40 MHz, the clock phase will drift for one exposure period (1 ms) in about 30 seconds, so it is necessary to perform a simultaneous exposure within 30 s, and then every 20 s can be set.
  • the control device also has a timer inside, which functions the same as the timer described above. As an embodiment thereof, it is also possible to directly set an instruction that the control device itself issues a synchronized exposure every time a predetermined time elapses.
  • the exposure time of each camera in the multi-camera system is theoretically the same.
  • the oscillation period of the actual crystal oscillator is also changing, and is not completely constant, so that the problem of unsynchronized exposure occurs.
  • the hardware time code of each camera in the multi-camera system needs to be acquired, so that the exposure time of each camera of the multi-camera system can be adjusted according to the acquired hardware time code, so that The exposure time of all cameras is synchronized.
  • each camera has a time code register inside, which is used to read and write the hardware time code of the current camera.
  • the hardware timer module starts timing.
  • the exposure start time and exposure duration of each frame of the camera are timed by the hardware time code recorded by the hardware timer.
  • the process of specifically obtaining the initial hardware time code may be: respectively sending a hardware time code acquisition request to each camera in the multi-camera system, and the camera in the multi-camera system reads its own time code register when receiving the request.
  • the hardware time code returns the hardware time code, and receives the hardware time code sent by each camera in the multi-camera system and counts as the initial hardware time code T 1 , T 2 , T 3 ... T N , respectively .
  • initial hardware time codes T 1 , T 2 , T 3 ... T N corresponding to each camera in the multi-camera system are obtained.
  • Step S402 determining a synchronization reference value according to the plurality of initial hardware time codes, and determining a frame compensation value corresponding to each camera in the multi-camera system according to the synchronization reference value and an initial hardware time code of each camera.
  • the synchronization reference value may be determined according to the plurality of initial hardware time codes.
  • any one of the plurality of initial hardware time codes may be selected as the synchronization reference value, and the maximum value or the minimum value of the plurality of initial hardware time codes may be selected as the synchronization reference value, of course, An average of the plurality of initial hardware time codes is calculated and used as a synchronization reference value.
  • a frame compensation value for each camera is then determined based on the synchronization reference value and the plurality of initial hardware time codes obtained.
  • the frame compensation value of each camera After determining the synchronization reference value, it is also necessary to calculate the frame compensation value of each camera based on the acquired initial hardware time code of each camera and the synchronization reference value. Specifically, the corresponding frame compensation value of each camera is calculated based on the deviation of the synchronization reference value from the initial hardware time code of the camera.
  • Step S403 sending the frame compensation value corresponding to each camera to each camera corresponding to the multi-camera system, so that each camera adjusts the length of the image according to the corresponding frame compensation value so that all the multi-camera systems
  • the camera's exposure time is synchronized.
  • the camera in the multi-camera system After calculating the frame compensation value corresponding to each camera, it is sent to all the cameras in the multi-camera system. After receiving the frame compensation value, the camera in the multi-camera system updates the camera's internal frame extension register so as to be in the multi-camera system. Each camera is able to align the exposure time when capturing images.
  • the frame length of the current image frame can be adjusted, so that the camera in the multi-camera system can achieve synchronous exposure when acquiring the next frame image, that is to say, The next frame image is the image to be synchronized.
  • the camera can also adjust the frame length of the next frame image according to the frame compensation value, so that the camera in the multi-camera system can achieve synchronous exposure when acquiring the next frame image, that is, the next frame image is the image to be synchronized. And so on.
  • the embodiment of the present invention After receiving the instruction of the synchronous exposure, the embodiment of the present invention obtains the initial hardware time code of each camera, and determines the synchronization reference value according to the plurality of initial hardware time codes, and according to the initial hardware time code and synchronization of each camera. Deviation between the reference values, determining a frame compensation value corresponding to each camera and transmitting the frame compensation value to the corresponding camera, so that the camera in the multi-camera system can adjust the frame length of the image according to the determined frame compensation value, thereby Each camera in a multi-camera system synchronizes exposure time when acquiring images.
  • the reason for causing the multiple camera exposure times in the multi-camera system to be out of sync is that there are other factors besides the crystal oscillation period is not equal.
  • the network delay when acquiring the initial time code of each camera in the multi-camera system the operation delay when acquiring the initial time code of each camera, and the hardware cumulative delay value of the camera itself. Since the obtained initial hardware time code includes the above delay values, in order to further improve the synchronization accuracy of the multi-camera system, after the initial hardware time code is acquired, before the frame compensation value is determined, the acquired initial hardware time code may also be acquired. Perform delay correction processing.
  • the delay correction processing may include at least one of a network delay correction processing, an operation delay correction processing, and a hardware cumulative correction processing.
  • the corrected hardware time code is obtained when the synchronization reference value is obtained, and the corrected hardware time code is also used when determining the frame compensation value of each camera.
  • the delay correction processing including the network delay correction processing, the operation delay correction processing, and the hardware cumulative correction processing will be described in detail as an example.
  • FIG. 5 is a schematic flowchart of still another embodiment of step S101 in the first embodiment of the present invention. As shown in FIG. 5, the synchronous exposure method may include the following steps:
  • Step S501 after receiving the instruction of the synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system, to obtain a plurality of initial hardware time codes.
  • Step S502 performing hardware accumulation correction processing, network delay processing, and operation delay processing on the obtained plurality of initial hardware time codes in sequence.
  • the hardware timer starts to count after the camera sensor starts to work. After a certain period of operation, the crystal oscillator generates a certain cumulative error. To eliminate this error, it can be used in each frame of the image.
  • the preset position (such as the position of the 100th pixel) is set to trigger the CPU hardware interrupt. When the interrupt is triggered, the hardware timer will automatically latch the time code of the current time. Each time an interrupt is triggered, a time code is latched.
  • step 502 when hardware initial correction processing is performed on a plurality of initial hardware time codes, the operation flow may be performed according to the flow shown in FIG. 6.
  • step 502 when the flowchart of the hardware cumulative correction processing in step 502 is performed, the following steps may be included:
  • Step 601 Corresponding to acquiring an interrupt time code of the last interrupt trigger time of each camera.
  • Step 602 Perform a difference operation between the plurality of initial hardware time codes and the acquired interrupt time code, and obtain a corrected hardware time code of each camera.
  • the hardware timer can automatically latch a time code when an interrupt is generated. Therefore, after reading each of its own initial hardware time code, each camera also reads the hardware time code of the most recent interrupt trigger time, which is recorded as the interrupt time code. Then, the control device compares the initial hardware time code with the interrupt time code to eliminate the error generated by the crystal oscillator and obtain the corrected hardware time code after the hardware cumulative delay processing.
  • the hardware cumulative correction processing operation is performed.
  • the corrected hardware time code K i T i - T i0 of the following camera, where T i is the initial hardware time code of camera i, and T i0 is the interrupt time code of the most recent interruption of camera i, i ranges from 1 to N.
  • network delay correction processing is performed on the initial hardware time code.
  • the operation may be specifically performed according to the flow shown in FIG. 7.
  • FIG. 7 it is a schematic flowchart of an embodiment of performing network delay correction processing on an initial hardware time code, and the specific method may include:
  • Step 701 Acquire a network delay value between each camera in the local and multi-camera system.
  • Step 702 Calculate a corrected hardware time code of each camera according to the plurality of initial hardware time codes and the obtained network delay value between the local and each camera in the multi-camera system.
  • the specific operation method may be, for example:
  • the network delay between the local (ie, control device) and each camera in the multi-camera system is measured by the IEEE 1588 Precision Clock Synchronization Protocol and converted in units of the sensor clock crystal period. The network delay between the control device and each camera in the multi-camera system is obtained.
  • step 702 the control device corrects the hardware time of the camera after performing a difference operation on the network delay value between the obtained initial hardware time code and the acquired self and each camera.
  • the code M i T i - Y i , where T i is the initial hardware time code of camera i, the network delay value of Y i camera i, and the value of i ranges from 1 to N.
  • the hardware time code after the hardware cumulative correction processing should be used in the difference calculation in this step. Where i ranges from 1 to N. If the hardware cumulative correction processing is not performed in the foregoing, when the difference calculation is performed in this step, the initial hardware time code T i should be used, where i ranges from 1 to N.
  • the network delay values between each of the acquired local and multi-camera systems are Y 1 , Y 2 , Y 3 ... Y N , respectively .
  • the operation delay correction processing is performed on the initial hardware time code.
  • the initial hardware time code of each camera in the multi-camera system when acquiring the initial hardware time code of each camera in the multi-camera system, if it is necessary to separately obtain the initial hardware time code of each camera, after acquiring the initial hardware time code of a certain camera, There are multiple cameras in the camera system, and the instructions to read the initial hardware timecode of the first camera and the instructions to read the initial hardware timecode of the second camera are not exactly the same. Therefore, when correcting the initial hardware time code, you also need to consider the operation delay. If the time code of each camera in the multi-camera system is read by broadcast, the operation delay can be ignored. Specific can be selected according to the actual situation.
  • FIG. 8 it is a schematic flowchart of an embodiment of performing an operation delay correction process on an initial hardware time code, including the following steps:
  • Step S801 when acquiring the initial hardware time code of each camera, reading the local instantaneous hardware time code.
  • Step S802 performing a difference operation between the local instantaneous hardware time code read each time and the local instantaneous hardware time code read when the initial hardware time code of the first camera is acquired, to obtain a local (external control device) and The operational delay value between each camera.
  • Step S803 calculating a corrected hardware time code of each camera according to the plurality of initial hardware time codes and the obtained operation delay value.
  • step S801 before the initial hardware time code acquisition request is sent to each camera, the external control device local device, that is, the local hardware time code, is recorded as the instantaneous hardware time code. Then, an initial hardware time code acquisition request is sent to each camera in the multi-camera system, and the camera in the multi-camera system reads the hardware time code of the camera and returns to the camera's local hardware time after receiving the request. Code to control device. At this time, the local instantaneous hardware time code read when reading the initial hardware time code of the first camera needs to be used as a reference; the instantaneous hardware of the control device is read each time the initial hardware time code of other cameras is read.
  • the difference between the time code and its own instantaneous hardware time code read when reading the initial hardware time code of the first camera is the operation delay value because the control device reads its own instantaneous hardware time code.
  • the initial hardware time code of the first camera will be obtained immediately, so it can be considered that there is no operation delay between the control device and the first camera, and the control device is reading the time at the time of acquiring the initial hardware time code of the other camera.
  • After the initial hardware time code of a camera there is an operational delay between the instantaneous hardware time code of the control device itself read by the control device when reading the initial hardware time code of the first camera, so calculation is required. The operation delay during this time.
  • the operation delay value C i T 1i - T 11 .
  • T 1i is a local instantaneous hardware time code read before acquiring the initial hardware time code of the i-th camera
  • T 11 is a local instantaneous hardware time code read when the hardware time code of the first camera is read.
  • i has a value ranging from 1 to N.
  • i is equal to 1, it indicates the operation delay value between the control device and the first camera.
  • the corrected hardware time code N i T i - C i of the camera after the operation delay correction processing, wherein i ranges from 1 to N.
  • the hardware cumulative correction processing and the network delay correction processing have been performed on the initial hardware delay code in step 502, the hardware cumulative correction processing and network extension should be used in the difference calculation in this step.
  • the hardware time code after processing is corrected, that is, M i , where i ranges from 1 to N. If the hardware cumulative correction processing and the network delay correction processing are not performed in the foregoing, when the difference calculation is performed in this step, the initial hardware time code T i should be used, where i ranges from 1 to N.
  • the operational delay values obtained between each of the cameras in the multi-camera system are C 1 , C 2 , C 3 ... C N , respectively .
  • the above embodiment adopts three delay correction processings of network delay correction processing, operation delay correction processing, and hardware cumulative correction processing, in practical applications, only one of them may be selected or Two delay correction processing. Which delay correction processing is selected in the process of correcting the hardware time code by performing the delay correction processing on the initial hardware time code, and correspondingly, which delay correction result obtained by the delay correction processing is calculated together with the initial hardware time code Obtaining the modified hardware time code, the embodiment of selecting only one of the delay correction processing in the above three delay correction processing and the embodiment for selecting any two of the delay correction processing are not illustrated herein, and can be referred to The calculation process of the above embodiment is obtained.
  • Step 503 Determine the synchronization reference value according to the plurality of modified hardware time codes, and determine frame compensation corresponding to each camera in the multi-camera system according to the synchronization reference value and the corrected hardware time code of each camera. value.
  • the synchronization reference value when the synchronization reference value is determined, it is necessary to determine the synchronization reference value based on the plurality of corrected time codes after the correction processing. Specifically, when determining the synchronization reference value, any one of the plurality of modified hardware time codes may be selected as the synchronization reference value, and the maximum value or the minimum value of the plurality of modified hardware time codes may be selected as the synchronization reference value. It is of course also possible to calculate an average of the plurality of modified hardware time codes and use the average as a synchronization reference value.
  • the synchronization reference value needs to be determined according to the hardware time code K i after the hardware cumulative correction processing, and so on.
  • the hardware cumulative correction processing, the network delay correction processing, and the operation delay correction processing are performed on the initial hardware time code, then the hardware cumulative correction processing, the network delay correction processing, and the operation delay should be performed according to the hardware.
  • the corrected hardware time code N i of each camera obtained after the process determines the synchronization reference value. After selecting the sync reference value, all cameras are aligned with the camera corresponding to the selected sync reference value.
  • the corrected hardware time code of the camera is greater than the synchronization reference value, the hardware time code of the camera is faster than the synchronous reference value, and the current camera needs to be The frame image or the next frame image is extended for a certain period of time, so that the time code of the camera corresponding to the synchronization reference value can be caught up, so that the exposure time is synchronized when the lower frame or the lower frame image is acquired; if the corrected hardware time code of the camera is smaller than the synchronization
  • the reference value indicates that the time code of the camera is slow, and it is necessary to catch up with the time code of the camera corresponding to the synchronization reference value. Therefore, it is necessary to shorten the current frame image or the next frame image of the camera for a certain time so as to synchronize the reference value.
  • the camera's time code can be caught up to synchronize exposure when capturing the next frame or the next frame of image.
  • the method for synchronously exposing a multi-camera system acquires an initial hardware time code of each camera after receiving an instruction of synchronous exposure, and performs delay correction processing on the plurality of initial hardware time codes to obtain a plurality of Correcting a hardware time code, and determining a synchronization reference value according to the plurality of modified hardware time codes, and determining a frame compensation corresponding to each camera in the multi-camera system according to the synchronization reference value and an initial hardware time code of each camera
  • the value is such that each camera can adjust the frame length of the image based on the determined frame compensation value such that each camera in the multi-camera system synchronizes the exposure time when acquiring the image.
  • the function of the control device external to the multi-camera system can be implemented by one camera in the multi-camera system.
  • one camera of the multi-camera system can be selected as the main camera, and the other cameras are used as the slave camera.
  • the above method can be adopted by the external camera in the multi-camera system when implementing the simultaneous exposure of each camera in the multi-camera system. achieve. That is to say, at this time, the main camera as a camera device in the multi-camera system can realize all the functions of the slave camera in the multi-camera system, in addition to all the functions of the previously connected control device.
  • the local data information of the external device obtained by the external control device will be replaced by the data acquisition of the main camera to obtain the local camera, and the same, before the external device and the multi-camera
  • the difference in data between each camera in the system will be replaced by the difference in data between the main camera and the slave camera.
  • FIG. 9 is a schematic flowchart of still another embodiment of a multi-camera system synchronous exposure method provided by the present invention. As shown in FIG. 9, the synchronous exposure method may include the following steps:
  • Step S901 after receiving the instruction of synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system, to obtain a plurality of initial hardware time codes.
  • Step S902 performing hardware accumulation correction processing, network delay processing, and operation delay processing on the obtained plurality of initial hardware time codes in sequence to obtain a plurality of modified hardware time codes.
  • Step S903 determining a synchronization reference value according to the plurality of modified hardware time codes.
  • step S904 When determining the frame compensation value, the formula in step S904 is specifically employed.
  • B i represents the frame compensation value of the camera i
  • N i represents the corrected hardware time code of the camera i after the delay correction processing
  • S represents the synchronization reference value
  • FrameLength represents one of each camera in the multi-camera system.
  • the size of the frame image in units of oscillation periods, and % indicates the modulo operation.
  • the specific frame compensation value is the size of the camera one frame image in units of the oscillation period of the crystal oscillator, that is, the size converted into the time code.
  • the modulo operation is performed so that the frame compensation value of the camera does not exceed the frame length of one frame of image (the length of time of one frame of image converted into time code), as long as the phase of the clock is aligned.
  • the determined synchronization reference value may be a minimum value among the plurality of modified hardware time codes, that is, a minimum value is selected from the plurality of modified hardware time codes as the synchronization reference value.
  • the purpose of selecting the minimum value in the hardware timecode is to simplify the calculations and to get better results. At this time, all cameras only need to lengthen the length of the current frame or the next frame image.
  • the camera in the multi-camera system can adjust the length of the current frame or the next frame image according to the frame compensation value, so that the camera can realize when acquiring the lower frame or the lower frame image. Synchronous exposure.
  • the size of the serial number of each step does not mean the order of execution sequence, and the order of execution of each step should be determined by its function and internal logic, and should not constitute any implementation process of the embodiment of the present invention. limited.
  • FIG. 10 is a structural block diagram of a synchronous exposure apparatus 1000 according to the present invention.
  • the synchronous exposure device 1000 as a control device external to the multi-camera system may be a software unit, a hardware unit or a combination of soft and hard units built in the terminal device, or may be integrated into the terminal device as a separate pendant.
  • the synchronous exposure apparatus 1000 may also be a software unit, a hardware unit, or a combination of soft and hard units built in the main camera, or may be integrated into the main camera as a separate pendant.
  • the synchronous exposure apparatus 1000 includes:
  • a synchronization module 1001 configured to adjust a camera in the multi-camera system to cause simultaneous exposure when all cameras in the multi-camera system acquire images
  • the association module 1002 is configured to acquire synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, so that the images to be synchronized of each camera have the same synchronization identification information.
  • the image to be synchronized of each camera is an image respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • the synchronization identifier information includes an image frame number.
  • the association module 1002 includes:
  • a frame number obtaining unit configured to acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information
  • a sending unit configured to send an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that a camera in the multi-camera system adjusts an image to be synchronized according to the received image frame number Image frame number.
  • the device further includes:
  • a synchronization subsequence generation module configured to generate synchronization identifier subsequence information according to the synchronization identification information, so that each camera in the multi camera system sequentially sequentially synchronizes the synchronization identifier subsequence information with an image sequence after the image to be synchronized
  • the association causes the sequence of images following the image to be synchronized to have the same synchronization identification subsequence information in sequence.
  • the synchronization module includes:
  • a selecting unit configured to select one of the cameras in the multi-camera system as a main camera, and the camera other than the main camera as a slave camera;
  • An acquiring unit configured to acquire a difference between an exposure time of the main camera and the slave camera
  • an adjusting unit configured to adjust a camera in the multi-camera system according to a difference between the main camera and the slave camera exposure time such that all cameras in the multi-camera system acquire images synchronously.
  • each functional module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit or module, and the integrated unit or module may adopt hardware.
  • the form is implemented in the form of a software functional unit.
  • the specific names of the respective functional modules are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application.
  • FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device can also be a camera in a multi-camera system.
  • the terminal device 11 of this embodiment includes: one or more processors 110, a memory 111, and a computer program 112 stored in the memory 111 and operable on the processor 110.
  • the processor 110 executes the computer program 112
  • the steps in the above embodiments of the respective synchronous exposure methods are implemented, such as steps S101 to S102 shown in FIG.
  • the processor 110 implements the functions of the modules/units in the embodiment of the synchronous exposure apparatus when the computer program 112 is executed, such as the functions of the modules 1001 to 1002 shown in FIG.
  • the computer program 112 can be partitioned into one or more modules/units that are stored in the memory 111 and executed by the processor 110 to complete this invention.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 112 in the terminal device 11.
  • the computer program 112 can be partitioned into a synchronization module, an association module.
  • a synchronization module for adjusting a camera in the multi-camera system to cause simultaneous exposure of all cameras in the multi-camera system when acquiring images
  • An association module configured to acquire synchronization identification information, so that the synchronization identification information is associated with an image to be synchronized of each camera in the multi-camera system, such that images to be synchronized of each camera have the same synchronization identification information,
  • the image to be synchronized of each camera is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  • the synchronization identifier information includes an image frame number.
  • the association module includes:
  • a frame number obtaining unit configured to acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information
  • a sending unit sending an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that the camera in the multi-camera system adjusts an image of the image to be synchronized according to the received image frame number Frame number.
  • it also includes:
  • a synchronization subsequence generation module configured to generate synchronization identifier subsequence information according to the synchronization identification information, so that each camera in the multi camera system sequentially sequentially synchronizes the synchronization identifier subsequence information with an image sequence after the image to be synchronized
  • the association causes the sequence of images following the image to be synchronized to have the same synchronization identification subsequence information in sequence.
  • the synchronization module specifically includes:
  • a selecting unit configured to select one of the cameras in the multi-camera system as a main camera, and the camera other than the main camera as a slave camera;
  • An acquiring unit configured to acquire a difference between an exposure time of the main camera and the slave camera
  • an adjusting unit configured to adjust a camera in the multi-camera system according to a difference between the main camera and the slave camera exposure time such that all cameras in the multi-camera system acquire images synchronously.
  • the terminal device includes but is not limited to the processor 110 and the memory 111. It will be understood by those skilled in the art that FIG. 11 is only an example of the terminal device 11, and does not constitute a limitation of the terminal device 11, and may include more or less components than those illustrated, or combine some components or different components.
  • the terminal device may further include an input device, an output device, a network access device, a bus, and the like.
  • the memory 111 is configured to store software programs, modules, units, and data information required in the terminal device, and the processor 110 executes various functional applications by running software programs, modules, and units stored in the memory 111. And data processing.
  • the memory 111 can include read only memory and random access memory and provides instructions and data to the processor 110.
  • a portion of the memory 111 may also include a non-volatile random access memory.
  • the memory 111 can also store information of a device type.
  • the processor 110 can be a central processing unit (Central Processing Unit (CPU), which can also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits (Application). Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the processor is a control center of the terminal device, and connects various parts of the entire terminal device by using various interfaces and lines.
  • the processor 110 and the memory 111 described in the embodiments of the present invention may implement the implementation manner described in the embodiment of the synchronous exposure method provided by the embodiment of the present invention, and may also be implemented in the embodiment of the synchronous exposure apparatus. The implementation of the description will not be described here.
  • an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the synchronization provided by the embodiment of the present invention is implemented. The steps of the exposure method.
  • the disclosed method, apparatus, and terminal device may be implemented in other manners.
  • the embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM, Random Access).
  • ROM read-only memory
  • RAM random access memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

A synchronous exposure method and apparatus, and a terminal device, applied to a multi-camera system, the method comprising: adjusting the exposure time of cameras in the multi-camera system, so that all cameras in the multi-camera system expose synchronously while collecting images; obtaining synchronous identification information, so that a corresponding camera in the multi-camera system associates the synchronous identification information with images to be synchronized of each camera in the multi-camera system so that the images to be synchronized of each camera have the same synchronous identification information, the images to be synchronized of each camera being images collected thereby respectively during synchronous exposure by all cameras in the multi-camera system. According to the present solution, the image collected by each camera respectively during the synchronous exposure by all cameras is added to synchronous identification information so as to solve the problem of synchronously exposed images being identified inaccurately.

Description

一种同步曝光方法、装置及终端设备Synchronous exposure method, device and terminal device 技术领域Technical field
本发明属于多相机系统技术领域,尤其涉及一种同步曝光方法、装置及终端设备。The invention belongs to the technical field of multi-camera systems, and in particular relates to a synchronous exposure method, device and terminal device.
背景技术Background technique
多相机系统是基于计算机视觉原理,将多个相机、光源、存储设备等组合在一起组建的系统,常应用于3D重建、运动捕捉、多视点视频等。例如光学式动作捕捉就是基于计算机视觉原理,由多个高速相机从不同角度对目标特征点的监视和跟踪来进行动作捕捉的技术。对于空间中的任意一点,只要它同时被两部相机所见,就可以确定这一时刻该点在空间中的位置,当相机以足够高的速率连续拍摄时,从图像序列中就可以得到该点的运动轨迹,若是在一个物体标记多个点,通过多台相机同时拍摄这个物体,就可以得到这个物体的运动轨迹。这也就需要参与拍摄的多个相机采集每一帧图像时曝光对齐。The multi-camera system is a system based on the principle of computer vision, which combines multiple cameras, light sources, storage devices, etc., and is commonly used in 3D reconstruction, motion capture, multi-view video, and the like. For example, optical motion capture is a technique for capturing motion by monitoring and tracking target feature points from different angles by multiple high-speed cameras based on the principle of computer vision. For any point in space, as long as it is seen by both cameras at the same time, the position of the point in space at this moment can be determined. When the camera continuously shoots at a high enough rate, the image sequence can be obtained. The trajectory of the point, if a plurality of points are marked on one object, and the object is photographed simultaneously by multiple cameras, the motion trajectory of the object can be obtained. This also requires exposure alignment when multiple cameras participating in the capture capture each frame of the image.
目前,多相机系统中的各相机采集图像后会立即发送服务器,服务器将同一时间采集到的图像作为同步曝光的图像处理。但是,当多相机系统中相机的型号不同时,不同型号的相机采集一帧图像的时间也就不相同,所以服务器将同一时间采集到的图像作为同步曝光的图像将是不准确的。At present, each camera in the multi-camera system will immediately send the server after acquiring the image, and the server processes the image acquired at the same time as the image of the synchronous exposure. However, when the models of the cameras in the multi-camera system are different, the time taken for the cameras of different models to acquire one frame of image is different, so it will be inaccurate for the server to take the images acquired at the same time as the images of the synchronous exposure.
技术问题technical problem
鉴于此,本发明提供一种同步曝光方法、装置及终端设备,解决在识别同步曝光的图像时不准确的问题。In view of this, the present invention provides a synchronous exposure method, apparatus, and terminal device that solve the problem of inaccuracy in recognizing an image of synchronous exposure.
技术解决方案Technical solution
本发明的第一方面,提供一种同步曝光方法,应用于多相机系统,所述方法包括:In a first aspect of the invention, a method of simultaneous exposure is provided for use in a multi-camera system, the method comprising:
调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光;Adjusting an exposure time of a camera in the multi-camera system such that all cameras in the multi-camera system acquire images synchronously;
获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。Acquiring synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, such that the images to be synchronized of each camera have the same synchronization identification information, and each camera is to be The synchronized image is an image acquired by each camera separately when all cameras in the multi-camera system are simultaneously exposed.
本发明的第二方面,提供一种同步曝光装置,应用于多相机系统,所述装置包括:According to a second aspect of the present invention, there is provided a synchronous exposure apparatus for use in a multi-camera system, the apparatus comprising:
同步模块,用于调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光;a synchronization module, configured to adjust an exposure time of the camera in the multi-camera system, such that all cameras in the multi-camera system simultaneously perform exposure when acquiring images;
关联模块,用于获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。An association module, configured to acquire synchronization identification information, so that the synchronization identification information is associated with an image to be synchronized of each camera in the multi-camera system, such that images to be synchronized of each camera have the same synchronization identification information, The image to be synchronized of each camera is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
本发明的第三方面,提供一种终端设备,所述终端设备应用于多相机系统,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面提供的所述方法的步骤。According to a third aspect of the present invention, a terminal device is provided, the terminal device being applied to a multi-camera system, the terminal device comprising a memory, a processor, and a computer stored in the memory and operable on the processor a program that, when the processor executes the computer program, implements the steps of the method provided by the first aspect above.
本发明的第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现上述第一方面提供的所述方法的步骤。A fourth aspect of the invention provides a computer readable storage medium storing a computer program, the computer program being executed by one or more processors to implement the The steps of the method.
有益效果Beneficial effect
本发明与现有技术相比存在的有益效果是:The beneficial effects of the present invention over the prior art are:
本发明提供的技术方案,首先需要调整所述多相机系统中的相机采集图像时同步曝光,在多相机同步曝光的基础上,获取同步标识信息,所述同步标识信息可以与所述多相机系统中每个相机的待同步图像关联,或者将所述同步标识信息压缩入所述多相机系统中每个相机的待同步图像数据中,这样同步曝光的所有图像就具有相同的同步标识信息,即使多相机系统中每个相机采集图像后发送到服务器的时间不同,也不会导致在识别同步曝光的图像时出现不准确的现象。The technical solution provided by the present invention firstly needs to adjust the synchronous exposure when the camera captures an image in the multi-camera system, and acquires synchronization identification information based on the multi-camera synchronous exposure, and the synchronization identification information can be combined with the multi-camera system. Correlating the images to be synchronized of each of the cameras, or compressing the synchronization identification information into the image data to be synchronized of each camera in the multi-camera system, so that all images of the synchronized exposure have the same synchronization identification information, even if In a multi-camera system, each camera captures an image and sends it to the server for a different time, and does not cause inaccuracies in identifying the simultaneously exposed image.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本发明提供的同步曝光方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a synchronous exposure method provided by the present invention;
图2是本发明提供的同步曝光方法的又一实施例的流程示意图;2 is a schematic flow chart of still another embodiment of a synchronous exposure method provided by the present invention;
图3是本发明提供的第一实施例中步骤S101的一个实施例流程示意图;3 is a schematic flow chart of an embodiment of step S101 in the first embodiment provided by the present invention;
图4是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;4 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图5是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;5 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图6是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;6 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图7是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;7 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图8是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;8 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图9是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图;9 is a schematic flow chart of still another embodiment of step S101 in the first embodiment provided by the present invention;
图10是本发明提供的同步曝光装置的实施例的示意框图;Figure 10 is a schematic block diagram of an embodiment of a synchronous exposure apparatus provided by the present invention;
图11是本发明提供的终端设备的实施例的示意框图。11 is a schematic block diagram of an embodiment of a terminal device provided by the present invention.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在描述本发明实施例的具体实施方式之前,首先分析多相机系统的工作方式。Before describing a specific embodiment of an embodiment of the present invention, the working mode of the multi-camera system is first analyzed.
通常,多相机系统应用于3D重建、运动捕捉、多视点视频等。这就要求多相机系统中参与拍摄的多个相机采集每一帧图像时曝光对齐;同时,由于多相机系统以较高的速率连续拍摄,然后将较高速率连续拍摄的图像序列发送至服务器或者数据处理系统,服务器或者数据处理系统需要从接受到的大量图像中识别同步曝光的图像,现有的方式是服务器根据接收的时间识别同步曝光的图像。但是,实际应用中,常常会因为各种各样的原因,多相机系统中的相机并无法保证具有相同型号,而不同型号的相机如果实现了同步曝光,但是由于采集一帧图像所经过的时间可能不同,多相机系统中的相机在采集图像后会立即发送至服务器或者数据处理系统,这样就导致同步曝光采集的图像并不会在相同时刻发送至服务器或者图像处理系统,如果服务器或者图像处理系统依然采用根据接收的时间识别同步曝光的图像显然是不准确的。Typically, multi-camera systems are used for 3D reconstruction, motion capture, multi-view video, and the like. This requires multiple cameras participating in the multi-camera system to capture the exposure alignment of each frame of the image; at the same time, because the multi-camera system continuously shoots at a higher rate, then the image sequence of the higher-speed continuous shooting is sent to the server or Data processing systems, servers or data processing systems need to identify synchronized exposure images from a large number of images received, in the prior art where the server identifies synchronized exposure images based on the time of receipt. However, in practical applications, for a variety of reasons, cameras in multi-camera systems are not guaranteed to have the same model, and different models of cameras have synchronized exposure, but the time elapsed since acquiring one frame of image It may be different, the camera in the multi-camera system will send the image to the server or data processing system immediately after the image is acquired, so that the image acquired by the synchronous exposure will not be sent to the server or image processing system at the same time, if the server or image processing It is obviously inaccurate that the system still recognizes the image of the synchronized exposure based on the time of reception.
为了解决这个问题,提出了本发明的同步曝光方法、装置及终端设备。In order to solve this problem, a synchronous exposure method, apparatus, and terminal device of the present invention have been proposed.
下面,将通过具体的实施例进行详细描述。Hereinafter, a detailed description will be made by way of specific examples.
请参见图1,图1是本发明提供的同步曝光方法的第一实施例的流程示意图,如图1所示该同步曝光方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flow chart of a first embodiment of a synchronous exposure method according to the present invention. The synchronous exposure method shown in FIG. 1 may include the following steps:
步骤S101,调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光。Step S101, adjusting an exposure time of a camera in the multi-camera system such that all cameras in the multi-camera system simultaneously expose images when acquiring images.
在本发明实施例中,多相机系统的应用范围决定了多相机系统采集的图像应该是同步曝光的图像,所以首先需要调整多相机系统中的相机,使得多相机系统中所有相机采集图像时同步曝光。为保证多相机系统中的所有相机采集图像时同步曝光时,可以选择多相机系统中的一个相机作为主相机,其它相机作为从相机,根据主相机和从相机曝光时间的差值调整所述多相机系统中的相机的曝光时间使得所述多相机系统中所有相机采集图像时同步曝光。In the embodiment of the present invention, the application range of the multi-camera system determines that the image captured by the multi-camera system should be an image of synchronous exposure, so it is first necessary to adjust the camera in the multi-camera system so that all cameras in the multi-camera system are synchronized when acquiring images. exposure. In order to ensure simultaneous exposure when all cameras in the multi-camera system capture images, one of the multi-camera systems can be selected as the main camera, and the other cameras as the slave cameras are adjusted according to the difference between the exposure time of the main camera and the slave camera. The exposure time of the cameras in the camera system causes simultaneous exposure of all cameras in the multi-camera system when capturing images.
步骤S102,获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。Step S102, acquiring synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, so that the images to be synchronized of each camera have the same synchronization identification information, each of which The image to be synchronized of the camera is an image respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
在本发明实施例中,在实现多相机系统中的所有相机同步曝光后,如前所述,多相机系统常常需要多个相机以足够高的速率连续拍摄以从图像序列中获得物体的运动轨迹等,所以服务器或数据处理系统会以足够高的速率接收多个相机发送的图像序列。如果多相机系统存在不同型号的相机,即使所有相机曝光时间相同,但各个相机发送采集图像给到服务器的时刻也是不同的,那么服务器仍然根据接收到采集图像的时间判断这些图像是否同步曝光的方式显然是不准确的。这时,我们考虑可以获取同步标识信息,并将所述同步标识信息告知多相机系统中相应的相机。如此,多相机系统中的所有相机可以将所述同步标识信息与待同步图像关联在一起,例如多相机系统中的相机可以在待同步图像中增加同步标识信息,或者将所述同步标识信息压缩入待同步图像数据中,从而使得同步曝光的图像(即待同步图像)具有相同的同步标识信息。这样服务器或者数据处理系统可以根据同步标识信息判断接收到的大量图像中哪些是多相机系统中所有相机同步曝光时每个相机分别采集的图像。需要说明的是,所述同步标识信息可以是主相机中待同步图像的图像帧号,还可以是随机生成的信息,例如由不同字符或者不同数字组成信息。In an embodiment of the present invention, after implementing simultaneous exposure of all cameras in a multi-camera system, as previously described, multi-camera systems often require multiple cameras to continuously capture at a sufficiently high rate to obtain motion trajectories of objects from a sequence of images. Etc., so the server or data processing system will receive a sequence of images sent by multiple cameras at a high enough rate. If there are different models of cameras in the multi-camera system, even if all the cameras have the same exposure time, the timing at which each camera sends the captured images to the server is different, then the server still judges whether the images are synchronized or not according to the time when the images are acquired. Obviously it is not accurate. At this time, we consider that the synchronization identification information can be acquired, and the synchronization identification information is notified to the corresponding camera in the multi-camera system. As such, all cameras in the multi-camera system can associate the synchronization identification information with the image to be synchronized, for example, the camera in the multi-camera system can add synchronization identification information to the image to be synchronized, or compress the synchronization identification information. The synchronized image data is entered so that the simultaneously exposed images (ie, the images to be synchronized) have the same synchronization identification information. In this way, the server or the data processing system can determine, according to the synchronization identification information, which of the plurality of images received are images respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed. It should be noted that the synchronization identification information may be an image frame number of an image to be synchronized in the main camera, or may be randomly generated information, for example, composed of different characters or different numbers.
需要说明的是,同步标识信息的获取方式有多种,例如通过外接的控制设备生成的,那么在获取同步标识信息后可以将所述同步标识信息发送至多相机系统中的每个相机,以便于每个相机能够将所述同步标识信息与待同步图像相关联使得同步曝光的图像具有相同的同步标识信息;又例如,同步标识信息是通过其中一个相机产生的,那么此时在获取同步标识信息之后,可以将所述同步标识信息发送至多相机系统中的其余相机,这样就使得多相机系统中的所有相机同步曝光时每个相机分别采集的图像具有相同的标识信息。It should be noted that the synchronization identifier information is obtained in multiple manners, for example, by using an external control device, and then the synchronization identifier information may be sent to each camera in the multi-camera system after acquiring the synchronization identifier information, so as to facilitate Each camera can associate the synchronization identification information with the image to be synchronized such that the synchronously exposed images have the same synchronization identification information; and, for example, the synchronization identification information is generated by one of the cameras, then the synchronization identification information is acquired at this time. Thereafter, the synchronization identification information can be transmitted to the remaining cameras in the multi-camera system such that the images respectively acquired by each camera have the same identification information when all cameras in the multi-camera system are simultaneously exposed.
本发明实施例通过先将多相机系统中的所有相机实现同步曝光,将同步标识信息发送至相应的相机,然后各个相机再将同步标识信息与待同步图像关联使得所有相机同一时刻曝光的图像具有相同的同步标识信息。如此,服务器便可根据接收到的采集图像中的同步标识信息判断各个相机发来的采集图像是否同步。In the embodiment of the present invention, the synchronization identification information is sent to the corresponding camera by synchronously exposing all the cameras in the multi-camera system, and then each camera associates the synchronization identification information with the image to be synchronized so that all the images exposed by the camera at the same time have the image. Same synchronization identification information. In this way, the server can determine whether the acquired images sent by the respective cameras are synchronized according to the synchronization identification information in the received captured image.
请参见图2,是本发明提供的同步曝光方法又一实施例的流程示意图,如图2所示该同步曝光方法可以包括以下步骤:2 is a schematic flow chart of still another embodiment of the synchronous exposure method provided by the present invention. The synchronous exposure method shown in FIG. 2 may include the following steps:
步骤S201,调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光。In step S201, the exposure time of the camera in the multi-camera system is adjusted such that all the cameras in the multi-camera system simultaneously perform exposure when acquiring images.
步骤S202,获取所述多相机系统中的任意一个相机待同步图像的图像帧号,并将所述图像帧号作为所述同步标识信息。Step S202: Acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information.
在本发明实施例中,还可以将某一个相机的待同步图像的图像帧号作为同步标识信息,待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。选取的相机可以与主相机是同一台相机,也可以是不同的相机,具体获取哪一个相机的待同步图像的图像帧号作为同步标识信息,可以根据实际应用场景进行选择,在此不做限制。In the embodiment of the present invention, the image frame number of the image to be synchronized of a certain camera may also be used as the synchronization identification information, and the image to be synchronized is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed. The selected camera can be the same camera as the main camera, or it can be a different camera. The image frame number of the image to be synchronized of the camera is obtained as the synchronization identification information, which can be selected according to the actual application scenario. .
步骤S203,将所述待同步图像的图像帧号发送至所述多相机系统中相应的相机,以便于所述多相机系统中的相机根据接收到的所述图像帧号调整自身待同步图像的图像帧号。Step S203, sending an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that the camera in the multi-camera system adjusts the image to be synchronized according to the received image frame number. Image frame number.
在本发明实施例中,在获取某一个相机的待同步图像的图像帧号后,将所述图像帧号发送至所述多相机系统中相应的相机,所述多相机系统中的相机在接收到所述图像帧号后调整自身待同步图像的图像帧号,从而使得多相机系统中同步曝光的图像具有相同的图像帧号。In an embodiment of the present invention, after acquiring an image frame number of a to-be-synchronized image of a certain camera, the image frame number is sent to a corresponding camera in the multi-camera system, and the camera in the multi-camera system is receiving The image frame number of the image to be synchronized is adjusted after the image frame number, so that the images of the synchronous exposure in the multi-camera system have the same image frame number.
多相机系统中的每个相机在调整待同步图像的帧号时,具体是将作为同步标识信息的图像帧号与自身待同步图像的帧号进行对比,判断是否需要调整,若需要,则将自身待同步图像的帧号调整为作为同步标识信息的图像帧号。When adjusting the frame number of the image to be synchronized, each camera in the multi-camera system compares the image frame number as the synchronization identification information with the frame number of the image to be synchronized, and determines whether adjustment is needed, if necessary, The frame number of the image to be synchronized itself is adjusted to the image frame number as the synchronization identification information.
本发明实施例通过获取多相机系统中其中一个相机的待同步图像的图像帧号作为同步标识信息,其它相机在自身的待同步图像中将待同步图像的图像帧号调整为作为同步标识信息的图像帧号,使得多相机系统中所有相机同一时间曝光的图像具有相同的图像帧号,如此,服务器便可以根据接收到的采集图像中的图像帧号判断各个相机发来的采集图像是否同步。The embodiment of the present invention obtains the image frame number of the image to be synchronized of one of the cameras in the multi-camera system as the synchronization identification information, and the other cameras adjust the image frame number of the image to be synchronized into the image to be synchronized in the image to be synchronized as the synchronization identification information. The image frame number is such that the images exposed by all the cameras in the multi-camera system at the same time have the same image frame number, so that the server can judge whether the acquired images sent by the respective cameras are synchronized according to the image frame number in the received captured image.
作为本发明又一实施例,在将待同步图像关联同步标识信息之后,还可以包括:As another embodiment of the present invention, after the image to be synchronized is associated with the synchronization identification information, the method may further include:
根据所述同步标识信息生成同步标识子序列信息,以便于所述多相机系统中的每个相机将所述同步标识子序列信息依次与待同步图像之后的图像序列关联使得待同步图像之后的图像序列依次具有相同的同步标识子序列信息。Generating synchronization identification subsequence information according to the synchronization identification information, so that each camera in the multi-camera system sequentially associates the synchronization identification sub-sequence information with an image sequence after the image to be synchronized such that the image after the image to be synchronized The sequences in turn have the same synchronization identification subsequence information.
在本发明实施例中,多相机系统不会每拍一帧图像之前都会做一次同步曝光,即可能会间隔一定时间才会进行一次同步曝光,这时我们可以考虑在同步曝光的图像中加入同步标识信息后,根据同步标识信息生成同步标识子序列信息,在同步曝光的图像之后拍摄的图像序列中加入同步标识子序列信息,当再次实现同步曝光时,重新生成同步标识信息,再次同步曝光之后拍摄的图像序列依次加入同步标识子序列信息。In the embodiment of the present invention, the multi-camera system does not perform a synchronous exposure before each frame of image is taken, that is, a synchronous exposure may be performed at a certain time interval, and then we may consider adding synchronization in the image of the synchronous exposure. After the identification information, the synchronization identification sub-sequence information is generated according to the synchronization identification information, and the synchronization identification sub-sequence information is added to the image sequence captured after the synchronously exposed image. When the synchronous exposure is implemented again, the synchronization identification information is regenerated, and after the synchronization exposure again. The sequence of captured images is sequentially added to the synchronization identification subsequence information.
具体的,我们通过举例说明,假设第一次同步曝光时待同步图像中加入的同步标识信息为八位数字组成的信息00010000,第二次同步曝光时待同步图像中加入的同步标识信息就为00020000,这样依次类推,前面四位表示了同步曝光时待同步图像序列。每次同步曝光之间可能会拍摄多组图像,第一次同步曝光时待同步图像和第二次同步曝光时待同步图像之间拍摄的多个图像序列就可以用00010001、00010002、00010003……表示,同理,第二次同步曝光时待同步图像和第三次同步曝光时待同步图像之间的图像序列可以用00020001、00020002、00020003……表示,这样依次类推,后面四位表示了两次同步曝光时待同步图像之间的图像序列。需要说明的是,该举例只是用于说明,并不用于限制本发明实施例,还可以根据不同的同步标识信息演变出不同的同步标识信息序列。Specifically, by way of example, we assume that the synchronization identification information added in the image to be synchronized during the first synchronous exposure is eight-digit information 00010000, and the synchronization identification information added in the image to be synchronized in the second synchronization exposure is 00020000, and so on, the first four bits represent the sequence of images to be synchronized during simultaneous exposure. Multiple sets of images may be taken between each synchronized exposure, and multiple image sequences captured between the image to be synchronized during the first simultaneous exposure and the image to be synchronized during the second simultaneous exposure may use 00010001, 00010002, 00010003... ... indicates that, similarly, the image sequence between the image to be synchronized and the image to be synchronized during the third simultaneous exposure may be represented by 00020001, 00020002, 00020003, etc., and so on, and the last four digits are indicated. A sequence of images between images to be synchronized during two simultaneous exposures. It should be noted that the example is for illustrative purposes only and is not intended to limit the embodiments of the present invention. Different synchronization identification information sequences may be evolved according to different synchronization identification information.
需要说明的是,若所述同步标识子序列是通过其中一个相机产生的,那么此时在获得同步标识子序列之后,可以将所述同步标识子序列发送至所述多相机系统中的相应相机,这样所有相机可以将获取的同步标识子序列与待同步图像之后的图像相关联,使得多相机系统中多个相机待同步图像(同步曝光的图像)之后采集的图像也具有相同的标识信息。It should be noted that, if the synchronization identifier subsequence is generated by one of the cameras, then after the synchronization identifier subsequence is obtained, the synchronization identifier subsequence may be sent to the corresponding camera in the multi camera system. Thus, all cameras can associate the acquired synchronization identification subsequence with the image after the image to be synchronized, such that images acquired after multiple cameras to be synchronized images (synchronized exposure images) in the multi-camera system also have the same identification information.
本发明实施例通过同步标识子序列信息使得多个相机待同步图像之后采集的图像也能够具有相同的同步标识子序列信息,这样服务器或者数据处理系统在接收到大量的图像时可以根据同步标识信息或者同步标识子序列信息得知哪些图像可以作为同步曝光的图像。In the embodiment of the present invention, the images acquired after the plurality of cameras to be synchronized images can also have the same synchronization identifier subsequence information by synchronizing the identifier subsequence information, so that the server or the data processing system can obtain the synchronization identification information when receiving a large number of images. Or synchronizing the sub-sequence information to know which images can be used as images for simultaneous exposure.
作为步骤S101中的一个实施例,可以通过以下方式调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光。As an embodiment in step S101, the cameras in the multi-camera system can be adjusted in such a manner that all of the cameras in the multi-camera system are simultaneously exposed when images are captured.
步骤S301,选取所述多相机系统中的其中一个相机作为主相机,所述主相机之外的相机作为从相机。Step S301, one of the multi-camera systems is selected as a main camera, and a camera other than the main camera is used as a slave camera.
步骤S302,获取所述主相机与所述从相机曝光时间的差值;Step S302, acquiring a difference between the exposure time of the main camera and the slave camera;
步骤S303,根据所述主相机与所述从相机曝光时间的差值调整所述多相机系统中的相机的曝光时间使得所述多相机系统中的所有相机采集图像时同步曝光。Step S303, adjusting an exposure time of the camera in the multi-camera system according to a difference between the exposure time of the main camera and the slave camera such that all cameras in the multi-camera system acquire images synchronously.
在本发明实施例中,为保证多相机系统中的所有相机采集图像时同步曝光时,可以先从多相机系统中选取其中一个相机作为主相机,其它相机作为从相机,分别获取主相机与所述从相机曝光时间的差值,正是由于这个差值的存在才会导致多相机系统中相机不能实现同步曝光。因此可以根据这个差值调整每个相机的曝光时间使得所有相机同步曝光。In the embodiment of the present invention, in order to ensure that all cameras in the multi-camera system acquire images synchronously, one of the cameras may be selected as the main camera from the multi-camera system, and the other cameras as the slave cameras respectively acquire the main camera and the camera. The difference in the exposure time of the camera is due to the existence of this difference, which will result in the camera not being able to achieve simultaneous exposure in a multi-camera system. Therefore, the exposure time of each camera can be adjusted according to this difference so that all cameras are simultaneously exposed.
需要说明的是,以上仅仅用于举例,并不用于限制本发明,在实际中,实现多相机同步曝光的方法很多。It should be noted that the above is merely an example and is not intended to limit the present invention. In practice, there are many methods for realizing multi-camera synchronous exposure.
如前所述,本发明实施例需要先调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光。步骤S301至步骤S303已经做出一些举例,作为本发明的又一实施例,还可以通过其它方法实现多相机系统中的多个相机采集图像时同步曝光。可以理解的是,可以通过调整相机采集图像的帧长的方式达到调整曝光时间的目的。As previously mentioned, embodiments of the present invention require that the exposure time of the cameras in the multi-camera system be adjusted such that all cameras in the multi-camera system are simultaneously exposed when capturing images. Some examples have been made in steps S301 to S303. As still another embodiment of the present invention, synchronization exposure may be achieved when images are acquired by a plurality of cameras in a multi-camera system by other methods. It can be understood that the purpose of adjusting the exposure time can be achieved by adjusting the frame length of the image captured by the camera.
首先分析造成多相机系统中各个相机曝光不同步的原因。First analyze the cause of the unsynchronized exposure of each camera in a multi-camera system.
通常地,相机内部有一个FPGA构建的64位的硬件计时器,即硬件时间码,该硬件时间码以相机传感器的输入时钟(MCLK)晶振振荡周期为最小计时单位,即每经过一个晶振时钟周期硬件时间码的值自动累加1。Generally, there is a 64-bit hardware timer built by the FPGA inside the camera, that is, hardware time code. The hardware time code is the minimum timing unit of the camera sensor input clock (MCLK) crystal oscillation period, that is, every crystal clock cycle The value of the hardware time code is automatically incremented by 1.
一种情况,当所有相机初始设置相同(即软硬件配置均相同),所有相机采集一帧图像经过的硬件时间码都是相同的。另一种情况,当所有相机的图像传感器型号不同时(且其他软硬件配置相同时),此时相机的图像分辨率虽不相同,但所有相机采集一帧图像经过的硬件时间码仍然是相同的。但在实际中,往往由于温度、湿度等一些因素,相机实际晶振的振荡周期是在变化的。即是说,每个相机的晶振振荡周期不一定相等,因此多相机系统中每个相机采集一帧图像时经过的时间不一定相同,这也是多相机系统中出现相机曝光不同步的根本原因。In one case, when all cameras have the same initial settings (that is, the hardware and software configurations are the same), the hardware time codes passed by all the cameras to capture one frame of image are the same. In another case, when the image sensor models of all cameras are different (and other hardware and software configurations are the same), the image resolution of the camera is different at this time, but the hardware time code of all the cameras capturing one frame of image is still the same. of. However, in practice, the oscillation period of the actual crystal oscillator of the camera is constantly changing due to some factors such as temperature and humidity. That is to say, the crystal oscillation period of each camera is not necessarily equal, so the time elapsed when each camera captures one frame of images in a multi-camera system is not necessarily the same, which is the root cause of camera exposure unsynchronization in a multi-camera system.
当然,实际使用中还发现,网络传输延迟、网络不稳定等外部环境因素也会造成多个相机采集图像时并不会完全同步。Of course, in actual use, it is also found that external environmental factors such as network transmission delay and network instability may cause multiple cameras to acquire images without being completely synchronized.
为解决多相机系统中相机曝光不同步的问题,我们将通过具体的实施例进行详细描述来解决该问题。其中一个实施例可以通过多相机系统外接一个控制设备来实现多相机系统中的多个相机同步曝光,该控制设备可以控制多相机系统中多个相机同步曝光,以上实施例中的步骤也可以由该控制设备完成,具体实现的步骤如下:In order to solve the problem that the camera exposure is not synchronized in the multi-camera system, we will solve the problem by a detailed description of specific embodiments. One of the embodiments may implement simultaneous exposure of a plurality of cameras in a multi-camera system by externally controlling a multi-camera system, and the control device may control simultaneous exposure of a plurality of cameras in the multi-camera system. The steps in the above embodiments may also be performed by The control device is completed, and the specific implementation steps are as follows:
请参见图4,图4是本发明提供的第一实施例中步骤S101的又一个实施例流程示意图,如图4所示该多个相机同步曝光的方法可以包括以下步骤:Referring to FIG. 4, FIG. 4 is a schematic flowchart of still another embodiment of step S101 in the first embodiment of the present invention. The method for synchronously exposing the plurality of cameras as shown in FIG. 4 may include the following steps:
步骤S401,在接收到同步曝光的指令后,获取所述多相机系统中每个相机的初始硬件时间码,得到多个初始硬件时间码。Step S401, after receiving the instruction of synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system to obtain a plurality of initial hardware time codes.
本发明实施例的方法可以集成到控制设备中应用于多相机系统,本发明实施例是用于将多相机系统中的多个相机同步曝光拍照。同步曝光的指令可以由多相机系统中的一个相机发出,也可以由外接的控制设备本身发出。同步曝光的指令可以是控制设备或相机内部一个定时器,每当定时器计数结束就发一次同步曝光命令。例如,在实际应用中,当相机传感器的输入时钟为40MHZ时,大约30秒左右时钟相位会漂移一个曝光周期(1ms),因此需要在30s之内进行一次同步曝光,这时可以设定每20s发出一次同步曝光的指令。如果所述同步曝光的指令是由控制设备本身发出的,则控制设备内部也有一个定时器,作用与上述的定时器作用相同。作为其中一个实施例,还可以直接设置控制设备自身每经过预定时间就发出一个同步曝光的指令。The method of the embodiments of the present invention can be integrated into a control device for application to a multi-camera system, and an embodiment of the present invention is for simultaneously taking photos of multiple cameras in a multi-camera system. The instructions for simultaneous exposure can be issued by one of the cameras in the multi-camera system or by the external control device itself. The synchronous exposure command may be a timer inside the control device or the camera, and a synchronous exposure command is issued each time the timer counts out. For example, in practical applications, when the input clock of the camera sensor is 40 MHz, the clock phase will drift for one exposure period (1 ms) in about 30 seconds, so it is necessary to perform a simultaneous exposure within 30 s, and then every 20 s can be set. An instruction to issue a simultaneous exposure. If the synchronous exposure command is issued by the control device itself, the control device also has a timer inside, which functions the same as the timer described above. As an embodiment thereof, it is also possible to directly set an instruction that the control device itself issues a synchronized exposure every time a predetermined time elapses.
本发明实施例中,多相机系统中如果每个相机的初始设置相同且图像的分辨率大小相等时,理论上来说多相机系统中每个相机的曝光时间是相同的。根据前文的描述可知,在实际中由于温度、湿度等一些因素,实际晶振的振荡周期也是在变化的,并不是完全不变的,因此出现了曝光不同步的问题。为解决曝光不同步的问题,本步骤中需要获取多相机系统中每个相机的硬件时间码,以便于可以根据获取的硬件时间码对多相机系统的每个相机的曝光时间进行调整,以使得所有相机的曝光时间同步。In the embodiment of the present invention, in the multi-camera system, if the initial settings of each camera are the same and the resolutions of the images are equal, the exposure time of each camera in the multi-camera system is theoretically the same. According to the foregoing description, in practice, due to some factors such as temperature and humidity, the oscillation period of the actual crystal oscillator is also changing, and is not completely constant, so that the problem of unsynchronized exposure occurs. In order to solve the problem of unsynchronized exposure, in this step, the hardware time code of each camera in the multi-camera system needs to be acquired, so that the exposure time of each camera of the multi-camera system can be adjusted according to the acquired hardware time code, so that The exposure time of all cameras is synchronized.
其中,每个相机的内部都有时间码寄存器,其用于读写当前相机的硬件时间码。相机传感器开始工作后,硬件计时器模块开始计时。相机每一帧图像的曝光开始时刻和曝光持续时间都是以硬件计时器记录的硬件时间码进行计时的。假设多相机系统中共有N个相机。那么具体获取初始硬件时间码的过程可以是:分别向多相机系统中每个相机发送硬件时间码获取请求,多相机系统中的相机接收到该请求时,通过自身的时间码寄存器读取自身的硬件时间码并返回该硬件时间码,接收多相机系统中每个相机发来的硬件时间码并分别计为初始硬件时间码T 1、T 2、T 3……T N。此时,便得到了多相机系统中每个相机对应的初始硬件时间码T 1、T 2、T 3……T NAmong them, each camera has a time code register inside, which is used to read and write the hardware time code of the current camera. After the camera sensor starts working, the hardware timer module starts timing. The exposure start time and exposure duration of each frame of the camera are timed by the hardware time code recorded by the hardware timer. Suppose there are N cameras in a multi-camera system. Then, the process of specifically obtaining the initial hardware time code may be: respectively sending a hardware time code acquisition request to each camera in the multi-camera system, and the camera in the multi-camera system reads its own time code register when receiving the request. The hardware time code returns the hardware time code, and receives the hardware time code sent by each camera in the multi-camera system and counts as the initial hardware time code T 1 , T 2 , T 3 ... T N , respectively . At this time, initial hardware time codes T 1 , T 2 , T 3 ... T N corresponding to each camera in the multi-camera system are obtained.
步骤S402,根据所述多个初始硬件时间码确定同步基准值,并根据所述同步基准值和每个相机的初始硬件时间码,确定所述多相机系统中每个相机对应的帧补偿值。Step S402, determining a synchronization reference value according to the plurality of initial hardware time codes, and determining a frame compensation value corresponding to each camera in the multi-camera system according to the synchronization reference value and an initial hardware time code of each camera.
在获取多个相机对应的初始硬件时间码之后,便可根据所述多个初始硬件时间码确定同步基准值。在确定同步基准值时,可以选择多个初始硬件时间码的任意一个值作为同步基准值,也可以选择所述多个初始硬件时间码中的最大值或最小值作为同步基准值,当然也可以计算所述多个初始硬件时间码的平均值,并将该平均值作为同步基准值。然后根据该同步基准值和获取到的多个初始硬件时间码,确定每个相机的帧补偿值。在确定同步基准值之后,还需要根据获取的每个相机的初始硬件时间码和该同步基准值,计算每一个相机的帧补偿值。具体地,根据同步基准值与相机的初始硬件时间码的偏差,计算每个相机的对应的帧补偿值。After acquiring the initial hardware time code corresponding to the plurality of cameras, the synchronization reference value may be determined according to the plurality of initial hardware time codes. When determining the synchronization reference value, any one of the plurality of initial hardware time codes may be selected as the synchronization reference value, and the maximum value or the minimum value of the plurality of initial hardware time codes may be selected as the synchronization reference value, of course, An average of the plurality of initial hardware time codes is calculated and used as a synchronization reference value. A frame compensation value for each camera is then determined based on the synchronization reference value and the plurality of initial hardware time codes obtained. After determining the synchronization reference value, it is also necessary to calculate the frame compensation value of each camera based on the acquired initial hardware time code of each camera and the synchronization reference value. Specifically, the corresponding frame compensation value of each camera is calculated based on the deviation of the synchronization reference value from the initial hardware time code of the camera.
步骤S403,将所述每个相机对应的帧补偿值发送至多相机系统中对应的每个相机,以便于每个相机根据对应的所述帧补偿值调整图像的长度使得所述多相机系统中所有相机的曝光时间同步。Step S403, sending the frame compensation value corresponding to each camera to each camera corresponding to the multi-camera system, so that each camera adjusts the length of the image according to the corresponding frame compensation value so that all the multi-camera systems The camera's exposure time is synchronized.
在计算每个相机对应的帧补偿值后发送给多相机系统中的所有相机,多相机系统中的相机接收到该帧补偿值之后,更新相机内部的帧扩展寄存器,以便在多相机系统中的每个相机在采集图像时能够对齐曝光时间。After calculating the frame compensation value corresponding to each camera, it is sent to all the cameras in the multi-camera system. After receiving the frame compensation value, the camera in the multi-camera system updates the camera's internal frame extension register so as to be in the multi-camera system. Each camera is able to align the exposure time when capturing images.
需要说明的是,若确定出的同步基准值和相机的初始硬件时间码没有偏差,则表示此相机在本次同步曝光过程中不需要进行帧补偿。It should be noted that if the determined synchronization reference value and the initial hardware time code of the camera do not deviate, it means that the camera does not need to perform frame compensation during the current synchronous exposure.
需要说明的另一点是,在根据帧补偿值调整图像的帧长时,可以调整当前图像帧的帧长,这样多相机系统中的相机在采集下帧图像时便可实现同步曝光,即是说,下帧图像就是待同步图像。当然,相机也可以根据帧补偿值调整下一帧图像的帧长,这样多相机系统中的相机在采集下下帧图像时便可实现同步曝光,即是说,下下帧图像就是待同步图像,以此类推。Another point to be explained is that when the frame length of the image is adjusted according to the frame compensation value, the frame length of the current image frame can be adjusted, so that the camera in the multi-camera system can achieve synchronous exposure when acquiring the next frame image, that is to say, The next frame image is the image to be synchronized. Of course, the camera can also adjust the frame length of the next frame image according to the frame compensation value, so that the camera in the multi-camera system can achieve synchronous exposure when acquiring the next frame image, that is, the next frame image is the image to be synchronized. And so on.
本发明实施例在接收到同步曝光的指令之后,通过获取每个相机的初始硬件时间码,并根据该多个初始硬件时间码确定同步基准值,以及根据每个相机的初始硬件时间码与同步基准值之间的偏差,确定各个相机对应的帧补偿值并将帧补偿值发送至相应的相机,使得多相机系统中的相机能够根据该确定出来的帧补偿值调整图像的帧长,从而使得多相机系统中的每个相机在采集图像时曝光时间同步。After receiving the instruction of the synchronous exposure, the embodiment of the present invention obtains the initial hardware time code of each camera, and determines the synchronization reference value according to the plurality of initial hardware time codes, and according to the initial hardware time code and synchronization of each camera. Deviation between the reference values, determining a frame compensation value corresponding to each camera and transmitting the frame compensation value to the corresponding camera, so that the camera in the multi-camera system can adjust the frame length of the image according to the determined frame compensation value, thereby Each camera in a multi-camera system synchronizes exposure time when acquiring images.
可以理解的是,造成多相机系统中多个相机曝光时间不同步的原因除了晶振振荡周期不相等之外,还有其他的一些因素。例如,获取多相机系统中每个相机的初始时间码时的网络延时,获取每一个相机的初始时间码时的操作延时,以及相机本身硬件累计延时值。由于获取的初始硬件时间码中包括上述这些延时值,因此为进一步提高多相机系统的同步精准度,在获取初始硬件时间码之后,确定帧补偿值之前,还可以对获取的初始硬件时间码进行延时修正处理。可以理解的是,延时修正处理可以包括:网络延时修正处理、操作延时修正处理以及硬件累计修正处理中的至少一种。相应的,对初始硬件时间码做修正处理后,获得同步基准值时具体是采用修正后的硬件时间码,同时确定每个相机的帧补偿值时也采用修正后的硬件时间码。下面,将以延时修正处理包括网络延时修正处理、操作延时修正处理以及硬件累计修正处理为例进行详细说明。It can be understood that the reason for causing the multiple camera exposure times in the multi-camera system to be out of sync is that there are other factors besides the crystal oscillation period is not equal. For example, the network delay when acquiring the initial time code of each camera in the multi-camera system, the operation delay when acquiring the initial time code of each camera, and the hardware cumulative delay value of the camera itself. Since the obtained initial hardware time code includes the above delay values, in order to further improve the synchronization accuracy of the multi-camera system, after the initial hardware time code is acquired, before the frame compensation value is determined, the acquired initial hardware time code may also be acquired. Perform delay correction processing. It can be understood that the delay correction processing may include at least one of a network delay correction processing, an operation delay correction processing, and a hardware cumulative correction processing. Correspondingly, after the initial hardware time code is corrected, the corrected hardware time code is obtained when the synchronization reference value is obtained, and the corrected hardware time code is also used when determining the frame compensation value of each camera. Hereinafter, the delay correction processing including the network delay correction processing, the operation delay correction processing, and the hardware cumulative correction processing will be described in detail as an example.
请参见图5,是本发明第一实施例中步骤S101的又一个实施例流程示意图,如图5所示该同步曝光方法可以包括以下步骤:FIG. 5 is a schematic flowchart of still another embodiment of step S101 in the first embodiment of the present invention. As shown in FIG. 5, the synchronous exposure method may include the following steps:
步骤S501,在接收到同步曝光的指令后,获取所述多相机系统中每个相机的初始硬件时间码,得到多个初始硬件时间码。Step S501, after receiving the instruction of the synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system, to obtain a plurality of initial hardware time codes.
步骤S502,对得到的多个初始硬件时间码依次进行硬件累计修正处理、网络延时处理以及操作延时处理。Step S502, performing hardware accumulation correction processing, network delay processing, and operation delay processing on the obtained plurality of initial hardware time codes in sequence.
下面,将分别描述硬件累计修正处理、网络延时处理以及操作延时处理的具体操作过程。In the following, specific operational procedures of hardware cumulative correction processing, network delay processing, and operation delay processing will be separately described.
第一,对多个初始硬件时间码依次进行硬件累计修正处理。First, hardware cumulative correction processing is sequentially performed on a plurality of initial hardware time codes.
在进行硬件累计修正处理时,由于相机传感器开始工作后,硬件计时器就开始计时了,在工作一定时间之后,晶振则会产生一定的累计误差,为消除此误差,因此可以在每帧图像的预设位置(比如第100个像素点的位置)设置触发CPU硬件中断,当中断触发后,硬件计时器会自动锁存当前时刻的时间码,每经过一次中断触发,会锁存一个时间码。When the hardware cumulative correction processing is performed, the hardware timer starts to count after the camera sensor starts to work. After a certain period of operation, the crystal oscillator generates a certain cumulative error. To eliminate this error, it can be used in each frame of the image. The preset position (such as the position of the 100th pixel) is set to trigger the CPU hardware interrupt. When the interrupt is triggered, the hardware timer will automatically latch the time code of the current time. Each time an interrupt is triggered, a time code is latched.
在步骤502中,对多个初始硬件时间码进行硬件累计修正处理时,操作流程可以按照如图6所示的流程进行。In step 502, when hardware initial correction processing is performed on a plurality of initial hardware time codes, the operation flow may be performed according to the flow shown in FIG. 6.
如图6所示,是步骤502中进行硬件累计修正处理的流程示意图时,可以包括如下步骤:As shown in FIG. 6 , when the flowchart of the hardware cumulative correction processing in step 502 is performed, the following steps may be included:
步骤601,对应获取每个相机最近一次中断触发时刻的中断时间码。Step 601: Corresponding to acquiring an interrupt time code of the last interrupt trigger time of each camera.
步骤602,将所述多个初始硬件时间码与获取的所述中断时间码做差值运算,对应得到每个相机的修正硬件时间码。Step 602: Perform a difference operation between the plurality of initial hardware time codes and the acquired interrupt time code, and obtain a corrected hardware time code of each camera.
根据前文的描述可知,在产生一次中断时,硬件计时器可以自动锁存一个时间码。因此,每个相机在读取自身的初始硬件时间码之后,还读取最近一次中断触发时刻的硬件时间码,记为中断时间码。然后,控制设备将初始硬件时间码与中断时间码做差,便可消除晶振产生的误差,得到经硬件累积延时处理后的修正硬件时间码。According to the foregoing description, the hardware timer can automatically latch a time code when an interrupt is generated. Therefore, after reading each of its own initial hardware time code, each camera also reads the hardware time code of the most recent interrupt trigger time, which is recorded as the interrupt time code. Then, the control device compares the initial hardware time code with the interrupt time code to eliminate the error generated by the crystal oscillator and obtain the corrected hardware time code after the hardware cumulative delay processing.
举例来说,在对相机的初始硬件时间码进行修正时,若相机的初始硬件时间码为T i,获取到的相机的最近一次中断的中断时间码为T i0,那么经硬件累计修正处理操作后的相机的修正硬件时间码K i= T i- T i0,其中T i为相机i的初始硬件时间码,T i0 为相机i最近一次中断的中断时间码,i的取值范围为1到N。 For example, when the initial hardware time code of the camera is corrected, if the initial hardware time code of the camera is T i , and the acquired interrupt time code of the last interrupt of the camera is T i0 , the hardware cumulative correction processing operation is performed. The corrected hardware time code K i = T i - T i0 of the following camera, where T i is the initial hardware time code of camera i, and T i0 is the interrupt time code of the most recent interruption of camera i, i ranges from 1 to N.
第二,对初始硬件时间码进行网络延时修正处理。Second, network delay correction processing is performed on the initial hardware time code.
如前所述可知,在获取每个相机的初始硬件时间码时,需要向每个相机发送一个硬件时间码的获取请求,多相机系统中的相机在接收到硬件时间码的获取请求之后,通过自身的时间码寄存器读取自身的硬件时间码并返回该硬件时间码。从发送请求到多相机系统中的每个相机接收到该请求所消耗的时间便是本发明实施例中的网络延时。As can be seen from the foregoing, when acquiring the initial hardware time code of each camera, it is necessary to send a hardware time code acquisition request to each camera, and the camera in the multi-camera system passes the acquisition request of the hardware time code. Its own time code register reads its own hardware time code and returns the hardware time code. The time elapsed from receiving a request to each camera in the multi-camera system to receive the request is the network delay in the embodiment of the present invention.
具体地,在对初始硬件时间码进行网络延时修正处理时,具体可以按照图7所示的流程进行操作。Specifically, when the network delay correction processing is performed on the initial hardware time code, the operation may be specifically performed according to the flow shown in FIG. 7.
如图7所示,是对初始硬件时间码进行网络延时修正处理的实施例的流程示意图,具体方法可以包括:As shown in FIG. 7 , it is a schematic flowchart of an embodiment of performing network delay correction processing on an initial hardware time code, and the specific method may include:
步骤701,获取本地与多相机系统中每个相机之间的网络延时值。Step 701: Acquire a network delay value between each camera in the local and multi-camera system.
步骤702,根据所述多个初始硬件时间码和获取的本地与所述多相机系统中每个相机之间的网络延时值计算获得每个相机的修正硬件时间码。Step 702: Calculate a corrected hardware time code of each camera according to the plurality of initial hardware time codes and the obtained network delay value between the local and each camera in the multi-camera system.
步骤701具体操作时,具体操作方法例如可以是:When the specific operation of step 701, the specific operation method may be, for example:
在同步曝光任务启动后,通过IEEE 1588 精密时钟同步协议测量本地(即控制设备)与多相机系统中每个相机之间的网络延时,并以传感器时钟晶振周期为单位进行换算,由此可以得出此时控制设备与多相机系统中每个相机之间的网络延时。After the synchronous exposure task is started, the network delay between the local (ie, control device) and each camera in the multi-camera system is measured by the IEEE 1588 Precision Clock Synchronization Protocol and converted in units of the sensor clock crystal period. The network delay between the control device and each camera in the multi-camera system is obtained.
需要说明的一点是,在步骤702中,控制设备在将所述多个初始硬件时间码与获取的自身与每个相机之间的网络延时值对应做差值运算后,相机的修正硬件时间码M i= T i- Y i,其中T i为相机i的初始硬件时间码,Y i相机i的网络延时值,i的取值范围为1到N。 It should be noted that, in step 702, the control device corrects the hardware time of the camera after performing a difference operation on the network delay value between the obtained initial hardware time code and the acquired self and each camera. The code M i = T i - Y i , where T i is the initial hardware time code of camera i, the network delay value of Y i camera i, and the value of i ranges from 1 to N.
同时,由于步骤502中已经对初始硬件延时码进行了硬件累计修正处理,因此本步骤中在进行差值运算时应该使用经硬件累计修正处理后的硬件时间码,即T i- T i0,其中i的取值范围为1到N。若前文没有进行硬件累计修正处理,那么本步骤中进行差值运算时,使用的便应该是初始的硬件时间码T i,其中i的取值范围为1到N。 At the same time, since the hardware cumulative correction processing has been performed on the initial hardware delay code in step 502, the hardware time code after the hardware cumulative correction processing, that is, T i - T i0 , should be used in the difference calculation in this step. Where i ranges from 1 to N. If the hardware cumulative correction processing is not performed in the foregoing, when the difference calculation is performed in this step, the initial hardware time code T i should be used, where i ranges from 1 to N.
下面,将通过具体的例子进行详细说明。Hereinafter, a detailed description will be given by way of specific examples.
假设,获取到的本地与多相机系统中每个相机之间的网络延时值分别为Y 1、Y 2、Y 3……Y NAssume that the network delay values between each of the acquired local and multi-camera systems are Y 1 , Y 2 , Y 3 ... Y N , respectively .
那么经硬件累计修正处理以及网络延时修正处理之后,得到的相机的修正硬件时间码M i=K i- Y i= T i- T i0- Y i,其中,其中i的取值范围为1到N。 Then, after the hardware cumulative correction processing and the network delay correction processing, the corrected hardware time code M i =K i - Y i = T i - T i0 - Y i of the obtained camera, wherein i has a value range of 1 To N.
第三,对初始硬件时间码进行操作延时修正处理。Third, the operation delay correction processing is performed on the initial hardware time code.
特别需要说明的是,在获取多相机系统中每个相机的初始硬件时间码时,若需要分别获取每一个相机的初始硬件时间码,在获取了某个相机的初始硬件时间码后,由于多相机系统中存在多个相机,发出读取第一个相机的初始硬件时间码的指令和发出读取第二个相机的初始硬件时间码的指令时并不会完全相同。因此,在对初始硬件时间码进行修正时,还需要考虑操作延时。若采用广播的方式读取多相机系统中每个相机的时间码时,则可以不考虑操作延时。具体可根据实际情况选择。In particular, when acquiring the initial hardware time code of each camera in the multi-camera system, if it is necessary to separately obtain the initial hardware time code of each camera, after acquiring the initial hardware time code of a certain camera, There are multiple cameras in the camera system, and the instructions to read the initial hardware timecode of the first camera and the instructions to read the initial hardware timecode of the second camera are not exactly the same. Therefore, when correcting the initial hardware time code, you also need to consider the operation delay. If the time code of each camera in the multi-camera system is read by broadcast, the operation delay can be ignored. Specific can be selected according to the actual situation.
如图8所示,是对初始硬件时间码做操作延时修正处理的实施例的流程示意图,包括如下步骤:As shown in FIG. 8 , it is a schematic flowchart of an embodiment of performing an operation delay correction process on an initial hardware time code, including the following steps:
步骤S801,当获取每个相机的初始硬件时间码时,读取本地的瞬时硬件时间码。Step S801, when acquiring the initial hardware time code of each camera, reading the local instantaneous hardware time code.
步骤S802,将每一次读取的本地的瞬时硬件时间码与获取第一个相机的初始硬件时间码时读取的本地的瞬时硬件时间码做差值运算,得到本地(外接的控制设备)与每个相机之间的操作延时值。Step S802, performing a difference operation between the local instantaneous hardware time code read each time and the local instantaneous hardware time code read when the initial hardware time code of the first camera is acquired, to obtain a local (external control device) and The operational delay value between each camera.
步骤S803,根据所述多个初始硬件时间码和获取的所述操作延时值计算获得每个相机的修正硬件时间码。Step S803, calculating a corrected hardware time code of each camera according to the plurality of initial hardware time codes and the obtained operation delay value.
步骤S801中,在向每个相机发出初始硬件时间码的获取请求之前都先读取一遍外接控制设备本机,即本地的硬件时间码,记为瞬时硬件时间码。然后再向多相机系统中的每个相机发出初始硬件时间码的获取请求,多相机系统中的相机接收到所述请求后读取相机本机的硬件时间码并返回相机的本机的硬件时间码至控制设备。这时需要将读取第一个相机的初始硬件时间码时读取的本地的瞬时硬件时间码作为一个参照;每次读取其它相机的初始硬件时间码时控制设备读取的自身的瞬时硬件时间码与读取第一个相机的初始硬件时间码时读取到的自身的瞬时硬件时间码之间的差值就是操作延时值,因为控制设备在读取到自身的瞬时硬件时间码之后会立即获取第一个相机的初始硬件时间码,因此可以认为控制设备与第一个相机之间没有操作延时,而控制设备在获取其它相机的初始硬件时间码的时间点是在读取第一个相机的初始硬件时间码之后,因此与控制设备读取第一个相机的初始硬件时间码时读取到的控制设备本身的瞬时硬件时间码之间是存在操作延时的,因此需要计算这段时间的操作延时。In step S801, before the initial hardware time code acquisition request is sent to each camera, the external control device local device, that is, the local hardware time code, is recorded as the instantaneous hardware time code. Then, an initial hardware time code acquisition request is sent to each camera in the multi-camera system, and the camera in the multi-camera system reads the hardware time code of the camera and returns to the camera's local hardware time after receiving the request. Code to control device. At this time, the local instantaneous hardware time code read when reading the initial hardware time code of the first camera needs to be used as a reference; the instantaneous hardware of the control device is read each time the initial hardware time code of other cameras is read. The difference between the time code and its own instantaneous hardware time code read when reading the initial hardware time code of the first camera is the operation delay value because the control device reads its own instantaneous hardware time code. The initial hardware time code of the first camera will be obtained immediately, so it can be considered that there is no operation delay between the control device and the first camera, and the control device is reading the time at the time of acquiring the initial hardware time code of the other camera. After the initial hardware time code of a camera, there is an operational delay between the instantaneous hardware time code of the control device itself read by the control device when reading the initial hardware time code of the first camera, so calculation is required. The operation delay during this time.
即操作延时值C i=T 1i- T 11。其中,T 1i为获取第i相机初始硬件时间码之前读取的本地的瞬时硬件时间码,T 11为读取第1个相机的硬件时间码时读取的本地的瞬时硬件时间码。其中,其中i的取值范围为1到N。当i等于1时表示控制装置与第一个相机之间的操作延时值。其中,控制装置与第一个相机的操作延时值为0,也可以记为C 1=T 11- T 11That is, the operation delay value C i = T 1i - T 11 . Wherein, T 1i is a local instantaneous hardware time code read before acquiring the initial hardware time code of the i-th camera, and T 11 is a local instantaneous hardware time code read when the hardware time code of the first camera is read. Where i has a value ranging from 1 to N. When i is equal to 1, it indicates the operation delay value between the control device and the first camera. Wherein, the operation delay value of the control device and the first camera is 0, and may also be recorded as C 1 =T 11 - T 11 .
那么在经操作延时修正处理之后,相机的修正硬件时间码N i= T i- C i,其中T i为相机i的初始硬件时间码,C i相机i的操作延时值,i的取值范围为1到N。经操作延时修正处理后的相机的修正硬件时间码N i= T i- C i,其中i的取值范围为1到N。 Then, after the operation delay correction processing, the corrected hardware time code of the camera is N i = T i - C i , where T i is the initial hardware time code of camera i, the operation delay value of C i camera i, and the taking of i Values range from 1 to N. The corrected hardware time code N i = T i - C i of the camera after the operation delay correction processing, wherein i ranges from 1 to N.
需要说明的一点是,由于步骤502中已经对初始硬件延时码进行了硬件累计修正处理以及网络延时修正处理,因此本步骤中在进行差值运算时应该使用经硬件累计修正处理、网络延时修正处理后的硬件时间码,即M i,其中i的取值范围为1到N。若前文没有进行硬件累计修正处理和网络延时修正处理,那么本步骤中进行差值运算时,使用的便应该是初始的硬件时间码T i,其中i的取值范围为1到N。 It should be noted that since the hardware cumulative correction processing and the network delay correction processing have been performed on the initial hardware delay code in step 502, the hardware cumulative correction processing and network extension should be used in the difference calculation in this step. The hardware time code after processing is corrected, that is, M i , where i ranges from 1 to N. If the hardware cumulative correction processing and the network delay correction processing are not performed in the foregoing, when the difference calculation is performed in this step, the initial hardware time code T i should be used, where i ranges from 1 to N.
下面,将通过具体的例子进行详细说明。Hereinafter, a detailed description will be given by way of specific examples.
假设,获取到的与多相机系统中每个相机之间的操作延时值分别为C 1、C 2、C 3……C NIt is assumed that the operational delay values obtained between each of the cameras in the multi-camera system are C 1 , C 2 , C 3 ... C N , respectively .
那么经硬件累计修正处理、网络延时修正处理以及操作延时处理之后,得到的相机的修正硬件时间码N i=K i- Y i-C i= T i- T i0- Y i-( T 1i- T 11),其中,其中i的取值范围为1到N。 Then, after the hardware cumulative correction processing, the network delay correction processing, and the operation delay processing, the obtained corrected hardware time code of the camera is N i =K i - Y i -C i = T i - T i0 - Y i -( T 1i - T 11 ), where i has a value ranging from 1 to N.
需要说明的是,以上实施例虽然是同时采用了网络延时修正处理、操作延时修正处理、硬件累计修正处理三项延时修正处理,但是在实际应用中,可以只选择其中的一项或者两项延时修正处理。在将初始硬件时间码做延时修正处理得到修正硬件时间码的过程中选择了哪项延时修正处理,相应的就将哪项延时修正处理获得的延时结果和初始硬件时间码一起计算获得修正硬件时间码,具体以上三项延时修正处理中只选择其中的一项延时修正处理的实施例和选择其中任两项延时修正处理的实施例在此不再举例说明,可参照上述实施例的计算过程获得。It should be noted that although the above embodiment adopts three delay correction processings of network delay correction processing, operation delay correction processing, and hardware cumulative correction processing, in practical applications, only one of them may be selected or Two delay correction processing. Which delay correction processing is selected in the process of correcting the hardware time code by performing the delay correction processing on the initial hardware time code, and correspondingly, which delay correction result obtained by the delay correction processing is calculated together with the initial hardware time code Obtaining the modified hardware time code, the embodiment of selecting only one of the delay correction processing in the above three delay correction processing and the embodiment for selecting any two of the delay correction processing are not illustrated herein, and can be referred to The calculation process of the above embodiment is obtained.
步骤503,根据所述多个修正硬件时间码确定所述同步基准值,并根据所述同步基准值和每个相机的修正硬件时间码,确定所述多相机系统中每个相机对应的帧补偿值。Step 503: Determine the synchronization reference value according to the plurality of modified hardware time codes, and determine frame compensation corresponding to each camera in the multi-camera system according to the synchronization reference value and the corrected hardware time code of each camera. value.
由于步骤502中,对初始硬件时间码进行了延时修正处理,那么在本步骤中,确定同步基准值时,则需要根据经修正处理后的多个修正时间码确定同步基准值。具体地,在确定同步基准值时,可以选择多个修正硬件时间码的任意一个值作为同步基准值,也可以选择所述多个修正硬件时间码中的最大值或最小值作为同步基准值,当然也可以计算所述多个修正硬件时间码的平均值,并将该平均值作为同步基准值。Since the initial hardware time code is subjected to the delay correction processing in step 502, in this step, when the synchronization reference value is determined, it is necessary to determine the synchronization reference value based on the plurality of corrected time codes after the correction processing. Specifically, when determining the synchronization reference value, any one of the plurality of modified hardware time codes may be selected as the synchronization reference value, and the maximum value or the minimum value of the plurality of modified hardware time codes may be selected as the synchronization reference value. It is of course also possible to calculate an average of the plurality of modified hardware time codes and use the average as a synchronization reference value.
若只对初始硬件时间码进行了硬件累计修正处理,那么则需要根据经硬件累计修正处理后的硬件时间码K i确定同步基准值,以此类推。由于本发明实施例中,对初始硬件时间码进行了硬件累计修正处理、网络延时修正处理以及操作延时修正处理,那么则应该根据经硬件累计修正处理、网络延时修正处理以及操作延时处理之后得到的每个相机的修正硬件时间码N i确定同步基准值。在选取同步基准值之后,所有的相机都与选取的同步基准值对应的相机对齐。 If only the hardware cumulative correction processing is performed on the initial hardware time code, then the synchronization reference value needs to be determined according to the hardware time code K i after the hardware cumulative correction processing, and so on. In the embodiment of the present invention, the hardware cumulative correction processing, the network delay correction processing, and the operation delay correction processing are performed on the initial hardware time code, then the hardware cumulative correction processing, the network delay correction processing, and the operation delay should be performed according to the hardware. The corrected hardware time code N i of each camera obtained after the process determines the synchronization reference value. After selecting the sync reference value, all cameras are aligned with the camera corresponding to the selected sync reference value.
在本发明实施例中,由于曝光是根据时间码来确定的,若相机的修正硬件时间码大于同步基准值,则说明相机的硬件时间码相对于同步基准值走的快了,需要将相机当前帧图像或下一帧图像延长一定时间,以便于同步基准值对应的相机的时间码能赶上,从而在采集下帧或下下帧图像时曝光时间同步;若相机的修正硬件时间码小于同步基准值,则说明相机的时间码走的慢了,需要赶上同步基准值对应的相机的时间码,因此需要将相机当前帧图像或下一帧图像缩短一定时间,以便于同步基准值对应的相机的时间码能赶上,从而在采集下帧或下下帧图像时同步曝光。In the embodiment of the present invention, since the exposure is determined according to the time code, if the corrected hardware time code of the camera is greater than the synchronization reference value, the hardware time code of the camera is faster than the synchronous reference value, and the current camera needs to be The frame image or the next frame image is extended for a certain period of time, so that the time code of the camera corresponding to the synchronization reference value can be caught up, so that the exposure time is synchronized when the lower frame or the lower frame image is acquired; if the corrected hardware time code of the camera is smaller than the synchronization The reference value indicates that the time code of the camera is slow, and it is necessary to catch up with the time code of the camera corresponding to the synchronization reference value. Therefore, it is necessary to shorten the current frame image or the next frame image of the camera for a certain time so as to synchronize the reference value. The camera's time code can be caught up to synchronize exposure when capturing the next frame or the next frame of image.
本发明实施例的多相机系统同步曝光的方法,在接收到同步曝光的指令之后,获取每个相机的初始硬件时间码,并对该多个初始硬件时间码进行延时修正处理,得到多个修正硬件时间码,以及根据该多个修正硬件时间码确定同步基准值,并根据所述同步基准值和每个相机的初始硬件时间码,确定所述多相机系统中每个相机对应的帧补偿值,使得每个相机能够根据该确定出来的帧补偿值调整图像的帧长,从而使得多相机系统中的每个相机在采集图像时曝光时间同步。The method for synchronously exposing a multi-camera system according to an embodiment of the present invention acquires an initial hardware time code of each camera after receiving an instruction of synchronous exposure, and performs delay correction processing on the plurality of initial hardware time codes to obtain a plurality of Correcting a hardware time code, and determining a synchronization reference value according to the plurality of modified hardware time codes, and determining a frame compensation corresponding to each camera in the multi-camera system according to the synchronization reference value and an initial hardware time code of each camera The value is such that each camera can adjust the frame length of the image based on the determined frame compensation value such that each camera in the multi-camera system synchronizes the exposure time when acquiring the image.
在将多相机系统中的每个相机实现同步曝光时,作为又一个实施例,可以将多相机系统外接的控制设备的功能通过多相机系统中的一个相机来实现。此时,可以选取多相机系统中的一个相机作为主相机,其它相机作为从相机,以上在实现多相机系统中每个相机同步曝光时外接设备采用的方法都可以通过多相机系统中的主相机实现。也就是说,此时主相机作为多相机系统内的相机设备,除可以实现之前外接的控制设备的所有功能之外,还可以实现多相机系统内从相机的所有功能。当然,主相机在实现外接控制设备的功能时,之前外接的控制设备获得的外接设备本地的数据信息将相应替代为主相机获取主相机本地的数据信息获取,同样的,之前外接设备与多相机系统中每个相机之间的数据差值将相应替代为主相机与从相机之间的数据差值代替。When synchronizing exposure of each camera in the multi-camera system, as still another embodiment, the function of the control device external to the multi-camera system can be implemented by one camera in the multi-camera system. At this time, one camera of the multi-camera system can be selected as the main camera, and the other cameras are used as the slave camera. The above method can be adopted by the external camera in the multi-camera system when implementing the simultaneous exposure of each camera in the multi-camera system. achieve. That is to say, at this time, the main camera as a camera device in the multi-camera system can realize all the functions of the slave camera in the multi-camera system, in addition to all the functions of the previously connected control device. Of course, when the main camera realizes the function of the external control device, the local data information of the external device obtained by the external control device will be replaced by the data acquisition of the main camera to obtain the local camera, and the same, before the external device and the multi-camera The difference in data between each camera in the system will be replaced by the difference in data between the main camera and the slave camera.
请参见图9,是本发明提供的多相机系统同步曝光方法的又一实施例的流程示意图,如图9所示该同步曝光方法可以包括以下步骤:9 is a schematic flowchart of still another embodiment of a multi-camera system synchronous exposure method provided by the present invention. As shown in FIG. 9, the synchronous exposure method may include the following steps:
步骤S901,在接收到同步曝光的指令后,获取所述多相机系统中每个相机的初始硬件时间码,得到多个初始硬件时间码。Step S901, after receiving the instruction of synchronous exposure, acquiring an initial hardware time code of each camera in the multi-camera system, to obtain a plurality of initial hardware time codes.
步骤S902,对得到的多个初始硬件时间码依次进行硬件累计修正处理、网络延时处理以及操作延时处理,得到多个修正硬件时间码。Step S902, performing hardware accumulation correction processing, network delay processing, and operation delay processing on the obtained plurality of initial hardware time codes in sequence to obtain a plurality of modified hardware time codes.
步骤S903,根据所述多个修正硬件时间码确定同步基准值。Step S903, determining a synchronization reference value according to the plurality of modified hardware time codes.
步骤S904,按照公式:B i=(N i-S)%FrameLength计算相机的帧补偿值。 In step S904, the frame compensation value of the camera is calculated according to the formula: B i = (N i - S) % FrameLength.
本实施例与图5所示的实施例的区别有:The difference between this embodiment and the embodiment shown in FIG. 5 is as follows:
在确定帧补偿值时,具体采用步骤S904中的公式。步骤S904中,B i表示相机i的帧补偿值,N i表示经延时修正处理后相机i的修正硬件时间码,S表示同步基准值,FrameLength表示所述多相机系统中每个相机的一帧图像以振荡周期为单位的大小,%表示模运算。具体的帧补偿值是相机一帧图像以晶振的振荡周期为单位的大小,也就是转换成时间码的大小。取模运算是为了相机的帧补偿值不会超过一帧图像的帧长(转换成时间码的一帧图像的时间长度),只要对齐时钟的相位就可以。 When determining the frame compensation value, the formula in step S904 is specifically employed. In step S904, B i represents the frame compensation value of the camera i, N i represents the corrected hardware time code of the camera i after the delay correction processing, S represents the synchronization reference value, and FrameLength represents one of each camera in the multi-camera system. The size of the frame image in units of oscillation periods, and % indicates the modulo operation. The specific frame compensation value is the size of the camera one frame image in units of the oscillation period of the crystal oscillator, that is, the size converted into the time code. The modulo operation is performed so that the frame compensation value of the camera does not exceed the frame length of one frame of image (the length of time of one frame of image converted into time code), as long as the phase of the clock is aligned.
第二,在具体处理时,确定出的同步基准值可以是多个修正硬件时间码中的最小值,即从多个修正硬件时间码中选取一个最小值作为同步基准值。选取修正硬件时间码中的最小值的目的是为了简化计算,同时也为了获取更好的效果。这时,所有的相机都只需要拉长当前帧或下帧图像的时间长度就行。Second, in the specific processing, the determined synchronization reference value may be a minimum value among the plurality of modified hardware time codes, that is, a minimum value is selected from the plurality of modified hardware time codes as the synchronization reference value. The purpose of selecting the minimum value in the hardware timecode is to simplify the calculations and to get better results. At this time, all cameras only need to lengthen the length of the current frame or the next frame image.
在计算出相机的帧补偿值之后,多相机系统中的相机便可根据该帧补偿值相应调整当前帧或下一帧图像的长度,使得在相机在采集下帧或下下帧图像时可以实现同步曝光。After calculating the frame compensation value of the camera, the camera in the multi-camera system can adjust the length of the current frame or the next frame image according to the frame compensation value, so that the camera can realize when acquiring the lower frame or the lower frame image. Synchronous exposure.
应理解,在上述实施例中,各步骤的序号的大小并不意味着执行顺序的先后,各步骤的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in the above embodiments, the size of the serial number of each step does not mean the order of execution sequence, and the order of execution of each step should be determined by its function and internal logic, and should not constitute any implementation process of the embodiment of the present invention. limited.
上述图1至图9对应用于多相机系统的同步曝光方法进行了详细的描述,下面将结合附图,对应用上述同步曝光方法的装置、终端设备以及计算机可读存储介质进行详细描述。为避免赘述,上文中已经描述的术语在下文中可能不再做重复说明。1 to 9 above are described in detail corresponding to the synchronous exposure method for a multi-camera system, and the apparatus, the terminal device, and the computer-readable storage medium to which the above-described synchronous exposure method is applied will be described in detail below with reference to the accompanying drawings. To avoid redundancy, the terms already described above may not be repeatedly described below.
请参见图10,图10是本发明提供的同步曝光装置1000的结构框图,为了便于说明,仅示出与本发明实施例相关的部分。该同步曝光装置1000作为一个外接于多相机系统的控制装置可以是内置于终端设备内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述终端设备中。该同步曝光装置1000还可以是内置于主相机内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述主相机中。该同步曝光装置1000包括:Referring to FIG. 10, FIG. 10 is a structural block diagram of a synchronous exposure apparatus 1000 according to the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown. The synchronous exposure device 1000 as a control device external to the multi-camera system may be a software unit, a hardware unit or a combination of soft and hard units built in the terminal device, or may be integrated into the terminal device as a separate pendant. The synchronous exposure apparatus 1000 may also be a software unit, a hardware unit, or a combination of soft and hard units built in the main camera, or may be integrated into the main camera as a separate pendant. The synchronous exposure apparatus 1000 includes:
同步模块1001,用于调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光;a synchronization module 1001, configured to adjust a camera in the multi-camera system to cause simultaneous exposure when all cameras in the multi-camera system acquire images;
关联模块1002,用于获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。The association module 1002 is configured to acquire synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, so that the images to be synchronized of each camera have the same synchronization identification information. The image to be synchronized of each camera is an image respectively acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
可选的,所述同步标识信息包括图像帧号。Optionally, the synchronization identifier information includes an image frame number.
所述关联模块1002包括:The association module 1002 includes:
帧号获取单元,用于获取所述多相机系统中的任意一个相机待同步图像的图像帧号,并将所述图像帧号作为所述同步标识信息;a frame number obtaining unit, configured to acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information;
发送单元,用于将所述待同步图像的图像帧号发送至所述多相机系统中相应的相机,以便于所述多相机系统中的相机根据接收到的所述图像帧号调整待同步图像的图像帧号。a sending unit, configured to send an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that a camera in the multi-camera system adjusts an image to be synchronized according to the received image frame number Image frame number.
可选的,所述装置还包括:Optionally, the device further includes:
同步子序列生成模块,用于根据所述同步标识信息生成同步标识子序列信息,以便于所述多相机系统中的每个相机将所述同步标识子序列信息依次与待同步图像之后的图像序列关联使得待同步图像之后的图像序列依次具有相同的同步标识子序列信息。a synchronization subsequence generation module, configured to generate synchronization identifier subsequence information according to the synchronization identification information, so that each camera in the multi camera system sequentially sequentially synchronizes the synchronization identifier subsequence information with an image sequence after the image to be synchronized The association causes the sequence of images following the image to be synchronized to have the same synchronization identification subsequence information in sequence.
可选的,所述同步模块包括:Optionally, the synchronization module includes:
选取单元,用于选取所述多相机系统中的其中一个相机作为主相机,所述主相机之外的相机作为从相机;a selecting unit, configured to select one of the cameras in the multi-camera system as a main camera, and the camera other than the main camera as a slave camera;
获取单元,用于获取所述主相机与所述从相机曝光时间的差值;An acquiring unit, configured to acquire a difference between an exposure time of the main camera and the slave camera;
调整单元,用于根据所述主相机与所述从相机曝光时间的差值调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光。And an adjusting unit, configured to adjust a camera in the multi-camera system according to a difference between the main camera and the slave camera exposure time such that all cameras in the multi-camera system acquire images synchronously.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上集成在一个单元或者模块中,上述集成的单元或模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置中模块的具体工作过程,可以参考前述方法实施例的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional units and modules as needed. That is, the internal structure of the device is divided into different functional units or modules to perform all or part of the functions described above. Each functional module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit or module, and the integrated unit or module may adopt hardware. The form is implemented in the form of a software functional unit. In addition, the specific names of the respective functional modules are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application. For the specific working process of the module in the foregoing device, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
图11是本发明一实施例提供的终端设备的示意框图。该终端设备还可以是多相机系统中的一个相机。如图11所示,该实施例的终端设备11包括:一个或多个处理器110、存储器111以及存储在所述存储器111中并可在所述处理器110上运行的计算机程序112。所述处理器110执行所述计算机程序112时实现上述各个同步曝光方法实施例中的步骤,例如图1所示的步骤S101至S102。或者,所述处理器110执行所述计算机程序112时实现上述同步曝光装置实施例中各模块/单元的功能,例如图10所示模块1001至1002的功能。FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present invention. The terminal device can also be a camera in a multi-camera system. As shown in FIG. 11, the terminal device 11 of this embodiment includes: one or more processors 110, a memory 111, and a computer program 112 stored in the memory 111 and operable on the processor 110. When the processor 110 executes the computer program 112, the steps in the above embodiments of the respective synchronous exposure methods are implemented, such as steps S101 to S102 shown in FIG. Alternatively, the processor 110 implements the functions of the modules/units in the embodiment of the synchronous exposure apparatus when the computer program 112 is executed, such as the functions of the modules 1001 to 1002 shown in FIG.
示例性的,所述计算机程序112可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器111中,并由所述处理器110执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序112在所述终端设备11中的执行过程。例如,所述计算机程序112可以被分割成同步模块、关联模块。Illustratively, the computer program 112 can be partitioned into one or more modules/units that are stored in the memory 111 and executed by the processor 110 to complete this invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 112 in the terminal device 11. For example, the computer program 112 can be partitioned into a synchronization module, an association module.
同步模块,用于调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光;a synchronization module for adjusting a camera in the multi-camera system to cause simultaneous exposure of all cameras in the multi-camera system when acquiring images;
关联模块,用于获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。An association module, configured to acquire synchronization identification information, so that the synchronization identification information is associated with an image to be synchronized of each camera in the multi-camera system, such that images to be synchronized of each camera have the same synchronization identification information, The image to be synchronized of each camera is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
可选的,所述同步标识信息包括图像帧号。Optionally, the synchronization identifier information includes an image frame number.
所述关联模块包括:The association module includes:
帧号获取单元,用于获取所述多相机系统中的任意一个相机待同步图像的图像帧号,并将所述图像帧号作为所述同步标识信息;a frame number obtaining unit, configured to acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information;
发送单元,将所述待同步图像的图像帧号发送至所述多相机系统中相应的相机,以便于所述多相机系统中的相机根据接收到的所述图像帧号调整待同步图像的图像帧号。a sending unit, sending an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that the camera in the multi-camera system adjusts an image of the image to be synchronized according to the received image frame number Frame number.
可选的,还包括:Optionally, it also includes:
同步子序列生成模块,用于根据所述同步标识信息生成同步标识子序列信息,以便于所述多相机系统中的每个相机将所述同步标识子序列信息依次与待同步图像之后的图像序列关联使得待同步图像之后的图像序列依次具有相同的同步标识子序列信息。a synchronization subsequence generation module, configured to generate synchronization identifier subsequence information according to the synchronization identification information, so that each camera in the multi camera system sequentially sequentially synchronizes the synchronization identifier subsequence information with an image sequence after the image to be synchronized The association causes the sequence of images following the image to be synchronized to have the same synchronization identification subsequence information in sequence.
可选的,所述同步模块,具体包括:Optionally, the synchronization module specifically includes:
选取单元,用于选取所述多相机系统中的其中一个相机作为主相机,所述主相机之外的相机作为从相机;a selecting unit, configured to select one of the cameras in the multi-camera system as a main camera, and the camera other than the main camera as a slave camera;
获取单元,用于获取所述主相机与所述从相机曝光时间的差值;An acquiring unit, configured to acquire a difference between an exposure time of the main camera and the slave camera;
调整单元,用于根据所述主相机与所述从相机曝光时间的差值调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光。And an adjusting unit, configured to adjust a camera in the multi-camera system according to a difference between the main camera and the slave camera exposure time such that all cameras in the multi-camera system acquire images synchronously.
所述终端设备包括但不仅限于处理器110、存储器111。本领域技术人员可以理解,图11仅仅是终端设备11的示例,并不构成对终端设备11的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入设备、输出设备、网络接入设备、总线等。The terminal device includes but is not limited to the processor 110 and the memory 111. It will be understood by those skilled in the art that FIG. 11 is only an example of the terminal device 11, and does not constitute a limitation of the terminal device 11, and may include more or less components than those illustrated, or combine some components or different components. For example, the terminal device may further include an input device, an output device, a network access device, a bus, and the like.
所述存储器111,用于存储软件程序、模块、单元以及终端设备中需要的数据信息,所述处理器110通过运行存储在所述存储器111的软件程序、模块以及单元,从而执行各种功能应用以及数据处理。该存储器111可以包括只读存储器和随机存取存储器,并向处理器 110 提供指令和数据。存储器 111的一部分还可以包括非易失性随机存取存储器。例如,存储器111还可以存储设备类型的信息。The memory 111 is configured to store software programs, modules, units, and data information required in the terminal device, and the processor 110 executes various functional applications by running software programs, modules, and units stored in the memory 111. And data processing. The memory 111 can include read only memory and random access memory and provides instructions and data to the processor 110. A portion of the memory 111 may also include a non-volatile random access memory. For example, the memory 111 can also store information of a device type.
所述处理器110可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。所述处理器是所述终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分。The processor 110 can be a central processing unit (Central Processing Unit (CPU), which can also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits (Application). Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The processor is a control center of the terminal device, and connects various parts of the entire terminal device by using various interfaces and lines.
具体实现中,本发明实施例中所描述的处理器110和存储器111可执行本发明实施例提供的同步曝光方法的实施例中所描述的实现方式,也可执行同步曝光装置的实施例中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 110 and the memory 111 described in the embodiments of the present invention may implement the implementation manner described in the embodiment of the synchronous exposure method provided by the embodiment of the present invention, and may also be implemented in the embodiment of the synchronous exposure apparatus. The implementation of the description will not be described here.
另外,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现本发明实施例提供的同步曝光方法的步骤。In addition, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the synchronization provided by the embodiment of the present invention is implemented. The steps of the exposure method.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的方法、装置以及终端设备,可以通过其它的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed method, apparatus, and terminal device may be implemented in other manners. For example, the embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. The medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), and a random access memory (RAM, Random Access). A variety of media that can store program code, such as a memory, a disk, or an optical disk.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例各实施例技术方案的精神和范围。The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (10)

  1. 一种同步曝光方法,应用于多相机系统,其特征在于,包括:A synchronous exposure method for a multi-camera system, comprising:
    调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光;Adjusting an exposure time of a camera in the multi-camera system such that all cameras in the multi-camera system acquire images synchronously;
    获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。Acquiring synchronization identification information, so that the synchronization identification information is associated with the image to be synchronized of each camera in the multi-camera system, such that the images to be synchronized of each camera have the same synchronization identification information, and each camera is to be The synchronized image is an image acquired by each camera separately when all cameras in the multi-camera system are simultaneously exposed.
  2. 根据权利要求1所述的方法,其特征在于,所述同步标识信息包括图像帧号。The method of claim 1 wherein said synchronization identification information comprises an image frame number.
  3. 根据权利要求2所述的方法,其特征在于,所述获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,包括:The method according to claim 2, wherein the acquiring the synchronization identification information to facilitate the association of the synchronization identification information with the image to be synchronized of each camera in the multi-camera system comprises:
    获取所述多相机系统中的任意一个相机待同步图像的图像帧号,并将所述图像帧号作为所述同步标识信息;Obtaining an image frame number of an image of any one of the plurality of camera systems to be synchronized, and using the image frame number as the synchronization identification information;
    将所述待同步图像的图像帧号发送至所述多相机系统中相应的相机,以便于所述多相机系统中的相机根据接收到的所述图像帧号调整待同步图像的图像帧号。And transmitting an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that the camera in the multi-camera system adjusts an image frame number of the image to be synchronized according to the received image frame number.
  4. 根据权利要求1所述的方法,其特征在于,所述调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光,包括:The method of claim 1 wherein said adjusting said camera in said multi-camera system causes simultaneous synchronization of all cameras in said multi-camera system when acquiring images comprises:
    选取所述多相机系统中的其中一个相机作为主相机,所述主相机之外的相机作为从相机;Selecting one of the multi-camera systems as a main camera, the camera other than the main camera as a slave camera;
    获取所述主相机与所述从相机曝光时间的差值;Obtaining a difference between an exposure time of the main camera and the slave camera;
    根据所述主相机与所述从相机曝光时间的差值调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光。Adjusting the camera in the multi-camera system according to a difference between the primary camera and the slave camera exposure time causes simultaneous synchronization of all cameras in the multi-camera system when acquiring images.
  5. 根据权利要求1所述的方法,其特征在于,所述获取同步标识信息之后,所述方法还包括:The method according to claim 1, wherein after the obtaining the synchronization identification information, the method further comprises:
    根据所述同步标识信息生成同步标识子序列信息,以便于所述多相机系统中的每个相机将所述同步标识子序列信息依次与待同步图像之后的图像序列关联使得待同步图像之后的图像序列依次具有相同的同步标识子序列信息。Generating synchronization identification subsequence information according to the synchronization identification information, so that each camera in the multi-camera system sequentially associates the synchronization identification sub-sequence information with an image sequence after the image to be synchronized such that the image after the image to be synchronized The sequences in turn have the same synchronization identification subsequence information.
  6. 一种同步曝光装置,应用于多相机系统,其特征在于,包括:A synchronous exposure device for use in a multi-camera system, comprising:
    同步模块,用于调整所述多相机系统中的相机的曝光时间,使得所述多相机系统中的所有相机采集图像时同步曝光;a synchronization module, configured to adjust an exposure time of the camera in the multi-camera system, such that all cameras in the multi-camera system simultaneously perform exposure when acquiring images;
    关联模块,用于获取同步标识信息,以便于所述同步标识信息与所述多相机系统中每个相机的待同步图像关联,使得每个相机的待同步图像具有相同的同步标识信息,所述每个相机的待同步图像为所述多相机系统中所有相机同步曝光时每个相机分别采集的图像。An association module, configured to acquire synchronization identification information, so that the synchronization identification information is associated with an image to be synchronized of each camera in the multi-camera system, such that images to be synchronized of each camera have the same synchronization identification information, The image to be synchronized of each camera is an image separately acquired by each camera when all the cameras in the multi-camera system are simultaneously exposed.
  7. 根据权利要求6所述的装置,其特征在于,所述同步标识信息包括图像帧号;The apparatus according to claim 6, wherein said synchronization identification information comprises an image frame number;
    所述关联模块包括:The association module includes:
    帧号获取单元,用于获取所述多相机系统中的任意一个相机待同步图像的图像帧号,并将所述图像帧号作为所述同步标识信息;a frame number obtaining unit, configured to acquire an image frame number of an image of any one of the cameras to be synchronized in the multi-camera system, and use the image frame number as the synchronization identification information;
    发送单元,用于将所述待同步图像的图像帧号发送至所述多相机系统中相应的相机,以便于所述多相机系统中的相机根据接收到的所述图像帧号调整待同步图像的图像帧号。a sending unit, configured to send an image frame number of the image to be synchronized to a corresponding camera in the multi-camera system, so that a camera in the multi-camera system adjusts an image to be synchronized according to the received image frame number Image frame number.
  8. 根据权利要求6所述的装置,其特征在于,所述同步模块,具体包括:The device according to claim 6, wherein the synchronization module specifically includes:
    选取单元,用于选取所述多相机系统中的其中一个相机作为主相机,所述主相机之外的相机作为从相机;a selecting unit, configured to select one of the cameras in the multi-camera system as a main camera, and the camera other than the main camera as a slave camera;
    获取单元,用于获取所述主相机与所述从相机曝光时间的差值;An acquiring unit, configured to acquire a difference between an exposure time of the main camera and the slave camera;
    调整单元,用于根据所述主相机与所述从相机曝光时间的差值调整所述多相机系统中的相机使得所述多相机系统中的所有相机采集图像时同步曝光。And an adjusting unit, configured to adjust a camera in the multi-camera system according to a difference between the main camera and the slave camera exposure time such that all cameras in the multi-camera system acquire images synchronously.
  9. 一种终端设备,应用于多相机系统,其特征在于,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至5中任一项所述的方法的步骤。A terminal device for use in a multi-camera system, characterized in that the terminal device comprises a memory, a processor, and a computer program stored in the memory and operable on the processor, the processor executing the The steps of the method of any one of claims 1 to 5 are carried out when the computer program is described.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述方法的步骤。A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 5.
PCT/CN2018/090743 2017-06-12 2018-06-12 Synchronous exposure method and apparatus and terminal device WO2018228352A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710439193.4A CN107231533B (en) 2017-06-12 2017-06-12 synchronous exposure method and device and terminal equipment
CN201710439193.4 2017-06-12

Publications (1)

Publication Number Publication Date
WO2018228352A1 true WO2018228352A1 (en) 2018-12-20

Family

ID=59936487

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090743 WO2018228352A1 (en) 2017-06-12 2018-06-12 Synchronous exposure method and apparatus and terminal device

Country Status (2)

Country Link
CN (1) CN107231533B (en)
WO (1) WO2018228352A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489880A (en) * 2021-07-29 2021-10-08 Oppo广东移动通信有限公司 Electronic device, information synchronization method, and computer-readable storage medium
CN114071022A (en) * 2020-08-07 2022-02-18 北京图森未来科技有限公司 Control method, device and equipment of image acquisition equipment and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231533B (en) * 2017-06-12 2019-12-13 深圳市瑞立视多媒体科技有限公司 synchronous exposure method and device and terminal equipment
CN110248111B (en) * 2018-04-28 2020-08-28 Oppo广东移动通信有限公司 Method and device for controlling shooting, electronic equipment and computer-readable storage medium
CN110971836B (en) * 2018-04-28 2021-07-09 Oppo广东移动通信有限公司 Method and device for controlling shooting, electronic equipment and computer-readable storage medium
CN110740251B (en) * 2018-07-20 2021-09-24 杭州海康机器人技术有限公司 Multi-camera synchronous stream taking method, device and system
CN109729277B (en) * 2018-11-19 2021-10-01 魔门塔(苏州)科技有限公司 Multi-sensor acquisition timestamp synchronization device
CN110139041B (en) * 2018-11-19 2021-09-28 魔门塔(苏州)科技有限公司 Remote multi-sensing signal synchronous acquisition method
CN110319815B (en) * 2019-05-17 2022-09-30 中国航空工业集团公司洛阳电光设备研究所 Multi-camera synchronous exposure system and method based on annular connection structure
CN114371722B (en) * 2021-12-03 2024-05-10 深圳供电局有限公司 Data acquisition method, device, unmanned aerial vehicle and storage medium
CN115442520A (en) * 2022-08-05 2022-12-06 珠海普罗米修斯视觉技术有限公司 Image shooting method, image processing method and shooting system
CN116366780B (en) * 2023-04-10 2024-04-02 小米汽车科技有限公司 Frame sequence number determining method and device for frame synchronization and vehicle

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600576A (en) * 1994-03-11 1997-02-04 Northrop Grumman Corporation Time stress measurement device
CN101562706A (en) * 2009-05-22 2009-10-21 杭州华三通信技术有限公司 Method for splicing images and equipment thereof
CN102637120A (en) * 2012-03-29 2012-08-15 重庆海康威视科技有限公司 System and method for controlling synchronous display of spliced screens
CN104168466A (en) * 2014-08-22 2014-11-26 广东威创视讯科技股份有限公司 Multi-screen video synchronous playing method and device
CN104270567A (en) * 2014-09-11 2015-01-07 深圳市南航电子工业有限公司 High-precision synchronous multi-channel image acquisition system and time synchronization method thereof
CN105208245A (en) * 2015-10-19 2015-12-30 擎亚国际贸易(上海)有限公司 Video-content-based multi-channel video synchronization method and device
CN106027886A (en) * 2016-05-17 2016-10-12 深圳市极酷威视科技有限公司 Method and system for implementing synchronous frames of panoramic video
CN107231533A (en) * 2017-06-12 2017-10-03 深圳市瑞立视多媒体科技有限公司 A kind of synchronous exposure method, device and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6060953B2 (en) * 2014-09-24 2017-01-18 カシオ計算機株式会社 Synchronous shooting system, operation terminal, synchronous shooting method and program
JP6241467B2 (en) * 2015-09-11 2017-12-06 カシオ計算機株式会社 Imaging apparatus, imaging control apparatus, imaging method, imaging control method, and program
CN105979159B (en) * 2016-07-21 2019-01-25 上海小蚁科技有限公司 The synchronous method and synchronization system of equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600576A (en) * 1994-03-11 1997-02-04 Northrop Grumman Corporation Time stress measurement device
CN101562706A (en) * 2009-05-22 2009-10-21 杭州华三通信技术有限公司 Method for splicing images and equipment thereof
CN102637120A (en) * 2012-03-29 2012-08-15 重庆海康威视科技有限公司 System and method for controlling synchronous display of spliced screens
CN104168466A (en) * 2014-08-22 2014-11-26 广东威创视讯科技股份有限公司 Multi-screen video synchronous playing method and device
CN104270567A (en) * 2014-09-11 2015-01-07 深圳市南航电子工业有限公司 High-precision synchronous multi-channel image acquisition system and time synchronization method thereof
CN105208245A (en) * 2015-10-19 2015-12-30 擎亚国际贸易(上海)有限公司 Video-content-based multi-channel video synchronization method and device
CN106027886A (en) * 2016-05-17 2016-10-12 深圳市极酷威视科技有限公司 Method and system for implementing synchronous frames of panoramic video
CN107231533A (en) * 2017-06-12 2017-10-03 深圳市瑞立视多媒体科技有限公司 A kind of synchronous exposure method, device and terminal device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071022A (en) * 2020-08-07 2022-02-18 北京图森未来科技有限公司 Control method, device and equipment of image acquisition equipment and storage medium
US11706533B2 (en) 2020-08-07 2023-07-18 Beijing Tusen Weilai Technology Co., Ltd. Control method for image acquisition device, control device therefor, and storage medium
CN114071022B (en) * 2020-08-07 2023-12-15 北京图森未来科技有限公司 Control method, device and equipment of image acquisition equipment and storage medium
CN113489880A (en) * 2021-07-29 2021-10-08 Oppo广东移动通信有限公司 Electronic device, information synchronization method, and computer-readable storage medium
CN113489880B (en) * 2021-07-29 2024-05-28 Oppo广东移动通信有限公司 Electronic device, information synchronization method, and computer-readable storage medium

Also Published As

Publication number Publication date
CN107231533B (en) 2019-12-13
CN107231533A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
WO2018228352A1 (en) Synchronous exposure method and apparatus and terminal device
CN107277385B (en) Multi-camera system synchronous exposure control method and device and terminal equipment
CN109104259B (en) Multi-sensor time synchronization system and method
CN107439000B (en) Synchronous exposure method and device and terminal equipment
KR101389789B1 (en) Image pickup apparatus, image pickup system, image pickup method and computer readable non-transitory recording medium
US9813783B2 (en) Multi-camera dataset assembly and management with high precision timestamp requirements
CN108923876A (en) Method for synchronizing time, apparatus and system
CN107948463B (en) Camera synchronization method, device and system
JP2019087791A (en) Information processing apparatus, information processing method, and program
WO2017078810A1 (en) Synchronization image data captured from a camera array with non-image data
US9661191B2 (en) Image capture apparatus having function of generating frame synchronization signal at constant cycle
CN109391799B (en) Monitoring video synchronization method and device and video acquisition equipment
Ansari et al. Wireless software synchronization of multiple distributed cameras
WO2020125643A1 (en) Frame synchronization method and apparatus
CN116156074A (en) Multi-camera acquisition time synchronization method
US9807282B2 (en) Synchronous camera
CN107455006B (en) Synchronous exposure method and device and terminal equipment
WO2024060763A1 (en) Wireless smart wearable device and image acquisition method thereof
CN111102689A (en) Method and device for adjusting clock synchronization
JP2006250638A (en) Video camera provided with clock synchronization function
CN117336419A (en) Shooting method, shooting device, electronic equipment and readable storage medium
JP2022096504A (en) Communication device, method for controlling communication device, and program
US20240204980A1 (en) Synchronous communication apparatus, control method of the same and storage medium
TW202407643A (en) Frame alignment method and system capable of enabling a plurality of high-speed image capturing devices to capture images synchronously according to a pulse signal per second
WO2019010626A1 (en) Capturing method and terminal

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: 18817551

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: 18817551

Country of ref document: EP

Kind code of ref document: A1