CN107371014A - IMAQ detection method, device and all-in-one formula IMAQ detector - Google Patents
IMAQ detection method, device and all-in-one formula IMAQ detector Download PDFInfo
- Publication number
- CN107371014A CN107371014A CN201710592892.2A CN201710592892A CN107371014A CN 107371014 A CN107371014 A CN 107371014A CN 201710592892 A CN201710592892 A CN 201710592892A CN 107371014 A CN107371014 A CN 107371014A
- Authority
- CN
- China
- Prior art keywords
- measurand
- configuration parameter
- imaq
- formula
- detector
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00002—Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for
- H04N1/00005—Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for relating to image data
Abstract
The invention discloses a kind of IMAQ detection method, device and all-in-one formula IMAQ detector, methods described to include:The interface connecting plate configured by all-in-one formula IMAQ detector connects measurand, establishes communication connection therebetween;Configuration parameter adaptive allocation is carried out to measurand by the communication connection of foundation, the configuration parameter of the adaptive allocation be by preset data library file according to the object identity associative search of the measurand to;In measurand loading configuration parameter success, the view data generated in measurand is gathered;Image detection is carried out to the view data collected.Image detection efficiency can be effectively improved using the present invention.
Description
Technical field
The present invention relates to technical field of image detection, more particularly to a kind of IMAQ detection method, device and all-in-one
Formula IMAQ detector.
Background technology
With the development of image detecting technique, the application of camera module is increasingly extensive.For example, camera module can be with
Apply in smart mobile phone, tablet personal computer, video camera, unmanned plane, vehicle electronic device, safety defense monitoring system etc..
At present, camera module enter normal operating conditions before, i.e., can shooting image with generate view data it
It is preceding, it is necessary to carry out the configuration of configuration parameter.The configuration parameter includes but is not limited to image sensor chip in camera module
Operating voltage, interface type, mailing address, picture format, picture size etc., so as to load configuration parameter in camera module
During success, image detection is carried out to the view data of collection.
Because the configuration parameter corresponding to different camera modules is not quite similar, during configuration parameter is loaded, also
Depend on testing staff and manually select corresponding configuration parameter for camera module, this will certainly influence image detection effect
Rate.
The content of the invention
Based on this, it is an object of the present invention to provide a kind of IMAQ detection that can improve image detection efficiency
Method and device.
It is another object of the present invention to provide a kind of all-in-one formula IMAQ that can improve image detection efficiency
Detector.
In order to solve the above-mentioned technical problem, the present invention provides following technical scheme:
On the one hand, a kind of IMAQ detection method, applied to all-in-one formula IMAQ detector, including:Pass through institute
The interface connecting plate connection measurand of all-in-one formula IMAQ detector configuration is stated, establishes the all-in-one formula IMAQ
Communication connection between detector and its measurand of connection;The measurand is matched somebody with somebody by the communication connection of foundation
Put parameter adaptive loading, the configuration parameter of the adaptive allocation be by preset data library file according to described tested pair
What the object identity associative search of elephant arrived;In measurand loading configuration parameter success, gather in the measurand
The view data of generation;Image detection is carried out to the view data collected.
On the other hand, a kind of IMAQ detection means, including:Module is established in communication connection, for passing through the one
The interface connecting plate connection measurand of machine formula IMAQ detector configuration, establishes the all-in-one formula IMAQ detector
And its communication connection between the measurand of connection;Configuration parameter load-on module, for the communication connection by foundation to institute
State measurand and carry out configuration parameter adaptive allocation, the configuration parameter of the adaptive allocation is by preset data library file
Arrived according to the object identity associative search of the measurand;Image data acquiring module, for adding in the measurand
When carrying configuration parameter success, the view data generated in the measurand is gathered;Image detection module, for collecting
View data carry out image detection.
On the other hand, a kind of all-in-one formula IMAQ detector, including an at least processor, an at least communication interface,
An at least communication bus and at least a memory, an at least memory instruct for storage program, at described at least one
Reason device is used to perform IMAQ detection side as described above by the programmed instruction stored in an at least memory described in reading
Method.
The technical scheme provided by the invention more than, compared with prior art, the invention has the advantages that:
By all-in-one formula IMAQ detector by being closed in preset data library file according to the object identity of measurand
Configuration parameter is looked in joint investigation, and the configuration parameter arrived according to associative search carries out configuration parameter adaptive allocation, thus, avoids detecting
Personnel manually select configuration parameter corresponding to measurand, and image detection efficiency is improved with this, and then are advantageous to improve camera
The production efficiency of module.
In addition, by carrying out depositing for configuration parameter in the preset data library file of all-in-one formula IMAQ detector
Storage, realizes being locally stored for configuration parameter so that configuration parameter can be directly transferred to measurand, avoid passing through image inspection
Measurement equipment is first transmitted to image capture device to carry and transmitted to measurand, so as to shorten the time of configuration parameter loading, enters one
Step is advantageous to improve image detection efficiency.
Brief description of the drawings
, below will be each to the present invention in order to illustrate more clearly of various embodiments of the present invention or technical scheme of the prior art
The required accompanying drawing used is briefly described in embodiment or description of the prior art.It is it should be evident that attached in description below
Figure is only some embodiments of the present invention, for one of ordinary skill in the art, is not paying creative work
Under the premise of, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the implementation environment schematic diagram of the IMAQ detection method of one embodiment of the invention.
Fig. 2 is the flow chart of IMAQ detection method in Fig. 1 embodiments.
Fig. 3 is the flow chart of the IMAQ detection method of one embodiment of the invention.
Fig. 4 is the flow chart of the IMAQ detection method of another embodiment of the present invention.
Fig. 5 is the flow chart of the IMAQ detection method of another embodiment of the present invention.
Fig. 6 is the flow chart of step 530 in Fig. 5 embodiments.
Fig. 7 is the flow chart of step 320 in Fig. 3 embodiments.
Fig. 8 is the flow chart of step 323 in Fig. 7 embodiments.
Fig. 9 is the flow chart of step 3232 in Fig. 8 embodiments.
Figure 10 is the flow chart of the IMAQ detection method of another embodiment of the present invention.
Figure 11 is the structured flowchart of the IMAQ detection means of one embodiment of the invention.
Figure 12 is the structured flowchart of the all-in-one formula IMAQ detector of one embodiment of the invention.
Embodiment
In order that one of ordinary skill in the art more fully understands the technical scheme in the present invention, and make that the present invention's is upper
Stating objects, features and advantages can be more obvious understandable, below in conjunction with the accompanying drawings to the technical scheme in various embodiments of the present invention
Further elaborate.
Fig. 1 is the implementation environment schematic diagram of the IMAQ detection method of one embodiment of the invention.As shown in figure 1, at this
In implementation environment, IMAQ detecting system 100 includes master controller 110 and the machinery being connected respectively with master controller 110
Hand 120, all-in-one formula IMAQ detector 130, some mechanism for testing 140 and measurand 150.
Wherein, all-in-one formula IMAQ detector 130 is integrated with image collecting function and image detection function, is advantageous to
The miniaturization of IMAQ detecting system 100, the production for advantageously reducing camera module is taken up an area, and then advantageously reduces shooting
The production cost of head mould group.
Some mechanism for testing 140 include Jin Jiao scrnario testings mechanism, middle-range scrnario testing mechanism, remote burnt scrnario testing machine
Structure and electrical characteristics test mechanism.
Further, Jin Jiao scrnario testings mechanism, middle-range scrnario testing mechanism, Yuan Jiao scrnario testings mechanism include respectively again
Testing light source, scene drawing and teleconverter.
It measurand 150, can be camera module, can also be the image sensor chip in camera module.
Fig. 2 is the flow chart of IMAQ detection method in Fig. 1 embodiments.A kind of as shown in Fig. 2 IMAQ detection side
Method, applied to IMAQ detecting system 100, including:
Step 210, measurand is connected to the configuration of all-in-one formula IMAQ detector by main controller controls manipulator
Interface connecting plate, and the all-in-one formula IMAQ detector and measurand of interconnection are moved to one of test
Mechanism.
Interface connecting plate is a matrix form conversion connector, supports MIPI interfaces, PARALLEL interfaces, sub-LVDS to connect
Mouth, SPI interface, HISPI interfaces etc., ensure that the measurand of different interface type can adopt with all-in-one formula image with this
Collect detector to be connected with each other, the versatility of all-in-one formula IMAQ detector is improved with this.
After the interconnection of all-in-one formula IMAQ detector and measurand is completed, master controller just control machine
Tool hand the all-in-one formula IMAQ detector and measurand of interconnection are moved in some mechanism for testing wherein one
Individual mechanism for testing, in order to subsequently carry out the image detection of measurand based on one of mechanism for testing.
Step 220, test scene corresponding to one of mechanism for testing is adjusted by manipulator.
Surveyed as it was previously stated, some mechanism for testing include Jin Jiao scrnario testings mechanism, middle-range scrnario testing mechanism, remote burnt scene
Test-run a machine structure, electrical characteristics test mechanism.Wherein, Jin Jiao scrnario testings mechanism, middle-range scrnario testing mechanism, remote burnt scrnario testing machine
Structure includes testing light source, scene drawing and teleconverter respectively again.
Thus, each mechanism for testing corresponds to different test scenes, refers to testing light source in each mechanism for testing, scene
Drawing and teleconverter simulate a kind of test scene.For example, the nearly burnt closely burnt test scene of scrnario testing mechanism analog, remote burnt scene
The remote burnt test scene of mechanism for testing simulation.Correspondingly, the view data that measurand generates in different test scenes will have
Distinguished.
Specifically, the testing light source in each mechanism for testing, scene drawing and teleconverter are by according to the survey of given scenario
Strip part is adjusted, and adjustment to test scene corresponding to mechanism for testing is realized with this,.Correspondingly, all-in-one formula image is adopted
The image detection application program matched with the test scene will be run in collection detector, with for the figure obtained in the test scene
As data carry out corresponding image detection.
For example, working as test structure as Yuan Jiao scrnario testings mechanism, the test condition of remote burnt scene will be first according to this
Testing light source, scene drawing and teleconverter in mechanism for testing are adjusted, thus by test scene corresponding to the mechanism for testing
It is adjusted to remote burnt scene.Now, will operation and pair of remote burnt scrnario testing authority match in all-in-one formula IMAQ detector
Jiao's detection application program, to carry out focusing detection for the view data obtained in remote burnt scene.
It is noted that if mechanism for testing is electrical characteristics test mechanism, step 230 can also be directly entered, and
The adjustment of corresponding test scene need not be carried out.
Step 230, the view data generated in all-in-one formula IMAQ detector collection measurand.
Wherein, generated in view data test scene as corresponding to measurand in a wherein mechanism for testing.
Specifically, after test scene corresponding to mechanism for testing completes adjustment, it is moved to tested pair of the mechanism for testing
As just can be clapped in the mechanism for testing in the presence of testing light source, teleconverter the scene drawing in the mechanism for testing
Take the photograph, and then generate the mechanism for testing and correspond to view data in test scene.
Step 240, all-in-one formula IMAQ detector carries out image detection to the view data collected, and in quilt
When survey object passes through image detection, the all-in-one formula IMAQ detector and measurand of interconnection are moved by manipulator
Move to the latter mechanism for testing.
Specifically, treat that view data image detection finishes, all-in-one formula IMAQ detector, which will generate, to be used to indicate quilt
Survey whether object is the decision instruction of defective products, and send the decision instruction to master controller, so make main controller according to
The decision instruction control machinery hand carries out the movement of measurand.Wherein, master controller can be by tested pair according to decision instruction
As being moved to the latter mechanism for testing, or, non-defective unit region, or, defective products region.
If for example, image detection is carried out for the view data obtained in all mechanism for testing and measurand is equal
By image detection, then measurand is moved to non-defective unit region by control machinery hand.
If in the image detection carried out for the view data obtained in any mechanism for testing, measurand does not pass through figure
As detection, then measurand is moved to defective products region by control machinery hand.
If in the image detection carried out for the view data obtained in some mechanism for testing, measurand passes through image
Detection, then measurand is moved to the latter mechanism for testing by control machinery hand, until all mechanism for testing complete difference in functionality
Image detection poll.
By process as described above, the automatic streamline cycle operation of image detection is realized, has fully ensured image inspection
The reliability and stability of survey, are advantageous to improve the efficiency of image detection, and then improve the production efficiency of camera module.
In addition, for different test scenes, flowing water cycle operation is carried out using all-in-one formula IMAQ detector, and
Image capture device and image detecting apparatus need not be respectively provided with for each mechanism for testing so that IMAQ detecting system is more
Add miniaturization, take up an area so as to be advantageous to reduce the production of camera module, advantageously reduce the production cost of camera module.
As shown in figure 3, in one embodiment, a kind of IMAQ detection method, examined applied to all-in-one formula IMAQ
Instrument is surveyed, including:
Step 310, the interface connecting plate configured by all-in-one formula IMAQ detector connects measurand, establishes one
Communication connection between body machine formula IMAQ detector and its measurand of connection.
It measurand, can be camera module, can also be the image sensor chip in camera module.
Interface connecting plate is a matrix form conversion connector, supports MIPI interfaces, Parallel interfaces, sub-LVDS to connect
Mouth, SPI interface, HiSpi interfaces, USB interface etc., ensure that the measurand of different interface type can be with all-in-one with this
Formula IMAQ detector is connected with each other, and the versatility of all-in-one formula IMAQ detector is improved with this.
Communication connection can be IIC communication connections, can also be that SPI communication connects, or meet other communication protocols
Connected mode.Correspondingly, the foundation of communication connection is carried out according to the requirement of communication protocol.
After communication connection is established, it just can pass through foundation between all-in-one formula IMAQ detector and measurand
Communication connection carry out data transmission, for example, by communicating to connect transmission configuration parameter.
Step 320, configuration parameter adaptive allocation is carried out to measurand by the communication connection of foundation.
Wherein, the configuration parameter of adaptive allocation is by being closed in preset data library file according to the object identity of measurand
What joint investigation was found.
Measurand enter normal operating conditions before, i.e., can shooting image with generate all-in-one formula IMAQ inspection
Survey before the view data needed for instrument, it is necessary to carry out the configuration of configuration parameter.The configuration parameter includes but is not limited to image head mould
The operating voltage of image sensor chip, interface type, mailing address, picture format, picture size etc. in group.
Thus, after communication connection is established, all-in-one formula IMAQ detector transmits configuration parameter to tested pair
As so that measurand completes the configuration of configuration parameter.
If measurand loading configuration parameter success, measurand enter normal operating conditions, just can be directed to not
Same test scene carries out image taking, and then generates the view data in different test scenes for all-in-one formula IMAQ
Detector acquisition testing.
, can be by being tested after measurand generates view data for all-in-one formula IMAQ detector
The view data is collected in object, that is, performs step 330.
, whereas if measurand loading configuration parameter is unsuccessful, then it represents that measurand can not normal work, i.e., it is tested
Object is defective products, and now, all-in-one formula IMAQ detector will generate the judgement for being used for indicating that measurand is defective products
Instruct and feed back to master controller so that measurand is moved to bad by master controller according to the decision instruction control machinery hand
Product region.
Further, configuration parameter corresponding to different measurands is different, thus, in configuration parameter loading procedure
In, will be first by obtaining an at least configuration parameter, and then adaptive by configuration parameter in all-in-one formula IMAQ detector
Bootload measurand carries out the configuration of corresponding configuration parameter.
By being arranged such, configuration parameter adaptive allocation is realized, avoids manually participating in, is advantageous to improve image detection
Efficiency, and then be advantageous to improve the production efficiency of camera module.
Step 330, in measurand loading configuration parameter success, the view data generated in measurand is gathered.
Step 340, image detection is carried out to the view data collected.
More preferably, two-way is divided to transmit the view data collected, wherein view data is transmitted to all-in-one formula all the way
The processor of IMAQ detector configuration, by processor, to this, wherein view data carries out the first specified classification image all the way
Detection.The interface that another way view data is configured by all-in-one formula IMAQ detector is transmitted to host computer, with by upper
Position machine carries out second to the another way view data and specifies classification image detection.
In all-in-one formula IMAQ detector, processor can be ARM core chips, and host computer can be calculated
Machine.
Thus, divide two-way to transmit the view data collected, wherein transmit all the way to processor, another way transmit to
Host computer, and then image detection is performed parallel in all-in-one formula IMAQ detector and host computer, carried with this
High image detection efficiency, be advantageous to improve the production efficiency of camera module.
In addition, if host computer can also be all in all-in-one formula IMAQ detector there occurs failure, image detection
Upper execution, being smoothed out for image detection is ensured with this, be advantageous to improve the production efficiency of camera module.For example, all-in-one
Formula IMAQ detector reads the working condition of host computer in real time, if the working condition of host computer is abnormal operation,
Just the image detection of each function is carried out for view data.
Further, all-in-one formula IMAQ detector and the running environment of image detection application program in host computer
It can be mutually distinguishable, i.e., the image detection application program in all-in-one formula IMAQ detector operates in the first operating system,
And the image detection application program in host computer operates in the second operating system.Wherein, the first operating system is kept and tested pair
As the operating system that the terminal device of installing is run is identical, such as (SuSE) Linux OS etc., the second operating system is then advantageous to
Image detection efficiency is improved, such as suitable for Windows operating system of algorithm etc. needed for a variety of image detections.
Thus, the detection environment in all-in-one formula IMAQ detector and practical service environment height one in measurand
Cause, fully ensured that the confidence level of image detection in all-in-one formula IMAQ detector.Meanwhile the detection environment in host computer
Algorithm needed for a variety of image detections is more suitable for, and then make it that image detection is more efficient.
Further, image detection includes but is not limited to:Definition detection, flaw defects detection, bad point detection, focusing
Detection, demosaicing processing, noise reduction process, compensating bad point processing, white balance processing, exposure gain processing, image sharpening processing
Etc..
It should be appreciated that for algorithm needed for above-mentioned image detection, some algorithm computation complexities are higher, such as flaw
Defects detection, some algorithms have different operational efficiency on different operating system, or, produced for camera module
For business, some algorithm secrecies require higher.
Therefore, all-in-one formula IMAQ detector, which provides first, specifies classification image detection, host computer provides second and referred to
Determine classification image detection.Wherein, specify the sorting technique of classification image detection to be based on computation complexity, fortune can also be based on
Line efficiency, or, based on the demand of camera module manufacturer, the degree of accuracy and the efficiency of image detection, Jin Eryou are improved with this
The probability of defective products is mistaken for beneficial to reduction measurand.
For example, the image detection application program in processor operates in (SuSE) Linux OS, the image in host computer
Detection application program operates in Windows operating system, and correspondingly, algorithm needed for the first specified classification image detection can be meter
It is relatively low to calculate complexity, and there is higher operational efficiency in (SuSE) Linux OS, second specifies calculation needed for classification image detection
Method can be that computation complexity is higher, and have higher operational efficiency in Windows operating system, thus further carry
Image detection efficiency has been risen, has improved the production efficiency of camera module.
Or second specify algorithm secrecy needed for classification image detection to require higher, now, the image in host computer
Detection application program can be provided by camera module manufacturer, and classification image detection is specified to carry out second to view data, by
This, for camera module manufacturer, the second class carried out in host computer specifies classification image detection to depend entirely on shooting
The demand of head mould group manufacturer, the security of image detection has fully been ensured with this, is more beneficial for lifting camera module factory
The experience of business.
As shown in figure 4, in one embodiment, after step 310, method as described above also includes:
Step 410, judge whether communication connection is successfully established.If it is, redirect into step 320.If it is not, then jump
Rotate into step 420.
Step 420, communication Protocol Conversion firmware is loaded in all-in-one formula IMAQ detector, is turned by communication protocol
Change the communication Protocol Conversion that firmware specifies measurand and be integrated the communication protocol that machine formula IMAQ detector is specified, so that
Communication connection is successfully established.
It should be appreciated that the camera module that different camera module manufacturers is provided is often off-gauge using some
Interface type, and then cause the communication protocol specified by the interface type to be not quite similar, for example, sub-LVDS interfaces are one non-
Standard interface type.
Therefore, in order to improve the compatibility for the interface connecting plate that all-in-one formula IMAQ detector is provided, it would be desirable to
Standard communication protocol conversion is carried out to off-gauge interface type, i.e., by communication Protocol Conversion firmware by off-gauge interface class
Communication Protocol Conversion specified by type is the communication protocol specified by the interface type of standard.
For example, measurand uses sub-LVDS interfaces, and all-in-one formula IMAQ detector uses MIPI interfaces.
Establish and fail when communication connection, that is, know that measurand employs off-gauge interface type, then all-in-one formula figure
As loading communication Protocol Conversion firmware in acquisition testing instrument, the communication Protocol Conversion that sub-LVDS interfaces are specified is MIPI interfaces
The communication protocol specified, and then realize that the communication connection between measurand and all-in-one formula IMAQ detector is successfully built
It is vertical.
In the presence of above-described embodiment, the attachable interface type of all-in-one formula IMAQ detector is extended, i.e.,
The attachable interface type of all-in-one formula IMAQ detector is not limited to the interface type of standard, can also be off-gauge and connects
Mouth type, is effectively improved compatibility of the all-in-one formula IMAQ detector to different interface type, and then enter one with this
Improve to step the versatility of all-in-one formula IMAQ detector.
As shown in figure 5, in one embodiment, after step 320, method as described above also includes:
Step 510, initiate one-off programming burning to measurand by communication connection to ask, obtain raw in measurand
Into view data.
Step 520, image calibration is carried out to view data, generates burning information and feed back to measurand.
In order that the view data generated in measurand can reach good imaging when terminal device is shown
Effect, some parameters would generally be stored in measurand, for example, being illustrated by camera module of measurand, those ginsengs
Number can be camera lens correction parameter, white balance parameter, Focusing parameter etc..When terminal device carries out image display, just can
By reading those stored parameters in measurand and applying on the image of display, school is carried out with this image to display
Standard, and then realize good imaging effect.
Thus, one-off programming burning is to refer to that carrying out image calibration to the view data generated in measurand is somebody's turn to do
A little parameters, and then by those parameter read-in measurands.
Burning information is those parameters that the view data generated in measurand is carried out image calibration and obtained.
Step 530, the view data that measurand is completed to generate after the write-in of burning information is received, is sentenced by the view data
Whether burning is successful for disconnected measurand.
If measurand burning failure, then it represents that the burning information stored in measurand is led there occurs mistake
Measurand is caused to scrap, now, measurand is moved to defective products region by main controller controls manipulator.
Further, the view data that measurand is completed to generate after the write-in of burning information can be complete by measurand
Actively send to all-in-one formula IMAQ detector, can also be by all-in-one formula IMAQ after being write into burning information
Detector request, for example, when all-in-one formula IMAQ detector knows that measurand completes the write-in of burning information, to quilt
The corresponding view data of object requests is surveyed, is not limited herein.
In the presence of above-described embodiment, realize one-off programming burning and only adopted in measurand and all-in-one formula image
Carried out between collection detector, and then cause the collection of any view data only to need to implement transmission between said two devices
, avoid interacting with image detecting apparatus, substantially reduce the transmission time of view data, one-off programming is improved with this
The efficiency of burning.
Further, since the nodes passed through in view data transmitting procedure are reduced, it can fully ensure IMAQ
The stability of detecting system, and then be advantageous to improve the production efficiency of camera module.
In one embodiment, before step 530, method as described above also includes:
Receive the burning that measurand is completed to feed back after the write-in of burning information and complete instruction, and according to burning complete instruction to
Measurand initiates image data acquiring request, the view data generated with obtaining measurand to complete after the write-in of burning information.
For measurand, when completing the write-in of burning information, that is, one-off programming burning is completed, now, be tested
Object will generate burning and complete to instruct and send to all-in-one formula IMAQ detector.Wherein, the burning complete instruction by with
One-off programming burning has been completed in instruction measurand.
For all-in-one formula IMAQ detector, after measurand generates and sends burning completion instruction,
Just the burning can be received and complete instruction, know that measurand has completed one-off programming burning with this, and then to tested pair
As the view data that is generated after the write-in of burning information is completed in request, with according to the view data judge measurand whether burning into
Work(.
Under the cooperation of above-described embodiment, the collection of view data is controlled by all-in-one formula IMAQ detector and actively sent out
The image data acquiring request risen, be advantageous to alleviate the pressure of all-in-one formula IMAQ detector processing concurrent tasks, and then
Be advantageous to improve the image detection efficiency of all-in-one formula IMAQ detector.
As shown in fig. 6, in one embodiment, step 530 includes:
Step 531, secondary image calibration is carried out to the view data received, generates secondary burning information.
Step 532, by burning information compared with secondary burning information, if burning information and secondary burning information one
Cause, then judge measurand burning success.
After measurand completes the write-in of burning information, measurand is in test scene corresponding to mechanism for testing to field
Scape drawing is shot, and will generate view data.
Correspondingly, all-in-one formula IMAQ detector just can receive measurand and complete one-off programming burning
The view data generated afterwards, and according to the view data judge measurand whether burning success.
Specifically, it is compared by the burning information for generating image calibration twice respectively, if the two is consistent, is sentenced
Determine measurand burning success.
, whereas if the two is otherwise varied, then measurand burning failure is judged, that is, represent the burning stored in measurand
Information is recorded there occurs mistake, and then causes measurand to be scrapped, now, is moved measurand by main controller controls manipulator
Move to defective products region.
By process as described above, using burning information twice unanimously as measurand burning successfully judgement according to
According to fully ensure that the reliability of IMAQ detecting system with this.
As shown in fig. 7, in one embodiment, step 320 includes:
Step 321, the object identity of measurand is obtained by communicating to connect.
Object identity be used to identify measurand, that is to say, that just can determine measurand by object identity.Example
Such as, object identity can be the IIC mailing addresses of measurand, can also be the hardware device identification code of measurand.
Step 322, ginseng is configured according to corresponding to object identity associative search measurand in preset data library file
Number, obtains an at least configuration parameter.
Wherein, associated storage object identity and configuration parameter corresponding to some objects in preset data library file.
It object, can be camera module, can also be the image sensor chip in camera module.Object is with being tested
Can mutually it be converted between object, i.e., when needing to implement IMAQ detection process for object, the object is measurand.
It should be appreciated that if the object identity of object is IIC mailing addresses, the limited bit of IIC mailing addresses is limited to
Position (being usually 7 bits, be then simply possible to use in and represent 128 object identities), it is identical to have an object identity of different objects,
Some configuration parameters may be associated by turn resulting in preset data library file same target mark, and some configuration parameters
Different objects is corresponded to respectively.
Thus, just can be according to object identity by being found in preset data library file pair after object identity is obtained
As an at least configuration parameter for mark association.
By being arranged such, realize and configuration parameter is locally stored, avoid being transmitted configuration parameter by image detecting apparatus
To the loading procedure of measurand, the load time of configuration parameter is substantially reduced, and then shortens measurand by being power-up to
Into the time of normal operating conditions, so as to be advantageous to improve image detection efficiency, and be advantageous to improve the life of camera module
Produce efficiency.
Step 323, the traversal of configuration parameter loading is carried out to measurand according to each configuration parameter, passes through traversal
Measurand loading configuration parameter success.
After an at least configuration parameter is obtained, each configuration parameter is loaded onto measurand in a manner of traversal, directly
To measurand loading configuration parameter success.
So-called traversal refers to, when measurand loads previous configuration parameter failure, continue to load the latter configuration ginseng
Number.Further, traversal can be according to the progress of specified order or random progress, not be defined herein.
By process as described above, configuration parameter adaptive allocation is realized, avoids manually participating in, is advantageous to raising figure
As detection efficiency, and then be advantageous to improve the production efficiency of camera module.
As shown in figure 8, in one embodiment, step 323 includes:
Step 3231, the configuration parameter arrived according to associative search generates configuration parameter list.
Configuration parameter list be used to store the configuration parameter that associative search arrives.
Specifically, in the generating process of configuration parameter list, the configuration parameter list that has created first, then association is looked into
The configuration parameter found is added to the configuration parameter list successively, and then causes the configuration parameter in the configuration parameter list
With putting in order, i.e. order of addition.
For example, first configuration parameter added to configuration parameter list is considered as making number one, by that analogy, finally
One configuration parameter added to configuration parameter list is considered as rolling into last place.
Step 3232, the configuration in configuration parameter list is joined according to putting in order for configuration parameter in configuration parameter list
Number is loaded onto measurand successively.
In the present embodiment, the traversal of configuration parameter is carried out in sequence, i.e. is joined according to being configured in configuration parameter list
Several progress that puts in order.
Certainly, in other embodiments, if in a manner of queue to associative search to configuration parameter store,
It is the adaptive allocation that configuration parameter is carried out according to the order of first in first out in queue.
Further, when the configuration parameter in configuration parameter list completes adaptive allocation, if measurand does not add yet
Configuration parameter success is carried, then measurand is considered as defective products, now, measurand is moved into defective products area by manipulator
Domain.
, whereas if any configuration parameter causes measurand loading configuration parameter success in configuration parameter list, then jump
Rotate into step 3233, stop traversal.
Step 3233, measurand loading configuration parameter success is treated, stops traversal.
As shown in figure 9, in one embodiment, step 3232 includes:
Step 3232a, the wherein configuration parameter in configuration parameter list is loaded onto measurand.
For measurand, a wherein configuration parameter is write in the pre-register of itself, and then pass through write-in
The pre-register of configuration parameter enters normal operating conditions.
Step 3232b, the working condition that measurand is read by communicating to connect identify.
Because same target mark may be associated some configuration parameters, and some configuration parameters correspond to difference respectively
Object, this by cause associative search to configuration parameter not necessarily correspond to measurand.It is appreciated that if preset post
The configuration parameter write in storage is measurand, then measurand will enter normal operating conditions, whereas if preset post
The configuration parameter write in storage is not measurand, then measurand will be unable to normal work, i.e., in abnormal work shape
State.
Therefore, judge whether measurand loading configuration parameter succeeds, that is, judge whether measurand is in normal work
State.
In the present embodiment, working condition mark is used to indicate that whether measurand is in normal operating conditions.Correspondingly,
Working condition by obtaining measurand, which identifies, can determine whether measurand is in normal operating conditions.
Specifically, working condition mark is indicated by the numerical value in register.If measurand enters normal work
Make state, then the numerical value in the register is set to 1, now, working condition mark instruction measurand is in normal work shape
State.Otherwise, the numerical value in the register is set to 0 by measurand, and now, working condition mark instruction measurand is in abnormal
Working condition.
Correspondingly, all-in-one formula IMAQ detector can be entered by communicating to connect the numerical value read in the register
And whether it is 1 to judge whether measurand is in normal operating conditions according to the numerical value.
If numerical value be 1, judge measurand be in normal operating conditions, now, measurand loading configuration parameter into
Work(, then redirect into step 3233, stop traversal.Otherwise, when numerical value is 0, judgement measurand is in abnormal operation, this
When, measurand loading wherein configuration parameter failure, then redirect into step 3232c, continue to travel through.
Certainly, the representation of working condition mark can neatly adjust according to practical application scene.
For example, setting a LED in measurand, then working condition mark carries out table by the light and shade change of LED
Show, if LED is bright, working condition mark instruction measurand is in normal operating conditions, whereas if LED is gone out, then
Working condition mark instruction measurand is in abnormal operation.
Or to preset the level signal height of pin output in measurand to represent that working condition identifies, for example,
Default pin output high level signal, working condition mark instruction measurand are in normal operating conditions, preset pin output
Low level signal, then working condition, which identifies, indicates that measurand is in abnormal operation.
Step 3232c, identify instruction measurand in working condition and be not in normal operating conditions, then arrange configuration parameter
Later configuration parameter in table is loaded onto measurand.
When measurand loads the failure of a wherein configuration parameter, continue later configuration parameter in configuration parameter list
Adaptive allocation, until measurand loading configuration parameter success or configuration parameter list in all configuration parameters loaded
Finish.
In one embodiment, method as described above also includes:
In measurand loading configuration parameter success, the configuration parameter for being successfully loaded onto measurand is stored.
Correspondingly, as shown in Figure 10, method as described above also includes:
Step 610, the measurand of all-in-one formula IMAQ detector connection is changed, and establishes all-in-one formula image and adopts
Collect the communication connection between detector and the measurand of replacing.
Step 620, the configuration parameter of storage is loaded onto to the measurand of replacing by the communication connection of foundation.
If the configuration parameter loading of storage is unsuccessful, redirects into step 320, that is, pass through the communication connection pair of foundation
The measurand of replacing carries out configuration parameter loading.
Otherwise, if the configuration parameter of storage loads successfully, redirect into step 330, generated in measurand
Image data acquiring.
Thus, in configuration parameter loading procedure, the configuration parameter that prestores will be preferentially loaded, once load successfully just
Image data acquiring is directly entered, without the adaptive allocation by configuration parameter, substantially reduces measurand by upper electricity
To the time for entering normal operating conditions, be advantageous to improve image detection efficiency, and then be advantageous to improve the life of camera module
Produce efficiency.
In one embodiment, method as described above also includes:
Step 710, in measurand loading, configuration parameter is unsuccessful or measurand does not pass through and specifies classification image to examine
During survey, generate for indicating decision instruction of the measurand for defective products.
If measurand loading configuration parameter is unsuccessful or measurand is not by specifying classification image detection, that is, represent
Measurand is defective products, correspondingly, will generate and is used to indicate decision instruction of the measurand for defective products.
If whether measurand loading configuration parameter success, determine whether measurand by specifying classification image to examine
Survey, if measurand by specifying classification image detection, that is, represents that measurand is non-defective unit, correspondingly, generation is used to refer to
Show the decision instruction that measurand is non-defective unit.
Step 720, decision instruction is sent to the master controller being connected with all-in-one formula IMAQ detector, to pass through master
Controller control machinery hand carries out defective products classification to measurand.
For master controller, after decision instruction is received, it can know that measurand is according to decision instruction
No is defective products, and then control machinery hand is sorted out to measurand.
Specifically, if decision instruction instruction measurand is defective products, measurand is moved to by control machinery hand
Defective products region.
If decision instruction instruction measurand is non-defective unit, measurand is moved to non-defective unit region by control machinery hand.
Under the cooperation of above-described embodiment, using decision instruction as the abundant foundation for sorting out measurand, thus fully
The reliability of IMAQ detecting system is ensured.
As shown in figure 11, in one embodiment, a kind of IMAQ detection means 800 includes:Module is established in communication connection
810th, configuration parameter load-on module 820, image data acquiring module 830 and image detection module 840.
Wherein, communication connection establish module 810 be used for by all-in-one formula IMAQ detector configure interface connection
Plate connects measurand, the communication connection established between all-in-one formula IMAQ detector and its measurand of connection.
Configuration parameter load-on module 820 is used to carry out configuration parameter loading to measurand by the communication connection established.
Image data acquiring module 830 is used to, in measurand loading configuration parameter success, gather raw in measurand
Into view data.
Image detection module 840 is used to divide two-way to transmit the view data collected, wherein view data passes all the way
The processor of all-in-one formula IMAQ detector configuration is transported to, wherein view data carries out first all the way to this by processor
Specify classification image detection.The interface that another way view data is configured by all-in-one formula IMAQ detector is transmitted to upper
Machine, classification image detection is specified to carry out second to the another way view data by host computer.
As shown in figure 12, in one embodiment, a kind of all-in-one formula IMAQ detector 900 includes:At least one processing
Device 910, at least an interface 920, at least a bus 930 and at least a memory 940.
Wherein, an at least memory 940 instructs for storage program.
An at least processor 910 is used to read the programmed instruction stored in an at least memory by an at least bus 930
Perform the IMAQ detection method involved by any embodiment as described above.
The above, only presently preferred embodiments of the present invention, are not intended to limit the scope of the present invention..It is any
Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in protection scope of the present invention
Within.
Claims (10)
- A kind of 1. IMAQ detection method, applied to all-in-one formula IMAQ detector, it is characterised in that including:The interface connecting plate configured by the all-in-one formula IMAQ detector connects measurand, establishes the all-in-one Communication connection between formula IMAQ detector and its measurand of connection;Configuration parameter adaptive allocation is carried out to the measurand by the communication connection of foundation, the adaptive allocation is matched somebody with somebody Put parameter be by preset data library file according to the object identity associative search of the measurand to;In measurand loading configuration parameter success, the view data generated in the measurand is gathered;Image detection is carried out to the view data collected.
- 2. the method as described in claim 1, it is characterised in that described to be configured by the all-in-one formula IMAQ detector Interface connecting plate connection measurand, establish between the all-in-one formula IMAQ detector and its measurand of connection Communication connection after, methods described also includes:Judge whether the communication connection is successfully established;If it is not, then communication Protocol Conversion firmware is loaded in the all-in-one formula IMAQ detector;The communication Protocol Conversion for being specified the measurand by the communication Protocol Conversion firmware is the all-in-one formula figure As the communication protocol that acquisition testing instrument is specified, so that the communication connection is successfully established.
- 3. the method as described in claim 1, it is characterised in that the communication connection by foundation is entered to the measurand Before the loading of row configuration parameter, methods described also includes:One-off programming burning request is initiated by described communicate to connect to the measurand, obtained raw in the measurand Into view data;Image calibration is carried out to the view data of acquisition, burning information is generated and feeds back to the measurand;The view data that the measurand is completed to generate after the write-in of burning information is received, the quilt is judged by the view data Surveying object, whether burning is successful.
- 4. the method as described in claim 1, it is characterised in that the communication connection by foundation is entered to the measurand Row configuration parameter adaptive allocation, including:The object identity of the measurand is obtained by the communication connection;Configuration parameter corresponding to measurand, is obtained according to object identity associative search in preset data library file An at least configuration parameter, associated storage object identity corresponding to some objects and configuration ginseng in the preset data library file Number;The traversal of configuration parameter loading is carried out to the measurand according to each configuration parameter, it is described by the traversal Measurand loading configuration parameter success.
- 5. method as claimed in claim 4, it is characterised in that described to be carried out according to each configuration parameter to the measurand The traversal of configuration parameter loading, configuration parameter success is loaded by the traversal measurand, including:The configuration parameter arrived according to associative search generates configuration parameter list;According in the configuration parameter list configuration parameter put in order by the configuration parameter in the configuration parameter list according to It is secondary to be loaded onto the measurand;The measurand loading configuration parameter success is treated, stops the traversal.
- 6. method as claimed in claim 5, it is characterised in that the row according to configuration parameter in the configuration parameter list Configuration parameter in the configuration parameter list is loaded onto the measurand by row order successively, including:A wherein configuration parameter in the configuration parameter list is loaded onto the measurand;The working condition that the measurand is read by the communication connection is identified, and the working condition mark is used to indicate that Whether the measurand is in normal operating conditions;Indicate that the measurand is not in normal operating conditions in working condition mark, then by the configuration parameter list In later configuration parameter be loaded onto the measurand.
- 7. the method as described in claim 1, it is characterised in that methods described also includes:In measurand loading configuration parameter success, the configuration parameter for being successfully loaded onto the measurand is stored;Correspondingly, methods described also includes:The measurand of the all-in-one formula IMAQ detector connection is changed, and establishes the all-in-one formula image and adopts Collect the communication connection between detector and the measurand of replacing;The configuration parameter of storage is loaded onto to the measurand of replacing by the communication connection of foundation;If the loading is unsuccessful, redirects and enter through the communication connection of foundation configuration ginseng is carried out to the measurand of replacing Number load step.
- 8. the method as described in claim 1, it is characterised in that the described pair of view data collected carries out image detection, Including:Two-way is divided to transmit the view data collected, wherein view data is transmitted to the all-in-one formula IMAQ all the way The processor of detector configuration, by the processor, to this, wherein view data carries out the first specified classification image inspection all the way Survey;The interface that another way view data is configured by the all-in-one formula IMAQ detector is transmitted to host computer, to pass through The host computer carries out second to the another way view data and specifies classification image detection.
- A kind of 9. IMAQ detection means, it is characterised in that including:Module is established in communication connection, and the interface connecting plate for being configured by the all-in-one formula IMAQ detector connects quilt Survey object, the communication connection established between the all-in-one formula IMAQ detector and its measurand of connection;Configuration parameter load-on module, configuration parameter is carried out to the measurand for the communication connection by foundation and adaptively added Carry, the configuration parameter of the adaptive allocation is by being associated in preset data library file according to the object identity of the measurand Find;Image data acquiring module, in measurand loading configuration parameter success, gathering in the measurand The view data of generation;Image detection module, for carrying out image detection to the view data collected.
- 10. a kind of all-in-one formula IMAQ detector, it is characterised in that including an at least processor, an at least interface, at least One bus and at least a memory, an at least memory instruct for storage program, and an at least processor is used for Pass through the programmed instruction execution such as any one of claim 1 to 8 institute stored in an at least memory described in the reading of an at least bus The IMAQ detection method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710592892.2A CN107371014A (en) | 2017-07-19 | 2017-07-19 | IMAQ detection method, device and all-in-one formula IMAQ detector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710592892.2A CN107371014A (en) | 2017-07-19 | 2017-07-19 | IMAQ detection method, device and all-in-one formula IMAQ detector |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107371014A true CN107371014A (en) | 2017-11-21 |
Family
ID=60308305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710592892.2A Pending CN107371014A (en) | 2017-07-19 | 2017-07-19 | IMAQ detection method, device and all-in-one formula IMAQ detector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107371014A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225812A (en) * | 2022-06-01 | 2022-10-21 | 合肥移瑞通信技术有限公司 | Camera control method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364265A (en) * | 2008-09-18 | 2009-02-11 | 北京中星微电子有限公司 | Method for auto configuring equipment parameter of electronic appliance and ccd camera |
CN105472249A (en) * | 2015-12-24 | 2016-04-06 | 惠州Tcl移动通信有限公司 | Compatible control method and device for camera |
CN106060532A (en) * | 2016-05-26 | 2016-10-26 | 信利光电股份有限公司 | Detection platform |
CN106250470A (en) * | 2016-07-28 | 2016-12-21 | 广州小百合信息技术有限公司 | Information method for burn-recording and device |
-
2017
- 2017-07-19 CN CN201710592892.2A patent/CN107371014A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364265A (en) * | 2008-09-18 | 2009-02-11 | 北京中星微电子有限公司 | Method for auto configuring equipment parameter of electronic appliance and ccd camera |
CN105472249A (en) * | 2015-12-24 | 2016-04-06 | 惠州Tcl移动通信有限公司 | Compatible control method and device for camera |
CN106060532A (en) * | 2016-05-26 | 2016-10-26 | 信利光电股份有限公司 | Detection platform |
CN106250470A (en) * | 2016-07-28 | 2016-12-21 | 广州小百合信息技术有限公司 | Information method for burn-recording and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225812A (en) * | 2022-06-01 | 2022-10-21 | 合肥移瑞通信技术有限公司 | Camera control method and device, electronic equipment and storage medium |
CN115225812B (en) * | 2022-06-01 | 2024-04-09 | 合肥移瑞通信技术有限公司 | Camera control method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6867555B2 (en) | Automated optical inspection system based on CPU + GPU + FPGA architecture | |
CN107231554A (en) | Method for burn-recording, device and the IMAQ detection all-in-one of camera module | |
CN108259890A (en) | A kind of information collection bridge-set and imaging sensor quality automatic checkout equipment | |
CN109839557A (en) | Automatization test system, method and test platform | |
CN110958411A (en) | Image acquisition control method and device based on FPGA | |
US20200333759A1 (en) | Facility diagnosis method using facility diagnosis system | |
CN105911451A (en) | Chip test method and chip test device | |
CN110154029B (en) | Online control and simulation test system and method for robot based on LABVIEW | |
CN107631750A (en) | For testing the method, apparatus, terminal and storage medium of terminal to be measured | |
CN107579787A (en) | The Wifi performances automatic testing method and storage medium of a kind of machine, equipment | |
WO2021175257A1 (en) | Method for configuration updating of led display screen, receiving card, led display module, and led display screen | |
CN107295250B (en) | Camera adjustment method and its system | |
CN107371014A (en) | IMAQ detection method, device and all-in-one formula IMAQ detector | |
CN112113968A (en) | Detection system, visual detection device and detection method | |
CN111830039A (en) | Intelligent product quality detection method and device | |
CN107262393A (en) | IMAQ detects all-in-one and its IMAQ detection method, device | |
CN113109364B (en) | Method and device for detecting chip defects | |
CN109773790B (en) | Intelligent detection system and method based on machine vision and BIT technology | |
CN107396091A (en) | IMAQ detection method and system | |
CN103364710B (en) | A kind of bga chip screening plant and screening technique | |
CN110940315B (en) | Plug-in photo acquisition equipment for relay protection and safety automatic device and automatic comparison method | |
CN111240965A (en) | ISP real-time debugging method and system | |
TW201404120A (en) | Method and system for testing digital imaging devices | |
KR102473141B1 (en) | Method and system for determining good/defective products using artificial intelligence-based PLC module | |
CN113960441A (en) | Silicon optical chip automatic test system, method, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171121 |