A multi-camera synchronous image acquisition card and its application method in image acquisition
By designing a multi-camera synchronous image acquisition card and using a high-precision timer module to generate a high-precision clock signal, the problem of low trigger synchronization accuracy in multi-camera applications is solved, efficient synchronization control of multiple cameras is achieved, and the quality of image acquisition and application are improved. efficiency.
Patent Information
- Application Number
- CN202410321688.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-20
AI Technical Summary
Existing ordinary image capture cards cannot achieve high-precision trigger synchronization operations in multi-camera applications, resulting in large deviations in the trigger signals received by the cameras and poor image quality, which limits the efficiency and effect of multi-camera trigger synchronization applications.
A multi-camera synchronous image acquisition card is designed, which includes a host connection interface, a hardware trigger interface, a capture card serial connection interface, a host communication transmission module, a trigger synchronization control module and a high-precision timer module. Through these modules, the control of multiple cameras is realized. Synchronous control, generating high-precision clock signals to ensure the accuracy of trigger synchronization.
The high-precision timer module inside the capture card generates a high-precision clock signal to achieve synchronous trigger control of multiple cameras. The synchronization accuracy reaches within 1us, which reduces the complexity of synchronization control and post-image processing work on the host software side, and improves the efficiency of multi-camera triggering. Synchronous effect.
Smart Images

Figure CN117939031B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision, and in particular to a multi-camera synchronous image acquisition card and an application method thereof in image acquisition. Background Art
[0002] With the development of engineering technology, the application of industrial cameras is also expanding. In order to improve the performance of industrial cameras, image acquisition cards are one of the most commonly used auxiliary devices. At present, the function of ordinary image acquisition cards is mainly to realize the communication control and image acquisition between the host software and the camera. Although they can also support the issuance of trigger commands to the camera so that the camera can perform the corresponding trigger operation, when facing the working conditions of multi-camera applications, when very precise multi-camera trigger synchronization operations are required, the existing ordinary image acquisition cards can only forward the trigger commands issued by the host software to different cameras, and rely entirely on the host software for synchronization control. Limited by factors such as the response speed of the computer host and the system task scheduling, the synchronous control process of the host software for multiple cameras is complicated and the trigger synchronization accuracy is not high, making it impossible for the multi-camera trigger synchronization work to achieve the ideal effect. The deviation and jitter of the trigger signal received by the camera end are too large, resulting in poor images taken by multiple cameras according to the trigger signal of the software end, and the effect of multi-camera synchronization work is deteriorated. In order to improve the image quality, more back-end image effect processing work is brought, which limits the further development of multi-camera trigger synchronization applications and reduces the efficiency of multi-camera trigger synchronization applications. Summary of the invention
[0003] The purpose of the present invention is to solve the above-mentioned related problems and design a multi-camera synchronous image acquisition card and its application method in image acquisition. To achieve the above-mentioned purpose, the present invention provides the following solutions:
[0004] A capture card for controlling synchronous image acquisition of multiple cameras, characterized in that it comprises: a host connection interface, a hardware trigger interface, a capture card serial connection port, a host communication transmission module, a capture card control module, a trigger synchronization control module, a camera communication transmission module, a high-precision timer module and a camera interface;
[0005] A host connection interface is used to communicate with a computer host; a hardware trigger interface is used to receive a trigger signal sent by an external hardware device; an acquisition card serial connection interface is used to exchange data with a second acquisition card for controlling synchronous image acquisition of multiple cameras, receive a synchronization trigger signal from the second acquisition card for controlling synchronous image acquisition of multiple cameras, or send a synchronization trigger signal to the second acquisition card for controlling synchronous image acquisition of multiple cameras; a host communication transmission module is used to communicate and transmit with the computer host and the camera, and the data exchange between the computer host and the host communication transmission module is exchanged through the host connection interface; an acquisition card control module is used to exchange data with the host communication module, the camera communication transmission module and the trigger synchronization control module, and receive and process the computer host a trigger synchronization control module, which is used to exchange data with the acquisition card control module, the hardware trigger interface, the acquisition card serial port and the high-precision timer module, and issue a synchronization trigger command according to the trigger signal requirement to make multiple cameras work synchronously; a camera communication transmission module, which is used to exchange data with one or more cameras, issue a synchronization trigger command to one or more cameras and receive data collected by the cameras; a high-precision timer module, which is used to generate a high-precision clock signal. The trigger synchronization control module receives the clock signal issued by the high-precision timer module according to the trigger synchronization time required by the trigger signal, and issues a synchronization trigger command according to the required trigger synchronization time and sends it to the acquisition card control module.
[0006] As a further improvement of the present technical solution, the hardware trigger interface is an access port for an external hardware device, and the external hardware includes an encoder and automation equipment. After the external hardware generates a camera trigger signal, the trigger signal is transmitted to the acquisition card for controlling synchronous image acquisition of multiple cameras through the hardware trigger interface.
[0007] As a further improvement of the present technical solution, the acquisition card control module receives the trigger signal sent by the computer host through the host communication transmission module, the acquisition card control module sends the trigger signal to the trigger synchronization control module, the trigger synchronization control module generates a synchronization trigger command according to the trigger signal, and sends the synchronization trigger command to the acquisition card control module, the acquisition card control module transmits the synchronization trigger command to the camera communication transmission module, and the camera communication transmission module sends the synchronization trigger command to the camera.
[0008] As a further improvement of the technical solution, after multiple acquisition cards are connected to each other, synchronous image control of multiple cameras is performed, wherein one acquisition card is connected to the host or external hardware, and other acquisition cards are connected to the acquisition card connected to the host or external hardware through the acquisition card serial interface; the acquisition card connected to the host or external hardware for controlling synchronous image acquisition of multiple cameras receives a trigger signal from the host connection interface or the hardware trigger interface; the acquisition card connected to the host or external hardware for controlling synchronous image acquisition of multiple cameras sends the trigger signal to the other acquisition cards through the serial interface; the other acquisition cards receive the trigger signal through the serial interface.
[0009] A multi-camera triggered synchronous image acquisition method, using the acquisition card for controlling multi-camera synchronous image acquisition, comprises the following steps:
[0010] S1, receiving the trigger signal transmitted by the computer host connection interface or the hardware trigger interface;
[0011] S2, issuing a synchronous trigger command, and transmitting the trigger signal to other acquisition cards via the acquisition card serial connection port;
[0012] S3, transmitting the synchronization trigger command to the camera through data exchange between the acquisition card control module and the camera communication transmission module;
[0013] S4, after receiving the synchronous trigger command, one or more cameras collect images;
[0014] S5. After one or more cameras acquire image information, the acquired image information is fed back to the computer host via an acquisition card used to control synchronous image acquisition of multiple cameras.
[0015] As a further improvement of the technical solution, there are two ways to generate the trigger signal:
[0016] Computer host triggering mode: the computer host generates the trigger signal and transmits it to the acquisition card for controlling multi-camera synchronous image acquisition through the host connection interface of the acquisition card for controlling multi-camera synchronous image acquisition;
[0017] Hardware triggering mode: the trigger signal is generated by external hardware and transmitted to the acquisition card for controlling synchronous image acquisition of multiple cameras through the hardware triggering interface of the acquisition card for controlling synchronous image acquisition of multiple cameras.
[0018] As a further improvement of the technical solution, the specific steps of issuing a synchronous trigger command and transmitting the trigger signal to other acquisition cards via the serial port of the acquisition card are as follows: after multiple acquisition cards are connected to each other, when synchronous image control is performed on multiple cameras, one acquisition card is a main acquisition card for controlling synchronous image acquisition of multiple cameras, and the remaining one or more acquisition cards are slave acquisition cards for controlling synchronous image acquisition of multiple cameras; the main acquisition card for controlling synchronous image acquisition of multiple cameras transmits the trigger synchronization signal to the serial port of the acquisition card for controlling synchronous image acquisition of multiple cameras via the serial port of the acquisition card for controlling synchronous image acquisition of multiple cameras through data interaction; the acquisition card control module and the camera communication transmission module exchange data to transmit the synchronous trigger command to the camera.
[0019] As a further improvement of the present technical solution, the specific steps of transmitting the synchronous trigger command to the camera through data interaction between the acquisition card control module and the camera communication transmission module are as follows: after receiving the trigger signal, the trigger synchronization control module receives the clock signal issued by the high-precision timer module, triggers the synchronization control module to record the time with the clock signal, issues a synchronous trigger command according to the trigger synchronization time required by the trigger signal, and sends the synchronous trigger command to the control module of the acquisition card for controlling synchronous image acquisition of multiple cameras, the control module of the acquisition card for controlling synchronous image acquisition of multiple cameras sends the synchronous trigger command to the camera communication transmission module of the acquisition card for controlling synchronous image acquisition of multiple cameras, and the camera communication transmission module of the acquisition card for controlling synchronous image acquisition of multiple cameras sends the synchronous trigger command to the camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
[0021] Figure 1 This is a structural diagram of an acquisition card for controlling synchronous image acquisition of multiple cameras according to the present invention;
[0022] Figure 2 A schematic diagram of a multi-camera triggered synchronous image acquisition method according to the present invention;
[0023] Figure 3 A wiring diagram of an acquisition card for a multi-camera triggered synchronous image acquisition method of the present invention;
[0024] Figure 4 A synchronous trigger command waveform diagram of a multi-camera triggered synchronous image acquisition method of the present invention;
[0025] Figure 5 It is a wiring diagram of an acquisition card of another multi-camera triggered synchronous image acquisition method of the present invention;
[0026] Figure 6 Another synchronous trigger command waveform diagram of a multi-camera triggered synchronous image acquisition method of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0028] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0029] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0030] Example 1
[0031] like Figure 1 As shown, an acquisition card based on FPGA for controlling multi-camera synchronous image acquisition is composed of S01 host connection interface, S02 hardware trigger interface, S03 acquisition card serial connection port, S04 host communication transmission module, S05 acquisition card control module, S06 trigger synchronization control module, S07 camera communication transmission module, S08 high-precision timer module and S09 camera interface.
[0032] The acquisition card used to control the synchronous image acquisition of multiple cameras in this solution is connected to the computer host through the S01 host connection interface to realize the physical connection between the computer host and the acquisition card. This solution uses the PCIe bus interface. Similar solutions can also use interfaces such as USB, Thunderbolt, RJ45, etc. that the computer host has; the S02 hardware trigger interface can be connected to the hardware encoder or automation equipment control system through a cable to receive external hardware trigger input; when expanding the serial connection of multiple acquisition cards, the S03 acquisition card serial port uses a flat cable to connect multiple acquisition cards in series to expand the trigger synchronization application of more cameras; the S04 host communication transmission module is used to establish a communication control and data transmission link between the acquisition card and the host, receive the communication control command sent by the host to the acquisition card, and feedback the execution status of the control command of the acquisition card to the host software, and transmit the image data received from the camera end to the host software end for processing; the S05 acquisition card control module realizes the host communication transmission module, trigger synchronization module, and camera communication transmission module inside the acquisition card by receiving and processing the control command sent by the host software. The S06 trigger synchronization control module controls the modules such as the trigger command sent by the host software, the trigger signal input from the hardware trigger interface or the acquisition card serial port, and sends the synchronization trigger command to the corresponding camera according to the required timing according to the configured trigger synchronization mode using the high-precision clock signal generated by the timer module to realize the multi-camera trigger synchronization control function; the S07 camera communication transmission module is used to realize the communication control with the camera, collect the image data transmitted to the acquisition card by the receiving camera, and finally send it to the host software through the host communication transmission interface module; the S08 high-precision timer module generates a high-precision clock signal for use by the trigger synchronization control module, so that the trigger synchronization control module can accurately send the synchronization trigger command to the corresponding camera according to the timing requirements; the S09 camera interface is the physical connection interface between the acquisition card and the camera. This solution uses an optical fiber connection interface to establish a physical connection between the acquisition card and the camera through an optical fiber connection to realize the communication and data interaction between the acquisition card and the camera. Similar implementation methods can also be replaced by interfaces such as CoaXPress, Camera Link or Gigabit Ethernet port.
[0033] Example 2
[0034] like Figure 2 As shown in the figure, the capture card receives the trigger signal transmitted by the host connection interface and the hardware trigger interface. The host connection interface can use PCIe, USB, Thunderbolt, RJ45 and other interfaces. You can choose to send a trigger signal from the computer host to the capture card, or you can send a trigger signal from the hardware trigger interface to the capture card.
[0035] The acquisition card sends out a synchronous trigger command, and transmits the trigger signal to other acquisition cards through the serial port of the acquisition card; the acquisition card that receives the transmission from the host connection interface and the hardware trigger interface is the master acquisition card, and the other one or more acquisition cards are slave acquisition cards. The master acquisition card is connected to each slave acquisition card through the serial port of the acquisition card, and the acquisition card receives the synchronous trigger command and transmits it to the slave acquisition card through the serial port of the master acquisition card. This step will not be performed when there is only one master acquisition card and no slave acquisition card.
[0036] The acquisition card control module and the camera communication transmission module perform data interaction to transmit the synchronization trigger command to the camera; the acquisition card control module sends the synchronization trigger command generated by the acquisition card to each camera through the camera communication transmission module.
[0037] After receiving the synchronous trigger command, one or more cameras connected to the acquisition card acquire images.
[0038] After one or more cameras capture image information, the captured image information is fed back to the computer host via a capture card used to control the synchronous image capture of multiple cameras.
[0039] Example 3
[0040] like Figure 3 As shown in the figure, a capture card receives the trigger signal transmitted by the host. The capture card is connected to multiple cameras. The waveform of the trigger signal is as follows Figure 4 As shown. The host computer sends a trigger signal to the acquisition card. The synchronization signal requires each camera to be triggered at T1 time after the acquisition card receives the trigger signal. The acquisition card sends a synchronous trigger command to each camera to trigger simultaneously after T1 time of receiving the trigger signal. Each camera is triggered synchronously at this point in time, that is, all cameras synchronously output the trigger command, capture the image, and then send the image information to the host computer.
[0041] Example 4
[0042] like Figure 5 As shown in the figure, a master acquisition card receives the trigger signal transmitted by the host, and multiple slave acquisition cards receive the trigger signal from the master acquisition card. The waveform of the trigger signal is as follows Figure 6 As shown. The host computer sends a trigger signal to the acquisition card. The trigger time requirements of the synchronization signal for each camera are inconsistent. Each camera outputs a synchronous trigger command according to the timing configuration. For example, the A1 camera is required to be triggered at time T1 after the trigger signal, the A2 camera is required to be triggered at time T2 after the trigger signal, and the Kn camera is required to be triggered at time Tn after the trigger signal. Each acquisition card sends a trigger signal to the camera connected to it at the time required by the trigger signal for the camera. After the camera captures the image, it sends the image information to the host computer.
[0043] In summary, the present invention proposes a multi-camera synchronous image acquisition card and its application method in image acquisition. For multi-camera trigger synchronization application, the host control software only needs to send the relevant timing configuration and synchronization trigger command to the image acquisition card. The image acquisition card will parse the command and accurately synchronize the trigger synchronization signal to the relevant camera without the need for the host control software to perform synchronization control between cameras. Relying on the high-precision timer inside the acquisition card, the synchronization accuracy jitter of the trigger signal generated by the acquisition card of this solution can be within 1us, so that the multi-camera trigger synchronization work can achieve a more ideal effect, greatly reducing the later image data processing work caused by the unsatisfactory synchronization effect on the host software side, and relying on the programmable characteristics of the FPGA logic in the acquisition card of this solution, it can support flexible and programmable trigger synchronization signal output, and can give trigger signals to the corresponding cameras according to the set timing, so that multiple cameras can work accurately and collaboratively according to the set program, and more flexibly adapt to different multi-camera trigger synchronization application scenarios.
[0044] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. An acquisition card for controlling synchronous image acquisition of multiple cameras, characterized in that: include: Host connection interface, hardware trigger interface, acquisition card serial connection port, host communication transmission module, acquisition card control module, trigger synchronization control module, camera communication transmission module, high-precision timer module and camera interface; A host connection interface, used for communication connection with a computer host; a hardware trigger interface, used for receiving a trigger signal sent by an external hardware device; a capture card serial port, used for data exchange with other capture cards, and receiving / sending a trigger synchronization signal; a host communication transmission module, used for communication and transmission with a computer host and a camera, and data exchange between the computer host and the host communication transmission module is exchanged through the host connection interface; a capture card control module, used for data exchange with the host communication transmission module, the camera communication transmission module and the trigger synchronization control module, receiving and processing control commands sent by the computer host, sending control commands to the trigger synchronization control module, transmitting synchronization trigger commands sent by the trigger synchronization control module, and sending synchronization trigger commands to the camera; a trigger synchronization control module, used for data exchange with the capture card control module, the hardware trigger interface, the capture card serial port and the high-precision timer module, and sending synchronization trigger commands according to the trigger signal requirements to enable multiple cameras to work synchronously; a camera communication transmission module, used for data exchange with one or more cameras, sending synchronization trigger commands to one or more cameras and receiving data collected by the cameras; The high-precision timer module is used to generate a high-precision clock signal. The trigger synchronization control module receives the clock signal sent by the high-precision timer module according to the trigger synchronization time required by the trigger signal, and issues a synchronization trigger command according to the required trigger synchronization time and sends it to the acquisition card control module.
2. The acquisition card for controlling synchronous image acquisition of multiple cameras according to claim 1, characterized in that: The hardware trigger interface is an access port for external hardware devices, and the external hardware includes an encoder and an automation device. After the external hardware generates a camera trigger signal, the trigger signal is transmitted to the acquisition card for controlling multi-camera synchronous image acquisition through the hardware trigger interface.
3. The acquisition card for controlling synchronous image acquisition of multiple cameras according to claim 1, characterized in that: The acquisition card control module receives the trigger signal sent by the computer host through the host communication transmission module, and the acquisition card control module sends the trigger signal to the trigger synchronization control module. The trigger synchronization control module generates a synchronization trigger command according to the trigger signal and sends the synchronization trigger command to the acquisition card control module. The acquisition card control module transmits the synchronization trigger command to the camera communication transmission module, and the camera communication transmission module sends the synchronization trigger command to the camera.
4. A multi-camera triggered synchronous image acquisition method, characterized in that: Using the acquisition card for controlling synchronous image acquisition of multiple cameras as described in claim 1 comprises the following steps: S1, receiving the trigger signal transmitted by the computer host connection interface or the hardware trigger interface; S2, issuing a synchronous trigger command, and transmitting the trigger signal to other acquisition cards via the acquisition card serial connection port; S3, transmitting the synchronization trigger command to the camera through data exchange between the acquisition card control module and the camera communication transmission module; S4, after receiving the synchronous trigger command, one or more cameras collect images; S5. After one or more cameras acquire image information, the acquired image information is fed back to the computer host via an acquisition card used to control synchronous image acquisition of multiple cameras.
5. The multi-camera triggered synchronous image acquisition method according to claim 4, characterized in that: There are two ways to generate the trigger signal: Computer host triggering mode: the computer host generates the trigger signal and transmits it to the acquisition card for controlling multi-camera synchronous image acquisition through the host connection interface of the acquisition card for controlling multi-camera synchronous image acquisition; Hardware triggering mode: the trigger signal is generated by external hardware and transmitted to the acquisition card for controlling synchronous image acquisition of multiple cameras through the hardware triggering interface of the acquisition card for controlling synchronous image acquisition of multiple cameras.
6. The multi-camera triggered synchronous image acquisition method according to claim 4, characterized in that: The specific steps of issuing a synchronous trigger command and transmitting the trigger signal to other acquisition cards through the acquisition card serial port are as follows: after multiple acquisition cards are connected to each other, when synchronous image control is performed on multiple cameras, one acquisition card is a master acquisition card for controlling synchronous image acquisition of multiple cameras, and the remaining one or more acquisition cards are slave acquisition cards for controlling synchronous image acquisition of multiple cameras; the master acquisition card for controlling synchronous image acquisition of multiple cameras transmits the trigger synchronization signal to the slave acquisition card serial port for controlling synchronous image acquisition of multiple cameras through the master acquisition card serial port for controlling synchronous image acquisition of multiple cameras by data interaction; the acquisition card control module and the camera communication transmission module perform data interaction to transmit the trigger command to the camera.
7. The multi-camera triggered synchronous image acquisition method according to claim 4, characterized in that: The specific steps of transmitting the synchronous trigger command to the camera through data interaction between the acquisition card control module and the camera communication transmission module are as follows: after receiving the trigger signal, the trigger synchronization control module receives the clock signal sent by the high-precision timer module, triggers the synchronization control module to record the time with the clock signal, and issues a synchronous trigger command according to the trigger synchronization time required by the trigger signal, and sends the synchronous trigger command to the acquisition card control module of the acquisition card for controlling synchronous image acquisition of multiple cameras, the acquisition card control module of the acquisition card for controlling synchronous image acquisition of multiple cameras sends the synchronous trigger command to the camera communication transmission module of the acquisition card for controlling synchronous image acquisition of multiple cameras, and the camera communication transmission module of the acquisition card for controlling synchronous image acquisition of multiple cameras sends the synchronous trigger command to the camera.
Citation Information
Cited By
Non-intrusive reverse control and visual acquisition system and method of fire-fighting host
CN121330612A
