CN112118383A - Method for obtaining double-camera data through single-camera controller - Google Patents

Method for obtaining double-camera data through single-camera controller Download PDF

Info

Publication number
CN112118383A
CN112118383A CN201910532151.4A CN201910532151A CN112118383A CN 112118383 A CN112118383 A CN 112118383A CN 201910532151 A CN201910532151 A CN 201910532151A CN 112118383 A CN112118383 A CN 112118383A
Authority
CN
China
Prior art keywords
camera
iic
data
camera module
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910532151.4A
Other languages
Chinese (zh)
Inventor
杨欢欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ingenic Time Semiconductor Co ltd
Original Assignee
Shenzhen Ingenic Time Semiconductor Co ltd
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 Shenzhen Ingenic Time Semiconductor Co ltd filed Critical Shenzhen Ingenic Time Semiconductor Co ltd
Priority to CN201910532151.4A priority Critical patent/CN112118383A/en
Publication of CN112118383A publication Critical patent/CN112118383A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply

Abstract

The invention provides a method for acquiring double-camera data by a single-camera controller, which comprises the following steps: 1, supplying power to a camera module; 2-3, the single-camera controller sends initialization lists to the first camera and the second camera through IIC-1 and IIC-2 interfaces respectively; 4, the single-camera controller sends an enabling command to the first camera through the IIC-1 interface, and the first camera sends the acquired data to a specified cache of the CPU through a specified time sequence according to the initialized configuration; 5, the single-camera controller receives a frame of complete data and generates an interrupt to inform an application program to collect first camera data from a specified buffer area; and 6, immediately sending a prohibition command to the first camera through the IIC-1 after the interruption occurs, sending an enable command to the second camera through the IIC-2 after the prohibition command is sent, sending the acquired data to a specified cache of the CPU through a specified time sequence according to the initialized configuration by the second camera, and acquiring the data of the color camera.

Description

Method for obtaining double-camera data through single-camera controller
Technical Field
The invention relates to the technical field of face image recognition, in particular to a method for obtaining double-camera data through a single-camera controller.
Background
With the continuous development of science and technology, particularly the development of computer vision technology, the face recognition technology is widely applied to various fields such as information security, electronic authentication and the like, and with the progress of science and technology, more and more biometric-based technologies are applied to the daily life of people. For example, the face recognition technology is applied to attendance machines, face payment, intelligent locks based on face recognition and the like. More and more face recognition technologies provide better experience for users and more convenient service. As basic equipment of the face recognition technology: dual cameras are increasingly being provided in mobile or non-mobile terminals. Whether the image of the face is a living face or not can be judged based on the feature values extracted by the two cameras.
In order to facilitate face recognition, one of the two cameras is a black-and-white image camera, and the other one is a color image camera. Whether the image of the face is a live face can be judged based on the feature values extracted by the two cameras. And the two cameras on the current market are mostly in a one-to-one mode that one camera corresponds to one camera controller. And the selection range of manufacturers is small, and the price is high. Current implementations require more than 2 camera controllers in the CPU to acquire black and white and color images, respectively. But most of the CPUs in common use in the market only have one camera for control. Therefore, the selectable range of manufacturers is small, and the CPU with 2 camera controllers is high in common price. Resulting in an increase in the price of the product and a decrease in competitiveness.
Disclosure of Invention
In order to solve the problems in the prior art, the present invention aims to: the method can use one camera controller to connect and control two cameras. And connecting the data lines and the control lines of the two cameras together and connecting the data lines and the control lines with a camera controller. The two cameras respectively send the data collected by the cameras to the controller in a time-sharing multiplexing mode. Therefore, the selectable range of the CPU is greatly increased, and the cost can be greatly reduced. Wherein, the CPU: english Central processing Unit central processing Unit abbreviation. IIC: english Inter-integrated circuit bus abbreviation; this bus type is a simple, bi-directional, two-wire, synchronous serial bus designed by philips semiconductors; the method is mainly used for master-slave communication between the master controller and the slave devices, is used in small data volume occasions, and has short transmission distance. High resistance state: is a common term in a digital circuit, and refers to an output state of the circuit, which is neither high level nor low level, and has no influence on a next circuit if a high impedance state is input into the next circuit, and is basically the same as the output state.
The invention provides a method for obtaining double-camera data through a single-camera controller, which comprises the following steps:
s1, supplying power to the double-camera module;
s2, the single camera controller sends the initialization list to the first camera through the IIC-1 interface
The camera sensor starts to work and converts the sensed result into a digital signal;
s3, the single camera controller sends the initialization list to the second camera through the IIC-2 interface
A head module;
s4, the single camera controller sends an enabling command to the first camera through the IIC-1 interface
A module, the first camera module will acquire through a specified time sequence according to the initialized configuration
The collected data is sent to a designated cache of the CPU;
s5, the single-camera controller receives a frame of complete data and generates an interrupt to inform
The application program module acquires data of the first camera from the designated buffer area;
s6, transmitting a disable command to the first camera through IIC-1 immediately after the interrupt is generated,
transmitting an enable command to the second camera through the IIC-2 after the transmission of the disable command is completed, and then
The second camera module collects the collected data according to the initialized configuration through the designated time sequence
Sending the color data to a designated cache of the CPU, and informing the application program module to acquire the color from the cache
Data of the color camera.
The images collected by the first camera module are black and white.
The image collected by the second camera module is colorful.
In the process of step S5, the second camera is in the disabled state, and the data line and the clock line of the corresponding interface are both in the high impedance state.
The first camera module, the second camera module data line and the clock line are common but do not influence the first camera to transmit data.
And the resolution ratios of the cameras of the first camera module and the second camera module are the same.
The IIC-1 interface and the IIC-2 interface can be distinguished only by adopting different IIC addresses of the two camera modules.
The first camera module and the second camera module can be distinguished through IIC addresses.
The application has the advantages that: from the above, the method for controlling the dual cameras by the single-camera controller provided by the invention connects the data lines and the control lines of the two cameras together and is connected with the camera controller. The two cameras respectively send the data collected by the cameras to the controller in a time-sharing multiplexing mode. Therefore, the optional range of the CPU is greatly increased, the cost can be greatly reduced, and the technical effect that the double cameras can work is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention.
Fig. 1 is a schematic block diagram of a system to which the present invention relates.
FIG. 2 is a block diagram of a method flow of an embodiment of the present invention.
Detailed Description
The following is a specific embodiment related to the present invention, wherein, as shown in fig. 1, the present invention includes a camera controller, the camera controller is disposed in the CPU, and further includes a first camera module and a second camera module; the camera controller is connected with the first camera module and the second camera module through a data line, a clock line and an MCLK line; and the CPU is provided with an IIC-1 interface and an IIC-2 interface which are respectively connected with the first camera module and the second camera module.
The process of operating the camera is as follows:
firstly, the camera module is powered on,
secondly, sending an initialization list to a camera module through an IIC interface (a camera sensor starts working to convert the sensed result into a digital signal),
and sending the enabling command to the camera module again, and sending the acquired data to a cache appointed by the CPU by the camera through an appointed time sequence according to the initialized configuration.
And finally, the camera controller receives a frame of complete data, generates an interrupt and informs an application program to obtain a frame of acquired image data from the specified buffer area.
When the prohibition command is sent to the camera module, the interfaces for transmitting data are all high-impedance, so that the data transmission of the camera parallel to the interfaces is not influenced.
When the method is implemented, as shown in fig. 2, the process of acquiring the image from the camera module is as follows:
firstly, supplying power to the double-camera module;
secondly, the single-camera controller sends an initialization list to the first camera module through an IIC-1 interface;
thirdly, the single-camera controller sends the initialization list to the second camera module through the IIC-2 interface;
then, the single-camera controller sends an enabling command to a first camera module through an IIC-1 interface, and the first camera module sends the acquired data to a specified cache of a CPU (central processing unit) through a specified time sequence according to the initialized configuration;
then, the single-camera controller receives a frame of complete data, generates an interrupt at the same time, and informs the application program module to acquire the data of the first camera from the designated cache;
and finally, immediately sending a prohibition command to the first camera through the IIC-1 after the interruption is generated, sending an enable command to the second camera through the IIC-2 after the prohibition command is sent, sending the acquired data to a specified cache of the CPU through a specified time sequence by the second camera module according to the initialized configuration, and acquiring the data of the color camera by the application program module.
Since a camera controller is used, the resolution of the first camera and the second camera must be the same, otherwise no valid data can be acquired. The IIC-1 interface and the IIC-2 interface can be distinguished only by adopting different IIC addresses of the two camera modules, and the first camera and the second camera can be distinguished through the addresses.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for obtaining dual-camera data via a single-camera controller, the method comprising:
s1, supplying power to the double-camera module;
s2, the single-camera controller sends the initialization list to the first camera module through the IIC-1 interface;
s3, the single-camera controller sends the initialization list to the second camera module through the IIC-2 interface;
s4, the single-camera controller sends an enabling command to the first camera module through the IIC-1 interface, and the first camera module sends the acquired data to a designated cache of the CPU through a designated time sequence according to the initialized configuration;
s5, the single-camera controller receives a frame of complete data, and simultaneously generates an interrupt to inform the application program module to acquire the data of the first camera from the specified cache;
and S6, immediately sending a prohibition command to the first camera through the IIC-1 after the interruption occurs, sending an enable command to the second camera through the IIC-2 after the prohibition command is sent, sending the collected data to a specified cache of the CPU through a specified time sequence by the second camera module according to the initialized configuration, and informing the application program module to obtain the data of the second camera from the specified cache.
2. The method of claim 1, wherein the images captured by the first camera module are black and white.
3. The method of claim 1, wherein the image captured by the second camera module is in color.
4. The method of claim 1, wherein during step S5, the second camera is in an inhibit state, and the data line and the clock line of the corresponding interface are both in a high impedance state.
5. The method for obtaining the data of the double cameras through the single camera controller according to claim 4, wherein the first camera module, the second camera module data line and the clock line are common but do not affect the data transmission of the first camera.
6. The method of claim 1, wherein the resolution of the cameras of the first camera module and the second camera module are the same.
7. The method of claim 1, wherein the IIC-1 interface and the IIC-2 interface can be distinguished by using different IIC addresses of two camera modules.
8. The method of claim 7, wherein the first camera module and the second camera module are distinguishable by an IIC address.
CN201910532151.4A 2019-06-19 2019-06-19 Method for obtaining double-camera data through single-camera controller Pending CN112118383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532151.4A CN112118383A (en) 2019-06-19 2019-06-19 Method for obtaining double-camera data through single-camera controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532151.4A CN112118383A (en) 2019-06-19 2019-06-19 Method for obtaining double-camera data through single-camera controller

Publications (1)

Publication Number Publication Date
CN112118383A true CN112118383A (en) 2020-12-22

Family

ID=73796619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532151.4A Pending CN112118383A (en) 2019-06-19 2019-06-19 Method for obtaining double-camera data through single-camera controller

Country Status (1)

Country Link
CN (1) CN112118383A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050200716A1 (en) * 1998-07-24 2005-09-15 Tsuneyoshi Takagi Control apparatus, control system, control method and storage medium of the same
CN101222619A (en) * 2008-01-22 2008-07-16 重庆大学 Multiplex image acquisition method based on embedded system
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal
CN201846415U (en) * 2010-11-23 2011-05-25 汉王科技股份有限公司 Face recognition device with double collaborative cameras
CN203179038U (en) * 2013-04-08 2013-09-04 江苏浩顺智能科技有限公司 USB duel-camera facial recognition data collector
CN106954046A (en) * 2017-04-01 2017-07-14 罗旗舞 A kind of video acquisition device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050200716A1 (en) * 1998-07-24 2005-09-15 Tsuneyoshi Takagi Control apparatus, control system, control method and storage medium of the same
CN101222619A (en) * 2008-01-22 2008-07-16 重庆大学 Multiplex image acquisition method based on embedded system
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal
CN201846415U (en) * 2010-11-23 2011-05-25 汉王科技股份有限公司 Face recognition device with double collaborative cameras
CN203179038U (en) * 2013-04-08 2013-09-04 江苏浩顺智能科技有限公司 USB duel-camera facial recognition data collector
CN106954046A (en) * 2017-04-01 2017-07-14 罗旗舞 A kind of video acquisition device and method

Similar Documents

Publication Publication Date Title
US7293118B1 (en) Apparatus and method for dynamically providing hub or host operations
US7769914B2 (en) Electronic device having USB interface capable of supporting multiple USB interface standards and methods of operating same
CN101827219B (en) Method and device for controlling two cameras in master/slave mode in wireless terminal
US9059906B1 (en) Data communication interface
US20090234998A1 (en) Connection system
CN108111382B (en) Communication device based on I3C bus and communication method thereof
KR20110069271A (en) Imaging device and method for sharing memory among chips
US9563582B2 (en) Modular device, system, and method for reconfigurable data distribution
CN104270740B (en) A kind of detection method of neck T cards and SIM card altogether
CN107911597B (en) Image acquisition device and intelligent terminal
CN107526703B (en) Inter-integrated circuit device in inter-integrated circuit system and control method thereof
CN211557370U (en) Video processing device and vehicle
CN211580075U (en) Video processing device and vehicle
CN106532382A (en) USB Type-C adapter and implementation method thereof
CN112118383A (en) Method for obtaining double-camera data through single-camera controller
CN112118385A (en) System for controlling double cameras by single-camera controller
CN108055212B (en) Method and device compatible with PSE chip
JP2010525476A (en) Electronic processing apparatus and configuration method
CN112118384A (en) Method for controlling double cameras by single-camera controller
CN112118381A (en) Method for controlling double cameras through single-camera controller through switch
CN107038132B (en) Circuit and method for synchronously controlling multiple peripheral devices
CN112118382A (en) System for controlling double-camera module through change-over switch
KR20000042653A (en) Apparatus and method for processing snap shot of usb camera
CN108701104B (en) Data transmission system, projector, and data transmission method
CN107015935B (en) Docking apparatus and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201222