CN106937108B - The visible detection method of camera and control equipment on a kind of mobile terminal - Google Patents

The visible detection method of camera and control equipment on a kind of mobile terminal Download PDF

Info

Publication number
CN106937108B
CN106937108B CN201511026143.0A CN201511026143A CN106937108B CN 106937108 B CN106937108 B CN 106937108B CN 201511026143 A CN201511026143 A CN 201511026143A CN 106937108 B CN106937108 B CN 106937108B
Authority
CN
China
Prior art keywords
camera
detection
mobile terminal
picture
edge contour
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
Application number
CN201511026143.0A
Other languages
Chinese (zh)
Other versions
CN106937108A (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.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom 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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN201511026143.0A priority Critical patent/CN106937108B/en
Publication of CN106937108A publication Critical patent/CN106937108A/en
Application granted granted Critical
Publication of CN106937108B publication Critical patent/CN106937108B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention discloses a kind of visible detection method of camera on mobile terminal and control equipment, picture picked-up is carried out to mobile terminal to be detected by vision testing machine, camera area image on absorbed picture is carried out to search edge contour detection, if detecting obtained edge shape functional gradient maximum value is greater than or equal to preset normal gradients maximum value, then determine that camera installation is normal, it is on the contrary then determine camera missing.In this way, can detect automatically camera on mobile terminal whether normal mounting, reduce cost of labor, shorten detection time, utmostly reduce missing inspection and probability of false detection.

Description

The visible detection method of camera and control equipment on a kind of mobile terminal
Technical field
The present invention relates to a kind of vision detection technology more particularly to a kind of vision detection technologies of mobile terminal camera.
Background technique
Vision-based detection is exactly to replace human eye with machine to measure and judge.Vision-based detection, which refers to, passes through machine vision product (i.e. image-pickup device) will be ingested target and be converted into picture signal, dedicated image processing system be sent to, according to pixel The information such as distribution and brightness, color, are transformed into digitized signal;Picture system carries out various operations to these signals to extract mesh Target feature, and then live device action is controlled according to the result of differentiation.It is valuable for what is produced, assemble or pack Mechanism.It has immeasurable value in detection defect and in terms of preventing faulty goods to be dispensed into the function of consumer.
At abroad, Machine Vision Detection application popularization.And at home, belong to emerging industry.Future, Chinese machine vision Detection development is mainly shown as following some characteristics:
1, the demand with industrialized development to machine vision will be in rising trend
2, standardization, integrative solution by be machine vision the only way which must be passed
There are tight demand in vision testing machine wide market at present, numerous cell phone manufacturers to complete machine mobile phone vision-based detection. But mobile phone type type itself is more, and Product Process is complicated, and importing visual detection equipment is substantially reading bar code, and this is simple Function such as detects complex detection screw, camera, plug-in unit and also fails to be applied successfully at present.
Summary of the invention
The invention mainly solves the technical problem of providing a kind of visible detection method of camera on mobile terminal and controls Control equipment, make it possible to automatically detect mobile terminal on camera whether normal mounting, reduce cost of labor, improve detection speed Degree reduces erroneous detection and false dismissal probability.
In order to solve the above-mentioned technical problems, the present invention provides a kind of visible detection method of camera on mobile terminal, It comprises the steps of:
Vision testing machine carries out picture picked-up to mobile terminal to be detected, to camera area image on absorbed picture It carries out searching edge contour detection, if the edge shape functional gradient maximum value that detection obtains is greater than or equal to preset standard On the contrary maximum of gradients then determines that camera installation is normal, then determine camera missing.
As a further improvement, above-mentioned vision testing machine to mobile terminal to be detected carry out picture picked-up the step of it Before, also comprise the steps of: that vision testing machine carries out picture picked-up to by the mobile terminal of artificial detection in advance, from being absorbed Normal pictures in select a characteristic area, save the characteristic information and location information and the normal pictures in this feature region The location information of middle camera shooting head region.
As a further improvement, above-mentioned vision testing machine to mobile terminal to be detected carry out picture picked-up the step of it Afterwards, it also comprises the steps of:
According to the characteristic information of the normal pictures saved, the position letter of the characteristic area on current absorbed picture is determined Breath compares the characteristic area location information of the normal pictures saved with currently determining characteristic area location information, really Determine displacement compensation amount, the displacement compensation amount is superimposed with the camera zone position information that has saved, it obtains currently being absorbed The location information of head region is imaged on picture.
As a further improvement, above-mentioned carry out camera area image on current absorbed picture to search edge contour inspection In the step of survey: carrying out linear search and linear edge contour detecting to camera area image.
As a further improvement, above-mentioned carry out camera area image on current absorbed picture to search edge contour inspection In the step of survey: setting most fine pixel for linear search and linear edge contour detecting.
As a further improvement, above-mentioned carry out camera area image on current absorbed picture to search edge contour inspection In the step of survey: carrying out searching edge contour detection since camera area image center.
As a further improvement, features described above region be the mobile terminal on can unique identification region.
As a further improvement, the location information of features described above region or camera shooting head region includes at least horizontal axis position, indulges Shaft position and rotation angle;Above-mentioned displacement compensation amount includes at least horizontal axis position difference, longitudinal axis positions difference and rotation differential seat angle Value.
As a further improvement, in the step of vision testing machine carries out picture picked-up to mobile terminal, in mobile terminal When being moved in vision testing machine in the induction range of preset sensor, the camera on vision testing machine is triggered to the movement Terminal carries out picture picked-up.
Each embodiment of the present invention also provides a kind of mobile terminal camera vision-based detection control equipment, includes:
Picture picked-up control module carries out picture picked-up to mobile terminal to be detected for controlling vision testing machine;
Picture receiving module, for obtaining the picture currently absorbed from vision testing machine;
Edge contour detection module, for carrying out search edge contour to camera area image on current absorbed picture Detection;
Judgment module judges whether camera lacks for the testing result according to edge contour detection module, if inspection The edge shape functional gradient maximum value measured is greater than or equal to preset normal gradients maximum value, then determines that camera is installed Normally, on the contrary then determine camera lack.
As a further improvement, the equipment also includes:
Memory module, for saving the characteristic information of characteristic area and location information and the standard drawing in normal pictures The location information of head region is imaged in piece;Above-mentioned standard picture is by vision testing machine to the mobile terminal for first passing through artificial detection in advance Picture picked-up is carried out to obtain;
Characteristic area searching module, the characteristic information of the normal pictures for being saved according to memory module determine current The location information of characteristic area on absorbed picture;
Position comparison module, for the characteristic area location information of the normal pictures saved and characteristic area to be searched mould Characteristic area location information determined by block compares, and determines displacement compensation amount;
Position compensation module, the camera shooting for will be saved in position comparison module determining displacement compensation amount and memory module Head Section location information domain is superimposed, obtains the location information that head region is imaged on current absorbed picture.
As a further improvement, edge contour detection module is also used to carry out linear search and line to camera area image Property edge contour detection.
As a further improvement, edge contour detection module is also used to carrying out linear search and linear edge contour detecting When, most fine pixel is set by linear search and linear edge contour detecting.
As a further improvement, edge contour detection module is also used to be searched since camera area image center Edge contour detection.
Compared with prior art, the main distinction and its effect are embodiment of the present invention: being treated by vision testing machine The mobile terminal of detection carries out picture picked-up, carries out searching edge contour detection to camera area image on absorbed picture, If detecting obtained edge shape functional gradient maximum value is greater than or equal to preset normal gradients maximum value, determine to image On the contrary head installation is normal, then determine camera missing.In this way, the automatic detection of mobile terminal camera may be implemented, Cost of labor is reduced, detection time is shortened, utmostly reduces missing inspection and probability of false detection.
Vision testing machine carries out picture picked-up to by the mobile terminal of artificial detection in advance, from the normal pictures absorbed One characteristic area of middle selection saves in the characteristic information and location information and the normal pictures in this feature region and images Head Section The location information in domain.When carrying out actually detected, according to the characteristic information of the normal pictures saved, determines and currently absorb figure The location information of the characteristic area of on piece, by the characteristic area location information of the normal pictures saved and currently determining feature Zone position information compares, and determines displacement compensation amount, by displacement compensation amount and the camera zone position manner of breathing saved Superposition obtains the location information that head region is imaged on current absorbed picture.Without artificial additional correction mobile terminal position It sets, and can guarantee the accuracy of vision-based detection.
Detailed description of the invention
Fig. 1 is the visible detection method flow chart of camera on mobile terminal in first embodiment of the invention;
Fig. 2 is that mobile terminal camera vision-based detection controls equipment structure chart in second embodiment of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention Mode is described in further detail.
First embodiment of the invention is related to a kind of visible detection method of camera on mobile terminal, as shown in Figure 1.
In step 101, the vision testing machine mobile terminal (i.e. non-defective unit) without exception to artificial detection is first passed through in advance and carries out figure Piece intake, obtains a normal pictures.Under normal conditions, the sense for the sensor installed in vision testing machine is moved to by mobile terminal When answering in range, the camera triggered on vision testing machine carries out picture picked-up to the mobile terminal, obtains normal pictures.
In step 102, a characteristic area is selected from the normal pictures absorbed, characteristic area here refers to can be only The region of one identification, such as the region with special shape.Save characteristic information (such as shape information) and the position in this feature region The location information of head region is imaged in confidence breath and the normal pictures.Here location information is generally by horizontal axis position, the longitudinal axis Position and rotation angle determine.
After completing above-mentioned predetermined registration operation, into normal testing process.In step 103, mobile terminal to be detected with Transmission belt moves, and when in the induction range for being moved to sensor, triggering camera carries out picture to the mobile terminal and takes the photograph It takes.
In step 104, according to the characteristic information of the normal pictures saved, characteristic area on current absorbed picture is determined Location information.
In step 105, by the characteristic area location information of the normal pictures saved and currently determining characteristic area position Confidence manner of breathing compares, and determines displacement compensation amount.The displacement compensation amount generally comprises horizontal axis position difference, longitudinal axis positions difference and rotation Gyration difference.
It is in step 106, identified displacement compensation amount is superimposed with the camera zone position information that has saved, it obtains The location information that head region is imaged on current absorbed picture, exports camera area image.
In step 107, camera area image on current absorbed picture is carried out to search edge contour detection, according to inspection It surveys result and determines whether camera is correctly installed.
Specifically, the mode for search edge contour detection selects linear search and linear edge contour detecting, and Most fine pixel is set by linear search and linear edge contour detecting, is searched since camera area image center Edge contour detection.It is lacked, can be detected at once by comparative analysis, such as camera, the two difference is fairly obvious.Specifically Judgment mode may is that if detecting obtained edge shape functional gradient maximum value is greater than or equal to preset normal gradients most Big value then determines that camera setting is normal, anti-regular judgement camera missing.
In step 108, testing result is saved, database is uploaded to.
By the visible detection method, is participated in without artificial, the vision-based detection of camera can be completed rapidly and accurately. Cost of labor can be effectively reduced, shorten detection time, utmostly reduce missing inspection and probability of false detection.And it can guarantee vision The accuracy of detection.
Present embodiment compared with the existing technology, has the advantage that
1. comparison in terms of manpower: implementing preceding 1 people and be responsible for checkSFC and visual inspection;It is automatic to detect without artificial after implementation With and testing result upload database automatically;
2. working method compares: artificial before implementing to pick and place, elapsed time;On-line automatic inspection after implementation, without picking and placing this A little waste motions;
3. detection time compares: Manual Visual Inspection substantially 10S or so before implementing;Machine detection time 1S after implementation improves 9 Times;
4. work fatigue degree, time comparison: implement forefathers section chief's phase work fatigue, various erroneous judgements, negative feeling occurs, point Shift rest;Non-stop run in 24 hours, reliable and stable after implementation;
5. integral layout influences: being entirely manual operation, 20 messenger of line before implementing;Equipment is added after implementation, is promoted Automatization level is reduced artificial;
6. missing inspection ratio compares: artificial residual error ratio example 2% (missing inspection quantity/amount detection) before implementing;Machine leaks after implementation Inspection ratio is 0;
7. erroneous judgement ratio comparison: existing before implementing and NG (exception) is manually mistaken for PASS (passes through) phenomenon;Machine after implementation Device erroneous detection ratio is 0.
Second embodiment of the invention also provides a kind of mobile terminal camera vision-based detection control equipment, as shown in Fig. 2, Include:
Memory module, for saving the characteristic information of characteristic area and location information and the standard drawing in normal pictures The location information of head region is imaged in piece;Above-mentioned standard picture is by vision testing machine to the mobile terminal for first passing through artificial detection in advance Picture picked-up is carried out to obtain;
Picture picked-up control module carries out picture picked-up to mobile terminal to be detected for controlling vision testing machine;
Picture receiving module, for obtaining the picture currently absorbed from vision testing machine;
Characteristic area searching module, the characteristic information of the normal pictures for being saved according to memory module determine current The location information of characteristic area on absorbed picture;
Position comparison module, for the characteristic area location information of the normal pictures saved and characteristic area to be searched mould Characteristic area location information determined by block compares, and determines displacement compensation amount;
Position compensation module, the camera shooting for will be saved in position comparison module determining displacement compensation amount and memory module Head Section location information domain is superimposed, obtains the location information that head region is imaged on current absorbed picture;
Edge contour detection module, for carrying out search edge contour to camera area image on current absorbed picture Detection;
Judgment module judges whether camera lacks for the testing result according to edge contour detection module, if inspection The edge shape functional gradient maximum value measured is greater than or equal to preset normal gradients maximum value, then determines that camera is arranged Normally, on the contrary then determine camera lack.
Wherein, edge contour detection module carries out linear search and linear edge contour detecting to camera area image, Most fine pixel is set by linear search and linear edge contour detecting, is searched since camera area image center Edge contour detection.
Equipment is controlled by the vision-based detection, is participated in without artificial, the vision inspection of camera can be completed rapidly and accurately It surveys.Cost of labor can be effectively reduced, shorten detection time, utmostly reduce missing inspection and probability of false detection.And it can guarantee The accuracy of vision-based detection.
Although being shown and described to the present invention by referring to some of the preferred embodiment of the invention, It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair Bright spirit and scope.

Claims (7)

1. the visible detection method of camera on a kind of mobile terminal, which is characterized in that comprise the steps of:
Vision testing machine carries out picture picked-up to by the mobile terminal of artificial detection in advance, selects from the normal pictures absorbed A characteristic area is selected, saves and images head region in the characteristic information and location information and the normal pictures in this feature region Location information;
According to the characteristic information of the normal pictures saved, the location information of the characteristic area on current absorbed picture is determined, The characteristic area location information of the normal pictures saved is compared with currently determining characteristic area location information, determines position Compensation rate is moved, the displacement compensation amount is superimposed with the camera zone position information that has saved, obtain current institute's intake figure The location information of on piece camera shooting head region;
Vision testing machine carries out picture picked-up to mobile terminal to be detected, carries out to camera area image on absorbed picture Edge contour detection is searched, if the edge shape functional gradient maximum value that detection obtains is greater than or equal to preset normal gradients On the contrary maximum value then determines that camera installation is normal, then determine camera missing.
2. the visible detection method of camera on mobile terminal according to claim 1, which is characterized in that described to current On absorbed picture camera area image carry out search edge contour detection the step of in: to the camera area image into Row linear search and linear edge contour detecting.
3. the visible detection method of camera on mobile terminal according to claim 2, which is characterized in that described to current Camera area image carried out in the step of searching edge contour detection on absorbed picture:
Most fine pixel is set by linear search and linear edge contour detecting.
4. the visible detection method of camera on mobile terminal according to claim 1, which is characterized in that described to current Camera area image carried out in the step of searching edge contour detection on absorbed picture: from the camera area image The heart starts search edge contour detection.
5. a kind of mobile terminal camera vision-based detection control equipment, characterized by comprising:
Picture picked-up control module carries out picture picked-up to mobile terminal to be detected for controlling vision testing machine;
Picture receiving module, for obtaining the picture currently absorbed from the vision testing machine;
Edge contour detection module searches edge contour inspection for carrying out to camera area image on current absorbed picture It surveys;
Judgment module judges whether camera lacks for the testing result according to edge contour detection module, if detected The edge shape functional gradient maximum value arrived is greater than or equal to preset normal gradients maximum value, then is determining camera installation just Often, on the contrary then determine camera lack;
Memory module, for saving in normal pictures in the characteristic information of characteristic area and location information and the normal pictures Image the location information of head region;The normal pictures carry out the mobile terminal for first passing through artificial detection in advance by vision testing machine Picture picked-up obtains;
Characteristic area searching module, the characteristic information of the normal pictures for being saved according to the memory module, determine described in The location information of characteristic area on current the absorbed picture of vision testing machine;
Position comparison module, for by the characteristic area location information of the normal pictures saved and characteristic area searching module institute Determining characteristic area location information compares, and determines displacement compensation amount;
Position compensation module, for what is saved in the displacement compensation amount and the memory module by position comparison module determination Camera zone position information is superimposed, obtains the location information that head region is imaged on current absorbed picture.
6. mobile terminal camera vision-based detection according to claim 5 controls equipment, which is characterized in that the edge wheel Wide detection module is also used to carry out linear search and linear edge contour detecting to the camera area image, is carrying out linearly When search and linear edge contour detecting, most fine pixel is set by linear search and linear edge contour detecting.
7. mobile terminal camera vision-based detection according to claim 5 controls equipment, which is characterized in that the edge wheel Wide detection module is also used to carry out to search edge contour detection since camera area image center.
CN201511026143.0A 2015-12-30 2015-12-30 The visible detection method of camera and control equipment on a kind of mobile terminal Expired - Fee Related CN106937108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511026143.0A CN106937108B (en) 2015-12-30 2015-12-30 The visible detection method of camera and control equipment on a kind of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511026143.0A CN106937108B (en) 2015-12-30 2015-12-30 The visible detection method of camera and control equipment on a kind of mobile terminal

Publications (2)

Publication Number Publication Date
CN106937108A CN106937108A (en) 2017-07-07
CN106937108B true CN106937108B (en) 2019-04-05

Family

ID=59441782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511026143.0A Expired - Fee Related CN106937108B (en) 2015-12-30 2015-12-30 The visible detection method of camera and control equipment on a kind of mobile terminal

Country Status (1)

Country Link
CN (1) CN106937108B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263141B (en) * 2020-02-21 2021-11-02 深圳创维-Rgb电子有限公司 Camera detection method and device and production line system
CN111787313A (en) * 2020-07-30 2020-10-16 重庆盛泰光电有限公司 Control system for detecting mobile phone camera module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807061B (en) * 2010-02-11 2012-01-11 东莞朗诚模具有限公司 Vision detection control system and method for integrated circuit tendon-cut system
CN101751675B (en) * 2010-02-24 2014-03-12 中兴通讯股份有限公司南京分公司 Device and method for detecting target to be detected
CN102496276B (en) * 2011-12-01 2013-08-21 青岛海信网络科技股份有限公司 High efficiency vehicle detection method
AU2012227263A1 (en) * 2012-09-21 2014-04-10 Canon Kabushiki Kaisha Differentiating abandoned and removed object using temporal edge information
CN203908960U (en) * 2014-05-28 2014-10-29 深圳华海达科技有限公司 Detecting equipment for electronic product accessories

Also Published As

Publication number Publication date
CN106937108A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN102253048B (en) Machine vision detection method and system for detection of various products
CN106226325B (en) A kind of seat surface defect detecting system and its method based on machine vision
CN103072718B (en) Machine vision detection system and method for food packaging production line
WO2017080282A1 (en) Circuit board inspection method and apparatus
CN109900711A (en) Workpiece, defect detection method based on machine vision
CN113706495B (en) Machine vision detection system for automatically detecting lithium battery parameters on conveyor belt
CN109429473A (en) Automatic check method and device with polarity electronic component in circuit board
CN107895362B (en) Machine vision method for detecting quality of miniature wiring terminal
CN106937108B (en) The visible detection method of camera and control equipment on a kind of mobile terminal
CN103954334B (en) Fully automatic image pickup type water meter verification system and operating method thereof
CN103207186A (en) Identification method for defect detection of automatic cloth inspecting machine and system thereof
CN107016353B (en) A kind of integrated method and system of variable resolution target detection and identification
CN110298840A (en) A kind of yarn faults detection method based on image
CN113723325A (en) Tool defect detection system for prefabricated parts
CN107515481A (en) The detection method and device of a kind of display panel
CN109993745A (en) It is a kind of for detecting the detection method of OLED display module undesirable feature
KR101643713B1 (en) Method for inspecting of product using learning type smart camera
CN111640088A (en) Electronic component polarity detection method and system based on deep learning and electronic device
CN106931946A (en) A kind of full-automatic mobile terminal visible detection method
CN106932005A (en) Visible detection method and control device that a kind of mobile terminal is tightened up a screw
CN106937080A (en) Visible detection method and control device that a kind of mobile terminal is tightened up a screw
CN116481585B (en) Product full detection system and method based on machine vision
CN109712115A (en) A kind of pcb board automatic testing method and system
CN105957065A (en) Method and system for detecting omitted elements
CN106934791B (en) Visual detection method and control equipment for FPC (Flexible printed Circuit) on mobile terminal

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: 20190405