CN112689991B - Initialization synchronization device, initialization synchronization method, and camera - Google Patents
Initialization synchronization device, initialization synchronization method, and camera Download PDFInfo
- Publication number
- CN112689991B CN112689991B CN201880097091.1A CN201880097091A CN112689991B CN 112689991 B CN112689991 B CN 112689991B CN 201880097091 A CN201880097091 A CN 201880097091A CN 112689991 B CN112689991 B CN 112689991B
- Authority
- CN
- China
- Prior art keywords
- processing circuit
- signal
- signal processing
- controller
- initialization
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请涉及视频处理技术领域,特别涉及一种初始化同步装置、初始化同步方法及摄像机。The present application relates to the technical field of video processing, and in particular to an initialization synchronization device, an initialization synchronization method, and a camera.
背景技术Background technique
视频拼接技术是指将若干个摄像头获取到的视频图像拼接形成一幅全景图像的技术,该视频拼接技术通常应用在全景摄像机中。The video stitching technology refers to the technology of stitching the video images acquired by several cameras to form a panoramic image, and the video stitching technology is usually applied in the panoramic camera.
传统的全景摄像机包括:多个摄像头和SOC(System On Chip,系统级芯片),每个摄像头均包括图像传感器,每个图像传感器均与SOC连接。在每个摄像头正常获取图像之前,SOC向每个摄像头的图像传感器发送初始化配置指令,以完成图像传感器的初始化配置。在每个图像传感器初始化配置完成后,各图像传感器将获取到的图像传输到SOC中,SOC可以将不同的图像传感器获取到的图像拼接形成一幅全景图像。A traditional panoramic camera includes: multiple cameras and an SOC (System On Chip, System On Chip), each camera includes an image sensor, and each image sensor is connected to the SOC. Before each camera normally acquires an image, the SOC sends an initialization configuration instruction to the image sensor of each camera, so as to complete the initialization configuration of the image sensor. After the initial configuration of each image sensor is completed, each image sensor transmits the acquired images to the SOC, and the SOC can stitch the images acquired by different image sensors to form a panoramic image.
但是,目前SOC对多个图像传感器完成初始化配置并不是同步的,导致各个图像传感器所获取的图像也不同步,SOC对不同步的图像进行拼接,得到的全景图像的显示效果较差。However, at present, the initial configuration of multiple image sensors by the SOC is not synchronized, resulting in that the images acquired by each image sensor are not synchronized. The SOC stitches the asynchronous images, and the display effect of the obtained panoramic image is poor.
发明内容Contents of the invention
本申请提供了一种初始化同步装置、初始化同步方法及摄像机,能够对多个传感器同步进行初始化,从而使各个图像传感器的图像可以同步输出。The present application provides an initialization synchronization device, an initialization synchronization method, and a camera, capable of synchronously initializing a plurality of sensors, so that the images of each image sensor can be synchronously output.
第一方面,提供了一种初始化同步装置,包括:中央处理单元CPU、一个或多个控制器以及信号处理电路,其中,该一个或多个控制器中的每个控制器均耦合至该CPU以及该信号处理电路,该信号处理电路与该初始化同步装置外部的一个或多个传感器连接;该CPU,用于控制该信号处理电路处于第一状态,该第一状态用于指示第一控制器通过该信号处理电路与该一个或多个传感器中每个传感器连接,该第一控制器为该一个或多个控制器中的一个控制器;该第一控制器,用于在该信号处理电路处于第一状态时,将该CPU生成的初始化信号通过该信号处理电路同时发送至该一个或多个传感器中的每个传感器。In a first aspect, an initialization synchronization device is provided, including: a central processing unit CPU, one or more controllers, and a signal processing circuit, wherein each controller in the one or more controllers is coupled to the CPU And the signal processing circuit, the signal processing circuit is connected to one or more sensors outside the initialization synchronization device; the CPU is used to control the signal processing circuit to be in a first state, and the first state is used to indicate the first controller The signal processing circuit is connected to each sensor in the one or more sensors, and the first controller is a controller in the one or more controllers; the first controller is used in the signal processing circuit When in the first state, the initialization signal generated by the CPU is simultaneously sent to each sensor in the one or more sensors through the signal processing circuit.
在本申请中,CPU在控制信号处理电路处于第一状态时,第一控制器将CPU生成的初始化信号通过信号处理电路同时发送至一个或多个传感器中的每个传感器,使得每个传感器均能够同时接收到初始化信号,并在同一时间完成初始化配置,避免了各个传感器所获取的图像出现不同步的现象。若该初始化同步装置集成在SOC上,当该SOC将各个传感器获取的图像进行拼接得到全景图像时,由于初始化信号可以通过信号处理电路同时发送给各个图像传感器,使得各个传感器获取的图像是同步输出的,因此拼接得到的全景图像的显示效果较好。In this application, when the CPU controls the signal processing circuit to be in the first state, the first controller simultaneously sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit, so that each sensor is The initialization signal can be received at the same time, and the initialization configuration can be completed at the same time, which avoids the asynchronous phenomenon of the images acquired by each sensor. If the initialization synchronization device is integrated on the SOC, when the SOC stitches the images acquired by each sensor to obtain a panoramic image, since the initialization signal can be sent to each image sensor through the signal processing circuit at the same time, the images acquired by each sensor are output synchronously. Therefore, the display effect of the panoramic image obtained by splicing is better.
可选的,该CPU,还用于控制该信号处理电路处于第二状态,该第二状态用于指示该一个或多个控制器中的每个控制器通过该信号处理电路与一个传感器相连;每个控制器,用于在该信号处理电路处于该第二状态时,将该CPU生成的该初始化信号或参数修改信号发送给与该每个控制器对应的传感器,该参数修改信号用于对该传感器中记录的初始化参数进行调整,该初始化参数为在对每个传感器进行初始化处理的过程中,该传感器接收到的初始化信号中携带的参数。Optionally, the CPU is also used to control the signal processing circuit to be in a second state, and the second state is used to instruct each of the one or more controllers to be connected to a sensor through the signal processing circuit; Each controller is configured to send the initialization signal or parameter modification signal generated by the CPU to the sensor corresponding to each controller when the signal processing circuit is in the second state, and the parameter modification signal is used for The initialization parameter recorded in the sensor is adjusted, and the initialization parameter is the parameter carried in the initialization signal received by the sensor during the initialization process of each sensor.
在本申请中,由于各个传感器之间存在制造误差,当对各个传感器均配置相同的初始化参数时,各个传感器所获取的图像的显示质量(例如清晰度或色彩深度等)会存在差异。为了使得各个传感器均能够获取到显示质量较高的图像,在通过初始化同步装置完成对各个传感器的初始化配置后,CPU可以控制信号处理电路处于第二状态,每个控制器可以将CPU生成的参数修改信号发送给与每个控制器各自对应的传感器。该参数修改信号用于对传感器的寄存器中记录的初始化参数进行调整,保证每个传感器均能够获取显示质量较高的图像。由于每个传感器中的初始化参数均能够被对应的控制器调节,因此在初始化配置完成后通过该初始化同步装置对各个传感器中的初始化参数进行调节的效率较高。In this application, due to manufacturing errors among the sensors, when the same initialization parameters are configured for each sensor, the display quality (such as sharpness or color depth, etc.) of images acquired by each sensor will be different. In order to enable each sensor to obtain images with higher display quality, after completing the initialization configuration of each sensor through the initialization synchronization device, the CPU can control the signal processing circuit to be in the second state, and each controller can convert the parameters generated by the CPU to Modification signals are sent to the respective sensors associated with each controller. The parameter modification signal is used to adjust the initialization parameters recorded in the registers of the sensor, so as to ensure that each sensor can obtain images with high display quality. Since the initialization parameters in each sensor can be adjusted by the corresponding controller, it is more efficient to adjust the initialization parameters in each sensor through the initialization synchronization device after the initialization configuration is completed.
可选的,该信号处理电路包括:输出处理电路和输入处理电路;在该信号处理电路处于该第一状态时,该第一控制器通过该输出处理电路向该一个或多个传感器中的每个传感器发送该CPU生成的信号;在该信号处理电路处于该第一状态时,该第一控制器通过该输入处理电路接收该一个或多个传感器中的每个传感器各自生成的响应信号。Optionally, the signal processing circuit includes: an output processing circuit and an input processing circuit; when the signal processing circuit is in the first state, the first controller sends the output processing circuit to each of the one or more sensors A sensor sends a signal generated by the CPU; when the signal processing circuit is in the first state, the first controller receives a respective response signal generated by each of the one or more sensors through the input processing circuit.
在本申请中,初始化同步装置中的CPU可以通过输出处理电路向一个或多个传感器中的每个传感器发送信号,CPU还可以通过输入处理电路接收每个传感器生成的信号,并由CPU进行信号处理。In this application, the CPU in the initialization synchronization device can send a signal to each sensor in one or more sensors through the output processing circuit, and the CPU can also receive the signal generated by each sensor through the input processing circuit, and the signal is processed by the CPU deal with.
可选的,该输出处理电路包括:一个或多个数字选择器,该一个或多个数字选择器中每个数字选择器的输出端与对应的传感器连接;当该信号处理电路处于该第一状态时,该一个或多个数字选择器中每个数字选择器的输入端均与该第一控制器相连;当该信号处理电路处于该第二状态时,该一个或多个数字选择器中每个数字选择器的输入端与对应的控制器相连。Optionally, the output processing circuit includes: one or more digital selectors, the output end of each digital selector in the one or more digital selectors is connected to the corresponding sensor; when the signal processing circuit is in the first state, the input terminal of each digital selector in the one or more digital selectors is connected to the first controller; when the signal processing circuit is in the second state, the one or more digital selectors The input terminal of each digital selector is connected with the corresponding controller.
可选的,每个数字选择器均包括第一输入端口、第二输入端口、状态选择端口和输出端口,每个数字选择器的第一输入端口均与该第一控制器连接,每个数字选择器的第二输入端口与对应的控制器连接,每个数字选择器的状态选择端口均与该CPU连接,每个数字选择器的输出端口与对应的传感器连接;其中,对于每个数字选择器,在该数字选择器的状态选择端口接收到该CPU发送的用于指示该信号处理电路处于该第一状态的指示信号时,该第一输入端口处于开启状态,该第二输入端口处于关断状态;对于每个数字选择器,在该数字选择器的状态选择端口接收到该CPU发送的用于指示该信号处理电路处于该第二状态的指示信号时,该第一输入端口处于关断状态,该第二输入端口处于开启状态。Optionally, each digital selector includes a first input port, a second input port, a state selection port and an output port, the first input port of each digital selector is connected to the first controller, each digital The second input port of the selector is connected with the corresponding controller, the state selection port of each digital selector is connected with the CPU, and the output port of each digital selector is connected with the corresponding sensor; wherein, for each digital selector When the state selection port of the digital selector receives the indication signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port is in the open state, and the second input port is in the off state. Off state; for each digital selector, when the state selection port of the digital selector receives the indication signal sent by the CPU to indicate that the signal processing circuit is in the second state, the first input port is turned off state, the second input port is in the open state.
可选的,该输入处理电路包括:与门逻辑电路;当该信号处理电路处于该第一状态时,该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后,发送给该第一控制器;当该信号处理电路处于该第二状态时,该一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Optionally, the input processing circuit includes: an AND gate logic circuit; when the signal processing circuit is in the first state, the AND gate logic circuit receives the respective responses generated by each of the one or more sensors After the signal is processed, it is sent to the first controller; when the signal processing circuit is in the second state, each of the one or more controllers receives a response signal generated by a corresponding sensor.
可选的,该输入处理电路还包括:信号选择器;该一个或多个传感器中的每个传感器均与该与门逻辑电路的输入端连接,该与门逻辑电路的输出端与该信号选择器的第一输入端连接,该信号选择器的输出端与该第一控制器连接,与该第一控制器对应的第一传感器还和该信号选择器的第二输入端连接;其中,当该信号处理电路处于该第一状态时,该与门逻辑电路将处理后的信号通过该信号选择器发送给该第一控制器;当该信号处理电路处于该第二状态时,该信号选择器将该第一传感器生成的响应信号发送给该第一控制器。Optionally, the input processing circuit further includes: a signal selector; each sensor in the one or more sensors is connected to the input terminal of the AND gate logic circuit, and the output terminal of the AND gate logic circuit is connected to the signal selector connected to the first input end of the signal selector, the output end of the signal selector is connected to the first controller, and the first sensor corresponding to the first controller is also connected to the second input end of the signal selector; wherein, when When the signal processing circuit is in the first state, the AND gate logic circuit sends the processed signal to the first controller through the signal selector; when the signal processing circuit is in the second state, the signal selector The response signal generated by the first sensor is sent to the first controller.
可选的,该初始化同步装置还包括:连接总线,该一个或多个控制器中的每个控制器通过该连接总线耦合至该CPU以及该信号处理电路,该连接总线为集成电路I2C连接总线和同步串行端口SSP连接总线中的一项或多项。Optionally, the initialization synchronization device further includes: a connection bus, each of the one or more controllers is coupled to the CPU and the signal processing circuit through the connection bus, and the connection bus is an integrated circuit I2C connection bus and synchronous serial port SSP connection bus one or more.
假设本申请中的连接总线为I2C连接总线,则:该输出处理电路包括:用于输出数据信号的第一输出处理电路,以及用于输出时钟信号的第二输出处理电路;该第一输出处理电路中的每个数字选择器的第一输入端口均与该第一控制器的数据端口连接,该第一输出处理电路中的每个数字选择器的第二输入端口与对应的控制器的数据端口连接,该第二输出处理电路中的每个数字选择器的第一输入端口均与该第一控制器的时钟端口连接,该第二输出处理电路中的每个数字选择器的第二输入端口与对应的控制器的时钟端口连接。Assuming that the connection bus in this application is an I2C connection bus, then: the output processing circuit includes: a first output processing circuit for outputting a data signal, and a second output processing circuit for outputting a clock signal; the first output processing circuit The first input port of each digital selector in the circuit is connected to the data port of the first controller, and the second input port of each digital selector in the first output processing circuit is connected to the data port of the corresponding controller. Port connection, the first input port of each digital selector in the second output processing circuit is connected with the clock port of the first controller, the second input port of each digital selector in the second output processing circuit The port is connected to the clock port of the corresponding controller.
该输入处理电路包括:用于输入数据信号的第一输入处理电路,以及用于输入时钟信号的第二输入处理电路。The input processing circuit includes: a first input processing circuit for inputting a data signal, and a second input processing circuit for inputting a clock signal.
可选的,该初始化同步装置还包括:系统寄存器,该系统寄存器分别与该CPU和该信号处理电路连接;该CPU用于控制该系统寄存器的寄存器值为第一数值,以使该信号处理电路处于该第一状态;该CPU还用于控制该系统寄存器的寄存器值为第二数值,以使该信号处理电路处于该第二状态,其中,该第一数值和该第二数值不同。Optionally, the initialization synchronization device also includes: a system register, the system register is respectively connected to the CPU and the signal processing circuit; the CPU is used to control the register value of the system register to a first value, so that the signal processing circuit In the first state; the CPU is also used to control the register value of the system register to a second value, so that the signal processing circuit is in the second state, wherein the first value is different from the second value.
可选的,该初始化同步装置还包括一个或多个输入输出IO接口,该信号处理电路通过一个或多个IO接口与该一个或多个传感器一一连接;其中,在该信号处理电路处于该第一状态时,该一个或多个IO接口均连接至该第一控制器;在该信号处理电路处于该第二状态时,每个控制器分别通过一个IO接口与对应的传感器相连。Optionally, the initialization synchronization device also includes one or more input and output IO interfaces, and the signal processing circuit is connected to the one or more sensors one by one through one or more IO interfaces; wherein, when the signal processing circuit is in the In the first state, the one or more IO interfaces are all connected to the first controller; when the signal processing circuit is in the second state, each controller is connected to the corresponding sensor through an IO interface.
可选的,该CPU还用于:在对每个传感器进行初始化处理之前,向每个传感器发送复位指令,以清除每个传感器中的初始化参数。Optionally, the CPU is further configured to: before performing initialization processing on each sensor, send a reset instruction to each sensor, so as to clear the initialization parameters in each sensor.
可选的,该CPU还用于:在对每个传感器进行初始化处理之后,接收每个传感器获取的图像信息;根据该图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;对获取的图像信息不同步的传感器进行补偿调节。从而使得各个传感器200所获取的图像是同步的,进而提高了后续拼接形成的全景图像的显示效果。Optionally, the CPU is also used to: receive the image information obtained by each sensor after initializing each sensor; judge whether the image information obtained by any two sensors is synchronized according to the synchronization signal in the image information; Compensation adjustments are made for sensors whose acquired image information is out of sync. Therefore, the images acquired by each sensor 200 are synchronized, thereby improving the display effect of the panoramic image formed by subsequent splicing.
第二方面,提供了一种初始化同步方法,应用于初始化同步装置中,该初始化同步装置包括:CPU、一个或多个控制器以及信号处理电路,其中,该一个或多个控制器中的每个控制器均耦合至该CPU以及该信号处理电路,该信号处理电路与该初始化同步装置外部的一个或多个传感器连接,该方法包括:该CPU控制该信号处理电路处于第一状态,该第一状态用于指示第一控制器通过该信号处理电路与该一个或多个传感器中每个传感器连接,该第一控制器为该一个或多个控制器中的一个控制器;该第一控制器将该CPU生成的初始化信号通过该信号处理电路发送至该一个或多个传感器中的每个传感器。In a second aspect, an initialization synchronization method is provided, which is applied to an initialization synchronization device, and the initialization synchronization device includes: a CPU, one or more controllers, and a signal processing circuit, wherein each of the one or more controllers Each controller is coupled to the CPU and the signal processing circuit, the signal processing circuit is connected to one or more sensors outside the initialization synchronization device, the method includes: the CPU controls the signal processing circuit to be in a first state, the second A state is used to indicate that the first controller is connected to each sensor in the one or more sensors through the signal processing circuit, and the first controller is a controller in the one or more controllers; the first controller The controller sends the initialization signal generated by the CPU to each sensor in the one or more sensors through the signal processing circuit.
可选的,该方法还包括:该CPU控制该信号处理电路处于第二状态,该第二状态用于指示该一个或多个控制器中的每个控制器通过该信号处理电路与一个传感器相连;每个控制器将该CPU生成的该初始化信号或参数修改信号发送给与该每个控制器对应的传感器,该参数修改信号用于对该传感器中记录的初始化参数进行调整,该初始化参数为在对每个传感器进行初始化处理的过程中,该传感器接收到的初始化信号中携带的参数。Optionally, the method further includes: the CPU controls the signal processing circuit to be in a second state, and the second state is used to indicate that each of the one or more controllers is connected to a sensor through the signal processing circuit ; each controller sends the initialization signal or parameter modification signal generated by the CPU to the sensor corresponding to each controller, and the parameter modification signal is used to adjust the initialization parameter recorded in the sensor, and the initialization parameter is During the initialization process of each sensor, the parameters carried in the initialization signal received by the sensor.
可选的,该信号处理电路包括:输出处理电路和输入处理电路;在该CPU控制该信号处理电路处于第一状态后,该方法还包括:该第一控制器通过该输出处理电路向该一个或多个传感器中的每个传感器发送该CPU生成的信号;该第一控制器通过该输入处理电路接收该一个或多个传感器中的每个传感器各自生成的响应信号。Optionally, the signal processing circuit includes: an output processing circuit and an input processing circuit; after the CPU controls the signal processing circuit to be in the first state, the method further includes: the first controller sends the output processing circuit to the one Each sensor of the or plurality of sensors transmits the signal generated by the CPU; the first controller receives a response signal generated by each sensor of the one or more sensors through the input processing circuit.
可选的,该输出处理电路包括:一个或多个数字选择器,该一个或多个数字选择器中每个数字选择器的输出端与对应的传感器连接;该第一控制器通过该输出处理电路向该一个或多个传感器中的每个传感器发送该CPU生成的信号,包括:该一个或多个数字选择器中每个数字选择器控制各自的输入端均与该第一控制器相连,以使该第一控制器通过该一个或多个数字选择器向一个或多个传感器发送该CPU生成的信号;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该一个或多个数字选择器中每个数字选择器控制各自的输入端与对应的控制器相连。Optionally, the output processing circuit includes: one or more digital selectors, the output end of each digital selector in the one or more digital selectors is connected to the corresponding sensor; the first controller processes the a circuit sending the CPU-generated signal to each of the one or more sensors, comprising: each of the one or more digital selectors controlling a respective input terminal connected to the first controller, Make the first controller send the signal generated by the CPU to the one or more sensors through the one or more digital selectors; after the CPU controls the signal processing circuit to be in the second state, the method further includes: the one Each digital selector in the or multiple digital selectors controls its respective input terminal to be connected to a corresponding controller.
可选的,该输入处理电路包括:与门逻辑电路;该第一控制器通过该输入处理电路接收该一个或多个传感器中的每个传感器各自生成的响应信号,包括:该第一控制器接收通过该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Optionally, the input processing circuit includes: an AND gate logic circuit; the first controller receives the respective response signals generated by each of the one or more sensors through the input processing circuit, including: the first controller receiving a processed signal of the response signal generated by each sensor in the one or more sensors received by the AND gate logic circuit; after the CPU controls the signal processing circuit to be in the second state, the method further includes : Each of the one or more controllers receives a corresponding sensor-generated response signal.
可选的,该输入处理电路还包括:信号选择器,该一个或多个传感器中的每个传感器均与该与门逻辑电路的输入端连接,该与门逻辑电路的输出端与该信号选择器的第一输入端连接,该信号选择器的输出端与该第一控制器连接,与该第一控制器对应的第一传感器还和该信号选择器的第二输入端连接;该第一控制器接收通过该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号,包括:该第一控制器接收该与门逻辑电路将处理后的信号通过该信号选择器发送的信号;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该信号选择器将该第一传感器生成的响应信号发送给该第一控制器。Optionally, the input processing circuit further includes: a signal selector, each of the one or more sensors is connected to the input terminal of the AND gate logic circuit, and the output terminal of the AND gate logic circuit is connected to the signal selector connected to the first input end of the signal selector, the output end of the signal selector is connected to the first controller, and the first sensor corresponding to the first controller is also connected to the second input end of the signal selector; the first The controller receives the processed response signal generated by each of the one or more sensors to be received by the AND gate logic circuit, including: the first controller receives the processed signal by the AND gate logic circuit the signal sent by the signal selector; after the CPU controls the signal processing circuit to be in the second state, the method further includes: the signal selector sends the response signal generated by the first sensor to the first controller .
可选的,该初始化同步装置还包括:系统寄存器,该系统寄存器分别与该CPU和该信号处理电路连接,该CPU控制该信号处理电路处于第一状态,包括:该CPU控制该系统寄存器的寄存器值为第一数值,以使该信号处理电路处于第一状态;该CPU控制该信号处理电路处于第二状态,包括:该CPU控制该系统寄存器的寄存器值为第二数值,以使该信号处理电路处于第二状态,其中,该第一数值和该第二数值不同。Optionally, the initialization synchronization device further includes: a system register, the system register is respectively connected to the CPU and the signal processing circuit, and the CPU controls the signal processing circuit to be in the first state, including: the CPU controls the register of the system register The value is the first value, so that the signal processing circuit is in the first state; the CPU controls the signal processing circuit to be in the second state, including: the CPU controls the register value of the system register to be the second value, so that the signal processing circuit The circuit is in a second state, wherein the first value and the second value are different.
可选的,该初始化同步装置还包括一个或多个输入输出IO接口,该信号处理电路通过一个或多个IO接口与该一个或多个传感器一一连接;在该CPU控制该信号处理电路处于第一状态后,该方法还包括:该信号处理电路控制该一个或多个IO接口均连接至该第一控制器;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该信号处理电路控制每个控制器分别通过一个IO接口与对应的传感器相连。Optionally, the initialization synchronization device also includes one or more input and output IO interfaces, and the signal processing circuit is connected to the one or more sensors one by one through one or more IO interfaces; when the CPU controls the signal processing circuit to After the first state, the method also includes: the signal processing circuit controls the one or more IO interfaces to be connected to the first controller; after the CPU controls the signal processing circuit to be in the second state, the method also includes: The signal processing circuit controls each controller to be connected to a corresponding sensor through an IO interface.
可选的,该方法还包括:在对每个传感器进行初始化处理之前,该CPU向每个传感器发送复位指令,以清除每个传感器中的初始化参数。Optionally, the method further includes: before performing initialization processing on each sensor, the CPU sends a reset instruction to each sensor, so as to clear initialization parameters in each sensor.
可选的,该方法还包括:在对每个传感器进行初始化处理之后,该CPU接收每个传感器获取的图像信息;该CPU根据该图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;该CPU对获取的图像信息不同步的传感器进行补偿调节。Optionally, the method further includes: after each sensor is initialized, the CPU receives the image information acquired by each sensor; the CPU judges the image information acquired by any two sensors according to the synchronization signal in the image information Whether it is synchronous or not; the CPU compensates and adjusts the sensor whose acquired image information is not synchronous.
需要说明的是,第二方面中初始化同步方法的原理,可以参考第一方面初始化同步装置中的对应部分,本申请在此不再赘述。It should be noted that, for the principle of the initialization synchronization method in the second aspect, reference may be made to the corresponding part in the initialization synchronization device in the first aspect, which will not be repeated in this application.
第三方面,提供了一种摄像机,包括:多个摄像头和系统级芯片SOC,该SOC包括:第一方面任一该的初始化同步装置,每个摄像头均包括传感器,每个传感器均与该初始化同步装置连接。In a third aspect, a camera is provided, including: a plurality of cameras and a system-on-chip SOC, the SOC includes: any one of the initialization synchronization devices in the first aspect, each camera includes a sensor, and each sensor is connected to the initialization Synchronous device connection.
附图说明Description of drawings
图1是相关技术提供的一种全景摄像机的框图;Fig. 1 is a block diagram of a panoramic camera provided by the related art;
图2是相关技术提供的另一种全景摄像机的框图;Fig. 2 is a block diagram of another panoramic camera provided by related technologies;
图3是本申请实施例提供的一种初始化同步装置的框图;FIG. 3 is a block diagram of an initialization synchronization device provided in an embodiment of the present application;
图4是本申请实施例提供的另一种初始化同步装置的框图;FIG. 4 is a block diagram of another initialization synchronization device provided by an embodiment of the present application;
图5是本申请实施例提供的一种输出处理电路的结构示意图;FIG. 5 is a schematic structural diagram of an output processing circuit provided by an embodiment of the present application;
图6是图5示出的输出处理电路中的信号的传输的示意图;Fig. 6 is a schematic diagram of signal transmission in the output processing circuit shown in Fig. 5;
图7是本申请实施例提供的一种输入处理电路的结构示意图;FIG. 7 is a schematic structural diagram of an input processing circuit provided by an embodiment of the present application;
图8是图7示出的输出处理电路中的信号的传输的示意图。FIG. 8 is a schematic diagram of signal transmission in the output processing circuit shown in FIG. 7 .
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
下面将结合附图对本申请实施方式作进一步地详细描述。The embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.
请参考图1,图1是相关技术提供的一种全景摄像机的框图,该全景摄像机包括:SOC 01和多个摄像头(图1中未示出),每个摄像头均可以包括图像传感器02。该SOC 01内部设置有一个I2C(Inter-Integrated Circuit,集成电路)总线011和多个INCK(InputClock,工作时钟)电路012,每个图像传感器02均与该I2C总线011连接,该多个INCK电路012与多个图像传感器02一一对应连接。Please refer to FIG. 1 . FIG. 1 is a block diagram of a panoramic camera provided in the related art. The panoramic camera includes: an
当全景摄像机获取全景图像时,SOC 01需要通过I2C总线011和多个INCK电路012向所有的图像传感器02发送初始化配置指令,每个图像传感器02在接收到初始化配置指令后,进行初始化配置,在图像传感器02初始化配置完成后,可以获取图像,并将获取到的图像发送给SOC 01,使得SOC 01将不同的图像传感器02获取到的图像进行拼接,以得到全景图像。When the panoramic camera acquires panoramic images,
但是,当所有的图像传感器02均通过一个I2C总线011连接时,SOC 01需要逐一控制多个图像传感器02进行初始化配置,也即是,当某个图像传感器初始化配置后,SOC 01才可以控制下一个图像传感器进行初始化配置。通常情况下,在图像传感器02初始化配置完成后,图像传感器02会立马将获取到的图像发送给SOC 01,而SOC 01无法控制多个图像传感器01在同一时间完成初始化配置,因此各个图像传感器02所获取的图像并不同步,SOC01对不同步的图像进行拼接,得到的全景图像的显示效果较差。However, when all the image sensors 02 are connected through an
请参考图2,图2是相关技术提供的另一种全景摄像机的框图,该全景摄像机中的SOC 01内设置有多个I2C总线011和多个INCK电路012,该多个I2C总线011与多个图像传感器02一一对应连接,该多个INCK电路012与多个图像传感器02一一对应连接。此时,SOC 01无需逐一控制多个图像传感器02进行初始化配置,虽然该多个图像传感器02可以同时进行初始化配置,但是由于软件顺序执行的原因,SOC 01需要通过该多个I2C总线011逐一的对每个图像传感器02发送初始化图像指令,每个图像传感器02初始化完成的时间仍然会依次延迟,SOC 01仍然无法控制多个图像传感器01在同一时间完成初始化配置,导致各个图像传感器02所获取的图像并不同步,SOC 01对不同步的图像进行拼接,得到的全景图像的显示效果较差。Please refer to Fig. 2, Fig. 2 is the block diagram of another kind of panoramic camera provided by the related art, the
请参考图3,图3是本申请实施例提供的一种初始化同步装置的框图,该初始化同步装置100可以包括:Please refer to FIG. 3. FIG. 3 is a block diagram of an initialization synchronization device provided in an embodiment of the present application. The initialization synchronization device 100 may include:
中央处理单元(Central Processing Unit,CPU)10、一个或多个控制器20以及信号处理电路30,其中,该一个或多个控制器20中的每个控制器20均耦合至CPU 10以及信号处理电路30,该信号处理电路30与该初始化同步装置外部的一个或多个传感器200连接。示例性的,本申请实施例中的传感器200可以为图像传感器。Central Processing Unit (Central Processing Unit, CPU) 10, one or more controllers 20 and signal processing circuit 30, wherein, each controller 20 in the one or more controllers 20 is all coupled to
该CPU 10,用于控制信号处理电路30处于第一状态,该第一状态用于指示第一控制器20a通过信号处理电路30与一个或多个传感器200中的每个传感器200连接,该第一控制器20a为一个或多个控制器20中的一个控制器。The
该第一控制器20a,用于在信号处理电路30处于第一状态时,将CPU 10生成的初始化信号通过信号处理电路30同时发送至一个或多个传感器200中的每个传感器200。The first controller 20a is configured to simultaneously send the initialization signal generated by the
示例性的,信号处理电路30具有多个输入输出接口,其中,多个输入输出接口与传感器一一连接,当信号处理电路30处于第一状态时,信号处理电路30的多个输入输出接口均连接至上述第一控制器20a,当CPU10生成初始化信号时,该初始化信号通过第一控制器20a同时通过多个输入输出接口发送给每个传感器200,每个传感器200在接收到第一控制器20a发送的初始化信号后,可以将该初始化信号中携带的初始化参数(例如,图像的分辨率、刷新率、曝光时间和增益等)写入传感器200中的寄存器中,在初始化参数写入完成后,传感器200即可完成初始化配置。由于第一控制器20a通过信号处理电路30同时向一个或多个传感器200中的每个传感器200发送初始化信号,因此每个传感器200均能够同时接收到初始化信号,并在同一时间完成初始化配置,避免了各个传感器200所获取的图像出现不同步的现象。若该初始化同步装置100集成在SOC上,当该SOC将各个传感器200获取的图像进行拼接得到全景图像时,由于初始化信号可以通过信号处理电路30同时发送给各个图像传感器200,使得各个传感器200获取的图像是同步输出的,因此拼接得到的全景图像的显示效果较好。Exemplarily, the signal processing circuit 30 has multiple input and output interfaces, wherein the multiple input and output interfaces are connected to the sensors one by one. When the signal processing circuit 30 is in the first state, the multiple input and output interfaces of the signal processing circuit 30 are all Connected to the above-mentioned first controller 20a, when the
进一步的,该CPU 10,还用于控制信号处理电路30处于第二状态,该第二状态用于指示一个或多个控制器20中的每个控制器20通过信号处理电路30与一个传感器200相连。每个控制器20,用于在信号处理电路30处于第二状态时,将CPU 10生成的初始化信号发送给与每个控制器20各自对应的传感器200。Further, the
示例的,当信号处理电路30处于第二状态时,每个传感器200通过各自的控制器20与CPU 10相连,该CPU 10可以对每个传感器200独立进行控制。For example, when the signal processing circuit 30 is in the second state, each sensor 200 is connected to the
在本申请实施例中,在初始化同步装置100完成对各个传感器200的初始化配置后,各个传感器200即可获取图像,但是由于各个传感器200之间存在制造误差,当对各个传感器200均配置相同的初始化参数时,各个传感器200所获取的图像的显示质量(例如清晰度或色彩深度等)会存在差异。为了使得各个传感器200均能够获取到显示质量较高的图像,在通过初始化同步装置100完成对各个传感器200的初始化配置后,CPU 10控制信号处理电路30处于第二状态,每个控制器20可以将CPU 10生成的参数修改信号发送给与每个控制器20各自对应的传感器200。该参数修改信号用于对传感器200的寄存器中记录的初始化参数进行调整,保证每个传感器200均能够获取显示质量较高的图像。由于每个传感器200中的初始化参数均能够被对应的控制器20调节,因此在初始化配置完成后通过该初始化同步装置100对各个传感器200中的初始化参数进行调节的效率较高。In the embodiment of the present application, after the initialization synchronization device 100 completes the initial configuration of each sensor 200, each sensor 200 can acquire an image, but due to the manufacturing error between each sensor 200, when each sensor 200 is configured with the same When the parameters are initialized, the display quality (such as sharpness or color depth, etc.) of the images acquired by each sensor 200 will be different. In order to enable each sensor 200 to obtain images with higher display quality, after the initial configuration of each sensor 200 is completed through the initialization synchronization device 100, the
在一种可选的实现方式中,如图4所示,图4是本申请实施例提供的另一种初始化同步装置的框图。该初始化同步装置100还可以包括:系统寄存器40,该系统寄存器40分别与CPU 10和信号处理电路30连接。CPU 10用于控制该系统寄存器40的寄存器值为第一数值,以使信号处理电路30处于第一状态;该CPU 10还用于控制该系统寄存器40的寄存器值为第二数值,以使信号处理电路30处于第二状态。其中,该第一数值与第二数值不同。示例的,该第一数值可以为1,该第二数值可以为0。需要说明的是,图4是以CPU 10控制系统寄存器40的寄存器值,来控制信号处理电路30处于第一状态或第二状态的,在另一种可选的实现方式中,该CPU 10可以直接控制信号处理电路30处于第一状态或第二状态,本申请实施例对此不作具体限定。In an optional implementation manner, as shown in FIG. 4 , FIG. 4 is a block diagram of another initialization synchronization device provided in an embodiment of the present application. The initialization synchronization device 100 may further include: a system register 40 , the system register 40 is connected to the
可选的,该初始化同步装置100还可以包括:一个或多个输入输出(Input/Output,IO)接口,信号处理电路30通过一个或多个IO接口与一个或多个传感器200一一连接。需要说明的是,图4仅是示意性的画出了一个IO总接口50的示意图,该IO总接口50中包含了与一个或多个传感器200一一连接的一个或多个IO接口。在本申请实施例中,在信号处理电路30处于第一状态时,一个或多个IO接口均连接至第一控制器20a,使得第一控制器20a与一个或多个传感器200中的每个传感器连接;在信号处理电路30处于第二状态时,每个控制器20分别通过一个IO接口与对应的传感器200相连,使得一个或多个控制器20中的每个控制20与对应的传感器200连接。Optionally, the initialization synchronization device 100 may further include: one or more input/output (Input/Output, IO) interfaces, and the signal processing circuit 30 is connected to one or more sensors 200 one by one through one or more IO interfaces. It should be noted that FIG. 4 only schematically shows a schematic diagram of an IO general interface 50 , and the IO general interface 50 includes one or more IO interfaces connected to one or more sensors 200 one by one. In the embodiment of the present application, when the signal processing circuit 30 is in the first state, one or more IO interfaces are connected to the first controller 20a, so that the first controller 20a and each of the one or more sensors 200 Sensor connection; when the signal processing circuit 30 is in the second state, each controller 20 is connected to the corresponding sensor 200 through an IO interface, so that each control 20 in one or more controllers 20 is connected to the corresponding sensor 200 connect.
在本申请实施例中,该初始化同步装置100还包括:连接总线60。该一个或多个控制器20中的每个控制器20通过该连接总线60耦合至CPU 10以及信号处理电路30,该信号处理电路30与IO总接口50之间也可以通过该连接总线60连接。可选的,该连接总线60可以为集成电路(Inter-Integrated Circuit,I2C)连接总线和同步串行端口(SynchronousSerlal Port,SSP)连接总线中的一项或多项。需要说明的是,该I2C连接总线可以包含用于传输数据信号的数据走线,以及用于传输时钟信号的时钟走线;该SSP连接总线可以包含三类信号走线:用于传输数据信号的输入输出数据走线(也称为双向数据走线)、用于传输时钟信号的时钟走线,以及用于传输片选信号的片选走线;该SSP连接总线还可以包含四类信号走线:用于传输数据信号的输入数据走线、用于传输数据信号的输出数据走线、用于传输时钟信号的时钟走线,以及用于传输片选信号的片选走线。应当理解,本申请实施例从功能的角度对初始化同步装置进行划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统。各个模块相互之间的耦合可以是通过一些接口实现,这些接口通常是电性通信接口,但是也不排除可能是机械接口或其它的形式接口。因此,作为分离部件说明的模块可以是或者也可以不是物理上分开的,既可以位于一个地方,也可以分布到同一个或不同设备的不同位置上。在本申请的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或通过其他设备间接相连。In the embodiment of the present application, the initialization synchronization device 100 further includes: a
可选的,如图4所示,该初始化同步装置100中的信号处理电路30包括:输出处理电路31和输入处理电路32。Optionally, as shown in FIG. 4 , the signal processing circuit 30 in the initialization synchronization device 100 includes: an
在信号处理电路30处于第一状态时,第一控制器20a通过输出处理电路31向一个或多个传感器200中的每个传感器200发送CPU 10生成的信号,例如,该CPU 10生成的信号可以为初始化信号;该第一控制器20a通过输入处理电路32接收该一个或多个传感器200中的每个传感器200将各自生成的响应信号,例如,该每个传感器200的响应信号为传感器200在接收到初始化信号后生成的初始化响应信号。When the signal processing circuit 30 is in the first state, the first controller 20a sends the signal generated by the
在信号处理电路30处于第二状态时,一个或多个控制器20中的每个控制器20通过输出处理电路31向对应的传感器200发送CPU 10生成的信号,例如,该CPU 10生成的信号可以为参数修改信号;一个或多个控制器20中的每个控制器20通过输入处理电路32接收对应的传感器200的响应信号,例如,该每个传感器20的响应信号为传感器200在接收到参数修改信号后生成的参数修改响应信号。When the signal processing circuit 30 is in the second state, each controller 20 in the one or more controllers 20 sends the signal generated by the
需要说明的是,本申请实施例中各个控制器20在接收到传感器200发送的响应信号后,会将该响应信号发送给CPU 10,由CPU 10进行信号处理。It should be noted that, in the embodiment of the present application, after receiving the response signal sent by the sensor 200, each controller 20 will send the response signal to the
请参考图5,图5是本申请实施例提供的一种输出处理电路31的结构示意图。该输出处理电路包括:一个或多个数字选择器311。在本申请实施例中,一个或多个数字选择器311中至少一个数字选择器311会对应一个传感器和一个控制器。该一个或多个数字选择器311的输出端与对应的传感器连接。Please refer to FIG. 5 , which is a schematic structural diagram of an
示例的,如图6所示,图6是图5示出的输出处理电路31中的信号的传输的示意图。当信号处理电路处于第一状态时,输出处理电路31中的信号传输方向为为图6中的实线所在方向,该一个或多个数字选择器311中的每个数字选择器311的输入端口与第一控制器相连,使得该第一控制器能够向一个或多个传感器中的每个传感器同时发送CPU生成的信号;当信号处理电路处于第二状态时,输出处理电路31中的信号传输方向为为图6中的虚线所在方向,该一个或多个数字选择器311中的每个数字选择器311的输入端与对应的控制器相连,使得一个或多个控制器中的每个控制器能够向对应的传感器发送CPU生成的信号。For example, as shown in FIG. 6 , FIG. 6 is a schematic diagram of signal transmission in the
可选的,每个数字选择器311均包括:第一输入端口T1、第二输入端口T2、状态选择端口S和输出端口Z。每个数字选择器311的第一输入端口T1均与第一控制器连接;每个数字选择器311的第二输入端口T2与对应的控制器连接;每个数字选择器311的状态选择端口S与CPU连接,在一种可选的情况中,每个数字选择器311的状态选择端口S通过系统控制寄存器与CPU连接,也即状态选择端口S与系统控制寄存器连接,系统控制寄存器与CPU连接;每个数字选择器311的输出端口Z与对应的传感器连接。Optionally, each
对于每个数字选择器311,在该数字选择器311的状态选择端口S接收到CPU发送的用于指示信号处理电路处于第一状态的指示信号时,该数字选择器311的第一输入端口T1处于开启状态,该数字选择器的第二输入端口T2处于关断状态,从而使得一个或多个传感器中的每个传感器均通过该输出处理电路31与第一控制器相连。For each
对于每个数字选择器311,在该数字选择器311的状态选择端口S接收到CPU发送的用于指示信号处理电路处于第二状态的指示信号时,该数字选择器311的第一输入端口T1处于关断状态,该数字选择器的第二输入端口T2处于开启状态,从而使得一个或多个传感器中的每个传感器均通过该输出处理电路31与对应的控制器相连。For each
假设本申请实施例中的初始化同步装置中的连接总线为I2C连接总线,则该输出处理电路31可以包括:用于输出数据信号的第一输出处理电路31a,以及用于输出时钟信号的第二输出处理电路31b。其中,I2C连接总线中的数据走线与该第一输出处理电路31a连接,I2C连接总线中的时钟走线与该第二输出处理电路31b连接。该第一输出处理电路31a与第二输出处理电路31b均可以包括:一个或多个信号选择器311。该第一输出处理电路31a中的每个数字选择器311的第一输入端T1口均与第一控制器的数据端口连接,该第一输出处理电路中31a的每个数字选择器311的第二输入端口T2与对应的控制器的数据端口连接;该第二输出处理电路31b中的每个数字选择器311的第一输入端口T1均与第一控制器的时钟端口连接,该第二输出处理电路31b中的每个数字选择器311的第二输入端口T2与对应的控制器的时钟端口连接。Assuming that the connection bus in the initialization synchronization device in the embodiment of the present application is an I2C connection bus, the
请参考图7,图7是本申请实施例提供的一种输入处理电路32的结构示意图。该输入处理电路32可以包括:与门逻辑电路321。示例的,如图8所示,图8是图7示出的输出处理电路31中的信号的传输的示意图。当信号处理电路处于第一状态时,输入处理电路32中的信号传输方向为图8中的实线所在方向,一个或多个传感器中的每个传感器将各自生成的响应信号经过与门逻辑电路321处理后发送给第一控制器;当信号处理电路处于第二状态时,输入处理电路32中的信号传输方向为图8中的虚线所在方向,一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Please refer to FIG. 7 , which is a schematic structural diagram of an
可选的,该输入处理电路32还可以包括:数字选择器322。在本申请实施例中,一个或多个传感器中的每个传感器均和与门逻辑电路321的输入端连接;该与门逻辑电路321的输出端与信号选择器322的第一输入端连接;该信号选择器322的输出端与第一控制器连接;与第一控制器对应的第一传感器还和信号选择器322的第二输入端连接。如图8所示,当信号处理电路处于第一状态时,与门逻辑电路322将处理后的信号通过信号选择器322发送给第一控制器;当信号处理电路处于第二状态时,信号选择器322将第一传感器生成的响应信号发送给第一控制器。Optionally, the
假设本申请实施例中的初始化同步装置中的连接总线为I2C连接总线,则该输入处理电路32可以包括:用于输入数据信号的第一输入处理电路32a,以及用于输入时钟信号的第二输入处理电路32b。其中,I2C连接总线中的数据走线与该第一输入处理电路32a连接,I2C连接总线中的时钟走线与该第二输入处理电路32b连接。该第一输入处理电路32a与第二输入处理电路32b均包括:与门逻辑电路321和信号选择器322,该与门逻辑电路321和信号选择器322之间的连接方式在第一输入处理电路32a和第二输入处理电路32b均相同。以下实施例对与门逻辑电路321和信号选择器322之间的具体连接方式进行示意性说明:Assuming that the connection bus in the initialization synchronization device in the embodiment of the present application is an I2C connection bus, the
示例的,该与门逻辑电路321具有输出端口Z以及与一个或多个传感器一一对应一个或多个输入端口(T0、T1、T2、...、Tn),该数字选择器322具有第一输入端口T1、第二输入端口T2、状态选择端口S和输出端口Z。该一个或多个传感器中的每个传感器和与门逻辑电路321中对应的输入端口连接;该与门逻辑电路321的输出端口Z与数字选择器的第一输入端口T1连接;该一个或多个传感器中的第一传感器与数字选择器322的第二输入端口T2连接;该数字选择器322的输出端口Z与第一控制器连接;该一个或多个传感器中除第一传感器的每个传感器直接与对应控制器连接;该数字选择器322的状态选择端口S与CPU连接,示例的,该数字选择器322的状态选择端口S与系统控制寄存器连接,该系统控制寄存器需要与CPU连接。Exemplarily, the AND
在数字选择器322的状态选择端口接收到CPU发送的用于指示信号处理电路处于第一状态的指示信号时,该数字选择器322的第一输入端口T1处于开启状态,该数字选择器322的第二输入端口T2处于关断状态。此时,一个或多个传感器中的各个传感器生成的响应信号经过与门逻辑电路321处理后,发送给第一传感器。需要说明的是,在信号处理电路处于第一状态时,CPU可以控制其与一个或多个控制器中除第一控制器之外的每个控制器之间的连接中断,此时,一个或多个传感器中除第一传感器之外的每个传感器生成的响应信号虽然可以发送给对应的控制器,但是这些控制器不会将接收到的响应信号发送给CPU,因此,该CPU仅能够接收到通过与门逻辑电路处理后通过第一控制器发送的信号,该CPU仅对通过第一控制器发送的信号进行处理即可。When the state selection port of the
在数字选择器322的状态选择端口接收到CPU发送的用于指示信号处理电路处于第二状态的指示信号时,该数字选择器322的第二输入端口T2处于开启状态,该数字选择器322的第一输入端口T1处于关断状态。此时,第一传感器生成的响应信号可以通过该数字选择器322发送给第一控制器,一个或多个传感器中除第一传感器之外的每个传感器生成的响应信号直接发送给对应的控制器。需要说明的是,在信号处理电路处于第二状态时,CPU需要控制其与一个或多个控制器中每个控制器之间能够正常连接,此时,一个或多个传感器中的每个传感器生成的响应信号会通过过各自对应的控制器发送给CPU,使得该CPU能够对每个控制器发送的信号进行处理。When the state selection port of the
在一种可选的实现方式中,第一输入处理电路32a中的数字选择器322输出端口与第一控制器的数据端口连接;第二输入处理电路32b中的数字选择器322输出端口与第一控制器的时钟端口连接。一个或多个传感器中除第一传感器之外的每个传感器分别与对应的控制器的数据端口和时钟端口连接。In an optional implementation, the output port of the
在本申请实施例中,如图3或图4所示,该CPU 10还用于:在对每个传感器200进行初始化处理之前,向每个传感器200发送复位指令,以清除每个传感器200中的寄存器存储的初始化参数。需要说明的是,CPU 10在向每个传感器200发送复位指令时,CPU 10可以控制信号处理电路30处于第一状态,也可以控制信号处理电路30处于第二状态,本申请实施例对此不做限定。In the embodiment of the present application, as shown in FIG. 3 or FIG. 4 , the
在一种可选的实现方式中,由于各个传感器200内部均存在一些制造误差,因此,在初始化同步装置100对每个传感器200进行初始化处理之后,各个传感器200可能会经过不同的时长将获取到的图像传输给初始化同步装置100,通常情况下,若两个传感器200将获取到的图像传输给初始化同步装置100之间时间差在0.15微秒内,则可以认为该两个传感器获取的图像信息同步。在本申请实施例中,为了进一步的提高后续合成的拼接图像的显示效果,该CPU 10还用于:在对每个传感器200进行初始化处理30之后,接收每个传感器200获取的图像信息;根据图像信息中的同步信号,判断任意两个传感器200获取的图像信息是否同步;对获取的图像信息不同步的传感器200进行补偿调节。从而使得各个传感器200所获取的图像是同步的,进而提高了后续拼接形成的全景图像的显示效果。In an optional implementation, since there are some manufacturing errors inside each sensor 200, after the initialization synchronization device 100 initializes each sensor 200, each sensor 200 may acquire the Usually, if the time difference between the two sensors 200 transmitting the captured images to the initialization synchronization device 100 is within 0.15 microseconds, it can be considered that the image information acquired by the two sensors is synchronized . In the embodiment of the present application, in order to further improve the display effect of the subsequently synthesized spliced images, the
综上所述,本申请实施例提供的初始化同步在装置,包括:CPU、一个或多个控制器以及信号处理电路。CPU在控制信号处理电路处于第一状态时,第一控制器将CPU生成的初始化信号通过信号处理电路同时发送至一个或多个传感器中的每个传感器,使得每个传感器均能够同时接收到初始化信号,并在同一时间完成初始化配置,避免了各个传感器所获取的图像出现不同步的现象。若该初始化同步装置集成在SOC上,当该SOC将各个传感器获取的图像进行拼接得到全景图像时,由于初始化信号可以通过信号处理电路同时发送给各个图像传感器,使得各个传感器获取的图像是同步输出的,因此拼接得到的全景图像的显示效果较好。进一步的,该CPU还可以控制信号处理电路处于第二状态,每个控制器可以将CPU生成的参数修改信号发送给与每个控制器各自对应的传感器,该参数修改信号用于对传感器的寄存器中记录的初始化参数进行调整,保证每个传感器均能够获取显示质量较高的图像。由于每个传感器中的初始化参数均能够被对应的控制器调节,因此在初始化配置完成后通过该初始化同步装置对各个传感器中的初始化参数进行调节的效率较高。In summary, the initialization synchronization device provided by the embodiment of the present application includes: a CPU, one or more controllers, and a signal processing circuit. When the CPU controls the signal processing circuit to be in the first state, the first controller simultaneously sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit, so that each sensor can simultaneously receive the initialization signal. signal, and complete the initialization configuration at the same time, avoiding the asynchronous phenomenon of the images acquired by each sensor. If the initialization synchronization device is integrated on the SOC, when the SOC stitches the images acquired by each sensor to obtain a panoramic image, since the initialization signal can be sent to each image sensor through the signal processing circuit at the same time, the images acquired by each sensor are output synchronously. Therefore, the display effect of the panoramic image obtained by splicing is better. Further, the CPU can also control the signal processing circuit to be in the second state, and each controller can send the parameter modification signal generated by the CPU to the respective sensor corresponding to each controller, and the parameter modification signal is used to modify the register of the sensor Adjust the initialization parameters recorded in , to ensure that each sensor can obtain images with high display quality. Since the initialization parameters in each sensor can be adjusted by the corresponding controller, it is more efficient to adjust the initialization parameters in each sensor through the initialization synchronization device after the initialization configuration is completed.
本申请实施例还提供了一种初始化同步方法,该方法应用于图3或4示出的初始化同步装置,该方法可以包括:The embodiment of the present application also provides an initialization synchronization method, which is applied to the initialization synchronization device shown in Figure 3 or 4, and the method may include:
步骤A1、CPU控制信号处理电路处于第一状态,第一状态用于指示第一控制器通过信号处理电路与一个或多个传感器中每个传感器连接,第一控制器为一个或多个控制器中的一个控制器。Step A1, the CPU controls the signal processing circuit to be in the first state, the first state is used to indicate that the first controller is connected to each sensor in one or more sensors through the signal processing circuit, and the first controller is one or more controllers A controller in .
步骤B1、第一控制器将CPU生成的初始化信号通过信号处理电路发送至一个或多个传感器中的每个传感器。Step B1, the first controller sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit.
可选的,该初始化同步方法还可以包括:Optionally, the initialization synchronization method may also include:
步骤A2、CPU控制信号处理电路处于第二状态,第二状态用于指示一个或多个控制器中的每个控制器通过信号处理电路与一个传感器相连;Step A2, the CPU controls the signal processing circuit to be in a second state, and the second state is used to indicate that each of the one or more controllers is connected to a sensor through the signal processing circuit;
步骤B2、每个控制器将CPU生成的初始化信号或参数修改信号发送给与每个控制器对应的传感器。Step B2, each controller sends the initialization signal or parameter modification signal generated by the CPU to the sensor corresponding to each controller.
可选的,在CPU控制所述信号处理电路处于第一状态后,该初始化同步方法还可以包括:Optionally, after the CPU controls the signal processing circuit to be in the first state, the initialization synchronization method may further include:
步骤A3、第一控制器通过输出处理电路向一个或多个传感器中的每个传感器发送CPU生成的信号。Step A3, the first controller sends the signal generated by the CPU to each of the one or more sensors through the output processing circuit.
步骤B3、第一控制器通过输入处理电路接收一个或多个传感器中的每个传感器各自生成的响应信号。Step B3, the first controller receives the respective response signals generated by each of the one or more sensors through the input processing circuit.
可选的,上述步骤A3可以包括:一个或多个数字选择器中每个数字选择器控制各自的输入端均与第一控制器相连,以使第一控制器通过一个或多个数字选择器向一个或多个传感器发送CPU生成的信号。Optionally, the above step A3 may include: each of the one or more digital selectors controls its respective input terminal to be connected to the first controller, so that the first controller passes through one or more digital selectors Sends a CPU-generated signal to one or more sensors.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:一个或多个数字选择器中每个数字选择器控制各自的输入端与对应的控制器相连。After the CPU controls the signal processing circuit to be in the second state, the initialization synchronization method may further include: each digital selector among the one or more digital selectors controls its respective input terminal to be connected to a corresponding controller.
可选的,上述步骤B3可以包括:第一控制器接收通过与门逻辑电路将接收的一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号。Optionally, the above step B3 may include: the first controller receives the signal after processing the response signal generated by each of the one or more sensors to be received by the AND gate logic circuit.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。After the CPU controls the signal processing circuit to be in the second state, the initialization synchronization method may further include: each of the one or more controllers receives a response signal generated by a corresponding sensor.
可选的,上述步骤B3具体包括:第一控制器接收与门逻辑电路将处理后的信号通过信号选择器发送的信号。Optionally, the above step B3 specifically includes: the first controller receives the signal sent by the AND gate logic circuit through the signal selector after processing the signal.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:信号选择器将第一传感器生成的响应信号发送给第一控制器。After the CPU controls the signal processing circuit to be in the second state, the initialization synchronization method may further include: the signal selector sends the response signal generated by the first sensor to the first controller.
可选的,在CPU控制信号处理电路处于第一状态后,该初始化同步方法还可以包括:信号处理电路控制一个或多个IO接口均连接至第一控制器;Optionally, after the CPU controls the signal processing circuit to be in the first state, the initialization synchronization method may further include: the signal processing circuit controls one or more IO interfaces to be connected to the first controller;
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:信号处理电路控制每个控制器分别通过一个IO接口与对应的传感器相连。After the CPU controls the signal processing circuit to be in the second state, the initialization synchronization method may further include: the signal processing circuit controls each controller to be connected to a corresponding sensor through an IO interface.
可选的,上述步骤A1中的CPU控制信号处理电路处于第一状态,可以包括:CPU控制系统寄存器的寄存器值为第一数值,以使信号处理电路处于第一状态。Optionally, the CPU controlling the signal processing circuit to be in the first state in the above step A1 may include: the CPU controlling the register value of the system register to be the first value, so that the signal processing circuit is in the first state.
可选的,上述步骤A2中的CPU控制信号处理电路处于第二状态,可以包括:CPU控制系统寄存器的寄存器值为第二数值,以使信号处理电路处于第二状态,其中,第一数值和第二数值不同。Optionally, the CPU controlling the signal processing circuit in the above step A2 to be in the second state may include: the register value of the CPU controlling the system register is the second value, so that the signal processing circuit is in the second state, wherein the first value and The second value is different.
可选的,该初始化同步方法还可以包括:在对每个传感器进行初始化处理之前,CPU向每个传感器发送复位指令,以清除每个传感器中的初始化参数。Optionally, the initialization synchronization method may further include: before performing initialization processing on each sensor, the CPU sends a reset instruction to each sensor, so as to clear the initialization parameters in each sensor.
可选的,该初始化同步方法还可以包括:Optionally, the initialization synchronization method may also include:
步骤A4、在对每个传感器进行初始化处理之后,CPU接收每个传感器获取的图像信息。Step A4, after each sensor is initialized, the CPU receives the image information acquired by each sensor.
步骤B4、CPU根据图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步。Step B4, the CPU judges whether the image information acquired by any two sensors is synchronized according to the synchronization signal in the image information.
步骤C4、CPU对获取的图像信息不同步的传感器进行补偿调节。Step C4, the CPU compensates and adjusts the sensors whose acquired image information is not synchronized.
需要说明的是,上述初始化同步方法的原理可以参考前述对初始化同步装置的实施例中的对应部分,在此不再赘述。It should be noted that, for the principle of the above initialization synchronization method, reference may be made to the corresponding part in the aforementioned embodiment of the initialization synchronization device, which will not be repeated here.
本申请实施例还提供了一种摄像机,该摄像机可以为全景摄像机,该摄像机可以包括:多个摄像头和SOC,该SOC包括:图3或4示出的初始化同步装置,每个摄像头均包括传感器,该传感器可以为图像传感器,每个传感器均与初始化同步装置连接。The embodiment of the present application also provides a camera, the camera can be a panoramic camera, the camera can include: a plurality of cameras and an SOC, the SOC includes: the initialization synchronization device shown in Figure 3 or 4, each camera includes a sensor , the sensor may be an image sensor, and each sensor is connected to the initialization synchronization device.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.
Claims (21)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2018/108445 WO2020062076A1 (en) | 2018-09-28 | 2018-09-28 | Initialization synchronization device and method and camera |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112689991A CN112689991A (en) | 2021-04-20 |
| CN112689991B true CN112689991B (en) | 2022-12-27 |
Family
ID=69950994
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201880097091.1A Active CN112689991B (en) | 2018-09-28 | 2018-09-28 | Initialization synchronization device, initialization synchronization method, and camera |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112689991B (en) |
| WO (1) | WO2020062076A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113949817A (en) * | 2021-11-30 | 2022-01-18 | 东风商用车有限公司 | Camera power-on initialization control method, device, equipment and readable storage medium |
| CN116039511A (en) * | 2023-03-07 | 2023-05-02 | 上汽通用五菱汽车股份有限公司 | Control method of 360-degree panoramic system |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105298758A (en) * | 2015-09-29 | 2016-02-03 | 重庆科凯前卫风电设备有限责任公司 | Acceleration sensing system of wind driven generator |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4071157B2 (en) * | 2003-05-27 | 2008-04-02 | セイコーインスツル株式会社 | Image sensor |
| CN101991426A (en) * | 2009-08-21 | 2011-03-30 | 上海境彩环保科技有限公司 | High resolution digital imaging detector |
| DE102010009775B4 (en) * | 2010-03-01 | 2012-06-21 | Rittal Gmbh & Co. Kg | Cabinet monitoring device |
| US10180340B2 (en) * | 2014-10-09 | 2019-01-15 | Invensense, Inc. | System and method for MEMS sensor system synchronization |
| US20170249464A1 (en) * | 2015-05-28 | 2017-08-31 | Telefonaktiebolaget Lm Ericsson (Publ) | METHOD FOR ENABLING SIMULTANEOUS CONTROL OF A PLURALITY OF TPMs AND RELATED COMPONENTS |
| CN106131461A (en) * | 2016-06-28 | 2016-11-16 | 湖北久之洋红外系统股份有限公司 | A kind of multiple image sensor synchronous control system and image processing module |
| CN108282600A (en) * | 2017-01-06 | 2018-07-13 | 北京京东尚科信息技术有限公司 | Refrigerator inside image capture apparatus and refrigerator |
-
2018
- 2018-09-28 CN CN201880097091.1A patent/CN112689991B/en active Active
- 2018-09-28 WO PCT/CN2018/108445 patent/WO2020062076A1/en not_active Ceased
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105298758A (en) * | 2015-09-29 | 2016-02-03 | 重庆科凯前卫风电设备有限责任公司 | Acceleration sensing system of wind driven generator |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112689991A (en) | 2021-04-20 |
| WO2020062076A1 (en) | 2020-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10063839B2 (en) | Method and apparatus for 3D capture synchronization | |
| US6119183A (en) | Multi-port switching system and method for a computer bus | |
| CN112689991B (en) | Initialization synchronization device, initialization synchronization method, and camera | |
| US11979695B2 (en) | SPI-based data transmission system | |
| TWI812604B (en) | Image sensor and control system | |
| JP6330873B2 (en) | Imaging device | |
| JPWO2020129685A1 (en) | Communication equipment and communication methods, and programs | |
| JPS63234323A (en) | Pipeline system | |
| US10257440B2 (en) | Video matrix controller | |
| JP6007509B2 (en) | Serial I/F bus control device and imaging device | |
| US8032332B2 (en) | Semiconductor inspecting apparatus | |
| JPWO2020166378A1 (en) | Communication equipment and methods, and programs | |
| CN118606241A (en) | Multi-serial port switching system, method, board and storage medium | |
| US11995012B2 (en) | High speed interface for multi image sensor device | |
| US12197365B2 (en) | Information processing system, image processing apparatus, and communication control method | |
| US20220180838A1 (en) | Signal Processing Circuit and Link Initialization Method Thereof | |
| CN112422229B (en) | Physical layer reconstruction system | |
| US11924579B1 (en) | FPD-link IV video generator system | |
| JP2018163321A (en) | Multi-display system, video display system, display device, video display control controller | |
| CN110024372B (en) | Arrangement to prevent wrong image orientation for rear view cameras | |
| CN119450169A (en) | Binocular camera access method and system | |
| WO2023093202A1 (en) | Camera system and unmanned device | |
| JPH05298410A (en) | Picture processor | |
| JPH0514416A (en) | Data transmission method | |
| JP2004234173A (en) | Data adjustment device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |