Color calibration system and method of fisheye lens, electronic equipment and storage medium
Through the color calibration system and method of fisheye lenses, the combination of test board and smart terminals can realize simultaneous color calibration of multiple fisheye lenses, solving the problem of low color calibration efficiency in the prior art and significantly improving production efficiency.
Patent Information
- Application Number
- CN202411028864.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the color calibration efficiency of fisheye lenses is low and takes a long time, mainly due to the efficiency bottleneck caused by the calibration method of a single lens.
Design a color calibration system and method for fisheye lenses. Through the combination of test board, intelligent terminal and interface module, the simultaneous color calibration of multiple fisheye lenses is realized, and the image shooting and correction data processing is performed using the main control unit and the power unit. The intelligent terminal performs calculation processing and sends correction data, and the fisheye lens performs writing processing to complete correction.
It greatly improves the production efficiency of fisheye lenses, and can color calibration of multiple fisheye lenses at the same time, significantly shortening calibration time.
Smart Images

Figure CN119211743A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fisheye lenses, and in particular to a color calibration system, method, electronic equipment and storage medium for fisheye lenses. Background Art
[0002] A fisheye lens is a lens with a short focal length and a viewing angle close to or equal to 180°. In the related art, most fisheye lenses are calibrated by a single color calibration method, which is inefficient and time-consuming. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a fisheye lens color calibration system, method, electronic device and storage medium, which can perform simultaneous color calibration on multiple fisheye lenses and improve production efficiency.
[0004] The objective of the present invention is achieved through the following technical solutions:
[0005] In a first aspect, the present application provides a color calibration system for a fisheye lens, comprising: a test board, comprising a main control unit and a power supply unit, the main control unit being electrically connected to the power supply unit; an intelligent terminal being electrically connected to the main control unit; and an interface module being electrically connected to the main control unit and the power supply unit, respectively. After the power supply unit supplies power to a plurality of fisheye lenses through the interface module, the intelligent terminal calibrates images taken by each of the fisheye lenses through the main control unit.
[0006] The test board also includes a plug-in terminal, and the main control unit is electrically connected to the smart terminal via the plug-in terminal.
[0007] It also includes a power supply end, which is electrically connected to the power supply unit.
[0008] It also includes a material placement module, which includes a loading fixture. The loading fixture is provided with a plurality of grooves, and the grooves are used to place the fisheye lens.
[0009] The interface module includes a connecting harness and a connector, one end of the connecting harness is electrically connected to the multiple fisheye lenses one by one, and the connector is electrically connected to the other end of the connecting harness. After the power supply unit supplies power to the multiple fisheye lenses through the connector and the connecting harness, the smart terminal calibrates the image taken by the fisheye lens through the main control unit.
[0010] The second aspect of the present application provides a color calibration method for a fisheye lens, comprising: a plurality of fisheye lenses are connected to a connector of a test board through a connecting harness, a power supply unit energizes the plurality of fisheye lenses through the connector and the connecting harness, so that each of the fisheye lenses is in a powered-on state; each of the fisheye lenses is placed in a groove of a carrier fixture, so that each of the fisheye lenses can cover the light source; a main control unit sends a lighting instruction to each of the fisheye lenses, so that each of the fisheye lenses outputs image information, and the image information is sent to an intelligent terminal through the main control unit; the intelligent terminal calculates and processes the image information and preset image information, outputs correction data, and sends the correction data to the main control unit, which is sent to each of the fisheye lenses through the connector and the connecting harness; each of the fisheye lenses writes the correction data to complete the correction process.
[0011] The intelligent terminal calculates and processes the image information and the preset image information, and outputs correction data, including: extracting the first color layer, the second color layer and the third color layer of the image information, comparing the first color layer with the preset first color layer in the preset image information, and outputting a first deviation threshold; compensating the first deviation threshold and outputting a first compensation data packet; comparing the second color layer with the preset second color layer in the preset image information, and outputting a second deviation threshold; compensating the second deviation threshold and outputting a second compensation data packet; comparing the third color layer with the preset third color layer in the preset image information, and outputting a third deviation threshold; compensating the third deviation threshold and outputting a third compensation data packet; merging the first compensation data packet, the second compensation data packet and the third compensation data packet to output the correction data.
[0012] Each of the fisheye lenses writes the correction data, including: after each of the fisheye lenses writes the correction data into its internal memory, the correction data is called to complete the correction process.
[0013] A third aspect of the present application provides an electronic device, including:
[0014] Processor; and
[0015] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0016] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0017] Compared with the prior art, the present invention has at least the following advantages:
[0018] This application utilizes a smart terminal to perform color calibration on multiple fisheye lenses at the same time, thereby greatly improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below.
[0020] Figure 1 is a functional module diagram of a color calibration system for a fisheye lens in one embodiment of the present invention;
[0021] Figure 2 is a method flow chart of a color calibration method for a fisheye lens in one embodiment of the present invention;
[0022] Figure 3 A method flow chart of another implementation of a color calibration method for a fisheye lens in an embodiment of the present invention;
[0023] Figure 4 FIG. 4 is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0025] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0026] Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, or a detachable connection or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0027] A fisheye lens is a lens with a short focal length and a viewing angle close to or equal to 180°. In the related art, most fisheye lenses are calibrated by a single color calibration method, which is inefficient and time-consuming.
[0028] In view of the above problems, the embodiments of the present application provide a color calibration system, method, electronic device and storage medium for a fisheye lens, which can perform color calibration on multiple fisheye lenses at the same time to improve production efficiency.
[0029] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0030] Figure 1 It is a schematic diagram of the flow of a color calibration system for a fisheye lens shown in an embodiment of the present application.
[0031] See also Figure 1 A color calibration system for a fisheye lens includes: a test board 100, an intelligent terminal 200 and an interface module 300. The test board 100 includes a main control unit 110 and a power supply unit 120, and the main control unit 110 is electrically connected to the power supply unit 120; the intelligent terminal 200 is electrically connected to the main control unit 110; the interface module 300 is electrically connected to the main control unit 110 and the power supply unit 120 respectively. After the power supply unit 120 powers on multiple fisheye lenses through the interface module 300, the intelligent terminal 200 calibrates the images taken by each fisheye lens through the main control unit 110.
[0032] It should be noted that the main control unit 110 is a processor for communicating with multiple fisheye lenses through the interface module 300, and the power supply unit 120 is used to supply power to the main control unit 110 and the multiple fisheye lenses. The smart terminal 200 calibrates the image taken by the fisheye lens through the main control unit 110.
[0033] Furthermore, the present application can calibrate multiple fisheye lenses at the same time, thereby greatly improving work efficiency.
[0034] See also Figure 1 In one embodiment, the test board 110 further includes a plug-in terminal, and the main control unit 110 is electrically connected to the smart terminal 200 via the plug-in terminal.
[0035] It should be noted that the plug-in terminal is a USB interface, and the main control unit 110 is electrically connected to the smart terminal 200 via the plug-in terminal.
[0036] See also Figure 1 In one embodiment, it also includes a power supply end, which is electrically connected to the power supply unit 120.
[0037] It should be noted that the power supply end is an external 12V power supply, which is used to be electrically connected to the power supply unit 120 .
[0038] See also Figure 1 In one embodiment, it also includes a material placement module, which includes a carrier jig having a plurality of grooves thereon, and the grooves are used to place the fisheye lens.
[0039] It should be noted that at least four grooves are provided on the object-carrying fixture, all of which are used to place the fisheye lens, and each groove can cover the light source to complete the calibration work.
[0040] See also Figure 1 In one embodiment, the interface module 300 includes a connecting harness and a connector, one end of the connecting harness is electrically connected to the multiple fisheye lenses one by one, and the connector is electrically connected to the other end of the connecting harness. After the power supply unit 120 supplies power to the multiple fisheye lenses through the connector and the connecting harness, the smart terminal 200 calibrates the image taken by the fisheye lens through the main control unit 110.
[0041] It should be noted that a connector is provided inside each of the multiple fisheye lenses, and is electrically connected to the connector of the test board via a connecting harness.
[0042] Corresponding to the aforementioned application function realization system embodiment, the present application also provides a fisheye lens color calibration method, electronic device and corresponding embodiments.
[0043] Figure 2 4 is a flow chart of a method for color calibration of a fisheye lens shown in an embodiment of the present application.
[0044] See also Figure 2 , a color calibration method for a fisheye lens, comprising:
[0045] Step S101, multiple fisheye lenses are connected to the connector of the test board through a connecting harness, and a power supply unit energizes the multiple fisheye lenses through the connector and the connecting harness, so that each fisheye lens is in a powered-on state.
[0046] It should be noted that multiple fisheye lenses are connected to the connector of the test board through a connecting harness, and the power supply unit will be connected to an external 12V power supply to power each fisheye lens.
[0047] Step S102: Place each fisheye lens into a groove of a loading fixture so that each fisheye lens can cover the light source.
[0048] Step S103: the main control unit sends a lighting instruction to each fisheye lens, so that each fisheye lens outputs image information, and the image information is sent to the smart terminal through the main control unit.
[0049] It should be noted that the main control unit will light up each fisheye lens sent to the object-carrying fixture so that each fisheye lens outputs image information.
[0050] Step S104: the intelligent terminal calculates and processes the image information and the preset image information, outputs correction data, and sends the correction data to the main control unit, which then sends the correction data to each fisheye lens through a connector and a connecting harness.
[0051] It should be noted that the intelligent terminal will calculate and process the multiple image information and the preset image information one by one, output the correction data of each image information, and then send each correction data to each fisheye lens through the main control unit.
[0052] Step S105: Each fisheye lens writes the correction data to complete the correction process.
[0053] It should be noted that each fisheye lens writes the correction data to perform the correction work.
[0054] Figure 3 for Figure 2 In a more detailed embodiment, a color calibration method for a fisheye lens includes:
[0055] Step S201: multiple fisheye lenses are connected to the connector of the test board through a connecting harness, and a power supply unit energizes the multiple fisheye lenses through the connector and the connecting harness, so that each fisheye lens is in a powered-on state.
[0056] The description here can refer to step S101, which will not be repeated here.
[0057] Step S202: Place each fisheye lens into a groove of a loading fixture so that each fisheye lens can cover the light source.
[0058] The description here can refer to step S102, which will not be repeated here.
[0059] Step S203: The main control unit sends a lighting instruction to each fisheye lens, so that each fisheye lens outputs image information, and the image information is sent to the smart terminal through the main control unit.
[0060] The description here can refer to step S103, which will not be repeated here.
[0061] Step S204, extracting the first color layer, the second color layer and the third color layer of the image information, comparing the first color layer with the preset first color layer in the preset image information, and outputting a first deviation threshold; compensating the first deviation threshold, and outputting a first compensation data packet; comparing the second color layer with the preset second color layer in the preset image information, and outputting a second deviation threshold; compensating the second deviation threshold, and outputting a second compensation data packet; comparing the third color layer with the preset third color layer in the preset image information, and outputting a third deviation threshold; compensating the third deviation threshold, and outputting a third compensation data packet; merging the first compensation data packet, the second compensation data packet and the third compensation data packet, and outputting correction data;
[0062] The correction data is sent to the main control unit, and then sent to each fisheye lens through the connector and the connecting harness.
[0063] It should be noted that the first color layer is generally a red layer, the second color layer is generally a green layer, and the third color layer is generally a blue layer. The intelligent terminal first extracts the three colors of the image information sent by the fisheye lens, and then extracts and compares the three colors of the preset image information, and then outputs the deviation thresholds of the three color layers. Finally, compensation is performed according to the deviation thresholds of the three color layers to meet the preset requirements. Specifically, the compensation here can comprehensively consider the three color layers, that is, when the brightness or saturation of the first color layer is large, the brightness or saturation of the second color layer and the third color layer can be appropriately enhanced for comprehensiveness. Further, the first compensation data packet, the second compensation data packet and the third compensation data packet will be further analyzed and processed to output the correction data. Finally, the correction data is sent to the main control unit, which is sent to each fisheye lens by the main control unit through a connector and a connecting harness.
[0064] Step S205: After each fisheye lens writes the correction data into its internal memory, the correction data is called to complete the correction process.
[0065] It should be noted that the internal memory is an EEPROM memory. When the fisheye lens needs to be calibrated, the calibration can be completed by simply calling the calibration data. At the same time, the internal memory also has a storage function.
[0066] Regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0067] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0068] See also Figure 4 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0069] The processor 1020 may be a central processing unit (CPU), or an integrated circuit composed of other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be any conventional processor that can run the Linux kernel.
[0070] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0071] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0072] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0073] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0074] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the descriptions of the various embodiments have their own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art should also be aware that the actions and modules involved in the specification are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0075] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A color calibration system for a fisheye lens, characterized in that: include: The test board comprises a main control unit and a power supply unit, wherein the main control unit is electrically connected to the power supply unit; An intelligent terminal, electrically connected to the main control unit; The interface module is electrically connected to the main control unit and the power supply unit respectively. After the power supply unit supplies power to the multiple fisheye lenses through the interface module, the intelligent terminal calibrates the images taken by each of the fisheye lenses through the main control unit.
2. The color calibration system of a fisheye lens according to claim 1, characterized in that: The test board also includes a plug-in terminal, and the main control unit is electrically connected to the smart terminal via the plug-in terminal.
3. The color calibration system of a fisheye lens according to claim 1, characterized in that: It also includes a power supply end, which is electrically connected to the power supply unit.
4. The color calibration system for a fisheye lens according to claim 1, characterized in that: It also includes a material placement module, which includes a loading fixture. The loading fixture is provided with a plurality of grooves, and the grooves are used to place the fisheye lens.
5. The color calibration system for a fisheye lens according to claim 1, characterized in that: The interface module includes a connecting harness and a connector, one end of the connecting harness is electrically connected to the multiple fisheye lenses one by one, and the connector is electrically connected to the other end of the connecting harness. After the power supply unit supplies power to the multiple fisheye lenses through the connector and the connecting harness, the smart terminal calibrates the image taken by the fisheye lens through the main control unit.
6. A color calibration method for a fisheye lens, characterized in that: include: The plurality of fisheye lenses are connected to the connector of the test board through a connecting harness, and the power supply unit energizes the plurality of fisheye lenses through the connector and the connecting harness, so that each of the fisheye lenses is in a powered-on state; Put each of the fisheye lenses into a groove of a loading fixture so that each of the fisheye lenses can cover the light source; The main control unit sends a lighting instruction to each of the fisheye lenses, so that each of the fisheye lenses outputs image information, and the image information is sent to the smart terminal through the main control unit; The intelligent terminal calculates and processes the image information and preset image information, outputs correction data, and sends the correction data to the main control unit, which then sends the correction data to each of the fisheye lenses through the connector and the connection harness; Each of the fisheye lenses writes the correction data to complete the correction process.
7. The color calibration method of a fisheye lens according to claim 6, characterized in that: The intelligent terminal performs calculation processing on the image information and preset image information and outputs correction data, including: extracting a first color layer, a second color layer, and a third color layer from the image information, comparing the first color layer with a preset first color layer in the preset image information, and outputting a first deviation threshold; Perform compensation processing on the first deviation threshold and output a first compensation data packet; Compare the second color layer with a preset second color layer in the preset image information, and output a second deviation threshold; Performing compensation processing on the second deviation threshold and outputting a second compensation data packet; Compare the third color layer with a preset third color layer in the preset image information, and output a third deviation threshold; Performing compensation processing on the third deviation threshold and outputting a third compensation data packet; The first compensation data packet, the second compensation data packet and the third compensation data packet are combined and processed to output the correction data.
8. The color calibration method of a fisheye lens according to claim 6, characterized in that: Each of the fisheye lenses writes the correction data, including: After each of the fisheye lenses writes the correction data into its internal memory, the correction data is called to complete the correction process.
9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 6 to 8.
10. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 6 to 8.
Citation Information
Patent Citations
Fisheye camera shadow correction parameter determination method, correction method and device, storage medium, and fisheye camera
CN108307098A
Test module and test device
CN113271454A
Method and equipment for acquiring color test information of optical equipment
CN114046882A
Color correction method and device and related equipment
CN116614723A
Camera performance test fixture
CN215682481U
