CN107347124B - Binocular camera chromatic aberration correction and adjustment method and system - Google Patents
Binocular camera chromatic aberration correction and adjustment method and system Download PDFInfo
- Publication number
- CN107347124B CN107347124B CN201710512626.4A CN201710512626A CN107347124B CN 107347124 B CN107347124 B CN 107347124B CN 201710512626 A CN201710512626 A CN 201710512626A CN 107347124 B CN107347124 B CN 107347124B
- Authority
- CN
- China
- Prior art keywords
- image
- binocular camera
- correction
- lens
- shadow
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/60—Noise processing, e.g. detecting, correcting, reducing or removing noise
- H04N25/63—Noise processing, e.g. detecting, correcting, reducing or removing noise applied to dark current
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a binocular camera chromatic aberration correction and adjustment method, which comprises the following steps: after the position of the binocular camera is adjusted, whether an image shot by the binocular camera meets a chromatic aberration correction image is detected; lens judgment is executed, the left lens is controlled to shoot a left image, and the right lens is controlled to shoot a right image; and judging whether the left image and the right image exist at the same time, and calculating a shadow list to carry out binocular camera shadow correction if the left image and the right image exist at the same time. The technical scheme provided by the invention has the advantage of high user experience.
Description
Technical Field
The invention relates to the field of images and cameras, in particular to a binocular camera chromatic aberration correction and adjustment method and system.
Background
At present, a set of relatively standard and reasonable correction flow is not formed in the color correction aspect of the binocular panoramic camera. After a large-field-angle (more than 180 degrees) lens used by a panoramic camera is taken out, the phenomenon that the periphery of a single lens is dark due to the lens shading problem, the central area of the single lens is bright, and the peripheral color and the central color are inconsistent often exists, so that the existing binocular panoramic camera is poor in shooting effect and affects the user experience.
Disclosure of Invention
The application provides a binocular camera chromatic aberration correction and adjustment method. The defects that the colors of technical schemes in the prior art are inconsistent and the shooting effect is poor are overcome.
On one hand, the method for correcting and adjusting the chromatic aberration of the binocular camera comprises the following steps:
after the position of the binocular camera is adjusted, whether an image shot by the binocular camera meets a chromatic aberration correction image is detected;
lens judgment is executed, the left lens is controlled to shoot a left image, and the right lens is controlled to shoot a right image;
and judging whether the left image and the right image exist at the same time, and calculating a shadow list to carry out binocular camera shadow correction if the left image and the right image exist at the same time.
Optionally, the binocular camera position adjustment includes:
and respectively shooting images after adjusting the positions of the binocular cameras once, and determining that the positions of the binocular cameras are adjusted if the shot left images and the shot right images are complete circles and have no internal miscellaneous points.
Optionally, the calculating the shadow list to perform binocular camera shadow correction includes:
and controlling a left lens and a right lens in the binocular camera to shoot left original data and right original data of the spherical light source, calculating a shadow list according to the left original data and the right original data, and finally importing the shadow data in the shadow list into the binocular camera to realize color correction.
Optionally, the calculating the shadow list to perform binocular camera shadow correction includes:
if the images on the left side and the right side are shot normally, the program automatically enters a correction link, and RGB values of two color cards in two lenses are calculated; and finally, automatically finishing chromatic aberration correction, generating an image signal processing ISP file and importing the image signal processing ISP file into a camera to finish chromatic aberration correction.
In a second aspect, a binocular camera chromatic aberration correction adjusting apparatus is provided, the apparatus comprising:
the detection module is used for detecting whether the images shot by the binocular camera meet the color difference correction images or not after the position of the binocular camera is adjusted;
the control module is used for executing lens judgment, respectively controlling the left lens to shoot a left image and controlling the right lens to shoot a right image;
and the processing module is used for judging whether the left image and the right image exist simultaneously or not, and calculating a shadow list to carry out binocular camera shadow correction if the left image and the right image exist simultaneously.
Optionally, the binocular camera position adjustment includes:
and respectively shooting images after adjusting the positions of the binocular cameras once, and determining that the positions of the binocular cameras are adjusted if the shot left images and the shot right images are complete circles and have no internal miscellaneous points.
Optionally, the processing unit is specifically configured to control a left lens and a right lens in the binocular camera to shoot left raw data and right raw data of the spherical light source, calculate a shadow list according to the left raw data and the right raw data, and finally introduce the shadow data in the shadow list into the binocular camera to realize color correction.
Optionally, the processing unit is specifically configured to, if the images on the left and right sides are shot normally, automatically enter a correction link by a program, and calculate RGB values of two color cards in the two lenses; and finally, automatically finishing chromatic aberration correction, generating an image signal processing ISP file and importing the image signal processing ISP file into a camera to finish chromatic aberration correction.
In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the first aspect.
In a fourth aspect, a computer program product is provided, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method provided by the first aspect.
According to the technical scheme provided by the invention, after color correction data is led into the camera, the problem of chromatic aberration at two sides can be seen by observing the final image from the camera in different environments, and the correction result can be seen by observing the chromatic aberration problem of two final spliced images and the chromatic aberration problem of the inner and outer circles of a single lens when the lens is aligned to a monochromatic environment (white is best). The corrected image has the effects that the inner color and the outer color of the image of a single lens are consistent, the spliced image from two lenses is not color cast integrally, and the colors are kept consistent, so that the image shooting effect is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a binocular camera chromatic aberration correction adjustment method according to a first preferred embodiment of the present invention;
fig. 2 is a flowchart of a binocular camera chromatic aberration correction adjustment method according to a second preferred embodiment of the present invention.
Fig. 2A is a schematic diagram of images shot by a binocular camera in the process of image detection.
Fig. 2B is a schematic view of a spherical light source placed in a camera.
Fig. 2C is a diagram illustrating raw data for capturing a left circular image.
Fig. 2D is a diagram illustrating raw data for capturing a right circular image.
Fig. 3 is a schematic diagram of a chromatic aberration correction process for two lenses according to a third preferred embodiment of the present invention.
Fig. 3A is a schematic view of a camera arrangement during chromatic aberration correction according to the present invention.
FIG. 3B is a schematic diagram of the failure of the color chip detection according to the present invention.
FIG. 3C is a schematic diagram of the successful detection of the color chip of the present invention.
Fig. 4 is a schematic structural diagram of a binocular camera chromatic aberration correction adjustment apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a method for adjusting chromatic aberration of a binocular camera according to a first preferred embodiment of the present invention, as shown in fig. 1, including the following steps:
step S101, after the position of the binocular camera is adjusted, whether the image shot by the binocular camera meets a chromatic aberration correction image or not is detected.
And S102, executing lens judgment, and respectively controlling the left lens to shoot a left image and the right lens to shoot a right image.
And step S103, judging whether the left image and the right image exist simultaneously, if so, calculating a shadow list to carry out binocular camera shadow correction.
According to the technical scheme provided by the invention, after color correction data is led into the camera, the problem of chromatic aberration at two sides can be seen by observing the final image from the camera in different environments, and the correction result can be seen by observing the chromatic aberration problem of two final spliced images and the chromatic aberration problem of the inner and outer circles of a single lens when the lens is aligned to a monochromatic environment (white is best). The corrected image has the effects that the inner color and the outer color of the image of a single lens are consistent, the spliced image from two lenses is not color cast integrally, and the colors are kept consistent, so that the image shooting effect is improved, and the user experience is improved.
Referring to fig. 2, fig. 2 is a view of a binocular camera chromatic aberration correction adjustment method provided by the present invention, the method mainly includes the following steps:
identifying the image, judging whether the position of the camera is well placed or not by detecting whether the content of the image is a complete circle and no impurity point exists in the image, and judging whether a left lens is placed in the spherical light source or a right lens is placed in the spherical light source;
shooting original data (English: raw data) of a spherical light source for left and right lenses;
and calculating a rendering table according to the shot rawdata data, and finally importing the rendering data into the camera to realize color correction.
The method comprises the following steps:
starting software on a computer, connecting the computer and the camera, and starting the camera;
the circle data of the image and the image information inside the circle are detected in real time as shown in fig. 2A, which is a normal detection process, and as can be seen from fig. 2A, the detected circle cannot be shot at this time, because the inside of the circle is not a single uniform color but has many mottled colors.
The camera is placed in a spherical light source (as shown in fig. 2B), a round non-variegated image is detected and photographed, as shown in fig. 2C, the left round image has a good round shape without inner variegated, and a photographing program is started to photograph left. Fig. 2D is then the right image, and the present application has the setting of fool-proofing, and it will be photographed whether the left side is put into the spherical light source or the right side is put into the spherical light source, and the left image will not be photographed when the left side has been photographed, and the right image will not be photographed when the right side has been photographed (as shown in fig. 2D).
After the program detects that the left side and the right side of the image are shot, the left side and the right side of the image are not shot any more, the rendering correction process is automatically started, after the correction is finished, an Image Sensor Processing (ISP) file required by the color-calibrated data generation equipment is automatically processed, and finally the ISP file is written into the equipment, so that the rendering correction is finished.
The flow chart of the chromatic aberration correction of the two binoculars is shown in fig. 3. Fig. 3 is an automated process for correcting chromatic aberration of two lenses, which comprises the following main steps:
identifying the image, judging whether the position of the camera is well placed or not by detecting whether the content of the image is two color blocks, no foreign points exist in the image and the brightness meets the requirement, and judging whether the image is a colored block in the image shot by the left lens or a color block in the image shot by the right lens;
shooting raw images of the spherical light sources for the left lens and the right lens;
and calculating RGB values of color blocks in the left image and the right image according to the shot raw image, and finally correcting the problem of chromatic aberration of the two lenses according to the difference of different RGB values of different color blocks of the two cameras.
The method comprises the following steps:
opening software, connecting a computer and a camera, and starting the camera;
fig. 3A shows the camera normally placed inside the light box, the camera placed 20cm in front of the color chip, and the center of the lens aligned with the color chip, so that the two color chips are exactly in the center of the image. When the image is shot, external light cannot enter, a piece of shading cloth is required to be added at the opening of the lamp box for sealing, and then the experiment is carried out and the image is shot.
Fig. 3B is a detection process, in which a fixed area is set to detect and detect a color chip, and only when the position of the color chip and the color of the color chip meet the requirement, the program will capture an image, and although the position is correct in the left side of fig. 3B, the color is deviated, and the frame in the color chip is green, so that the image cannot be captured; fig. 3C shows that both the position and the color satisfy the requirement, and the frame in the color chart is red, so that an image can be shot. The program is provided with a fool-proof function, so that corresponding original pictures can be shot without recognizing whether the left lens or the right lens is aligned with the color card, and the left side cannot be shot when the left side is shot; the right side will not be photographed after the right side photographing is completed; if the images on the left side and the right side are shot normally, the program automatically enters a correction link, and RGB values of two color cards in two lenses are calculated; and finally, automatically finishing chromatic aberration correction, generating an ISP file and importing the ISP file into a camera to finish chromatic aberration correction.
Referring to fig. 4, fig. 4 provides a binocular camera chromatic aberration correction adjusting apparatus, the apparatus including:
the detection module 401 is configured to detect whether an image captured by the binocular camera meets a color difference correction image after the position of the binocular camera is adjusted;
the control module 402 is used for executing lens judgment, and respectively controlling the left lens to shoot a left image and controlling the right lens to shoot a right image;
and the processing module 403 is configured to determine whether the left image and the right image exist simultaneously, and if so, calculate a shadow list to perform binocular camera shadow correction.
Optionally, the binocular camera position adjustment includes:
and respectively shooting images after adjusting the positions of the binocular cameras once, and determining that the positions of the binocular cameras are adjusted if the shot left images and the shot right images are complete circles and have no internal miscellaneous points.
Optionally, the processing unit is specifically configured to control a left lens and a right lens in the binocular camera to shoot left raw data and right raw data of the spherical light source, calculate a shadow list according to the left raw data and the right raw data, and finally introduce the shadow data in the shadow list into the binocular camera to realize color correction.
Optionally, the processing unit is specifically configured to, if the images on the left and right sides are shot normally, automatically enter a correction link by a program, and calculate RGB values of two color cards in the two lenses; and finally, automatically finishing chromatic aberration correction, generating an image signal processing ISP file and importing the image signal processing ISP file into a camera to finish chromatic aberration correction.
In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the first aspect.
In a fourth aspect, a computer program product is provided, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method provided by the first aspect.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The content downloading method, the related device and the system provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (5)
1. A binocular camera chromatic aberration correction and adjustment method is characterized by comprising the following steps:
after the position of the binocular camera is adjusted, whether an image shot by the binocular camera meets a chromatic aberration correction image is detected;
lens judgment is executed, the left lens is controlled to shoot a left image, and the right lens is controlled to shoot a right image;
judging whether the left image and the right image exist at the same time, if so, calculating a shadow list to carry out binocular camera shadow correction; binocular camera position adjustment includes:
the method comprises the steps of adjusting the positions of a binocular camera once, and then shooting images respectively, wherein if the shot left image and the shot right image are complete circles and have no impurity points inside, the positions of the binocular camera are adjusted; the calculating shadow list is used for carrying out binocular camera shadow correction and comprises the following steps:
and controlling a left lens and a right lens in the binocular camera to shoot left original data and right original data of the spherical light source, calculating a shadow list according to the left original data and the right original data, and finally importing the shadow data in the shadow list into the binocular camera to realize color correction.
2. The method of claim 1, wherein the calculating the shadow list performs binocular camera shadow correction, comprising:
if the images on the left side and the right side are shot normally, the program automatically enters a correction link, and RGB values of two color cards in two lenses are calculated; and finally, automatically finishing chromatic aberration correction, generating an image signal processing ISP file and importing the image signal processing ISP file into a camera to finish chromatic aberration correction.
3. The utility model provides a binocular camera chromatic aberration correction adjusting device which characterized in that, the device includes:
the detection module is used for detecting whether the images shot by the binocular camera meet the color difference correction images or not after the position of the binocular camera is adjusted;
the control module is used for executing lens judgment, respectively controlling the left lens to shoot a left image and controlling the right lens to shoot a right image;
the processing module is used for judging whether the left image and the right image exist at the same time, and calculating a shadow list to carry out binocular camera shadow correction if the left image and the right image exist at the same time; binocular camera position adjustment includes:
the method comprises the steps of adjusting the positions of a binocular camera once, and then shooting images respectively, wherein if the shot left image and the shot right image are complete circles and have no impurity points inside, the positions of the binocular camera are adjusted; the processing unit is specifically used for controlling a left lens and a right lens in the binocular camera to shoot left original data and right original data of the spherical light source, calculating a shadow list according to the left original data and the right original data, and finally guiding shadow data in the shadow list into the binocular camera to achieve color correction.
4. The apparatus according to claim 3, wherein the processing unit is specifically configured to, if the images on the left and right sides are captured normally, automatically enter a correction procedure, and calculate RGB values of two color cards in the two lenses; and finally, automatically finishing chromatic aberration correction, generating an image signal processing ISP file and importing the image signal processing ISP file into a camera to finish chromatic aberration correction.
5. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program is capable of implementing the method according to any one of claims 1-2 when executed by a computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512626.4A CN107347124B (en) | 2017-06-29 | 2017-06-29 | Binocular camera chromatic aberration correction and adjustment method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710512626.4A CN107347124B (en) | 2017-06-29 | 2017-06-29 | Binocular camera chromatic aberration correction and adjustment method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107347124A CN107347124A (en) | 2017-11-14 |
CN107347124B true CN107347124B (en) | 2021-02-19 |
Family
ID=60257923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710512626.4A Expired - Fee Related CN107347124B (en) | 2017-06-29 | 2017-06-29 | Binocular camera chromatic aberration correction and adjustment method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107347124B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106131527A (en) * | 2016-07-26 | 2016-11-16 | 深圳众思科技有限公司 | Dual camera color synchronization method, device and terminal |
CN106296696A (en) * | 2016-08-12 | 2017-01-04 | 深圳市中识创新科技有限公司 | The conforming processing method of color of image and image capture device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012242794A (en) * | 2011-05-24 | 2012-12-10 | Olympus Corp | Twin lens image display device |
US20170155889A1 (en) * | 2015-11-30 | 2017-06-01 | Altek Semiconductor Corp. | Image capturing device, depth information generation method and auto-calibration method thereof |
-
2017
- 2017-06-29 CN CN201710512626.4A patent/CN107347124B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106131527A (en) * | 2016-07-26 | 2016-11-16 | 深圳众思科技有限公司 | Dual camera color synchronization method, device and terminal |
CN106296696A (en) * | 2016-08-12 | 2017-01-04 | 深圳市中识创新科技有限公司 | The conforming processing method of color of image and image capture device |
Also Published As
Publication number | Publication date |
---|---|
CN107347124A (en) | 2017-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5530440B2 (en) | In-camera based method for detecting defects with high accuracy | |
US11050988B2 (en) | Device and method for shadow correction verification parameter determination and shadow correction verification | |
US10805508B2 (en) | Image processing method, and device | |
CN109712192B (en) | Camera module calibration method and device, electronic equipment and computer readable storage medium | |
CN108198152B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN103986875A (en) | Image acquiring device, method and terminal and video acquiring method | |
JP6472869B2 (en) | Image adjustment based on ambient light | |
CN108716982B (en) | Optical element detection method, optical element detection device, electronic equipment and storage medium | |
CN108734676A (en) | Image processing method and device, electronic equipment, computer readable storage medium | |
CN107948617B (en) | Image processing method, image processing device, computer-readable storage medium and computer equipment | |
CN111277699B (en) | Flash lamp color temperature calibration method and device, electronic equipment and readable storage medium | |
CN108600740A (en) | Optical element detection method, device, electronic equipment and storage medium | |
CN109559353B (en) | Camera module calibration method and device, electronic equipment and computer readable storage medium | |
CN108804658A (en) | Image processing method and device, storage medium, electronic equipment | |
CN112261292B (en) | Image acquisition method, terminal, chip and storage medium | |
CN108063891A (en) | Image processing method, device, computer readable storage medium and computer equipment | |
CN113313626A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN112991163B (en) | Panoramic image acquisition method, device and equipment | |
US11218650B2 (en) | Image processing method, electronic device, and computer-readable storage medium | |
CN109068060B (en) | Image processing method and device, terminal device and computer readable storage medium | |
JP7059076B2 (en) | Image processing device, its control method, program, recording medium | |
CN109040618A (en) | Video generation method and device, storage medium, electronic equipment | |
CN108600631A (en) | Image processing method, device, computer readable storage medium and electronic equipment | |
CN108760245A (en) | Optical element detection method and device, electronic equipment, readable storage medium storing program for executing | |
CN107347124B (en) | Binocular camera chromatic aberration correction and adjustment method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210219 Termination date: 20210629 |
|
CF01 | Termination of patent right due to non-payment of annual fee |