WO2020062076A1 - Initialization synchronization device and method and camera - Google Patents

Initialization synchronization device and method and camera Download PDF

Info

Publication number
WO2020062076A1
WO2020062076A1 PCT/CN2018/108445 CN2018108445W WO2020062076A1 WO 2020062076 A1 WO2020062076 A1 WO 2020062076A1 CN 2018108445 W CN2018108445 W CN 2018108445W WO 2020062076 A1 WO2020062076 A1 WO 2020062076A1
Authority
WO
WIPO (PCT)
Prior art keywords
processing circuit
signal
signal processing
state
cpu
Prior art date
Application number
PCT/CN2018/108445
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 华为技术有限公司
Priority to PCT/CN2018/108445 priority Critical patent/WO2020062076A1/en
Priority to CN201880097091.1A priority patent/CN112689991B/en
Publication of WO2020062076A1 publication Critical patent/WO2020062076A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof

Definitions

  • 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.
  • Video stitching technology refers to the technology of stitching video images obtained by several cameras to form a panoramic image. This video stitching technology is usually applied in panoramic cameras.
  • Traditional panoramic cameras include: multiple cameras and SOC (System On Chip), each camera includes an image sensor, and each image sensor is connected to the SOC. Before each camera acquires an image normally, the SOC sends an initialization configuration instruction to the image sensor of each camera 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 System On Chip
  • the SOC is not synchronized to complete the initialization configuration of multiple image sensors, which causes the images acquired by the image sensors to be not synchronized.
  • the SOC stitches the asynchronous images to obtain a poorly displayed panoramic image.
  • the present application provides an initialization synchronization device, an initialization synchronization method, and a camera, which can initialize multiple sensors in synchronization, so that the images of each image sensor can be output synchronously.
  • an initialization synchronization device including: a central processing unit CPU, one or more controllers, and a signal processing circuit, wherein each of the one or more controllers is coupled to the CPU And the signal processing circuit, the signal processing circuit is connected with one or more sensors outside the initialization synchronization device; the CPU is used to control the signal processing circuit in a first state, and the first state is used to instruct the first controller It is connected to each of the one or more sensors through the signal processing circuit, and the first controller is a controller of the one or more controllers; the first controller is used for the signal processing circuit.
  • the initialization signal generated by the CPU is simultaneously sent to each of the one or more sensors through the signal processing circuit.
  • the first controller when the CPU controls the signal processing circuit in the first state, the first controller sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit at the same time, so that each sensor is It can receive the initialization signals at the same time and complete the initialization configuration at the same time, avoiding the phenomenon that the images acquired by the sensors are not synchronized.
  • the initialization synchronization device is integrated on the SOC, when the SOC stitches the images acquired by the sensors to obtain a panoramic image, the initialization signals can be sent to each image sensor through the signal processing circuit at the same time, so that the images acquired by each sensor are output synchronously. , So the display effect of the stitched panoramic image is better.
  • the CPU is further configured to control the signal processing circuit 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 a 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 parameters recorded in the sensor are adjusted, and the initialization parameters are parameters carried in the initialization signal received by the sensor during the initialization process of each sensor.
  • the display quality for example, sharpness or color depth, etc.
  • the CPU can control the signal processing circuit to be in the second state after the initialization configuration of each sensor is completed by the initialization synchronization device, and each controller can set the parameters generated by the CPU
  • the modification signal is sent to the sensor corresponding to each controller.
  • This parameter modification signal is used to adjust the initialization parameters recorded in the sensor's register to ensure that each sensor can obtain an image with higher 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.
  • 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 passes the output processing circuit to each of the one or more sensors. Sensors send signals generated by the CPU; when the signal processing circuit is in the first state, the first controller receives response signals generated by each of the one or more sensors through the input processing circuit.
  • the CPU in the initialization synchronization device may send a signal to each of the one or more sensors through the output processing circuit, and the CPU may also receive the signal generated by each sensor through the input processing circuit, and the CPU performs the signal deal with.
  • the output processing circuit includes: one or more digital selectors, and an output terminal of each digital selector in the one or more digital selectors is connected to a corresponding sensor; when the signal processing circuit is in the first In the state, the input end 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 of each digital selector is connected to the corresponding controller.
  • 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.
  • the second input port of the selector is connected to the corresponding controller, the state selection port of each digital selector is connected to the CPU, and the output port of each digital selector is connected to the corresponding sensor;
  • the state selection port of the digital selector receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port is in an open state, and the second input port is in an off state Off state;
  • the state selection port of the digital selector receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the first input port is in an off state State, the second input port is in an open state.
  • the input processing circuit includes an AND gate logic circuit; and when the signal processing circuit is in the first state, the AND gate logic circuit will receive a response generated by each of the one or more sensors, respectively. 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.
  • the input processing circuit further includes: a signal selector; each of the one or more sensors is connected to an input terminal of the AND logic circuit, and an output terminal of the AND logic circuit is connected to the signal selection.
  • the first input of the signal selector is connected, the output 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 of the signal selector;
  • 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 Sending a response signal generated by the first sensor to the first controller.
  • 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.
  • the connection bus is an integrated circuit I2C connection bus. Connect one or more of the buses to the synchronous serial port SSP.
  • 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 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 unit is connected to the data of the corresponding controller.
  • Port connection, the first input port of each digital selector in the second output processing circuit is connected to the clock port of the first controller, and the second input 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.
  • the initialization synchronization device further includes: a system register, the system register is respectively connected to the CPU and the signal processing circuit; the CPU controls a register value of the system register to a first value so that the signal processing circuit In the first state; the CPU is further used to control a 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.
  • the initialization synchronization device further includes one or more input / 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 the signal processing circuit is located in the In the first state, the one or more IO interfaces are connected to the first controller; when the signal processing circuit is in the second state, each controller is connected to a corresponding sensor through an IO interface respectively.
  • the CPU is further configured to: before performing initialization processing on each sensor, send a reset instruction to each sensor to clear initialization parameters in each sensor.
  • the CPU is further configured to: after initializing each sensor, receive image information acquired by each sensor; and determine whether image information acquired by any two sensors is synchronized according to a synchronization signal in the image information; Compensate and adjust the sensor whose image information is not synchronized. As a result, the images acquired by the sensors 200 are synchronized, thereby improving the display effect of the panoramic images formed by subsequent stitching.
  • an initialization synchronization method is provided and applied to an initialization synchronization device.
  • the initialization synchronization device includes a CPU, one or more controllers, and a signal processing circuit. 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 in a first state, and the first A state for instructing the first controller to connect with each of the one or more sensors through the signal processing circuit, the first controller being one of the one or more controllers; the first control The processor sends an initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit.
  • the method further includes: the CPU controls the signal processing circuit 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 sends the initialization signal or parameter modification signal generated by the CPU to a sensor corresponding to each controller, and the parameter modification signal is used to adjust initialization parameters recorded in the sensor, and the initialization parameter is In the process of initializing each sensor, parameters carried in the initialization signal received by the sensor.
  • the signal processing circuit includes: an output processing circuit and an input processing circuit; after the CPU controls the signal processing circuit in a first state, the method further includes: the first controller sends the signal processing circuit to the one through the output processing circuit.
  • the first controller sends the signal processing circuit to the one through the output processing circuit.
  • Each of the one or more sensors sends a signal generated by the CPU; the first controller receives a response signal generated by each of the one or more sensors through the input processing circuit.
  • the output processing circuit includes: one or more digital selectors, and an output terminal of each digital selector in the one or more digital selectors is connected to a corresponding sensor; and the first controller processes the data through the output.
  • the circuit sends a signal generated by the CPU to each of the one or more sensors, and includes: each digital selector of the one or more digital selectors controls a respective input terminal connected to the first controller, So that the first controller sends the signals generated by the CPU to one or more sensors through the one or more digital selectors; after the CPU controls the signal processing circuit in a second state, the method further includes: the one Each of the digital selectors or multiple digital selectors controls a respective input terminal connected to a corresponding controller.
  • the input processing circuit includes an AND gate logic circuit
  • the first controller receives a response signal generated by each of the one or more sensors through the input processing circuit, and includes: the first controller Receiving a processed signal of a response signal generated by each of the one or more sensors received by the AND logic circuit; after the CPU controls the signal processing circuit to be in a second state, the method further includes : Each of the one or more controllers receives a response signal generated by a corresponding sensor.
  • the input processing circuit further includes: a signal selector, each of the one or more sensors is connected to an input terminal of the AND logic circuit, and an output terminal of the AND logic circuit selects the signal.
  • the first input of the signal selector is connected, the output 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 of the signal selector; the first The controller receives a processed signal of the response signal generated by each of the one or more sensors received by the AND logic circuit, and includes: after receiving the AND logic circuit, the first controller receives the processed signal.
  • the signal sent by the signal selector; after the CPU controls the signal processing circuit in the second state, the method further includes: the signal selector sends a response signal generated by the first sensor to the first controller .
  • the initialization synchronization device further includes: a system register, the system register is respectively connected with the CPU and the signal processing circuit, the CPU controls the signal processing circuit in a first state, and includes: a register that the CPU controls the system register The value is a first value, so that the signal processing circuit is in a first state; the CPU controls the signal processing circuit in a second state, including: the CPU controls the register value of the system register to a second value, so that the signal is processed The circuit is in a second state, wherein the first value is different from the second value.
  • the initialization synchronization device further includes one or more input / 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; the CPU controls the signal processing circuit at After the first state, the method further 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 in the second state, the method further includes: The signal processing circuit controls each controller to be connected to a corresponding sensor through an IO interface.
  • the method further includes: before performing initialization processing on each sensor, the CPU sends a reset instruction to each sensor to clear initialization parameters in each sensor.
  • the method further includes: after initializing each sensor, the CPU receives image information acquired by each sensor; and the CPU judges image information acquired by any two sensors according to a synchronization signal in the image information Whether to synchronize; the CPU compensates and adjusts the sensor for which the acquired image information is not synchronized.
  • a camera including: a plurality of cameras and a system-on-chip SOC.
  • the SOC includes: any of the initialization synchronization devices of the first aspect, each camera includes a sensor, and each sensor is associated with the initialization Sync device connection.
  • FIG. 1 is a block diagram of a panoramic camera provided by related technologies
  • FIG. 2 is a block diagram of another panoramic camera provided by the related art
  • FIG. 3 is a block diagram of an initialization synchronization device according to an embodiment of the present application.
  • FIG. 4 is a block diagram of another initialization synchronization device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an output processing circuit according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of signal transmission in the output processing circuit shown in FIG. 5;
  • FIG. 7 is a schematic structural diagram of an input processing circuit according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of signal transmission in the output processing circuit shown in FIG. 7.
  • FIG. 1 is a block diagram of a panoramic camera provided by the related art.
  • the panoramic camera includes: SOC01 and a plurality of cameras (not shown in FIG. 1), and each camera may include an image sensor 02.
  • the SOC 01 is internally provided with an I2C (Inter-Integrated Circuit) bus 011 and a plurality of INCK (Input Clock) circuits 012, and each image sensor 02 is connected to the I2C bus 011, and the plurality of INCKs
  • the circuit 012 is connected to the plurality of image sensors 02 in a one-to-one correspondence.
  • SOC01 When a panoramic camera acquires a panoramic image, SOC01 needs to send an initialization configuration instruction to all image sensors 02 through the I2C bus 011 and multiple INCK circuits 012. After each image sensor 02 receives the initialization configuration instruction, it performs initialization configuration. After the initial configuration of the image sensor 02 is completed, an image can be acquired and the obtained image is sent to the SOC01, so that the SOC01 stitches the images acquired by different image sensors 02 to obtain a panoramic image.
  • SOC01 needs to control multiple image sensors 02 one by one for initial configuration, that is, after an image sensor is initialized and configured, SOC01 can be controlled.
  • An image sensor is initialized for configuration.
  • the image sensor 02 immediately sends the acquired image to the SOC 01, and the SOC 01 cannot control multiple image sensors 01 to complete the initial configuration at the same time, so each image sensor 02 The acquired images are not synchronized.
  • SOC01 stitches the asynchronous images, and the obtained panoramic image has a poor display effect.
  • FIG. 2 is a block diagram of another panoramic camera provided by the related art.
  • the SOC01 in the panoramic camera is provided with multiple I2C buses 011 and multiple INCK circuits 012.
  • the multiple I2C buses 011 and multiple The image sensors 02 are connected one-to-one correspondingly, and the plurality of INCK circuits 012 are connected one-to-one correspondingly to the plurality of image sensors 02.
  • SOC 01 does not need to control multiple image sensors 02 one by one for initialization and configuration.
  • the multiple image sensors 02 can be initialized and configured at the same time, due to the sequential execution of software, SOC 01 needs to be configured one by one through the multiple I2C buses.
  • the initialization image instruction is sent to each image sensor 02, and the time to complete the initialization of each image sensor 02 will still be delayed in order.
  • SOC01 still cannot control multiple image sensors 01 to complete the initialization configuration at the same time, resulting in The images are not synchronized.
  • SOC 01 stitches the asynchronous images, and the resulting panoramic image displays poor results.
  • FIG. 3 is a block diagram of an initialization synchronization device according to an embodiment of the present application.
  • the initialization synchronization device 100 may include:
  • the circuit 30 is connected to one or more sensors 200 outside the initialization synchronization device.
  • the sensor 200 in the embodiment of the present application may be an image sensor.
  • the CPU 10 is used to control the signal processing circuit 30 in a first state, and the first state is used to instruct the first controller 20a to be connected to each of the one or more sensors 200 through the signal processing circuit 30.
  • a controller 20 a is one of the one or more controllers 20.
  • the first controller 20 a is configured to simultaneously transmit the initialization signal generated by the CPU 10 to each of the one or more sensors 200 through the signal processing circuit 30 when the signal processing circuit 30 is in the first state.
  • 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.
  • the multiple input and output interfaces of the signal processing circuit 30 are all Connected to the first controller 20a, when the CPU 10 generates an initialization signal, the initialization signal is sent to each sensor 200 through the first controller 20a through multiple input and output interfaces at the same time, and each sensor 200 receives the first controller
  • the initialization parameters for example, image resolution, refresh rate, exposure time, and gain, etc.
  • the sensor 200 can complete the initial configuration.
  • each sensor 200 can simultaneously receive the initialization signal and complete the initialization configuration at the same time. The phenomenon that the images acquired by the sensors 200 are not synchronized is avoided. If the initialization synchronization device 100 is integrated on the SOC, when the SOC stitches the images acquired by each sensor 200 to obtain a panoramic image, the initialization signal can be sent to each image sensor 200 through the signal processing circuit 30 at the same time, so that each sensor 200 acquires The images are output synchronously, so the panoramic image obtained by stitching displays better.
  • the CPU 10 is also used to control the signal processing circuit 30 in a second state, and the second state is used to instruct each of the one or more controllers 20 to communicate with the sensor 200 through the signal processing circuit 30 Connected.
  • Each controller 20 is configured to send an initialization signal generated by the CPU 10 to the sensor 200 corresponding to each controller 20 when the signal processing circuit 30 is in the second state.
  • each sensor 200 is connected to the CPU 10 through its own controller 20, and the CPU 10 can independently control each sensor 200.
  • each sensor 200 can acquire an image, but due to manufacturing errors between each sensor 200, when the same configuration is performed for each sensor 200, When the parameters are initialized, there will be differences in the display quality (such as sharpness or color depth) of the images acquired by each sensor 200.
  • the CPU 10 controls the signal processing circuit 30 to be in a second state, and each controller 20 can The parameter modification signal generated by the CPU 10 is sent to the sensor 200 corresponding to each controller 20.
  • This parameter modification signal is used to adjust the initialization parameters recorded in the register of the sensor 200 to ensure that each sensor 200 can obtain an image with a higher display quality. Since the initialization parameters in each sensor 200 can be adjusted by the corresponding controller 20, after the initialization configuration is completed, the initialization parameters in each sensor 200 are adjusted by the initialization synchronization device 100 with high efficiency.
  • FIG. 4 is a block diagram of another initialization synchronization device provided by an embodiment of the present application.
  • the initialization synchronization device 100 may further include a system register 40, which is connected to the CPU 10 and the signal processing circuit 30, respectively.
  • the CPU 10 is used to control the register value of the system register 40 to a first value so that the signal processing circuit 30 is in the first state; the CPU 10 is also used to control the register value of the system register 40 to a second value so that the signal The processing circuit 30 is in a second state.
  • the first value is different from the second value.
  • the first value may be 1 and the second value may be 0. It should be noted that FIG.
  • the CPU 10 uses the register value of the CPU 10 control system register 40 to control the signal processing circuit 30 in the first state or the second state.
  • the CPU 10 may
  • the direct control signal processing circuit 30 is in a first state or a second state, which is not specifically limited in the embodiment of the present application.
  • the initialization synchronization device 100 may further include one or more 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.
  • FIG. 4 is only a schematic diagram schematically showing an IO general interface 50, and the IO general interface 50 includes one or more IO interfaces connected to the one or more sensors 200 one by one.
  • 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 of the one or more controllers 20 controls 20 and the corresponding sensor 200 connection.
  • the initialization synchronization device 100 further includes a connection bus 60.
  • Each of the one or more controllers 20 is coupled to the CPU 10 and the signal processing circuit 30 through the connection bus 60.
  • the signal processing circuit 30 and the IO general interface 50 may also be connected through the connection bus 60.
  • the connection bus 60 may be one or more of an integrated circuit (Inter-Integrated Circuit) (I2C) connection bus and a synchronous serial port (Synchronous Serial Port (SSP) connection bus).
  • I2C Inter-Integrated Circuit
  • SSP Synchronous Serial Port
  • the I2C connection bus may include data traces for transmitting data signals and clock traces for transmitting clock signals; the SSP connection bus may include three types of signal traces: Input and output data traces (also known as bidirectional data traces), clock traces used to transmit clock signals, and chip select traces used to transmit chip select signals; this SSP connection bus can also contain four types of signal traces : Input data traces for transmitting data signals, output data traces for transmitting data signals, clock traces for transmitting clock signals, and chip selection traces for transmitting chip select signals.
  • the embodiments of the present application divide the initialization synchronization device from the perspective of functions. In actual implementation, there may be another division manner, for example, multiple modules may be combined or integrated into another system.
  • the coupling between the various modules can be achieved through some interfaces. These interfaces are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations on the same or different devices. In various embodiments of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices.
  • the signal processing circuit 30 in the initialization synchronization device 100 includes: an output processing circuit 31 and an input processing circuit 32.
  • the first controller 20a When the signal processing circuit 30 is in the first state, the first controller 20a sends a signal generated by the CPU 10 to each of the one or more sensors 200 through the output processing circuit 31.
  • the signal generated by the CPU 10 may be Is an initialization signal; the first controller 20a receives a response signal generated by each of the one or more sensors 200 through the input processing circuit 32, for example, the response signal of each sensor 200 is Initialization response signal generated after receiving the initialization signal.
  • each of the one or more controllers 20 sends a signal generated by the CPU 10 to the corresponding sensor 200 through the output processing circuit 31, for example, the signal generated by the CPU 10 Signals can be modified for the parameters; each of the one or more controllers 20 receives the response signal of the corresponding sensor 200 through the input processing circuit 32, for example, the response signal of each sensor 20 is the signal received by the sensor 200 Parameter modification response signal generated after parameter modification signal.
  • each controller 20 in the embodiment of the present application sends the response signal to the CPU 10, and the CPU 10 performs signal processing.
  • FIG. 5 is a schematic structural diagram of an output processing circuit 31 according to an embodiment of the present application.
  • the output processing circuit includes one or more digital selectors 311.
  • at least one of the digital selectors 311 corresponds to a sensor and a controller.
  • the output terminals of the one or more digital selectors 311 are connected to corresponding sensors.
  • FIG. 6 is a schematic diagram of signal transmission in the output processing circuit 31 shown in FIG. 5.
  • the signal transmission direction in the output processing circuit 31 is the direction where the solid line in FIG. 6 is located, and the input port of each of the one or more digital selectors 311 Connected to the first controller, so that the first controller can send signals generated by the CPU to each of the one or more sensors at the same time;
  • the signal processing circuit is in the second state, the signal in the output processing circuit 31 is transmitted
  • the direction is the direction where the dotted line in FIG. 6 is located.
  • the input of each digital selector 311 in the one or more digital selectors 311 is connected to the corresponding controller, so that each of the one or more controllers controls The device can send signals generated by the CPU to the corresponding sensors.
  • each digital selector 311 includes: a first input port T1, a second input port T2, a state selection port S, and an output port Z.
  • a first input port T1 of each digital selector 311 is connected to a first controller; a second input port T2 of each digital selector 311 is connected to a corresponding controller; a state selection port S of each digital selector 311 Connected to the CPU.
  • the state selection port S of each digital selector 311 is connected to the CPU through the system control register, that is, the state selection port S is connected to the system control register, and the system control register is connected to the CPU. ;
  • the output port Z of each digital selector 311 is connected to the corresponding sensor.
  • the state selection port S of the digital selector 311 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state
  • the first input port T1 of the digital selector 311 In the on state
  • the second input port T2 of the digital selector is in the off state, so that each of the one or more sensors is connected to the first controller through the output processing circuit 31.
  • the state selection port S of the digital selector 311 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state
  • the first input port T1 of the digital selector 311 In the off state
  • the second input port T2 of the digital selector is on, so that each of the one or more sensors is connected to the corresponding controller through the output processing circuit 31.
  • the output processing circuit 31 may include a first output processing circuit 31a for outputting a data signal, and a second output processing circuit 31a for outputting a clock signal.
  • the output processing circuit 31b The data line in the I2C connection bus is connected to the first output processing circuit 31a, and the clock line in the I2C connection bus is connected to the second output processing circuit 31b.
  • Each of the first output processing circuit 31a and the second output processing circuit 31b may include: one or more signal selectors 311.
  • the first input terminal T1 of each digital selector 311 in the first output processing circuit 31a is connected to the data port of the first controller.
  • the first output processing unit 31a of each digital selector 311 The two input ports T2 are connected to the data ports of the corresponding controller; the first input port T1 of each digital selector 311 in the second output processing circuit 31b is connected to the clock port of the first controller, and the second output A second input port T2 of each digital selector 311 in the processing circuit 31b is connected to a clock port of a corresponding controller.
  • FIG. 7 is a schematic structural diagram of an input processing circuit 32 according to an embodiment of the present application.
  • the input processing circuit 32 may include an AND gate logic circuit 321.
  • FIG. 8 is a schematic diagram of signal transmission in the output processing circuit 31 shown in FIG. 7.
  • the signal transmission direction in the input processing circuit 32 is the direction where the solid line in FIG. 8 is located, and each of the one or more sensors passes the response signal generated by each of the sensors through the AND gate logic circuit.
  • 321 is sent to the first controller after processing; when the signal processing circuit is in the second state, the signal transmission direction in the input processing circuit 32 is the direction where the dotted line in FIG. 8 is located, and each of the one or more controllers Receive the response signal generated by the corresponding sensor.
  • the input processing circuit 32 may further include a digital selector 322.
  • each of the one or more sensors is connected to the input terminal of the AND logic circuit 321; the output terminal of the AND logic circuit 321 is connected to the first input terminal of the signal selector 322; An output terminal of the signal selector 322 is connected to a first controller; a first sensor corresponding to the first controller is also connected to a second input terminal of the signal selector 322.
  • the AND logic circuit 322 sends the processed signal to the first controller through the signal selector 322; when the signal processing circuit is in the second state, the signal selection The transmitter 322 sends a response signal generated by the first sensor to the first controller.
  • the input processing circuit 32 may include a first input processing circuit 32a for inputting a data signal, and a second input processing circuit for inputting a clock signal.
  • the input processing circuit 32b The data line in the I2C connection bus is connected to the first input processing circuit 32a, and the clock line in the I2C connection bus is connected to the second input processing circuit 32b.
  • the first input processing circuit 32a and the second input processing circuit 32b each include an AND logic circuit 321 and a signal selector 322.
  • the connection mode between the AND logic circuit 321 and the signal selector 322 is the same as that of the first input processing circuit. Both 32a and the second input processing circuit 32b are the same.
  • the following embodiments schematically illustrate specific connection modes between the AND logic circuit 321 and the signal selector 322:
  • the AND logic circuit 321 has an output port Z and one or more input ports (T0, T1, T2, ..., Tn) corresponding to one or more sensors, and the digital selector 322 has a first An input port T1, a second input port T2, a state selection port S, and an output port Z.
  • Each of the one or more sensors is connected to a corresponding input port in the AND logic circuit 321; the output port Z of the AND logic circuit 321 is connected to the first input port T1 of the digital selector; the one or more A first sensor of the plurality of sensors is connected to the second input port T2 of the digital selector 322; an output port Z of the digital selector 322 is connected to the first controller; each of the one or more sensors except the first sensor The sensor is directly connected to the corresponding controller; the state selection port S of the digital selector 322 is connected to the CPU. For example, the state selection port S of the digital selector 322 is connected to the system control register, which needs to be connected to the CPU.
  • the state selection port of the digital selector 322 When the state selection port of the digital selector 322 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port T1 of the digital selector 322 is in an open state. The second input port T2 is in an off state. At this time, the response signals generated by each of the one or more sensors are processed by the AND logic circuit 321 and then sent to the first sensor. It should be noted that when the signal processing circuit is in the first state, the CPU can control the connection between the signal processing circuit and each of the one or more controllers except the first controller to be interrupted.
  • the state selection port of the digital selector 322 When the state selection port of the digital selector 322 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the second input port T2 of the digital selector 322 is in an open state. The first input port T1 is in an off state. At this time, the response signal generated by the first sensor may be sent to the first controller through the digital selector 322, and the response signal generated by each of the one or more sensors except the first sensor is directly sent to the corresponding control. Device. It should be noted that, when the signal processing circuit is in the second state, the CPU needs to control that it can be normally connected with each of the one or more controllers. At this time, each of the one or more sensors The generated response signals are sent to the CPU through the corresponding controller, so that the CPU can process the signals sent by each controller.
  • the output port of the digital selector 322 in the first input processing circuit 32a is connected to the data port of the first controller; the output port of the digital selector 322 in the second input processing circuit 32b is connected to the data port of the first controller.
  • a controller's clock port is connected.
  • Each of the one or more sensors except the first sensor is respectively connected to a data port and a clock port of a corresponding controller.
  • the CPU 10 is further configured to: before performing initialization processing on each sensor 200, send a reset instruction to each sensor 200 to clear each sensor 200.
  • the registers store the initialization parameters. It should be noted that when the CPU 10 sends a reset instruction to each sensor 200, the CPU 10 can control the signal processing circuit 30 to be in the first state or the signal processing circuit 30 to be in the second state. This embodiment of the present application does not address this. Be limited.
  • each sensor 200 may obtain a different time period. Images are transmitted to the initialization synchronization device 100. Generally, if the time difference between the two sensors 200 transmitting the acquired images to the initialization synchronization device 100 is within 0.15 microseconds, the image information obtained by the two sensors may be considered to be synchronized .
  • the CPU 10 is further configured to: after performing initialization processing 30 on each sensor 200, receive image information acquired by each sensor 200; The synchronization signal in the image information determines whether the image information acquired by any two sensors 200 is synchronized; and the compensation adjustment is performed for the sensor 200 whose image information is not synchronized. As a result, the images acquired by the sensors 200 are synchronized, thereby improving the display effect of the panoramic images formed by subsequent stitching.
  • the initialization synchronization device provided in the embodiment of the present application includes a CPU, one or more controllers, and a signal processing circuit.
  • the CPU controls the signal processing circuit in the first state
  • the first controller sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit at the same time, so that each sensor can receive the initialization at the same time Signal and complete the initial configuration at the same time, avoiding the phenomenon that the images acquired by the sensors are not synchronized.
  • the initialization synchronization device is integrated on the SOC, when the SOC stitches the images obtained by the sensors to obtain a panoramic image, the initialization signals can be sent to each image sensor through the signal processing circuit at the same time, so that the images obtained by each sensor are output synchronously , So the display effect of the stitched panoramic image is better.
  • the CPU can control the signal processing circuit to be in a second state, and each controller can send a parameter modification signal generated by the CPU to a sensor corresponding to each controller, and the parameter modification signal is used to register a sensor.
  • the initialization parameters recorded in the camera are adjusted to ensure that each sensor can obtain images with higher 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.
  • An embodiment of the present application further provides an initialization synchronization method.
  • the method is applied to the initialization synchronization device shown in FIG. 3 or 4.
  • the method may include:
  • Step A1 The CPU controls the signal processing circuit in a first state.
  • the first state is used to instruct the first controller to connect with each of the one or more sensors through the signal processing circuit.
  • the first controller is one or more controllers. One of the controllers.
  • Step B1 The first controller sends an initialization signal generated by the CPU to each of the one or more sensors through a signal processing circuit.
  • the initialization synchronization method may further include:
  • Step A2 The CPU controls the signal processing circuit 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;
  • Step B2 Each controller sends an initialization signal or a parameter modification signal generated by the CPU to a sensor corresponding to each controller.
  • the initialization synchronization method may further include:
  • Step A3 The first controller sends a signal generated by the CPU to each of the one or more sensors through an output processing circuit.
  • Step B3 The first controller receives a response signal generated by each of the one or more sensors through an input processing circuit.
  • the foregoing step A3 may include: each input of one or more digital selectors controls a respective input end of the digital selector to be connected to the first controller, so that the first controller passes one or more digital selectors Sends signals generated by the CPU to one or more sensors.
  • the initialization synchronization method may further include: each digital selector of one or more digital selectors controls a respective input terminal to be connected to a corresponding controller.
  • the above step B3 may include: the first controller receives a processed signal of a response signal generated by each of the one or more sensors received through an AND gate logic circuit.
  • the initialization synchronization method may further include: each of the one or more controllers receives a response signal generated by a corresponding sensor.
  • the above step B3 specifically includes: the first controller receives a signal sent by the AND logic circuit through the processed signal through a signal selector.
  • the initialization synchronization method may further include: the signal selector sends a response signal generated by the first sensor to the first controller.
  • the initialization synchronization method may further include: the signal processing circuit controls one or more IO interfaces to be connected to the first controller;
  • 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 respectively.
  • the CPU control signal processing circuit in the above step A1 is in the first state, which may include: the register value of the CPU control system register is the first value, so that the signal processing circuit is in the first state.
  • the CPU control signal processing circuit in the above step A2 is in the second state, which may include: the register value of the CPU control system register is the second value, so that the signal processing circuit is in the second state, where the first value and The second value is different.
  • the initialization synchronization method may further include: before performing initialization processing on each sensor, the CPU sends a reset instruction to each sensor to clear the initialization parameters in each sensor.
  • the initialization synchronization method may further include:
  • Step A4 After initializing each sensor, the CPU receives image information acquired by each sensor.
  • Step B4 The CPU determines whether the image information acquired by any two sensors is synchronized according to the synchronization signal in the image information.
  • Step C4 The CPU compensates and adjusts the sensor for which the acquired image information is not synchronized.
  • An embodiment of the present application further provides a camera.
  • the camera may be a panoramic camera.
  • the camera may include a plurality of cameras and a SOC.
  • the SOC includes an initialization synchronization device shown in FIG. 3 or 4.
  • Each camera includes a sensor.
  • the sensor may be an image sensor, and each sensor is connected to an initialization synchronization device.

Abstract

Embodiments of the present application provide an initialization synchronization device and method and a camera, relating to the technical field of video processing. The initialization synchronization device comprises: a CPU, one or more controllers, and a signal processing circuit. Each of 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 on an outer portion of the initialization synchronization device. The CPU controls the signal processing circuit to be in a first state, and the first state is used to instruct a first controller to connect to each of the one or more sensors by means of the signal processing circuit. The first controller simultaneously sends, via the signal processing circuit, an initialization signal generated by the CPU to each of the one or more sensors, such that each sensor simultaneously receives the initialization signal, and initialization configuration is simultaneously completed.

Description

初始化同步装置、初始化同步方法及摄像机Initialization synchronization device, initialization synchronization method, and camera 技术领域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
视频拼接技术是指将若干个摄像头获取到的视频图像拼接形成一幅全景图像的技术,该视频拼接技术通常应用在全景摄像机中。Video stitching technology refers to the technology of stitching video images obtained by several cameras to form a panoramic image. This video stitching technology is usually applied in panoramic cameras.
传统的全景摄像机包括:多个摄像头和SOC(System On Chip,系统级芯片),每个摄像头均包括图像传感器,每个图像传感器均与SOC连接。在每个摄像头正常获取图像之前,SOC向每个摄像头的图像传感器发送初始化配置指令,以完成图像传感器的初始化配置。在每个图像传感器初始化配置完成后,各图像传感器将获取到的图像传输到SOC中,SOC可以将不同的图像传感器获取到的图像拼接形成一幅全景图像。Traditional panoramic cameras include: multiple cameras and SOC (System On Chip), each camera includes an image sensor, and each image sensor is connected to the SOC. Before each camera acquires an image normally, the SOC sends an initialization configuration instruction to the image sensor of each camera 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 SOC is not synchronized to complete the initialization configuration of multiple image sensors, which causes the images acquired by the image sensors to be not synchronized. The SOC stitches the asynchronous images to obtain a poorly displayed panoramic image.
发明内容Summary of the Invention
本申请提供了一种初始化同步装置、初始化同步方法及摄像机,能够对多个传感器同步进行初始化,从而使各个图像传感器的图像可以同步输出。The present application provides an initialization synchronization device, an initialization synchronization method, and a camera, which can initialize multiple sensors in synchronization, so that the images of each image sensor can be output synchronously.
第一方面,提供了一种初始化同步装置,包括:中央处理单元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 of the one or more controllers is coupled to the CPU And the signal processing circuit, the signal processing circuit is connected with one or more sensors outside the initialization synchronization device; the CPU is used to control the signal processing circuit in a first state, and the first state is used to instruct the first controller It is connected to each of the one or more sensors through the signal processing circuit, and the first controller is a controller of the one or more controllers; the first controller is used for the signal processing circuit. When in the first state, the initialization signal generated by the CPU is simultaneously sent to each of 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 in the first state, the first controller sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit at the same time, so that each sensor is It can receive the initialization signals at the same time and complete the initialization configuration at the same time, avoiding the phenomenon that the images acquired by the sensors are not synchronized. If the initialization synchronization device is integrated on the SOC, when the SOC stitches the images acquired by the sensors to obtain a panoramic image, the initialization signals can be sent to each image sensor through the signal processing circuit at the same time, so that the images acquired by each sensor are output synchronously. , So the display effect of the stitched panoramic image is better.
可选的,该CPU,还用于控制该信号处理电路处于第二状态,该第二状态用于指示该一个或多个控制器中的每个控制器通过该信号处理电路与一个传感器相连;每个控制器,用于在该信号处理电路处于该第二状态时,将该CPU生成的该初始化信号或参数修改信号 发送给与该每个控制器对应的传感器,该参数修改信号用于对该传感器中记录的初始化参数进行调整,该初始化参数为在对每个传感器进行初始化处理的过程中,该传感器接收到的初始化信号中携带的参数。Optionally, the CPU is further configured to control the signal processing circuit 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 a 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 parameters recorded in the sensor are adjusted, and the initialization parameters are parameters carried in the initialization signal received by the sensor during the initialization process of each sensor.
在本申请中,由于各个传感器之间存在制造误差,当对各个传感器均配置相同的初始化参数时,各个传感器所获取的图像的显示质量(例如清晰度或色彩深度等)会存在差异。为了使得各个传感器均能够获取到显示质量较高的图像,在通过初始化同步装置完成对各个传感器的初始化配置后,CPU可以控制信号处理电路处于第二状态,每个控制器可以将CPU生成的参数修改信号发送给与每个控制器各自对应的传感器。该参数修改信号用于对传感器的寄存器中记录的初始化参数进行调整,保证每个传感器均能够获取显示质量较高的图像。由于每个传感器中的初始化参数均能够被对应的控制器调节,因此在初始化配置完成后通过该初始化同步装置对各个传感器中的初始化参数进行调节的效率较高。In the present application, due to manufacturing errors between the sensors, when the same initialization parameters are configured for each sensor, the display quality (for example, sharpness or color depth, etc.) of the images acquired by each sensor may be different. In order to enable each sensor to obtain an image with higher display quality, the CPU can control the signal processing circuit to be in the second state after the initialization configuration of each sensor is completed by the initialization synchronization device, and each controller can set the parameters generated by the CPU The modification signal is sent to the sensor corresponding to each controller. This parameter modification signal is used to adjust the initialization parameters recorded in the sensor's register to ensure that each sensor can obtain an image with higher 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 passes the output processing circuit to each of the one or more sensors. Sensors send signals generated by the CPU; when the signal processing circuit is in the first state, the first controller receives response signals 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 may send a signal to each of the one or more sensors through the output processing circuit, and the CPU may also receive the signal generated by each sensor through the input processing circuit, and the CPU performs the signal deal with.
可选的,该输出处理电路包括:一个或多个数字选择器,该一个或多个数字选择器中每个数字选择器的输出端与对应的传感器连接;当该信号处理电路处于该第一状态时,该一个或多个数字选择器中每个数字选择器的输入端均与该第一控制器相连;当该信号处理电路处于该第二状态时,该一个或多个数字选择器中每个数字选择器的输入端与对应的控制器相连。Optionally, the output processing circuit includes: one or more digital selectors, and an output terminal of each digital selector in the one or more digital selectors is connected to a corresponding sensor; when the signal processing circuit is in the first In the state, the input end 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 of each digital selector is connected to 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. The second input port of the selector is connected to the corresponding controller, the state selection port of each digital selector is connected to the CPU, and the output port of each digital selector is connected to the corresponding sensor; When the state selection port of the digital selector receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port is in an open state, and the second input port is in an off state Off state; for each digital selector, when the state selection port of the digital selector receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the first input port is in an off state State, the second input port is in an open state.
可选的,该输入处理电路包括:与门逻辑电路;当该信号处理电路处于该第一状态时,该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后,发送给该第一控制器;当该信号处理电路处于该第二状态时,该一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Optionally, the input processing circuit includes an AND gate logic circuit; and when the signal processing circuit is in the first state, the AND gate logic circuit will receive a response generated by each of the one or more sensors, respectively. 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 of the one or more sensors is connected to an input terminal of the AND logic circuit, and an output terminal of the AND logic circuit is connected to the signal selection. The first input of the signal selector is connected, the output 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 of the signal selector; 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 Sending a response signal generated by the first sensor 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. The connection bus is an integrated circuit I2C connection bus. Connect one or more of the buses to the synchronous serial port SSP.
假设本申请中的连接总线为I2C连接总线,则:该输出处理电路包括:用于输出数据信号的第一输出处理电路,以及用于输出时钟信号的第二输出处理电路;该第一输出处理电路中的每个数字选择器的第一输入端口均与该第一控制器的数据端口连接,该第一输出处理单元中的每个数字选择器的第二输入端口与对应的控制器的数据端口连接,该第二输出处理电路中的每个数字选择器的第一输入端口均与该第一控制器的时钟端口连接,该第二输出处理电路中的每个数字选择器的第二输入端口与对应的控制器的时钟端口连接。Assuming that the connection bus in this application is an I2C connection bus, 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 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 unit is connected to the data of the corresponding controller. Port connection, the first input port of each digital selector in the second output processing circuit is connected to the clock port of the first controller, and the second input 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 further includes: a system register, the system register is respectively connected to the CPU and the signal processing circuit; the CPU controls a register value of the system register to a first value so that the signal processing circuit In the first state; the CPU is further used to control a 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 further includes one or more input / 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 the signal processing circuit is located in the In the first state, the one or more IO interfaces are connected to the first controller; when the signal processing circuit is in the second state, each controller is connected to a corresponding sensor through an IO interface respectively.
可选的,该CPU还用于:在对每个传感器进行初始化处理之前,向每个传感器发送复位指令,以清除每个传感器中的初始化参数。Optionally, the CPU is further configured to: before performing initialization processing on each sensor, send a reset instruction to each sensor to clear initialization parameters in each sensor.
可选的,该CPU还用于:在对每个传感器进行初始化处理之后,接收每个传感器获取的图像信息;根据该图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;对获取的图像信息不同步的传感器进行补偿调节。从而使得各个传感器200所获取的图像是同步的,进而提高了后续拼接形成的全景图像的显示效果。Optionally, the CPU is further configured to: after initializing each sensor, receive image information acquired by each sensor; and determine whether image information acquired by any two sensors is synchronized according to a synchronization signal in the image information; Compensate and adjust the sensor whose image information is not synchronized. As a result, the images acquired by the sensors 200 are synchronized, thereby improving the display effect of the panoramic images formed by subsequent stitching.
第二方面,提供了一种初始化同步方法,应用于初始化同步装置中,该初始化同步装置包括:CPU、一个或多个控制器以及信号处理电路,其中,该一个或多个控制器中的每个控制器均耦合至该CPU以及该信号处理电路,该信号处理电路与该初始化同步装置外部的一个或多个传感器连接,该方法包括:该CPU控制该信号处理电路处于第一状态,该第一状态用于指示第一控制器通过该信号处理电路与该一个或多个传感器中每个传感器连接,该第一控制器为该一个或多个控制器中的一个控制器;该第一控制器将该CPU生成的初始化信号通过该信号处理电路发送至该一个或多个传感器中的每个传感器。According to a second aspect, an initialization synchronization method is provided and applied to an initialization synchronization device. The initialization synchronization device includes a CPU, one or more controllers, and a signal processing circuit. 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 in a first state, and the first A state for instructing the first controller to connect with each of the one or more sensors through the signal processing circuit, the first controller being one of the one or more controllers; the first control The processor sends an initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit.
可选的,该方法还包括:该CPU控制该信号处理电路处于第二状态,该第二状态用于指示该一个或多个控制器中的每个控制器通过该信号处理电路与一个传感器相连;每个控制器将该CPU生成的该初始化信号或参数修改信号发送给与该每个控制器对应的传感器,该参数修改信号用于对该传感器中记录的初始化参数进行调整,该初始化参数为在对每个传感器进行初始化处理的过程中,该传感器接收到的初始化信号中携带的参数。Optionally, the method further includes: the CPU controls the signal processing circuit 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 sends the initialization signal or parameter modification signal generated by the CPU to a sensor corresponding to each controller, and the parameter modification signal is used to adjust initialization parameters recorded in the sensor, and the initialization parameter is In the process of initializing each sensor, 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 in a first state, the method further includes: the first controller sends the signal processing circuit to the one through the output processing circuit. Each of the one or more sensors sends a signal generated by the CPU; the first controller receives a response signal generated by each 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, and an output terminal of each digital selector in the one or more digital selectors is connected to a corresponding sensor; and the first controller processes the data through the output. The circuit sends a signal generated by the CPU to each of the one or more sensors, and includes: each digital selector of the one or more digital selectors controls a respective input terminal connected to the first controller, So that the first controller sends the signals generated by the CPU to one or more sensors through the one or more digital selectors; after the CPU controls the signal processing circuit in a second state, the method further includes: the one Each of the digital selectors or multiple digital selectors controls a respective input terminal connected to a corresponding controller.
可选的,该输入处理电路包括:与门逻辑电路;该第一控制器通过该输入处理电路接收该一个或多个传感器中的每个传感器各自生成的响应信号,包括:该第一控制器接收通过该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Optionally, the input processing circuit includes an AND gate logic circuit, and the first controller receives a response signal generated by each of the one or more sensors through the input processing circuit, and includes: the first controller Receiving a processed signal of a response signal generated by each of the one or more sensors received by the AND logic circuit; after the CPU controls the signal processing circuit to be in a second state, the method further includes : Each of the one or more controllers receives a response signal generated by a corresponding sensor.
可选的,该输入处理电路还包括:信号选择器,该一个或多个传感器中的每个传感器均与该与门逻辑电路的输入端连接,该与门逻辑电路的输出端与该信号选择器的第一输入端连接,该信号选择器的输出端与该第一控制器连接,与该第一控制器对应的第一传感器还和该信号选择器的第二输入端连接;该第一控制器接收通过该与门逻辑电路将接收的该一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号,包括:该第一控制器接收该与门逻辑电路将处理后的信号通过该信号选择器发送的信号;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该信号选择器将该第一传感器生成的响应信号发送给该第一控制器。Optionally, the input processing circuit further includes: a signal selector, each of the one or more sensors is connected to an input terminal of the AND logic circuit, and an output terminal of the AND logic circuit selects the signal. The first input of the signal selector is connected, the output 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 of the signal selector; the first The controller receives a processed signal of the response signal generated by each of the one or more sensors received by the AND logic circuit, and includes: after receiving the AND logic circuit, the first controller receives the processed signal. The signal sent by the signal selector; after the CPU controls the signal processing circuit in the second state, the method further includes: the signal selector sends a 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 with the CPU and the signal processing circuit, the CPU controls the signal processing circuit in a first state, and includes: a register that the CPU controls the system register The value is a first value, so that the signal processing circuit is in a first state; the CPU controls the signal processing circuit in a second state, including: the CPU controls the register value of the system register to a second value, so that the signal is processed The circuit is in a second state, wherein the first value is different from the second value.
可选的,该初始化同步装置还包括一个或多个输入输出IO接口,该信号处理电路通过一个或多个IO接口与该一个或多个传感器一一连接;在该CPU控制该信号处理电路处于第一状态后,该方法还包括:该信号处理电路控制该一个或多个IO接口均连接至该第一控制器;在该CPU控制该信号处理电路处于第二状态后,该方法还包括:该信号处理电路控制每个控制器分别通过一个IO接口与对应的传感器相连。Optionally, the initialization synchronization device further includes one or more input / 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; the CPU controls the signal processing circuit at After the first state, the method further 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 in the second state, the method further 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 to clear initialization parameters in each sensor.
可选的,该方法还包括:在对每个传感器进行初始化处理之后,该CPU接收每个传感器获取的图像信息;该CPU根据该图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;该CPU对获取的图像信息不同步的传感器进行补偿调节。Optionally, the method further includes: after initializing each sensor, the CPU receives image information acquired by each sensor; and the CPU judges image information acquired by any two sensors according to a synchronization signal in the image information Whether to synchronize; the CPU compensates and adjusts the sensor for which the acquired image information is not synchronized.
需要说明的是,第二方面中初始化同步方法的原理,可以参考第一方面初始化同步装置中的对应部分,本申请在此不再赘述。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 of the initialization synchronization device in the first aspect, which is not repeated in this application.
第三方面,提供了一种摄像机,包括:多个摄像头和系统级芯片SOC,该SOC包括:第一方面任一该的初始化同步装置,每个摄像头均包括传感器,每个传感器均与该初始化同步装置连接。According to a third aspect, a camera is provided, including: a plurality of cameras and a system-on-chip SOC. The SOC includes: any of the initialization synchronization devices of the first aspect, each camera includes a sensor, and each sensor is associated with the initialization Sync device connection.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是相关技术提供的一种全景摄像机的框图;FIG. 1 is a block diagram of a panoramic camera provided by related technologies; FIG.
图2是相关技术提供的另一种全景摄像机的框图;2 is a block diagram of another panoramic camera provided by the related art;
图3是本申请实施例提供的一种初始化同步装置的框图;3 is a block diagram of an initialization synchronization device according to an embodiment of the present application;
图4是本申请实施例提供的另一种初始化同步装置的框图;FIG. 4 is a block diagram of another initialization synchronization device according to an embodiment of the present application; FIG.
图5是本申请实施例提供的一种输出处理电路的结构示意图;5 is a schematic structural diagram of an output processing circuit according to an embodiment of the present application;
图6是图5示出的输出处理电路中的信号的传输的示意图;6 is a schematic diagram of signal transmission in the output processing circuit shown in FIG. 5;
图7是本申请实施例提供的一种输入处理电路的结构示意图;7 is a schematic structural diagram of an input processing circuit according to 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.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。Through the above drawings, the specific embodiments of the present application have been shown, which will be described in more detail later. These drawings and descriptions are not intended to limit the scope of the concept of the present application in any way, but to explain the concepts of the present application to 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 with reference to the accompanying drawings.
请参考图1,图1是相关技术提供的一种全景摄像机的框图,该全景摄像机包括:SOC01和多个摄像头(图1中未示出),每个摄像头均可以包括图像传感器02。该SOC 01内部设置有一个I2C(Inter-Integrated Circuit,集成电路)总线011和多个INCK(Input Clock,工作时钟)电路012,每个图像传感器02均与该I2C总线011连接,该多个INCK电路012与多个图像传感器02一一对应连接。Please refer to FIG. 1. FIG. 1 is a block diagram of a panoramic camera provided by the related art. The panoramic camera includes: SOC01 and a plurality of cameras (not shown in FIG. 1), and each camera may include an image sensor 02. The SOC 01 is internally provided with an I2C (Inter-Integrated Circuit) bus 011 and a plurality of INCK (Input Clock) circuits 012, and each image sensor 02 is connected to the I2C bus 011, and the plurality of INCKs The circuit 012 is connected to the plurality of image sensors 02 in a one-to-one correspondence.
当全景摄像机获取全景图像时,SOC 01需要通过I2C总线011和多个INCK电路012向所有的图像传感器02发送初始化配置指令,每个图像传感器02在接收到初始化配置指令后,进行初始化配置,在图像传感器02初始化配置完成后,可以获取图像,并将获取到的图像发送给SOC 01,使得SOC 01将不同的图像传感器02获取到的图像进行拼接,以得到全景图像。When a panoramic camera acquires a panoramic image, SOC01 needs to send an initialization configuration instruction to all image sensors 02 through the I2C bus 011 and multiple INCK circuits 012. After each image sensor 02 receives the initialization configuration instruction, it performs initialization configuration. After the initial configuration of the image sensor 02 is completed, an image can be acquired and the obtained image is sent to the SOC01, so that the SOC01 stitches the images acquired by different image sensors 02 to obtain a panoramic image.
但是,当所有的图像传感器02均通过一个I2C总线011连接时,SOC 01需要逐一控制多个图像传感器02进行初始化配置,也即是,当某个图像传感器初始化配置后,SOC 01才可以控制下一个图像传感器进行初始化配置。通常情况下,在图像传感器02初始化配置完成后,图像传感器02会立马将获取到的图像发送给SOC 01,而SOC 01无法控制多个图像传感器01在同一时间完成初始化配置,因此各个图像传感器02所获取的图像并不同步,SOC 01对不同步的图像进行拼接,得到的全景图像的显示效果较差。However, when all image sensors 02 are connected through an I2C bus 011, SOC01 needs to control multiple image sensors 02 one by one for initial configuration, that is, after an image sensor is initialized and configured, SOC01 can be controlled. An image sensor is initialized for configuration. Generally, after the initial configuration of the image sensor 02 is completed, the image sensor 02 immediately sends the acquired image to the SOC 01, and the SOC 01 cannot control multiple image sensors 01 to complete the initial configuration at the same time, so each image sensor 02 The acquired images are not synchronized. SOC01 stitches the asynchronous images, and the obtained panoramic image has a poor display effect.
请参考图2,图2是相关技术提供的另一种全景摄像机的框图,该全景摄像机中的SOC01内设置有多个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 a block diagram of another panoramic camera provided by the related art. The SOC01 in the panoramic camera is provided with multiple I2C buses 011 and multiple INCK circuits 012. The multiple I2C buses 011 and multiple The image sensors 02 are connected one-to-one correspondingly, and the plurality of INCK circuits 012 are connected one-to-one correspondingly to the plurality of image sensors 02. At this time, SOC 01 does not need to control multiple image sensors 02 one by one for initialization and configuration. Although the multiple image sensors 02 can be initialized and configured at the same time, due to the sequential execution of software, SOC 01 needs to be configured one by one through the multiple I2C buses. The initialization image instruction is sent to each image sensor 02, and the time to complete the initialization of each image sensor 02 will still be delayed in order. SOC01 still cannot control multiple image sensors 01 to complete the initialization configuration at the same time, resulting in The images are not synchronized. SOC 01 stitches the asynchronous images, and the resulting panoramic image displays poor results.
请参考图3,图3是本申请实施例提供的一种初始化同步装置的框图,该初始化同步装置100可以包括:Please refer to FIG. 3. FIG. 3 is a block diagram of an initialization synchronization device according to 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可以为图像传感器。A central processing unit (CPU) 10, one or more controllers 20, and a signal processing circuit 30, wherein each of the one or more controllers 20 is coupled to the CPU 10 and the signal processing The circuit 30 is connected to one or more sensors 200 outside the initialization synchronization device. Exemplarily, the sensor 200 in the embodiment of the present application may be an image sensor.
该CPU 10,用于控制信号处理电路30处于第一状态,该第一状态用于指示第一控制器20a通过信号处理电路30与一个或多个传感器200中的每个传感器200连接,该第一控制器20a为一个或多个控制器20中的一个控制器。The CPU 10 is used to control the signal processing circuit 30 in a first state, and the first state is used to instruct the first controller 20a to be connected to each of the one or more sensors 200 through the signal processing circuit 30. A controller 20 a is one of the one or more controllers 20.
该第一控制器20a,用于在信号处理电路30处于第一状态时,将CPU 10生成的初始化信号通过信号处理电路30同时发送至一个或多个传感器200中的每个传感器200。The first controller 20 a is configured to simultaneously transmit the initialization signal generated by the CPU 10 to each of the one or more sensors 200 through the signal processing circuit 30 when the signal processing circuit 30 is in the first state.
示例性的,信号处理电路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 first controller 20a, when the CPU 10 generates an initialization signal, the initialization signal is sent to each sensor 200 through the first controller 20a through multiple input and output interfaces at the same time, and each sensor 200 receives the first controller After the initialization signal sent by 20a, the initialization parameters (for example, image resolution, refresh rate, exposure time, and gain, etc.) carried in the initialization signal can be written into a register in the sensor 200. After the initialization parameters are written, , The sensor 200 can complete the initial configuration. Since the first controller 20a sends an initialization signal to each of the one or more sensors 200 at the same time through the signal processing circuit 30, each sensor 200 can simultaneously receive the initialization signal and complete the initialization configuration at the same time. The phenomenon that the images acquired by the sensors 200 are not synchronized is avoided. If the initialization synchronization device 100 is integrated on the SOC, when the SOC stitches the images acquired by each sensor 200 to obtain a panoramic image, the initialization signal can be sent to each image sensor 200 through the signal processing circuit 30 at the same time, so that each sensor 200 acquires The images are output synchronously, so the panoramic image obtained by stitching displays better.
进一步的,该CPU 10,还用于控制信号处理电路30处于第二状态,该第二状态用于指示一个或多个控制器20中的每个控制器20通过信号处理电路30与一个传感器200相连。每个控制器20,用于在信号处理电路30处于第二状态时,将CPU 10生成的初始化信号发送给与每个控制器20各自对应的传感器200。Further, the CPU 10 is also used to control the signal processing circuit 30 in a second state, and the second state is used to instruct each of the one or more controllers 20 to communicate with the sensor 200 through the signal processing circuit 30 Connected. Each controller 20 is configured to send an initialization signal generated by the CPU 10 to the sensor 200 corresponding to each controller 20 when the signal processing circuit 30 is in the second state.
示例的,当信号处理电路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 CPU 10 through its own controller 20, and the CPU 10 can independently control each sensor 200.
在本申请实施例中,在初始化同步装置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 manufacturing errors between each sensor 200, when the same configuration is performed for each sensor 200, When the parameters are initialized, there will be differences in the display quality (such as sharpness or color depth) of the images acquired by each sensor 200. In order to enable each sensor 200 to obtain an image with higher display quality, after the initialization configuration of each sensor 200 is completed by the initialization synchronization device 100, the CPU 10 controls the signal processing circuit 30 to be in a second state, and each controller 20 can The parameter modification signal generated by the CPU 10 is sent to the sensor 200 corresponding to each controller 20. This parameter modification signal is used to adjust the initialization parameters recorded in the register of the sensor 200 to ensure that each sensor 200 can obtain an image with a higher display quality. Since the initialization parameters in each sensor 200 can be adjusted by the corresponding controller 20, after the initialization configuration is completed, the initialization parameters in each sensor 200 are adjusted by the initialization synchronization device 100 with high efficiency.
在一种可选的实现方式中,如图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 by an embodiment of the present application. The initialization synchronization device 100 may further include a system register 40, which is connected to the CPU 10 and the signal processing circuit 30, respectively. The CPU 10 is used to control the register value of the system register 40 to a first value so that the signal processing circuit 30 is in the first state; the CPU 10 is also used to control the register value of the system register 40 to a second value so that the signal The processing circuit 30 is in a second state. The first value is different from the second value. For example, the first value may be 1 and the second value may be 0. It should be noted that FIG. 4 uses the register value of the CPU 10 control system register 40 to control the signal processing circuit 30 in the first state or the second state. In another optional implementation manner, the CPU 10 may The direct control signal processing circuit 30 is in a first state or a second state, which is not specifically limited in the embodiment of the present application.
可选的,该初始化同步装置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 (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 is only a schematic diagram schematically showing an IO general interface 50, and the IO general interface 50 includes one or more IO interfaces connected to the 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 of the one or more controllers 20 controls 20 and the corresponding sensor 200 connection.
在本申请实施例中,该初始化同步装置100还包括:连接总线60。该一个或多个控制器20中的每个控制器20通过该连接总线60耦合至CPU 10以及信号处理电路30,该信号处理电路30与IO总接口50之间也可以通过该连接总线60连接。可选的,该连接总线60可以为集成电路(Inter-Integrated Circuit,I2C)连接总线和同步串行端口(Synchronous Serlal Port,SSP)连接总线中的一项或多项。需要说明的是,该I2C连接总线可以包含用于传输数据信号的数据走线,以及用于传输时钟信号的时钟走线;该SSP连接总线可以包含三类信号走线:用于传输数据信号的输入输出数据走线(也称为双向数据走线)、用于传输时钟信号的时钟走线,以及用于传输片选信号的片选走线;该SSP连接总线还可以包含四类信号走线:用于传输数据信号的输入数据走线、用于传输数据信号的输出数据走线、用于传输时钟信号的时钟走线,以及用于传输片选信号的片选走线。应当理解,本申请实施例从功能的角度对初始化同步装置进行划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统。各个模块相互之间的耦合可以是通过一些接口实现,这些接口通常是电性通信接口,但是也不排除可能是机械接口或其它的形式接口。 因此,作为分离部件说明的模块可以是或者也可以不是物理上分开的,既可以位于一个地方,也可以分布到同一个或不同设备的不同位置上。在本申请的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或通过其他设备间接相连。In the embodiment of the present application, the initialization synchronization device 100 further includes a connection bus 60. Each of the one or more controllers 20 is coupled to the CPU 10 and the signal processing circuit 30 through the connection bus 60. The signal processing circuit 30 and the IO general interface 50 may also be connected through the connection bus 60. . Optionally, the connection bus 60 may be one or more of an integrated circuit (Inter-Integrated Circuit) (I2C) connection bus and a synchronous serial port (Synchronous Serial Port (SSP) connection bus). It should be noted that the I2C connection bus may include data traces for transmitting data signals and clock traces for transmitting clock signals; the SSP connection bus may include three types of signal traces: Input and output data traces (also known as bidirectional data traces), clock traces used to transmit clock signals, and chip select traces used to transmit chip select signals; this SSP connection bus can also contain four types of signal traces : Input data traces for transmitting data signals, output data traces for transmitting data signals, clock traces for transmitting clock signals, and chip selection traces for transmitting chip select signals. It should be understood that the embodiments of the present application divide the initialization synchronization device from the perspective of functions. In actual implementation, there may be another division manner, for example, multiple modules may be combined or integrated into another system. The coupling between the various modules can be achieved through some interfaces. These interfaces are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations on the same or different devices. In various embodiments of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices.
可选的,如图4所示,该初始化同步装置100中的信号处理电路30包括:输出处理电路31和输入处理电路32。Optionally, as shown in FIG. 4, the signal processing circuit 30 in the initialization synchronization device 100 includes: an output processing circuit 31 and an input processing circuit 32.
在信号处理电路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 a signal generated by the CPU 10 to each of the one or more sensors 200 through the output processing circuit 31. For example, the signal generated by the CPU 10 may be Is an initialization signal; the first controller 20a receives a response signal generated by each of the one or more sensors 200 through the input processing circuit 32, for example, the response signal of each sensor 200 is Initialization response signal generated after receiving the initialization signal.
在信号处理电路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 of the one or more controllers 20 sends a signal generated by the CPU 10 to the corresponding sensor 200 through the output processing circuit 31, for example, the signal generated by the CPU 10 Signals can be modified for the parameters; each of the one or more controllers 20 receives the response signal of the corresponding sensor 200 through the input processing circuit 32, for example, the response signal of each sensor 20 is the signal received by the sensor 200 Parameter modification response signal generated after parameter modification signal.
需要说明的是,本申请实施例中各个控制器20在接收到传感器200发送的响应信号后,会将该响应信号发送给CPU 10,由CPU 10进行信号处理。It should be noted that after receiving the response signal sent by the sensor 200, each controller 20 in the embodiment of the present application sends the response signal to the CPU 10, and the CPU 10 performs signal processing.
请参考图5,图5是本申请实施例提供的一种输出处理电路31的结构示意图。该输出处理电路包括:一个或多个数字选择器311。在本申请实施例中,一个或多个数字选择器311中至少一个数字选择器311会对应一个传感器和一个控制器。该一个或多个数字选择器311的输出端与对应的传感器连接。Please refer to FIG. 5, which is a schematic structural diagram of an output processing circuit 31 according to an embodiment of the present application. The output processing circuit includes one or more digital selectors 311. In the embodiment of the present application, at least one of the digital selectors 311 corresponds to a sensor and a controller. The output terminals of the one or more digital selectors 311 are connected to corresponding sensors.
示例的,如图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 output processing circuit 31 shown in FIG. 5. When the signal processing circuit is in the first state, the signal transmission direction in the output processing circuit 31 is the direction where the solid line in FIG. 6 is located, and the input port of each of the one or more digital selectors 311 Connected to the first controller, so that the first controller can send signals generated by the CPU to each of the one or more sensors at the same time; when the signal processing circuit is in the second state, the signal in the output processing circuit 31 is transmitted The direction is the direction where the dotted line in FIG. 6 is located. The input of each digital selector 311 in the one or more digital selectors 311 is connected to the corresponding controller, so that each of the one or more controllers controls The device can send signals generated by the CPU to the corresponding sensors.
可选的,每个数字选择器311均包括:第一输入端口T1、第二输入端口T2、状态选择端口S和输出端口Z。每个数字选择器311的第一输入端口T1均与第一控制器连接;每个数字选择器311的第二输入端口T2与对应的控制器连接;每个数字选择器311的状态选择端口S与CPU连接,在一种可选的情况中,每个数字选择器311的状态选择端口S通过系统控制寄存器与CPU连接,也即状态选择端口S与系统控制寄存器连接,系统控制寄存器与CPU连接;每个数字选择器311的输出端口Z与对应的传感器连接。Optionally, each digital selector 311 includes: a first input port T1, a second input port T2, a state selection port S, and an output port Z. A first input port T1 of each digital selector 311 is connected to a first controller; a second input port T2 of each digital selector 311 is connected to a corresponding controller; a state selection port S of each digital selector 311 Connected to the CPU. In an optional case, the state selection port S of each digital selector 311 is connected to the CPU through the system control register, that is, the state selection port S is connected to the system control register, and the system control register is connected to the CPU. ; The output port Z of each digital selector 311 is connected to the corresponding sensor.
对于每个数字选择器311,在该数字选择器311的状态选择端口S接收到CPU发送的用于指示信号处理电路处于第一状态的指示信号时,该数字选择器311的第一输入端口T1处于开启状态,该数字选择器的第二输入端口T2处于关断状态,从而使得一个或多个传感器中的每个传感器均通过该输出处理电路31与第一控制器相连。For each digital selector 311, when the state selection port S of the digital selector 311 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port T1 of the digital selector 311 In the on state, the second input port T2 of the digital selector is in the off state, so that each of the one or more sensors is connected to the first controller through the output processing circuit 31.
对于每个数字选择器311,在该数字选择器311的状态选择端口S接收到CPU发送的 用于指示信号处理电路处于第二状态的指示信号时,该数字选择器311的第一输入端口T1处于关断状态,该数字选择器的第二输入端口T2处于开启状态,从而使得一个或多个传感器中的每个传感器均通过该输出处理电路31与对应的控制器相连。For each digital selector 311, when the state selection port S of the digital selector 311 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the first input port T1 of the digital selector 311 In the off state, the second input port T2 of the digital selector is on, so that each of the one or more sensors is connected to the corresponding controller through the output processing circuit 31.
假设本申请实施例中的初始化同步装置中的连接总线为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 output processing circuit 31 may include a first output processing circuit 31a for outputting a data signal, and a second output processing circuit 31a for outputting a clock signal. The output processing circuit 31b. The data line in the I2C connection bus is connected to the first output processing circuit 31a, and the clock line in the I2C connection bus is connected to the second output processing circuit 31b. Each of the first output processing circuit 31a and the second output processing circuit 31b may include: one or more signal selectors 311. The first input terminal T1 of each digital selector 311 in the first output processing circuit 31a is connected to the data port of the first controller. The first output processing unit 31a of each digital selector 311 The two input ports T2 are connected to the data ports of the corresponding controller; the first input port T1 of each digital selector 311 in the second output processing circuit 31b is connected to the clock port of the first controller, and the second output A second input port T2 of each digital selector 311 in the processing circuit 31b is connected to a clock port of a corresponding controller.
请参考图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 input processing circuit 32 according to an embodiment of the present application. The input processing circuit 32 may include an AND gate logic circuit 321. For example, as shown in FIG. 8, FIG. 8 is a schematic diagram of signal transmission in the output processing circuit 31 shown in FIG. 7. When the signal processing circuit is in the first state, the signal transmission direction in the input processing circuit 32 is the direction where the solid line in FIG. 8 is located, and each of the one or more sensors passes the response signal generated by each of the sensors through the AND gate logic circuit. 321 is sent to the first controller after processing; when the signal processing circuit is in the second state, the signal transmission direction in the input processing circuit 32 is the direction where the dotted line in FIG. 8 is located, and each of the one or more controllers Receive the response signal generated by the corresponding sensor.
可选的,该输入处理电路32还可以包括:数字选择器322。在本申请实施例中,一个或多个传感器中的每个传感器均和与门逻辑电路321的输入端连接;该与门逻辑电路321的输出端与信号选择器322的第一输入端连接;该信号选择器322的输出端与第一控制器连接;与第一控制器对应的第一传感器还和信号选择器322的第二输入端连接。如图8所示,当信号处理电路处于第一状态时,与门逻辑电路322将处理后的信号通过信号选择器322发送给第一控制器;当信号处理电路处于第二状态时,信号选择器322将第一传感器生成的响应信号发送给第一控制器。Optionally, the input processing circuit 32 may further include a digital selector 322. In the embodiment of the present application, each of the one or more sensors is connected to the input terminal of the AND logic circuit 321; the output terminal of the AND logic circuit 321 is connected to the first input terminal of the signal selector 322; An output terminal of the signal selector 322 is connected to a first controller; a first sensor corresponding to the first controller is also connected to a second input terminal of the signal selector 322. As shown in FIG. 8, when the signal processing circuit is in the first state, the AND logic circuit 322 sends the processed signal to the first controller through the signal selector 322; when the signal processing circuit is in the second state, the signal selection The transmitter 322 sends a response signal generated by the first sensor to the first controller.
假设本申请实施例中的初始化同步装置中的连接总线为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 input processing circuit 32 may include a first input processing circuit 32a for inputting a data signal, and a second input processing circuit for inputting a clock signal. The input processing circuit 32b. The data line in the I2C connection bus is connected to the first input processing circuit 32a, and the clock line in the I2C connection bus is connected to the second input processing circuit 32b. The first input processing circuit 32a and the second input processing circuit 32b each include an AND logic circuit 321 and a signal selector 322. The connection mode between the AND logic circuit 321 and the signal selector 322 is the same as that of the first input processing circuit. Both 32a and the second input processing circuit 32b are the same. The following embodiments schematically illustrate specific connection modes between the AND logic circuit 321 and the signal selector 322:
示例的,该与门逻辑电路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连接。For example, the AND logic circuit 321 has an output port Z and one or more input ports (T0, T1, T2, ..., Tn) corresponding to one or more sensors, and the digital selector 322 has a first An input port T1, a second input port T2, a state selection port S, and an output port Z. Each of the one or more sensors is connected to a corresponding input port in the AND logic circuit 321; the output port Z of the AND logic circuit 321 is connected to the first input port T1 of the digital selector; the one or more A first sensor of the plurality of sensors is connected to the second input port T2 of the digital selector 322; an output port Z of the digital selector 322 is connected to the first controller; each of the one or more sensors except the first sensor The sensor is directly connected to the corresponding controller; the state selection port S of the digital selector 322 is connected to the CPU. For example, the state selection port S of the digital selector 322 is connected to the system control register, which needs to be connected to the CPU.
在数字选择器322的状态选择端口接收到CPU发送的用于指示信号处理电路处于第一状态的指示信号时,该数字选择器322的第一输入端口T1处于开启状态,该数字选择器322的第二输入端口T2处于关断状态。此时,一个或多个传感器中的各个传感器生成的响应信号经过与门逻辑电路321处理后,发送给第一传感器。需要说明的是,在信号处理电路处于第一状态时,CPU可以控制其与一个或多个控制器中除第一控制器之外的每个控制器之间的连接中断,此时,一个或多个传感器中除第一传感器之外的每个传感器生成的响应信号虽然可以发送给对应的控制器,但是这些控制器不会将接收到的响应信号发送给CPU,因此,该CPU仅能够接收到通过与门逻辑电路处理后通过第一控制器发送的信号,该CPU仅对通过第一控制器发送的信号进行处理即可。When the state selection port of the digital selector 322 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the first state, the first input port T1 of the digital selector 322 is in an open state. The second input port T2 is in an off state. At this time, the response signals generated by each of the one or more sensors are processed by the AND logic circuit 321 and then sent to the first sensor. It should be noted that when the signal processing circuit is in the first state, the CPU can control the connection between the signal processing circuit and each of the one or more controllers except the first controller to be interrupted. At this time, one or Although the response signals generated by each of the multiple sensors except the first sensor can be sent to the corresponding controller, these controllers will not send the received response signals to the CPU, so the CPU can only receive To the signal sent by the first controller after being processed by the AND logic circuit, the CPU only needs to process the signal sent by the first controller.
在数字选择器322的状态选择端口接收到CPU发送的用于指示信号处理电路处于第二状态的指示信号时,该数字选择器322的第二输入端口T2处于开启状态,该数字选择器322的第一输入端口T1处于关断状态。此时,第一传感器生成的响应信号可以通过该数字选择器322发送给第一控制器,一个或多个传感器中除第一传感器之外的每个传感器生成的响应信号直接发送给对应的控制器。需要说明的是,在信号处理电路处于第二状态时,CPU需要控制其与一个或多个控制器中每个控制器之间能够正常连接,此时,一个或多个传感器中的每个传感器生成的响应信号会通过过各自对应的控制器发送给CPU,使得该CPU能够对每个控制器发送的信号进行处理。When the state selection port of the digital selector 322 receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the second input port T2 of the digital selector 322 is in an open state. The first input port T1 is in an off state. At this time, the response signal generated by the first sensor may be sent to the first controller through the digital selector 322, and the response signal generated by each of the one or more sensors except the first sensor is directly sent to the corresponding control. Device. It should be noted that, when the signal processing circuit is in the second state, the CPU needs to control that it can be normally connected with each of the one or more controllers. At this time, each of the one or more sensors The generated response signals are sent to the CPU through the corresponding controller, so that the CPU can process the signals sent by each controller.
在一种可选的实现方式中,第一输入处理电路32a中的数字选择器322输出端口与第一控制器的数据端口连接;第二输入处理电路32b中的数字选择器322输出端口与第一控制器的时钟端口连接。一个或多个传感器中除第一传感器之外的每个传感器分别与对应的控制器的数据端口和时钟端口连接。In an optional implementation manner, the output port of the digital selector 322 in the first input processing circuit 32a is connected to the data port of the first controller; the output port of the digital selector 322 in the second input processing circuit 32b is connected to the data port of the first controller. A controller's clock port is connected. Each of the one or more sensors except the first sensor is respectively connected to a data port and a clock port of a corresponding controller.
在本申请实施例中,如图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 CPU 10 is further configured to: before performing initialization processing on each sensor 200, send a reset instruction to each sensor 200 to clear each sensor 200. The registers store the initialization parameters. It should be noted that when the CPU 10 sends a reset instruction to each sensor 200, the CPU 10 can control the signal processing circuit 30 to be in the first state or the signal processing circuit 30 to be in the second state. This embodiment of the present application does not address this. Be limited.
在一种可选的实现方式中,由于各个传感器200内部均存在一些制造误差,因此,在初始化同步装置100对每个传感器200进行初始化处理之后,各个传感器200可能会经过不同的时长将获取到的图像传输给初始化同步装置100,通常情况下,若两个传感器200将获取到的图像传输给初始化同步装置100之间时间差在0.15微秒内,则可以认为该两个传感器获取的图像信息同步。在本申请实施例中,为了进一步的提高后续合成的拼接图像的显示效果,该CPU 10还用于:在对每个传感器200进行初始化处理30之后,接收每个传感器200获取的图像信息;根据图像信息中的同步信号,判断任意两个传感器200获取的图像信息是否同步;对获取的图像信息不同步的传感器200进行补偿调节。从而使得各个传感器200所获取的图像是同步的,进而提高了后续拼接形成的全景图像的显示效果。In an optional implementation manner, because there are some manufacturing errors in each sensor 200, after the initialization synchronization device 100 performs the initialization processing on each sensor 200, each sensor 200 may obtain a different time period. Images are transmitted to the initialization synchronization device 100. Generally, if the time difference between the two sensors 200 transmitting the acquired images to the initialization synchronization device 100 is within 0.15 microseconds, the image information obtained by the two sensors may be considered to be synchronized . In the embodiment of the present application, in order to further improve the display effect of the subsequent synthesized mosaic image, the CPU 10 is further configured to: after performing initialization processing 30 on each sensor 200, receive image information acquired by each sensor 200; The synchronization signal in the image information determines whether the image information acquired by any two sensors 200 is synchronized; and the compensation adjustment is performed for the sensor 200 whose image information is not synchronized. As a result, the images acquired by the sensors 200 are synchronized, thereby improving the display effect of the panoramic images formed by subsequent stitching.
综上所述,本申请实施例提供的初始化同步在装置,包括:CPU、一个或多个控制器以及信号处理电路。CPU在控制信号处理电路处于第一状态时,第一控制器将CPU生成的初始化信号通过信号处理电路同时发送至一个或多个传感器中的每个传感器,使得每个传感器均能够同时接收到初始化信号,并在同一时间完成初始化配置,避免了各个传感器所获取的图像出现不同步的现象。若该初始化同步装置集成在SOC上,当该SOC将各个传感器获取的图像进行拼接得到全景图像时,由于初始化信号可以通过信号处理电路同时发送给各个图像传感器,使得各个传感器获取的图像是同步输出的,因此拼接得到的全景图像的显示效果较好。进一步的,该CPU还可以控制信号处理电路处于第二状态,每个控制器可以将CPU生成的参数修改信号发送给与每个控制器各自对应的传感器,该参数修改信号用于对传感器的寄存器中记录的初始化参数进行调整,保证每个传感器均能够获取显示质量较高的图像。由于每个传感器中的初始化参数均能够被对应的控制器调节,因此在初始化配置完成后通过该初始化同步装置对各个传感器中的初始化参数进行调节的效率较高。In summary, the initialization synchronization device provided in 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 in the first state, the first controller sends the initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit at the same time, so that each sensor can receive the initialization at the same time Signal and complete the initial configuration at the same time, avoiding the phenomenon that the images acquired by the sensors are not synchronized. If the initialization synchronization device is integrated on the SOC, when the SOC stitches the images obtained by the sensors to obtain a panoramic image, the initialization signals can be sent to each image sensor through the signal processing circuit at the same time, so that the images obtained by each sensor are output synchronously , So the display effect of the stitched panoramic image is better. Further, the CPU can control the signal processing circuit to be in a second state, and each controller can send a parameter modification signal generated by the CPU to a sensor corresponding to each controller, and the parameter modification signal is used to register a sensor. The initialization parameters recorded in the camera are adjusted to ensure that each sensor can obtain images with higher 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示出的初始化同步装置,该方法可以包括:An embodiment of the present application further provides an initialization synchronization method. The method is applied to the initialization synchronization device shown in FIG. 3 or 4. The method may include:
步骤A1、CPU控制信号处理电路处于第一状态,第一状态用于指示第一控制器通过信号处理电路与一个或多个传感器中每个传感器连接,第一控制器为一个或多个控制器中的一个控制器。Step A1: The CPU controls the signal processing circuit in a first state. The first state is used to instruct the first controller to connect with each of the one or more sensors through the signal processing circuit. The first controller is one or more controllers. One of the controllers.
步骤B1、第一控制器将CPU生成的初始化信号通过信号处理电路发送至一个或多个传感器中的每个传感器。Step B1: The first controller sends an initialization signal generated by the CPU to each of the one or more sensors through a signal processing circuit.
可选的,该初始化同步方法还可以包括:Optionally, the initialization synchronization method may further include:
步骤A2、CPU控制信号处理电路处于第二状态,第二状态用于指示一个或多个控制器中的每个控制器通过信号处理电路与一个传感器相连;Step A2: The CPU controls the signal processing circuit 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;
步骤B2、每个控制器将CPU生成的初始化信号或参数修改信号发送给与每个控制器对应的传感器。Step B2: Each controller sends an initialization signal or a parameter modification signal generated by the CPU to a 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 a signal generated by the CPU to each of the one or more sensors through an output processing circuit.
步骤B3、第一控制器通过输入处理电路接收一个或多个传感器中的每个传感器各自生成的响应信号。Step B3: The first controller receives a response signal generated by each of the one or more sensors through an input processing circuit.
可选的,上述步骤A3可以包括:一个或多个数字选择器中每个数字选择器控制各自的输入端均与第一控制器相连,以使第一控制器通过一个或多个数字选择器向一个或多个传感器发送CPU生成的信号。Optionally, the foregoing step A3 may include: each input of one or more digital selectors controls a respective input end of the digital selector to be connected to the first controller, so that the first controller passes one or more digital selectors Sends signals generated by the CPU to one or more sensors.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:一个或多个数字选择器中每个数字选择器控制各自的输入端与对应的控制器相连。After the CPU control signal processing circuit is in the second state, the initialization synchronization method may further include: each digital selector of one or more digital selectors controls a respective input terminal to be connected to a corresponding controller.
可选的,上述步骤B3可以包括:第一控制器接收通过与门逻辑电路将接收的一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号。Optionally, the above step B3 may include: the first controller receives a processed signal of a response signal generated by each of the one or more sensors received through an AND gate logic circuit.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:一个或多 个控制器中的每个控制器接收对应的传感器生成的响应信号。After the CPU control signal processing circuit is 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 a signal sent by the AND logic circuit through the processed signal through a signal selector.
在CPU控制信号处理电路处于第二状态后,该初始化同步方法还可以包括:信号选择器将第一传感器生成的响应信号发送给第一控制器。After the CPU controls the signal processing circuit in the second state, the initialization synchronization method may further include: the signal selector sends a response signal generated by the first sensor to the first controller.
可选的,在CPU控制信号处理电路处于第一状态后,该初始化同步方法还可以包括:信号处理电路控制一个或多个IO接口均连接至第一控制器;Optionally, after the CPU controls the signal processing circuit 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 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 respectively.
可选的,上述步骤A1中的CPU控制信号处理电路处于第一状态,可以包括:CPU控制系统寄存器的寄存器值为第一数值,以使信号处理电路处于第一状态。Optionally, the CPU control signal processing circuit in the above step A1 is in the first state, which may include: the register value of the CPU control system register is the first value, so that the signal processing circuit is in the first state.
可选的,上述步骤A2中的CPU控制信号处理电路处于第二状态,可以包括:CPU控制系统寄存器的寄存器值为第二数值,以使信号处理电路处于第二状态,其中,第一数值和第二数值不同。Optionally, the CPU control signal processing circuit in the above step A2 is in the second state, which may include: the register value of the CPU control system register is the second value, so that the signal processing circuit is in the second state, where 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 to clear the initialization parameters in each sensor.
可选的,该初始化同步方法还可以包括:Optionally, the initialization synchronization method may further include:
步骤A4、在对每个传感器进行初始化处理之后,CPU接收每个传感器获取的图像信息。Step A4: After initializing each sensor, the CPU receives image information acquired by each sensor.
步骤B4、CPU根据图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步。Step B4: The CPU determines 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 sensor for which the acquired image information is not synchronized.
需要说明的是,上述初始化同步方法的原理可以参考前述对初始化同步装置的实施例中的对应部分,在此不再赘述。It should be noted that, for the principle of the foregoing initialization synchronization method, reference may be made to corresponding parts in the foregoing embodiment of the initialization synchronization device, and details are not described herein again.
本申请实施例还提供了一种摄像机,该摄像机可以为全景摄像机,该摄像机可以包括:多个摄像头和SOC,该SOC包括:图3或4示出的初始化同步装置,每个摄像头均包括传感器,该传感器可以为图像传感器,每个传感器均与初始化同步装置连接。An embodiment of the present application further provides a camera. The camera may be a panoramic camera. The camera may include a plurality of cameras and a SOC. The SOC includes an initialization synchronization device shown in FIG. 3 or 4. Each camera includes a sensor. The sensor may be an image sensor, and each sensor is connected to an initialization synchronization device.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection of the present application. Within range.

Claims (23)

  1. 一种初始化同步装置,其特征在于,包括:中央处理单元CPU、一个或多个控制器以及信号处理电路,其中,所述一个或多个控制器中的每个控制器均耦合至所述CPU以及所述信号处理电路,所述信号处理电路与所述初始化同步装置外部的一个或多个传感器连接;An initialization synchronization device, comprising: a central processing unit CPU, one or more controllers, and a signal processing circuit, wherein each of 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;
    所述CPU,用于控制所述信号处理电路处于第一状态,所述第一状态用于指示第一控制器通过所述信号处理电路与所述一个或多个传感器中每个传感器连接,所述第一控制器为所述一个或多个控制器中的一个控制器;The CPU is configured to control the signal processing circuit in a first state, and the first state is used to instruct a first controller to connect with each of the one or more sensors through the signal processing circuit, so that The first controller is one of the one or more controllers;
    所述第一控制器,用于在所述信号处理电路处于所述第一状态时,将所述CPU生成的初始化信号通过所述信号处理电路同时发送至所述一个或多个传感器中的每个传感器。The first controller is configured to simultaneously send an initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit when the signal processing circuit is in the first state. Sensors.
  2. 根据权利要求1所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 1, wherein:
    所述CPU,还用于控制所述信号处理电路处于第二状态,所述第二状态用于指示所述一个或多个控制器中的每个控制器通过所述信号处理电路与一个传感器相连;The CPU is further configured to control the signal processing circuit 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. ;
    每个控制器,用于在所述信号处理电路处于所述第二状态时,将所述CPU生成的所述初始化信号或参数修改信号发送给与所述每个控制器对应的传感器,所述参数修改信号用于对所述传感器中记录的初始化参数进行调整,所述初始化参数为在对每个所述传感器进行初始化处理的过程中,所述传感器接收到的初始化信号中携带的参数。Each controller is configured to send the initialization signal or the parameter modification signal generated by the CPU to a sensor corresponding to each controller when the signal processing circuit is in the second state, and The parameter modification signal is used to adjust initialization parameters recorded in the sensors. The initialization parameters are parameters carried in the initialization signals received by the sensors during the initialization process of each of the sensors.
  3. 根据权利要求2所述的初始化同步装置,其特征在于,所述信号处理电路包括:输出处理电路和输入处理电路;The initialization synchronization device according to claim 2, wherein the signal processing circuit comprises: an output processing circuit and an input processing circuit;
    在所述信号处理电路处于所述第一状态时,所述第一控制器通过所述输出处理电路向所述一个或多个传感器中的每个传感器发送所述CPU生成的信号;When the signal processing circuit is in the first state, the first controller sends a signal generated by the CPU to each of the one or more sensors through the output processing circuit;
    在所述信号处理电路处于所述第一状态时,所述第一控制器通过所述输入处理电路接收所述一个或多个传感器中的每个传感器各自生成的响应信号。When the signal processing circuit is in the first state, the first controller receives a response signal generated by each of the one or more sensors through the input processing circuit.
  4. 根据权利要求3所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 3, wherein:
    所述输出处理电路包括:一个或多个数字选择器,所述一个或多个数字选择器中每个数字选择器的输出端与对应的传感器连接;The output processing circuit includes: one or more digital selectors, and an output terminal of each of the one or more digital selectors is connected to a corresponding sensor;
    当所述信号处理电路处于所述第一状态时,所述一个或多个数字选择器中每个数字选择器的输入端均与所述第一控制器相连;When the signal processing circuit is in the first state, an 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, an input terminal of each digital selector in the one or more digital selectors is connected to a corresponding controller.
  5. 根据权利要求4所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 4, wherein:
    每个所述数字选择器均包括第一输入端口、第二输入端口、状态选择端口和输出端口,每个所述数字选择器的第一输入端口均与所述第一控制器连接,每个所述数字选择器的第二输入端口与对应的控制器连接,每个所述数字选择器的状态选择端口均与所述CPU连接,每个所述数字选择器的输出端口与对应的传感器连接;Each of the digital selectors includes a first input port, a second input port, a state selection port, and an output port. The first input port of each of the digital selectors is connected to the first controller. A second input port of the digital selector is connected to a corresponding controller, a state selection port of each digital selector is connected to the CPU, and an output port of each digital selector is connected to a corresponding sensor. ;
    其中,对于每个所述数字选择器,在所述数字选择器的状态选择端口接收到所述CPU发送的用于指示所述信号处理电路处于所述第一状态的指示信号时,所述第一输入端口处于开启状态,所述第二输入端口处于关断状态;Wherein, for each of the digital selectors, when a state selection port of the digital selector receives an instruction signal sent by the CPU and used to indicate that the signal processing circuit is in the first state, the first An input port is in an on state, and the second input port is in an off state;
    对于每个所述数字选择器,在所述数字选择器的状态选择端口接收到所述CPU发送的用于指示所述信号处理电路处于所述第二状态的指示信号时,所述第一输入端口处于关断状态,所述第二输入端口处于开启状态。For each of the digital selectors, when the state selection port of the digital selector receives an instruction signal sent by the CPU to indicate that the signal processing circuit is in the second state, the first input The port is in an off state, and the second input port is in an on state.
  6. 根据权利要求5所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 5, wherein:
    所述输出处理电路包括:用于输出数据信号的第一输出处理电路,以及用于输出时钟信号的第二输出处理电路;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;
    所述第一输出处理电路中的每个所述数字选择器的第一输入端口均与所述第一控制器的数据端口连接,所述第一输出处理单元中的每个所述数字选择器的第二输入端口与对应的控制器的数据端口连接,A first input port of each of the digital selectors in the first output processing circuit is connected to a data port of the first controller, and each of the digital selectors in the first output processing unit The second input port is connected to the data port of the corresponding controller,
    所述第二输出处理电路中的每个所述数字选择器的第一输入端口均与所述第一控制器的时钟端口连接,所述第二输出处理电路中的每个所述数字选择器的第二输入端口与对应的控制器的时钟端口连接。A first input port of each of the digital selectors in the second output processing circuit is connected to a clock port of the first controller, and each of the digital selectors in the second output processing circuit The second input port is connected to the clock port of the corresponding controller.
  7. 根据权利要求3所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 3, wherein:
    所述输入处理电路包括:与门逻辑电路;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 processes the response signal generated by each of the one or more sensors received and sends it 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.
  8. 根据权利要求7所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 7, wherein:
    所述输入处理电路还包括:信号选择器;The input processing circuit further includes: a signal selector;
    所述一个或多个传感器中的每个传感器均与所述与门逻辑电路的输入端连接,所述与门逻辑电路的输出端与所述信号选择器的第一输入端连接,所述信号选择器的输出端与所述第一控制器连接,与所述第一控制器对应的第一传感器还和所述信号选择器的第二输入端连接;Each of the one or more sensors is connected to an input of the AND logic circuit, and an output of the AND logic circuit is connected to a first input of the signal selector, and the signal An output terminal of the selector is connected to the first controller, and a first sensor corresponding to the first controller is also connected to a second input terminal of the signal selector;
    其中,当所述信号处理电路处于所述第一状态时,所述与门逻辑电路将处理后的信号通过所述信号选择器发送给所述第一控制器;Wherein, 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 sends a response signal generated by the first sensor to the first controller.
  9. 根据权利要求7所述的初始化同步装置,其特征在于,The initialization synchronization device according to claim 7, wherein:
    所述输入处理电路包括:用于输入数据信号的第一输入处理电路,以及用于输入时钟信号的第二输入处理电路。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.
  10. 根据权利要求2至9任一所述的初始化同步装置,其特征在于,所述初始化同步装 置还包括:系统寄存器,所述系统寄存器分别与所述CPU和所述信号处理电路连接;The initialization synchronization device according to any one of claims 2 to 9, wherein the initialization synchronization device further comprises: a system register, the system register being respectively connected to the CPU and the signal processing circuit;
    所述CPU用于控制所述系统寄存器的寄存器值为第一数值,以使所述信号处理电路处于所述第一状态;A register value used by the CPU to control the system register to a first value, so that the signal processing circuit is in the first state;
    所述CPU还用于控制所述系统寄存器的寄存器值为第二数值,以使所述信号处理电路处于所述第二状态,其中,所述第一数值和所述第二数值不同。The CPU is further configured to control a 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 and the second value are different.
  11. 根据权利要求2至9任一所述的初始化同步装置,其特征在于,所述初始化同步装置还包括一个或多个输入输出IO接口,所述信号处理电路通过一个或多个IO接口与所述一个或多个传感器一一连接;The initialization synchronization device according to any one of claims 2 to 9, wherein the initialization synchronization device further comprises one or more input / output IO interfaces, and the signal processing circuit communicates with the One or more sensors are connected one by one;
    其中,在所述信号处理电路处于所述第一状态时,所述一个或多个IO接口均连接至所述第一控制器;Wherein, when the signal processing circuit is in the first state, the one or more IO interfaces are connected to the first controller;
    在所述信号处理电路处于所述第二状态时,每个所述控制器分别通过一个IO接口与对应的传感器相连。When the signal processing circuit is in the second state, each of the controllers is respectively connected to a corresponding sensor through an IO interface.
  12. 根据权利要求1至9任一所述的初始化同步装置,其特征在于,The initialization synchronization device according to any one of claims 1 to 9, wherein:
    所述CPU还用于:在对每个所述传感器进行初始化处理之前,向每个所述传感器发送复位指令,以清除每个所述传感器中的初始化参数。The CPU is further configured to: before performing initialization processing on each of the sensors, send a reset instruction to each of the sensors to clear initialization parameters in each of the sensors.
  13. 根据权利要求1至9任一所述的初始化同步装置,其特征在于,所述CPU还用于:The initialization synchronization device according to any one of claims 1 to 9, wherein the CPU is further configured to:
    在对每个所述传感器进行初始化处理之后,接收每个所述传感器获取的图像信息;After performing initialization processing on each of the sensors, receiving image information acquired by each of the sensors;
    根据所述图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;Judging whether the image information acquired by any two sensors is synchronized according to the synchronization signal in the image information;
    对获取的图像信息不同步的传感器进行补偿调节。Compensate and adjust the sensor whose image information is not synchronized.
  14. 一种初始化同步方法,其特征在于,应用于初始化同步装置中,所述初始化同步装置包括:CPU、一个或多个控制器以及信号处理电路,其中,所述一个或多个控制器中的每个控制器均耦合至所述CPU以及所述信号处理电路,所述信号处理电路与所述初始化同步装置外部的一个或多个传感器连接,所述方法包括:An initialization synchronization method is characterized in that it 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, and the signal processing circuit is connected to one or more sensors outside the initialization synchronization device, and the method includes:
    所述CPU控制所述信号处理电路处于第一状态,所述第一状态用于指示第一控制器通过所述信号处理电路与所述一个或多个传感器中每个传感器连接,所述第一控制器为所述一个或多个控制器中的一个控制器;The CPU controls the signal processing circuit to be in a first state, and the first state is used to instruct a first controller to connect with each of the one or more sensors through the signal processing circuit, and the first The controller is one of the one or more controllers;
    所述第一控制器将所述CPU生成的初始化信号通过所述信号处理电路发送至所述一个或多个传感器中的每个传感器。The first controller sends an initialization signal generated by the CPU to each of the one or more sensors through the signal processing circuit.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method according to claim 14, further comprising:
    所述CPU控制所述信号处理电路处于第二状态,所述第二状态用于指示所述一个或多个控制器中的每个控制器通过所述信号处理电路与一个传感器相连;The CPU controls 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;
    每个控制器将所述CPU生成的所述初始化信号或参数修改信号发送给与所述每个控制器对应的传感器,所述参数修改信号用于对所述传感器中记录的初始化参数进行调整,所述初始化参数为在对每个所述传感器进行初始化处理的过程中,所述传感器接收到的初始化信 号中携带的参数。Each controller sends the initialization signal or parameter modification signal generated by the CPU to a sensor corresponding to each controller, and the parameter modification signal is used to adjust initialization parameters recorded in the sensor, The initialization parameter is a parameter carried in an initialization signal received by the sensor during an initialization process of each of the sensors.
  16. 根据权利要求15所述的方法,其特征在于,所述信号处理电路包括:输出处理电路和输入处理电路;The method according to claim 15, wherein the signal processing circuit comprises: an output processing circuit and an input processing circuit;
    在所述CPU控制所述信号处理电路处于第一状态后,所述方法还包括:After the CPU controls the signal processing circuit to be in a first state, the method further includes:
    所述第一控制器通过所述输出处理电路向所述一个或多个传感器中的每个传感器发送所述CPU生成的信号;Sending, by the first controller, a signal generated by the CPU to each of the one or more sensors through the output processing circuit;
    所述第一控制器通过所述输入处理电路接收所述一个或多个传感器中的每个传感器各自生成的响应信号。The first controller receives a response signal generated by each of the one or more sensors through the input processing circuit.
  17. 根据权利要求16所述的方法,其特征在于,所述输出处理电路包括:一个或多个数字选择器,所述一个或多个数字选择器中每个数字选择器的输出端与对应的传感器连接;The method according to claim 16, wherein the output processing circuit comprises: one or more digital selectors, an output terminal of each digital selector in the one or more digital selectors and a corresponding sensor connection;
    所述第一控制器通过所述输出处理电路向所述一个或多个传感器中的每个传感器发送所述CPU生成的信号,包括:The sending, by the first controller, a signal generated by the CPU to each of the one or more sensors through the output processing circuit includes:
    控制所述一个或多个数字选择器中每个数字选择器的输入端均与所述第一控制器相连,以使所述第一控制器通过所述一个或多个数字选择器向一个或多个传感器发送所述CPU生成的信号;An input terminal for controlling each digital selector in the one or more digital selectors is connected to the first controller, so that the first controller provides one or more digital selectors to the one or more digital selectors through the one or more digital selectors. Multiple sensors sending signals generated by the CPU;
    在所述CPU控制所述信号处理电路处于第二状态后,所述方法还包括:After the CPU controls the signal processing circuit to be in a second state, the method further includes:
    控制所述一个或多个数字选择器中每个数字选择器各自的输入端与对应的控制器相连。A respective input terminal for controlling each of the one or more digital selectors is connected to a corresponding controller.
  18. 根据权利要求16所述的方法,其特征在于,所述输入处理电路包括:与门逻辑电路;The method according to claim 16, wherein the input processing circuit comprises: an AND gate logic circuit;
    所述第一控制器通过所述输入处理电路接收所述一个或多个传感器中的每个传感器各自生成的响应信号,包括:The receiving, by the first controller through the input processing circuit, a response signal generated by each of the one or more sensors includes:
    所述第一控制器接收通过所述与门逻辑电路将接收的所述一个或多个传感器中的每个传感器各自生成的响应信号经过处理后的信号;Receiving, by the first controller, a processed signal of a response signal generated by each of the one or more sensors received through the AND logic circuit;
    在所述CPU控制所述信号处理电路处于第二状态后,所述方法还包括:After the CPU controls the signal processing circuit to be in a second state, the method further includes:
    所述一个或多个控制器中的每个控制器接收对应的传感器生成的响应信号。Each of the one or more controllers receives a response signal generated by a corresponding sensor.
  19. 根据权利要求15至18任一所述的方法,其特征在于,所述初始化同步装置还包括:系统寄存器,所述系统寄存器分别与所述CPU和所述信号处理电路连接,The method according to any one of claims 15 to 18, wherein the initialization synchronization device further comprises: a system register, the system register is respectively connected to the CPU and the signal processing circuit,
    所述CPU控制所述信号处理电路处于第一状态,包括:The CPU controlling the signal processing circuit to be in a first state includes:
    所述CPU控制所述系统寄存器的寄存器值为第一数值,以使所述信号处理电路处于第一状态;The CPU controls a register value of the system register to a first value, so that the signal processing circuit is in a first state;
    所述CPU控制所述信号处理电路处于第二状态,包括:The CPU controls the signal processing circuit to be in a second state, including:
    所述CPU控制所述系统寄存器的寄存器值为第二数值,以使所述信号处理电路处于第二状态,其中,所述第一数值和所述第二数值不同。The CPU controls a register value of the system register to a second value, so that the signal processing circuit is in a second state, wherein the first value and the second value are different.
  20. 根据权利要求15至18任一所述的方法,其特征在于,所述初始化同步装置还包括一个或多个输入输出IO接口,所述信号处理电路通过一个或多个IO接口与所述一个或多个 传感器一一连接;The method according to any one of claims 15 to 18, wherein the initialization synchronization device further comprises one or more input / output IO interfaces, and the signal processing circuit communicates with the one or more IO interfaces through one or more IO interfaces. Multiple sensors are connected one by one;
    在所述CPU控制所述信号处理电路处于第一状态后,所述方法还包括:After the CPU controls the signal processing circuit to be in a first state, the method further includes:
    通过所述信号处理电路使所述一个或多个IO接口均连接至所述第一控制器;Connecting the one or more IO interfaces to the first controller through the signal processing circuit;
    在所述CPU控制所述信号处理电路处于第二状态后,所述方法还包括:After the CPU controls the signal processing circuit to be in a second state, the method further includes:
    通过所述信号处理电路使每个所述控制器分别通过一个IO接口与对应的传感器相连。Each of the controllers is connected to a corresponding sensor through an IO interface through the signal processing circuit.
  21. 根据权利要求15至18任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 15 to 18, wherein the method further comprises:
    在对每个所述传感器进行初始化处理之前,所述CPU向每个所述传感器发送复位指令,以清除每个所述传感器中的初始化参数。Before performing initialization processing on each of the sensors, the CPU sends a reset instruction to each of the sensors to clear initialization parameters in each of the sensors.
  22. 根据权利要求15至18任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 15 to 18, wherein the method further comprises:
    在对每个所述传感器进行初始化处理之后,所述CPU接收每个所述传感器获取的图像信息;After performing initialization processing on each of the sensors, the CPU receives image information acquired by each of the sensors;
    所述CPU根据所述图像信息中的同步信号,判断任意两个传感器获取的图像信息是否同步;Determining, by the CPU, whether the image information acquired by any two sensors is synchronized according to a synchronization signal in the image information;
    所述CPU对获取的图像信息不同步的传感器进行补偿调节。The CPU compensates and adjusts the sensor for which the acquired image information is not synchronized.
  23. 一种摄像机,其特征在于,包括:多个摄像头和系统级芯片SOC,所述SOC包括:权利要求1至13任一所述的初始化同步装置,每个所述摄像头均包括传感器,每个所述传感器均与所述初始化同步装置连接。A camera, comprising: a plurality of cameras and a system-on-chip SOC, the SOC includes: the initialization synchronization device according to any one of claims 1 to 13, each of the cameras includes a sensor, and each The sensors are connected to the initialization synchronization device.
PCT/CN2018/108445 2018-09-28 2018-09-28 Initialization synchronization device and method and camera WO2020062076A1 (en)

Priority Applications (2)

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
CN201880097091.1A CN112689991B (en) 2018-09-28 2018-09-28 Initialization synchronization device, initialization synchronization method, and camera

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 (1)

Publication Number Publication Date
WO2020062076A1 true WO2020062076A1 (en) 2020-04-02

Family

ID=69950994

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108445 WO2020062076A1 (en) 2018-09-28 2018-09-28 Initialization synchronization device and method and camera

Country Status (2)

Country Link
CN (1) CN112689991B (en)
WO (1) WO2020062076A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103002A1 (en) * 2014-10-09 2016-04-14 Invensense, Inc. System and method for mems sensor system synchronization
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
WO2016188578A1 (en) * 2015-05-28 2016-12-01 Telefonaktiebolaget Lm Ericsson (Publ) METHOD FOR ENABLING SIMULTANEOUS CONTROL OF A PLURALITY OF TPMs AND RELATED COMPONENTS
CN105298758B (en) * 2015-09-29 2018-06-26 重庆科凯前卫风电设备有限责任公司 A kind of wind-driven generator acceleration sensing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103002A1 (en) * 2014-10-09 2016-04-14 Invensense, Inc. System and method for mems sensor system synchronization
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

Also Published As

Publication number Publication date
CN112689991B (en) 2022-12-27
CN112689991A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US10999568B2 (en) Method and apparatus for 3D capture synchronization
JP4057913B2 (en) Method for controlling the operation of a video signal processing apparatus
US8654133B2 (en) Dynamic load balancing in multiple video processing unit (VPU) systems
JP6834976B2 (en) Multi-camera system, multi-camera system control method and camera
TWI812604B (en) Image sensor and control system
WO2022247647A1 (en) Timing controller and display device
WO2020062076A1 (en) Initialization synchronization device and method and camera
TW202246950A (en) Time schedule controller and display device
JP6007509B2 (en) Serial I / F bus control device and imaging device
JPWO2019239779A1 (en) Camera system, its controller, automobile, deserializer circuit
JP2016220254A (en) Imaging device
KR101809727B1 (en) Surround View Monitoring System and Image Signal Processing Method thereof
WO2022213883A1 (en) Synchronous exposure circuit, exposure method and exposure device for multiple visual sensors
WO2018157569A1 (en) Memory control method and device
US20230297525A1 (en) High speed interface for multi image sensor device
JP3826004B2 (en) Numerical control apparatus and control method
JPH05298410A (en) Picture processor
JP2575064B2 (en) Hard copy interface circuit
JPH0267667A (en) Circuit board
JP2018163321A (en) Multi display system, video display system, display, and video display control controller
JPH04307593A (en) Communication circuit
JPH1146188A (en) Synchronization processing system for measurement signal
JP2004266564A (en) Communication system
JP2000316175A (en) Image pickup method and image pickup device and method and device for controlling the same and storage medium
JPH04306992A (en) Communication circuit

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

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

Country of ref document: EP

Kind code of ref document: A1