CN104702945A - Color cast color tape detection method - Google Patents

Color cast color tape detection method Download PDF

Info

Publication number
CN104702945A
CN104702945A CN201510137924.0A CN201510137924A CN104702945A CN 104702945 A CN104702945 A CN 104702945A CN 201510137924 A CN201510137924 A CN 201510137924A CN 104702945 A CN104702945 A CN 104702945A
Authority
CN
China
Prior art keywords
value
standard
area
detection
colour
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.)
Granted
Application number
CN201510137924.0A
Other languages
Chinese (zh)
Other versions
CN104702945B (en
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.)
Truly Opto Electronics Ltd
Original Assignee
Truly Opto Electronics 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 Truly Opto Electronics Ltd filed Critical Truly Opto Electronics Ltd
Priority to CN201510137924.0A priority Critical patent/CN104702945B/en
Publication of CN104702945A publication Critical patent/CN104702945A/en
Application granted granted Critical
Publication of CN104702945B publication Critical patent/CN104702945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a color cast color tape detection method. The method is that a detection area in which the ratio of a short shaft to a long shaft in the center is less than a preset ratio is provided; an image is detected at a plurality of times; whether the image is qualified can be determined; therefore, the problems that a plurality of color cast color tapes of different types are in the same detection area, and therefore, the difference between the related R/ G/ B ratio calculation result of the detecting result to the related standard R/ G/ B ratio cannot be observed, and as a result, that no color cast occurs is determined according to the value result, can be effectively avoided; the tape shaped color cast stripes can be accurately detected, and the color cast problem can be accurately determined.

Description

A kind of colour cast colour band detection method
Technical field
The present invention relates to camera module technical field, in particular, relate to a kind of colour cast colour band detection method.
Background technology
Along with the development of science and technology, camera module, as a kind of video input apparatus, is widely used in computer, camera and mobile phone.Camera module serves vital effect qualitatively in shooting picture, common picture quality problems is that colour cast colour band phenomenon appears in picture, picture colour cast colour band phenomenon is usually expressed as can be seen on normal image, to occur partially red or partially blue belt-like zone, generally can observe directly on the image after ISP technology (conversion process is carried out to the data of video camera shooting, makes the image after changing be applicable to human eye viewing).But what observe in the operation detecting colour cast colour band is RAW picture, and namely not through the picture of ISP process, in the exposure range of specifying, the colour cast colour band of striated or band shape is difficult to the naked eye judge.
The reason of colour cast colour band phenomenon has multiple to cause picture to occur, such as, uncompensable errors in photo-sensitive cell self problem or processing procedure and parameter loading error etc., therefore need a kind of method of effective detection picture colour cast colour band.The essence detected colour cast colour band is that the R/G/B value of belt-like zone by having colour cast problem and normal pictures standard R/G/B value compare, if there is deviation, then shows to there is colour cast problem in this surveyed area.At present; normally used method gets the corner of picture and the method for central point survey Shading; but; this method is specifically in a camera module, and surveyed area is defined as the rectangle centered by picture central point, by calculating average R/G/B value to hough transform region; when there is many colour cast colour bands within a detection region; the average R/G/B value calculated is identical with the standard of normal pictures average R/G/B value, does not have deviation, causes accurately detecting the colour cast colour band in picture.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of colour cast colour band detection method, the inaccurate problem of detection caused owing to there are many colour cast bands in surveyed area can be avoided, improve accuracy of detection.
To achieve these goals, the invention provides a kind of colour cast colour band detection method, described method comprises:
Established standards region, calculates standard R/G/B value;
Setting surveyed area, calculates and detects R/G/B value, be less than default ratio by the minor axis at described surveyed area center and the ratio of major axis;
Relative standard deviation values is calculated according to described standard R/G/B value and the described R/G/B of detection value;
When described relative standard deviation values is greater than deviation threshold, judge described surveyed area generation colour cast problem;
The area of the surveyed area of described generation colour cast problem is sued for peace, obtains colour cast colour band area;
Described colour cast colour band area is compared with colour cast colour band area threshold, if be greater than colour cast colour band area threshold, then judges that picture is defective.
Preferably, in the above-mentioned methods, described standard R/G/B value comprises standard R/G value and standard B/G value, and described detection R/G/B value comprises detection R/G value and detects B/G value.
Preferably, in the above-mentioned methods, described relative standard deviation values comprises the absolute value of difference and the ratio of standard R/G value that detect R/G value and standard R/G value and the absolute value of difference and the ratio of standard R/G value that detect B/G value and standard B/G value.
Preferably, in the above-mentioned methods, described standard R/G/B value also comprises standard R/B value, and described detection R/G/B value also comprises detection R/B value.
Preferably, in the above-mentioned methods, described relative standard deviation values also comprises the absolute value of difference and the ratio of standard R/B value that detect R/B value and standard R/B value.
Preferably, in the above-mentioned methods, described surveyed area is horizontal detection region or vertical surveyed area;
When detection level direction colour cast colour band, setting horizontal detection region, calculates the detection R/G/B value of described vertical surveyed area;
When detecting vertical direction colour cast colour band, setting vertical surveyed area, calculating the detection R/G/B value in described horizontal detection region.
Preferably, in the above-mentioned methods, described standard area is centered by described picture center and area is the region of the 50%-80% of described picture area.
Preferably, in the above-mentioned methods, the scope of described default ratio is 0.01-0.05.
Preferably, in the above-mentioned methods, described deviation threshold is 5%, and described colour cast colour band area threshold is 10% of described picture area.
As can be seen from technique scheme, the invention provides a kind of colour cast colour band detection method, described method comprises: established standards region, calculates standard R/G/B value; Setting surveyed area, calculates and detects R/G/B value, be less than default ratio by the minor axis at described surveyed area center and the ratio of major axis; Relative standard deviation values is calculated according to described standard R/G/B value and the described R/G/B of detection value; When described relative standard deviation values is greater than deviation threshold, judge described surveyed area generation colour cast problem; The area of the surveyed area of described generation colour cast problem is sued for peace, obtains colour cast colour band area; Described colour cast colour band area is compared with colour cast colour band area threshold, if be greater than colour cast colour band area threshold, then judges that picture is defective.Owing to setting the surveyed area being less than default ratio by the minor axis at described surveyed area center and the ratio of major axis, repeated detection is carried out to picture, effectively prevent and in same surveyed area, there are many dissimilar colour cast colour bands and cause being mistaken for bias colour situation, can detect accurately banded colour cast striped.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
A kind of colour cast colour band detection method flow chart that Fig. 1 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Accurately cannot detect the problem of the colour cast colour band in picture when there is many colour cast colour bands within a detection region to solve in prior art, as shown in Figure 1, the invention provides one and the invention provides a kind of colour cast colour band detection method, described method comprises:
Step S01: established standards region, calculates standard R/G/B value.Described standard area is centered by described picture center and area is the region of the 50%-80% of described picture area.Standard area representative be the mean value of picture entirety, in camera module, due to strength difference during incident light arrival sensitive chip zones of different, the original picture without gamma correction is the image seeing that middle bright corner is secretly such, owing to there is the dark angle of surrounding in picture, the rectangular area that preferably size is full frame 80% centered by picture center is as standard area.
Step S02: setting surveyed area, calculates and detect R/G/B value, be less than default ratio by the minor axis at described surveyed area center and the ratio of major axis.
Further, that presets ratio ranges preferably from 0.01-0.05.Under normal circumstances, colour cast colour band is the belt-like zone that width accounts for the 5%-10% of picture, and due to the dark angle of the surrounding in picture problem, surveyed area is set as that by the minor axis length at surveyed area center be 3% of standard area, and long axis length is 60% of standard area.
Further, described surveyed area is horizontal detection region or vertical surveyed area, and when detection level direction colour cast colour band, setting horizontal detection region, calculates the detection R/G/B value of described vertical surveyed area; When detecting vertical direction colour cast colour band, setting vertical surveyed area, calculating the detection R/G/B value in described horizontal detection region.During the colour cast colour band in detection level direction, set multiple horizontal detection region in the vertical, when detecting the colour cast colour band of vertical direction, set multiple vertical surveyed area in the horizontal.
Described standard R/G/B value comprises standard R/G value and standard B/G value, and described detection R/G/B value comprises detection R/G value and detects B/G value.It should be noted that, described standard R/G/B value also comprises standard R/B value, and described detection R/G/B value also comprises and detects R/B value, introduces standard R/B value and detection R/B value to improve the susceptibility of colour cast problem.Such as, colour cast problem main manifestations is partially red and partially blue, directly comparing R/B can be more obvious, and when the colour cast colour band as partially red exists, the parameter in surveyed area is: R122, G181, B91, detection R/G=0.674, detection B/G=0.502, detection R/B=1.341; Parameter in standard area is: R117, G180, B113, standard R/G=0.65, standard B/G=0.627, standard R/B=1.035, and when occurring colour cast, the deviate of R/B can be more more obvious than other two deviates.
Step S03: calculate relative standard deviation values according to described standard R/G/B value and the described R/G/B of detection value.Described relative standard deviation values comprises the absolute value of difference and the ratio of standard R/G value that detect R/G value and standard R/G value and the absolute value of difference and the ratio of standard R/G value that detect B/G value and standard B/G value.Further, relative standard deviation values also comprises the absolute value of difference and the ratio of standard R/B value that detect R/B value and standard R/B value.Specifically, whole picture is divided into N number of surveyed area, each surveyed area calculates relative standard deviation values with standard area respectively.
Step S04: when described relative standard deviation values is greater than deviation threshold, judges described surveyed area generation colour cast problem.Further, described deviation threshold is 5%.
Step S05: the area of the surveyed area of described generation colour cast problem is sued for peace, obtains colour cast colour band area.
Step S06: compared with colour cast colour band area threshold by described colour cast colour band area, if be greater than colour cast colour band area threshold, then judges that picture is defective.Further, colour cast colour band area threshold is 10% of described picture area.Specifically, the area of colour cast colour band is the area of the surveyed area occurring colour cast problem, such as, during detection level colour cast colour band, there is surveyed area that 5 colour cast problems occur in the horizontal direction, and area and be greater than 10% of picture area, then judge that picture is defective.In same surveyed area, there is more than one of colour cast problem, such as, in the surveyed area of same generation colour cast problem, there occurs RG colour cast problem and RB colour cast problem simultaneously.The present invention calculates relative standard deviation values by calculating standard R/G/B value and the described R/G/B of detection value accurately can strictly control colour cast problem.
The present invention is less than the surveyed area of default ratio by the minor axis at described surveyed area center and the ratio of major axis by setting, default ratio is that 0.02-0.05 is known, surveyed area is fine strip shape, multiple surveyed area detects colour cast colour band, effectively prevent in same surveyed area, there are many dissimilar colour cast colour bands and cause cannot observe the difference of ratio relevant to standard R/G/B from surveyed area R/G/B ratio result of calculation of being correlated with, and be mistaken for bias colour situation from numerical result, can not only detect accurately banded colour cast striped, and judge colour cast problem more accurately.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (9)

1. a colour cast colour band detection method, is characterized in that, described method comprises:
Established standards region, calculates standard R/G/B value;
Setting surveyed area, calculates and detects R/G/B value, be less than default ratio by the minor axis at described surveyed area center and the ratio of major axis;
Relative standard deviation values is calculated according to described standard R/G/B value and the described R/G/B of detection value;
When described relative standard deviation values is greater than deviation threshold, judge described surveyed area generation colour cast problem;
The area of the surveyed area of described generation colour cast problem is sued for peace, obtains colour cast colour band area;
Described colour cast colour band area is compared with colour cast colour band area threshold, if be greater than colour cast colour band area threshold, then judges that picture is defective.
2. the method for claim 1, is characterized in that, described standard R/G/B value comprises standard R/G value and standard B/G value, and described detection R/G/B value comprises detection R/G value and detects B/G value.
3. method as claimed in claim 2, is characterized in that, described relative standard deviation values comprises the absolute value of difference and the ratio of standard R/G value that detect R/G value and standard R/G value and the absolute value of difference and the ratio of standard R/G value that detect B/G value and standard B/G value.
4. method as claimed in claim 2, it is characterized in that, described standard R/G/B value also comprises standard R/B value, and described detection R/G/B value also comprises detection R/B value.
5. method as claimed in claim 4, is characterized in that, described relative standard deviation values also comprises the absolute value of difference and the ratio of standard R/B value that detect R/B value and standard R/B value.
6. the method for claim 1, is characterized in that, described surveyed area is horizontal detection region or vertical surveyed area;
When detection level direction colour cast colour band, setting horizontal detection region, calculates the detection R/G/B value of described vertical surveyed area;
When detecting vertical direction colour cast colour band, setting vertical surveyed area, calculating the detection R/G/B value in described horizontal detection region.
7. the method for claim 1, is characterized in that, described standard area is centered by described picture center and area is the region of the 50%-80% of described picture area.
8. the method for claim 1, is characterized in that, the scope of described default ratio is 0.01-0.05.
9. the method for claim 1, is characterized in that, described deviation threshold is 5%, and described colour cast colour band area threshold is 10% of described picture area.
CN201510137924.0A 2015-03-25 2015-03-25 Color cast color tape detection method Active CN104702945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510137924.0A CN104702945B (en) 2015-03-25 2015-03-25 Color cast color tape detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510137924.0A CN104702945B (en) 2015-03-25 2015-03-25 Color cast color tape detection method

Publications (2)

Publication Number Publication Date
CN104702945A true CN104702945A (en) 2015-06-10
CN104702945B CN104702945B (en) 2017-02-01

Family

ID=53349662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510137924.0A Active CN104702945B (en) 2015-03-25 2015-03-25 Color cast color tape detection method

Country Status (1)

Country Link
CN (1) CN104702945B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106353258A (en) * 2016-09-28 2017-01-25 安徽唯嵩光电科技有限公司 Five-dimensional channel chroma color sorting method
CN111083467A (en) * 2019-12-09 2020-04-28 横店集团东磁有限公司 Dirty mode of snatching of module of making a video recording
CN111246204A (en) * 2020-03-24 2020-06-05 昆山丘钛微电子科技有限公司 Relative brightness deviation-based dirt detection method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001078235A (en) * 1999-09-08 2001-03-23 Ricoh Co Ltd Method and system for image evaluation
US20050128214A1 (en) * 2003-12-12 2005-06-16 Tatung Co., Ltd. Method and system of color-real adjustment for adjusting a display device
CN102750713A (en) * 2012-07-18 2012-10-24 山东神思电子技术股份有限公司 Image color shift detection method
CN102905160A (en) * 2011-07-25 2013-01-30 深圳英飞拓科技股份有限公司 Method and system for detecting color cast
CN103067734A (en) * 2012-12-12 2013-04-24 成都三泰电子实业股份有限公司 Video image color cast detecting method of video quality diagnostic system
CN103297800A (en) * 2013-05-22 2013-09-11 西安理工大学 Automatic color cast detecting method for reflecting scanner
CN103500457A (en) * 2013-10-23 2014-01-08 武汉东智科技有限公司 Method of color cast detection of video image

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001078235A (en) * 1999-09-08 2001-03-23 Ricoh Co Ltd Method and system for image evaluation
US20050128214A1 (en) * 2003-12-12 2005-06-16 Tatung Co., Ltd. Method and system of color-real adjustment for adjusting a display device
CN102905160A (en) * 2011-07-25 2013-01-30 深圳英飞拓科技股份有限公司 Method and system for detecting color cast
CN102750713A (en) * 2012-07-18 2012-10-24 山东神思电子技术股份有限公司 Image color shift detection method
CN103067734A (en) * 2012-12-12 2013-04-24 成都三泰电子实业股份有限公司 Video image color cast detecting method of video quality diagnostic system
CN103297800A (en) * 2013-05-22 2013-09-11 西安理工大学 Automatic color cast detecting method for reflecting scanner
CN103500457A (en) * 2013-10-23 2014-01-08 武汉东智科技有限公司 Method of color cast detection of video image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106353258A (en) * 2016-09-28 2017-01-25 安徽唯嵩光电科技有限公司 Five-dimensional channel chroma color sorting method
CN111083467A (en) * 2019-12-09 2020-04-28 横店集团东磁有限公司 Dirty mode of snatching of module of making a video recording
CN111246204A (en) * 2020-03-24 2020-06-05 昆山丘钛微电子科技有限公司 Relative brightness deviation-based dirt detection method and device
CN111246204B (en) * 2020-03-24 2022-02-01 昆山丘钛微电子科技有限公司 Relative brightness deviation-based dirt detection method and device

Also Published As

Publication number Publication date
CN104702945B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN108234824B (en) Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN108470334B (en) Method and device for collecting screen brightness and chromaticity
CN107507558B (en) Correction method of LED display screen
US9805458B2 (en) Method and system for detecting defective pixels and screen imperfections of a mobile device
US10115186B2 (en) Image processing apparatus, imaging apparatus, depth measuring apparatus and image processing method
US20090040343A1 (en) Methods and apparatuses for defective pixel detection and correction
CN112669394B (en) Automatic calibration method for vision detection system
US11050987B2 (en) Method and apparatus for determining fisheye camera shadow correction parameter
CN104702945A (en) Color cast color tape detection method
US10148944B2 (en) Calibration method of an image capture system
US9300888B2 (en) Methods and systems for lens shading correction
CN107979726B (en) Panoramic lens pairing method and panoramic lens
CN211374003U (en) Lens testing device
US9386232B2 (en) Image processing apparatus which composes a plurality of images shot under different exposure conditions and image processing method
US20140293065A1 (en) Camera
KR101213670B1 (en) Apparatus and method for non uniformity correction using pixel median value
CN104796651B (en) A kind of projected image calibration method and projection device
KR101945408B1 (en) Apparatus and method for determining defect pixel
US9258555B2 (en) Apparatus and method for determining defect pixel
CN113160259B (en) Edge detection method, edge detection device, computer equipment and storage medium
CN110033412A (en) A kind of image processing method and device
JP2009025078A (en) Luminance nonuniformity measurement method for uniform light source
WO2020157469A3 (en) Methods and apparatus for determining prism in a lens
KR100860699B1 (en) Camera system with lens shading compensation function using color temperature
CN114866755B (en) Automatic white balance method and device, computer storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant