CN112118385A - System for controlling double cameras by single-camera controller - Google Patents
System for controlling double cameras by single-camera controller Download PDFInfo
- Publication number
- CN112118385A CN112118385A CN201910532938.0A CN201910532938A CN112118385A CN 112118385 A CN112118385 A CN 112118385A CN 201910532938 A CN201910532938 A CN 201910532938A CN 112118385 A CN112118385 A CN 112118385A
- Authority
- CN
- China
- Prior art keywords
- camera
- camera module
- iic
- sending
- data
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a system for controlling double cameras by a single-camera controller, which comprises: a camera controller, the camera controller being disposed in the CPU, the first and second cameras; the camera controller is connected with the camera through a data line, a clock line and an MCLK line; the CPU is provided with IIC-1 and IIC-2 interfaces which are respectively connected with the first camera and the second camera; respectively sending the initialization list to the first camera and the second camera; sending an enabling command to the first camera through the IIC-1, and sending the acquired data to a cache appointed by the CPU through an appointed time sequence according to the initialized configuration; the camera controller receives a frame of complete data, generates interruption and obtains image data from a specified buffer area; and after the interruption is generated, sending a prohibition command to the first camera through the IIC-1, sending an enable command to the second camera through the IIC-2 interface 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, and acquiring the data of the second camera.
Description
Technical Field
The invention relates to the technical field of face image recognition, in particular to a system for controlling double cameras by 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 system related to the invention 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.
The invention provides a system for controlling double cameras by a single-camera controller, which comprises: the camera controller is arranged in the CPU and further comprises 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; 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; respectively sending the initialization list to the first camera module and the second camera module through IIC-1 interfaces and IIC-2 interfaces; sending an enabling command to the first camera module through the IIC-1 interface, and sending the acquired data to a cache appointed by the CPU by the first camera module through an appointed time sequence according to the initialized configuration; finally, the camera controller receives a frame of complete data, generates an interrupt and informs the application program module to obtain a frame of acquired image data from the designated buffer area; and immediately sending a prohibition command to the first camera through the IIC-1 interface after the interruption occurs, sending an enabling command to the second camera through the IIC-2 interface after the prohibition command is sent, sending the acquired data to a specified cache of the CPU by the second camera module according to the initialized configuration through a specified time sequence, and acquiring the data of the second camera by the application program module.
When the prohibition command is sent to one camera module, the interfaces for transmitting data are all high-impedance, so that the data transmission of the other camera parallel to the interfaces is not influenced.
The camera module still includes the camera sensor, the result conversion that the camera sensor started working and will sense is digital signal.
The images collected by the first camera module are black and white.
The image collected by the second camera module is colorful.
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 system of the double-camera 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 an embodiment of the system of the present invention.
Fig. 2 is a block flow diagram of a method to which the present invention relates.
Detailed Description
Currently, the technical terms commonly used in the technical field include:
a CPU: english abbreviation of Central Processing Unit Central Processing Unit.
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.
As shown in fig. 1, the present application relates to a system comprising: the camera controller is arranged in the CPU and further comprises 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; 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; respectively sending the initialization list to the first camera module and the second camera module through IIC-1 interfaces and IIC-2 interfaces; sending an enabling command to the first camera module through the IIC-1 interface, and sending the acquired data to a cache appointed by the CPU by the first camera module through an appointed time sequence according to the initialized configuration; finally, the camera controller receives a frame of complete data, generates an interrupt and informs the application program module to obtain a frame of acquired image data from the designated buffer area; and immediately sending a prohibition command to the first camera through the IIC-1 interface after the interruption occurs, sending an enabling command to the second camera through the IIC-2 interface after the prohibition command is sent, sending the acquired data to a specified cache of the CPU by the second camera module according to the initialized configuration through a specified time sequence, and acquiring the data of the second camera by the application program 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.
As shown in fig. 2, in the embodiment of the present application, a flow of acquiring an image from a camera module is as follows: first, both camera modules are powered up.
Secondly, the initialization list is sent to the first camera module (black and white) through the IIC-1 interface, and a prohibition command is sent to the first camera module (black and white).
Sending an initialization list to the second camera module (color) and a prohibition command to the second camera module (color) through the IIC-2 interface
And sending an enabling command to the first camera module (black and white) through the IIC-1 interface, and sending the acquired data to a specified cache of the CPU by the camera module through a specified time sequence according to the initialized configuration.
The camera controller receives a frame of complete data, and generates an interrupt to inform an application program of collecting data of the black and white camera from a specified buffer area. In the process, the second camera (color) is in a forbidden state, the data line and the clock line of the corresponding interface are both in a high configuration, and although the data line and the clock line of the first camera module (black and white) and the second camera module (color) are common, the data transmission of the first camera (black and white) is not influenced.
And finally, immediately sending a prohibition command to the first camera (black and white) through the IIC-1 after the interruption is generated, sending an enable command to the second camera (color) through the IIC-2 after the sending is finished, and then sending the acquired data to a specified cache of the CPU through a specified time sequence by the second camera module (color) according to the initialized configuration. The application program can acquire the data of the color camera.
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. If the IIC addresses of the two cameras are different, the IIC-1 and the IIC-2 can also use one IIC controller, 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 (9)
1. A system for a single-camera controller to control dual cameras, the system comprising: the camera controller is arranged in the CPU, and is characterized by further comprising 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; 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; respectively sending the initialization list to the first camera module and the second camera module through IIC-1 interfaces and IIC-2 interfaces; sending an enabling command to the first camera module through the IIC-1 interface, and sending the acquired data to a cache appointed by the CPU by the first camera module through an appointed time sequence according to the initialized configuration; finally, the camera controller receives a frame of complete data, generates an interrupt and informs the application program module to obtain a frame of acquired image data from the designated buffer area; and immediately sending a prohibition command to the first camera through the IIC-1 interface after the interruption occurs, sending an enabling command to the second camera through the IIC-2 interface 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 second camera by the application program module.
2. The system of claim 1, wherein when the disable command is sent to one of the camera modules, the interfaces for transmitting data are all too high impedance to affect the data transmission of the other camera in parallel.
3. The system of claim 1, wherein the camera module further comprises a camera sensor, and the camera sensor converts the sensed result into a digital signal when the camera sensor starts to work.
4. The system of claim 1, wherein the first camera module captures black and white images.
5. The system of claim 1, wherein the second camera module captures color images.
6. The system of claim 1, wherein the first camera module, the second camera module, and the clock line are common but do not affect the data transmission of the first camera.
7. The system of claim 1, wherein the resolution of the cameras of the first camera module and the second camera module are the same.
8. The system of claim 1, wherein the IIC-1 interface and the IIC-2 interface can be distinguished by using different IIC addresses of the two camera modules.
9. The system of claim 1, wherein the first camera module and the second camera module are distinguishable by an IIC address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910532938.0A CN112118385A (en) | 2019-06-19 | 2019-06-19 | System for controlling double cameras by single-camera controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910532938.0A CN112118385A (en) | 2019-06-19 | 2019-06-19 | System for controlling double cameras by single-camera controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112118385A true CN112118385A (en) | 2020-12-22 |
Family
ID=73796719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910532938.0A Pending CN112118385A (en) | 2019-06-19 | 2019-06-19 | System for controlling double cameras by single-camera controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112118385A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201846415U (en) * | 2010-11-23 | 2011-05-25 | 汉王科技股份有限公司 | Face recognition device with double collaborative cameras |
CN102263904A (en) * | 2011-08-17 | 2011-11-30 | 华为终端有限公司 | Method and system for controlling double cameras and electronic equipment with double cameras |
CN106791327A (en) * | 2017-01-09 | 2017-05-31 | 广东欧珀移动通信有限公司 | CCD camera assembly, circuit board assemblies and terminal |
CN106954046A (en) * | 2017-04-01 | 2017-07-14 | 罗旗舞 | A kind of video acquisition device and method |
CN206932302U (en) * | 2017-05-27 | 2018-01-26 | 珠海市魅族科技有限公司 | A kind of multi-cam signal switching apparatus and mobile terminal |
-
2019
- 2019-06-19 CN CN201910532938.0A patent/CN112118385A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201846415U (en) * | 2010-11-23 | 2011-05-25 | 汉王科技股份有限公司 | Face recognition device with double collaborative cameras |
CN102263904A (en) * | 2011-08-17 | 2011-11-30 | 华为终端有限公司 | Method and system for controlling double cameras and electronic equipment with double cameras |
CN106791327A (en) * | 2017-01-09 | 2017-05-31 | 广东欧珀移动通信有限公司 | CCD camera assembly, circuit board assemblies and terminal |
CN106954046A (en) * | 2017-04-01 | 2017-07-14 | 罗旗舞 | A kind of video acquisition device and method |
CN206932302U (en) * | 2017-05-27 | 2018-01-26 | 珠海市魅族科技有限公司 | A kind of multi-cam signal switching apparatus and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7765344B2 (en) | Apparatus and method for dynamically providing hub or host operations | |
CN101827219B (en) | Method and device for controlling two cameras in master/slave mode in wireless terminal | |
US10102177B2 (en) | Serial communication system, communication control unit, and electronic device for finding and assigning unused addresses | |
US20110149116A1 (en) | Imaging device and method for sharing memory among chips | |
US20090234998A1 (en) | Connection system | |
CN108111382B (en) | Communication device based on I3C bus and communication method thereof | |
US20070162666A1 (en) | Data input terminal device | |
CN108292990A (en) | Communication system and communication means | |
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 | |
CN107911597A (en) | Image collecting device and intelligent terminal | |
CN114090500A (en) | All-pass image processing SOC chip and image processing method | |
US6643728B1 (en) | Method and apparatus for converting IEEE 1284 signals to or from IEEE 1394 signals | |
CN102445981B (en) | Data transmission system and data transmission method | |
CN112118385A (en) | System for controlling double cameras by single-camera controller | |
CN112118383A (en) | Method for obtaining double-camera data through single-camera controller | |
US20050144385A1 (en) | Interfacing multiple flash memory cards to a computer system | |
JP2010525476A (en) | Electronic processing apparatus and configuration method | |
CN108055212B (en) | Method and device compatible with PSE chip | |
CN112118384A (en) | Method for controlling double cameras by single-camera controller | |
CN107038132B (en) | Circuit and method for synchronously controlling multiple peripheral devices | |
CN112118381A (en) | Method for controlling double cameras through single-camera controller through switch | |
CN112118382A (en) | System for controlling double-camera module through change-over switch | |
CN110188060A (en) | Mode switching system and the mode switching method for applying it | |
CN214225994U (en) | ESP 32-S-based household security intelligent door lock system |
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 |
Application publication date: 20201222 |
|
RJ01 | Rejection of invention patent application after publication |