CN105203148B - A kind of visible detection method of automobile combination meter - Google Patents

A kind of visible detection method of automobile combination meter Download PDF

Info

Publication number
CN105203148B
CN105203148B CN201510634848.4A CN201510634848A CN105203148B CN 105203148 B CN105203148 B CN 105203148B CN 201510634848 A CN201510634848 A CN 201510634848A CN 105203148 B CN105203148 B CN 105203148B
Authority
CN
China
Prior art keywords
detection
detection method
pointer
value
combination meter
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.)
Active
Application number
CN201510634848.4A
Other languages
Chinese (zh)
Other versions
CN105203148A (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.)
Hubei University of Technology
Original Assignee
Hubei University of Technology
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 Hubei University of Technology filed Critical Hubei University of Technology
Priority to CN201510634848.4A priority Critical patent/CN105203148B/en
Publication of CN105203148A publication Critical patent/CN105203148A/en
Application granted granted Critical
Publication of CN105203148B publication Critical patent/CN105203148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of visible detection method of automobile combination meter, the detecting system of use includes meters under test, camera, PC and signal generator, signal generator is sent instructions to by PC, signal generator produces corresponding signal to meters under test, instrument is made a response, while PC control camera is taken pictures and obtains image, then judges whether instrument board is qualified by image procossing, characterized in that, the visible detection method comprises the steps:Drawing template establishment, carry out template matches during detection every time;One rectangle of parameter setting, the detection zone of each individual event is confined, the detection to control lamp is exactly that the gray value and tone value in region are confined by image procossing detection, and the detection to pointer is exactly to extract the RED sector in region, it is fitted in alignment, then calculates angle.Combination instrument is detected by machine vision, substantially reduces detection time, improves efficiency, substitutes human eye detection, more accurately.

Description

A kind of visible detection method of automobile combination meter
Technical field
The present invention relates to the detection method of automobile combination meter, more particularly to computer based automobile combination meter regards Feel detection method.
Background technology
Automobile combination meter is the interactive interface of people and automobile, for driver provide needed for vehicle operating parameter, failure, The information such as mileage, it is the essential part of each automobile.Instrument show it is directly perceived with it is attractive in appearance so that drive do not ride instead of walk still It is required, also turn into the part comfortably lived, and the accurate and reliability of parameter transmission is then directly connected to running car Safety.The domestic detection to automobile instrument at present also rests on the artificial detection stage, and artificial to judge that whether normal lamp is bright, pointer is No deflection is in place.This determination methods are had a great influence by subjective factor, and error detection rate can be caused higher.
In view of this, it is necessary to a kind of visible detection method of automobile combination meter is provided, to solve the above problems.
The content of the invention
In order to overcome above-mentioned the shortcomings of the prior art, it is an object of the invention to provide a kind of automobile combination meter Visible detection method, detection method of the invention is the mechanical vision inspection technology using computer and industrial camera, by right After the collection analysis processing of image, corresponding measured value is provided, judges whether instrument board is qualified.
In order to achieve the above object, the technical solution adopted in the present invention is:A kind of vision-based detection of automobile combination meter Method, the detecting system of use include meters under test, camera, PC and signal generator, and signal hair is sent instructions to by PC Raw device, signal generator produce corresponding signal and made a response to meters under test, instrument, while PC control camera is taken pictures acquisition figure Picture, then judge whether instrument board is qualified by image procossing, it is characterised in that the visible detection method includes following steps Suddenly:Drawing template establishment, carry out template matches during detection every time;One rectangle of parameter setting, the detection zone of each individual event is confined, Detection to control lamp is exactly that the gray value and tone value in region are confined by image procossing detection, and the detection to pointer is exactly The RED sector in region is extracted, fitting is in alignment, then calculates angle.
The visible detection method of automobile combination meter as described above, it is characterised in that:The establishment of the template is to use phase Machine shoots a pictures, according to image pyramid match pattern, is created with the operator create_shape_model in halcon Build a template, find template be also corresponding to the operator find_shape_model in halcon find template, if Matching degree height then continues to detect, and needs to re-create template if matching degree is low, matching degree can be in the parameter of operator Setting.
The visible detection method of automobile combination meter as described above, it is characterised in that:The detection of the control lamp, its position Put and determine it is the picture shot according to camera, a rectangle is created by its frame with the operator gen_rectangle1 in halocn Firmly, as ROI area-of-interests.
The visible detection method of automobile combination meter as described above, it is characterised in that:When carrying out gray scale detection to ROI, A Threshold segmentation threshold first is carried out to ROI, black portions are got rid of, then is found inside connected domain after singulation Area the best part tuple_find, that is, the part of whole gray value can be most represented, gray scale inspection is carried out to this part Survey, gray value is calculated with intensity.
The visible detection method of automobile combination meter as described above, it is characterised in that:When carrying out color detection to ROI, ROI is divided into R, G, B triple channels, then R is calculated with intensity, G, the gray value of B triple channels, if G is maximum, is defined as green Color, if B is maximum, blueness is defined as, if R is maximum, and R and G ratio value is more than predetermined value, is defined as red, if R Maximum, and R and G ratio value is less than predetermined value, is defined as orange, and predetermined value is specifically set by adjusting camera.
The visible detection method of automobile combination meter as described above, it is characterised in that:Even during tin detection, by all detections Lamp ROI make a union using union2, then detect one of ROI supplementary set, calculate the gray value in supplementary set, such as Fruit is more than setting value, then it is assumed that it and other lamp short circuits, setting value is depending on actual conditions.
The visible detection method of automobile combination meter as described above, it is characterised in that:When pointer detects, find pointer and calculate Method is the picture shot according to camera, and a rectangle is created by corresponding dial plate with the operator gen_rectangle1 in halocn Frame, as ROI area-of-interests, because pointer is red, then first carry out gray level threshold segmentation threshold, then RGB image is transformed into HSI color gamut spaces again, then hue threshold segmentation threshold is carried out to passage H, finally by major axis The feature select_shape of short axle comes out pointer extracting.
The visible detection method of automobile combination meter as described above, it is characterised in that:Calculating angle in pointer detection It is that eigentransformation shape_trans is carried out to the pointer extracted, an ellipse is changed into, further according to elliptic_ Axis calculates major axis and the radian of X-axis, then calculates angle by tuple_mult.
Compared with prior art, computer based of the present invention for automobile combination meter visible detection method have with Lower beneficial effect:
1. there is industrial camera to replace human eye detection.Detection efficiency is improved, reduces false drop rate;
2. system operatio is simple and practical, detection information convenient storage;
3. can compatible a variety of automobile instruments.
Brief description of the drawings
Fig. 1 is the theory diagram of the visible detection method of the automobile combination meter of the present invention.
Fig. 2 is the overhaul flow chart of the visible detection method of the automobile combination meter of the present invention.
Embodiment
For a better understanding of the present invention, with reference to the embodiment content that the present invention is furture elucidated, but the present invention Content is not limited solely to the following examples.Those skilled in the art can make various changes or modifications to the present invention, these The equivalent form of value is equally within the scope of claims listed by the application limit.
The present invention discloses a kind of visible detection method of automobile combination meter.There are multiple signals to need on automobile combination meter disk Detect, LED(Analog signal), CAN control lamp(CAN signal), speedometer(Frequency signal), revolution counter(CAN signal)、 Fuel level gauge(Resistance signal), water-thermometer(CAN signal), upper air gauge(Voltage signal), lower air gauge(Voltage signal).Referring to figure 1, the detecting system that the visible detection method uses includes meters under test, camera, PC and signal generator.Detection method It is:PC sends instructions to signal generator, and signal generator produces corresponding signal and made a response to meters under test, instrument, together When PC control camera take pictures and obtain image, then judge whether instrument board qualified by image procossing.Pass through machine vision pair Combination instrument is detected, and substantially reduces detection time, improves efficiency, substitutes human eye detection, more accurately.
Referring to Fig. 2, computer based is directed to the visible detection method of automobile combination meter, and its main flow is:Create Template, template matches are carried out during detection every time, prevented because dial plate pose to be checked caused by external cause changes(Pose changes not It can be rotated, be offset to position by radiating conversion in the case of big).One rectangle of parameter setting, confines each list The detection zone of item, the detection to lamp are exactly that the gray value and tone value in region are confined by image procossing detection.To pointer Detection be exactly to extract the RED sector in region, fitting is in alignment, then calculates angle.For the electricity in detection process Pressure, electric current are monitored in real time.Prevent that voltage x current is excessive, damage instrument.
The specific implementation method of the visible detection method is described in detail below.The algorithm of image processing section is With Halcon this software completions, the code then write is embedded into VS2012.
1. template
Camera shoots a pictures, according to image pyramid match pattern, with the operator create_shape_ in halcon Model creates a template.Searching template is found corresponding to being also with the operator find_shape_model in halcon Template.Continue to detect if matching degree height, need to re-create template if matching degree is low.Matching degree can be in operator Parameter in set.
2. lamp inspection is controlled to survey
1)Position determines
The picture shot according to camera, a rectangle is created by its frame with the operator gen_rectangle1 in halocn Firmly.As ROI(Area-of-interest).
2)Gray scale detection
Gray scale detection is carried out to ROI.When being entered due to some lamps by frame, there are the black portions of hollow out, gray scale can be dragged down and put down Average, so first carrying out a Threshold segmentation threshold to ROI, black portions are got rid of, then connected domain after singulation Area the best part tuple_find is found in the inside, that is, can most represent the part of whole gray value, and this part is entered Row gray scale detection.Gray value is calculated with intensity.
3)Color detection
ROI is divided into R, G, B triple channels, R, G, the gray value of B triple channels are being calculated with intensity.If G is maximum, It is defined as green.If B is maximum, blueness is defined as.If R is maximum, and R and G ratio value is more than predetermined value, is defined as red Color.If R is maximum, and R and G ratio value is less than predetermined value, is defined as orange.Predetermined value is specifically set by adjusting camera It is fixed.
4)Even tin detection
The lamp ROI of all detections is made into a union using union2, then detects one of ROI supplementary set, is counted Calculate the gray value in supplementary set.If greater than setting value, then it is assumed that it and other lamp short circuits.Setting value according to actual conditions and It is fixed.
3. pointer detects
1)Find pointer
The picture shot according to camera, creating a rectangle with the operator gen_rectangle1 in halocn will be corresponding Dial plate frames.As ROI(Area-of-interest).Because pointer is red, gray level threshold segmentation is then first carried out Threshold, RGB image is then transformed into HSI color gamut spaces again, then hue threshold segmentation is carried out to passage H Threshold, pointer extracting is come out finally by the feature select_shape of major axis short axle.
2)Calculate angle
Eigentransformation shape_trans is carried out to the pointer extracted, is changed into an ellipse, further according to Elliptic_axis calculates major axis and the radian of X-axis, then calculates angle by tuple_mult.
4.LCD is detected
1)Position determines
The picture shot according to camera, a rectangle is created by its frame with the operator gen_rectangle1 in halocn Firmly.As ROI(Area-of-interest).
2)Progress bar detects
A progress bar is first clapped as empty picture, a ROI is extracted by the rectangle frame of establishment, then shoot one and want to reach To the progress bar picture of a certain position, another ROI is extracted by the rectangle frame of establishment.By comparing check_ Difference, you can obtain progress bar.Minimum enclosed rectangle is obtained further according to smallest_rectangle1, is finally calculated Rectangle length is progress bar length.
5. maximum power dissipation detects and two output voltage detection
Programmable power supply is sent instructions to by serial ports(The road programmable power supplies of Ai Dekesi tri-), feed back corresponding voltage x current Value.
6. output waveform detects
The frequency of output waveform, amplitude and dutycycle are detected with reference to PCIE1810 board.
The criterion of testing result:The master meter thought by one piece of producer, its all item is detected one by one, measured Analog value i.e. be considered standard value.It is saved in a data structure.Further according to the value of standard value setting bound, preserve Into an argument structure body.Every time during detection, if the value measured in the range of bound, that is, it is qualified to think, if it exceeds Scope, then regard as unqualified.
The main feature of the visible detection method has:1. drawing template establishment before detection, directly template is carried out during detection Matching.Matching degree height then continues to detect.Matching degree is low then to stop detection.
2. all detections on pair instrument board carry out parameter editor, can probably position.Wherein pointer be positioned to The position that suitable rectangle may deflect it all includes.
3. it can be detected individually for some lamp(Calculate hue and luminance value), or for the progress of a certain pointer Detection(Calculate deflection angle).All items can also be detected simultaneously.
4. being compared by the analog value and setting value of system detectio, judge whether instrument board is qualified.
5. detecting each time, an Excel form can be all automatically generated, records all detection informations, if wrong, meeting One Excel charting error message of regeneration in addition.
6. real-time monitoring voltage, current value in detection process, if too high can alarm.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.

Claims (6)

1. a kind of visible detection method of automobile combination meter, the detecting system of use includes meters under test, camera, PC and letter Number generator, signal generator is sent instructions to by PC, signal generator produces corresponding signal and made to meters under test, instrument Reaction, while PC control camera is taken pictures and obtains image, then judge whether instrument board is qualified by image procossing, its feature exists In the visible detection method comprises the steps:Drawing template establishment, carry out template matches during detection every time;Parameter setting one Rectangle, the detection zone of each individual event is confined, the detection to control lamp is exactly to be confined by image procossing detection in region Gray value and tone value, the detection to pointer are exactly to extract the RED sector in region, and fitting is in alignment, then calculates folder Angle;
When pointer detects, it is the picture shot according to camera to find pointer algorithm, with the operator gen_ in halocn Rectangle1 creates a rectangle and frames corresponding dial plate, as the ROI area-of-interests of pointer, because pointer is red , gray level threshold segmentation threshold is then first carried out, RGB image is then transformed into HSI color gamut spaces again, then to passage H Hue threshold segmentation threshold is carried out, comes out pointer extracting finally by the feature select_shape of major axis short axle;
Calculating angle in pointer detection is to carry out eigentransformation shape_trans to the pointer extracted, is changed into one Individual ellipse, major axis and the radian of X-axis are calculated further according to elliptic_axis, then angle is calculated by tuple_mult.
2. the visible detection method of automobile combination meter according to claim 1, it is characterised in that:The establishment of the template It is to shoot a pictures with camera, according to image pyramid match pattern, with the operator create_shape_ in halcon Model creates a template, find template be also corresponding to found with the operator find_shape_model in halcon Template, continue to detect if matching degree height, need to re-create template if matching degree is low, matching degree can be in operator Parameter in set.
3. the visible detection method of automobile combination meter according to claim 1, it is characterised in that:The inspection of the control lamp Survey, its position determines it is the picture shot according to camera, and a rectangle is created with the operator gen_rectangle1 in halocn Framed, as control the ROI area-of-interests of lamp.
4. the visible detection method of automobile combination meter according to claim 3, it is characterised in that:ROI to controlling lamp When area-of-interest carries out gray scale detection, a Threshold segmentation threshold first is carried out to the ROI area-of-interests for controlling lamp, Black portions are got rid of, then area the best part tuple_find is found inside connected domain after singulation, that is, most The part of whole gray value can be represented, gray scale detection is carried out to this part, gray value is calculated with intensity.
5. the visible detection method of automobile combination meter according to claim 3, it is characterised in that:ROI to controlling lamp When area-of-interest carries out color detection, the ROI area-of-interests for controlling lamp are divided into R, G, B triple channels, then use intensity R is calculated, G, the gray value of B triple channels, if G is maximum, green is defined as, if B is maximum, is defined as blueness, if R is maximum, And R and G ratio value is more than predetermined value, is defined as red, if R is maximum, and R and G ratio value is less than predetermined value, fixed Justice is orange, and predetermined value is specifically set by adjusting camera.
6. the visible detection method of automobile combination meter according to claim 3, it is characterised in that:, will even during tin detection The ROI area-of-interests of the control lamp of all detections make a union using union2, then the one of control lamp of detection ROI area-of-interests supplementary set, the gray value in supplementary set is calculated, if greater than setting value, then it is assumed that it is with other lamp short circuits , setting value is depending on actual conditions.
CN201510634848.4A 2015-09-30 2015-09-30 A kind of visible detection method of automobile combination meter Active CN105203148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634848.4A CN105203148B (en) 2015-09-30 2015-09-30 A kind of visible detection method of automobile combination meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634848.4A CN105203148B (en) 2015-09-30 2015-09-30 A kind of visible detection method of automobile combination meter

Publications (2)

Publication Number Publication Date
CN105203148A CN105203148A (en) 2015-12-30
CN105203148B true CN105203148B (en) 2018-03-23

Family

ID=54950955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634848.4A Active CN105203148B (en) 2015-09-30 2015-09-30 A kind of visible detection method of automobile combination meter

Country Status (1)

Country Link
CN (1) CN105203148B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106404417A (en) * 2016-08-03 2017-02-15 重庆盟讯电子科技有限公司 Non-contact type automobile instrument panel test system and method
CN106951900B (en) * 2017-04-13 2019-10-22 杭州申昊科技股份有限公司 A kind of automatic identifying method of arrester meter reading
CN109060799A (en) * 2018-05-23 2018-12-21 嘉兴微芒科技有限公司 A kind of assembling line finished product detection determination method
CN109186943A (en) * 2018-08-17 2019-01-11 国营芜湖机械厂 A kind of image collecting device of aircraft parameter display
CN109489988A (en) * 2018-09-27 2019-03-19 惠州市德赛西威汽车电子股份有限公司 A kind of simulation real vehicle key starting vision durability Meter Test system
CN110146121B (en) * 2019-05-24 2021-02-09 安徽扬远信息科技有限公司 Instrument panel performance evaluation control system
CN110987467A (en) * 2019-11-25 2020-04-10 航天科技控股集团股份有限公司 Method for realizing automatic detection of automobile instrument by configuring csv file
CN112418222B (en) * 2020-12-07 2023-07-25 安徽江淮汽车集团股份有限公司 Vehicle-mounted liquid crystal combination meter identification method, device, equipment and storage medium
CN113532882A (en) * 2021-07-22 2021-10-22 中国第一汽车股份有限公司 Automobile instrument testing method, device and system and storage medium
CN113865636B (en) * 2021-09-28 2024-02-02 北斗星通智联科技有限责任公司 Instrument testing method and system and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005064280A2 (en) * 2003-12-29 2005-07-14 Madison Technologies Limited Measurement results data processing apparatus, system, method, and program
CN101324452A (en) * 2008-07-22 2008-12-17 中国计量学院 Method for automatically detecting pointer instrument
CN104298994A (en) * 2014-02-28 2015-01-21 郑州金惠计算机系统工程有限公司 Pointer-type meter reading identification method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004325155A (en) * 2003-04-23 2004-11-18 Calsonic Kansei Corp Method, apparatus, and program for inspecting vehicle instrument
CN101660932A (en) * 2009-06-15 2010-03-03 浙江大学 Automatic calibration method of pointer type automobile meter
CN102521560B (en) * 2011-11-14 2014-11-19 上海交通大学 Instrument pointer image identification method of high-robustness rod

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005064280A2 (en) * 2003-12-29 2005-07-14 Madison Technologies Limited Measurement results data processing apparatus, system, method, and program
CN101324452A (en) * 2008-07-22 2008-12-17 中国计量学院 Method for automatically detecting pointer instrument
CN104298994A (en) * 2014-02-28 2015-01-21 郑州金惠计算机系统工程有限公司 Pointer-type meter reading identification method and device

Also Published As

Publication number Publication date
CN105203148A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105203148B (en) A kind of visible detection method of automobile combination meter
CN107085696A (en) A kind of vehicle location and type identifier method based on bayonet socket image
CN105242232B (en) Outdoor electrical energy meter fault self-verifying method
CN104599516B (en) A kind of intelligent traffic lamp
CN106650712A (en) Iris recognition system
WO2016176944A1 (en) Method and device for testing color vision deficiencies
CN103440671B (en) A kind of seal detection method and system
CN104182338B (en) Fatigue driving early warning product detection accuracy test method
CN105809151A (en) Image recognition method for state of pressure gauge of fire extinguisher
CN108389180A (en) A kind of fabric defect detection method based on deep learning
CN109993122A (en) A kind of pedestrian based on depth convolutional neural networks multiplies staircase anomaly detection method
CN105844221A (en) Human face expression identification method based on Vadaboost screening characteristic block
CN109740412A (en) A kind of signal lamp failure detection method based on computer vision
CN100562134C (en) A kind of test macro of digital display device and method of testing thereof
CN105139384A (en) Defective capsule detection method and apparatus
CN108498064A (en) Digitize bright spot scintillation detection system
CN109567832A (en) A kind of method and system of the angry driving condition of detection based on Intelligent bracelet
CN106781821A (en) Vehicle driver security civilization driving test intelligence evaluating system
CN103324957A (en) Identification method and identification device of state of signal lamps
CN104376244A (en) Control device and method for human-computer interface and electrical equipment
CN110136189A (en) A kind of train brake pad detection method and device
CN103034997A (en) Foreground detection method for separation of foreground and background of surveillance video
CN110210401B (en) Intelligent target detection method under weak light
CN109034132A (en) A kind of detection method driving abnormal behaviour
CN114098732A (en) Personnel fatigue rapid measuring device and method based on CFF

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Wu Minghu

Inventor after: Du Xiaoran

Inventor after: Wang Shaojun

Inventor after: Liu Meng

Inventor after: Kong Xiangbin

Inventor after: Wang Wei

Inventor after: Liu Min

Inventor after: Wang Yang

Inventor after: Jiang Yuhan

Inventor before: Wu Minghu

Inventor before: Wang Shaojun

Inventor before: Kong Xiangbin

Inventor before: Wang Wei

Inventor before: Liu Min

Inventor before: Wang Yang

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant