Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is the operation schematic diagram that the target that first embodiment of the invention provides obtains equipment 10.Target
It can be etching machines, laser cutting machine etc. that mark, which obtains equipment 10,.Target obtains equipment 10 and is used to capture the target on workpiece 20
Mark 21 processes workpiece 10 with facilitating to position to workpiece 20.Target 21 in present embodiment, on workpiece 20
For circle.In other embodiments, the shape of target 21 other any can play the role of the several of label for cross etc.
What figure.
It includes photographic device 11 that target, which obtains equipment 10,.Photographic device 11 includes camera lens 111 and imaging sensor 112.Figure
Form 1121 (shown in Fig. 3) as sensor 112 with size adjustable, imaging sensor 112 to through camera lens 111 for being sent to
The light of form 1121 carries out induction and imaging, to obtain the target image 1123 for carrying out target acquisition.
In present embodiment, imaging sensor 112 is charge coupled cell (Charge Coupled Device, CCD).
In other embodiments, imaging sensor 112 can also be complementary metal oxide semiconductor (Complementary
Meta-oxide Semiconductor, CMOS) sensor.Photographic device 11 further includes camera lens light source 114 and steering prism
115.The output end for turning to prism 115 is connect with camera lens 111, turns to prism 115 towards workpiece 20.Camera lens light source 114 is for shining
Workpiece 20 is penetrated, image is made to pass to camera lens 111 by turning to prism 115.
Referring to Fig. 2, Fig. 2 is the structural block diagram of photographic device 11.Photographic device 11 further includes memory 116 and processor
118.Imaging sensor 112 and memory 116 are electrically connected with processor 118.
Memory 116 is for being pre-stored target template.In present embodiment, the target template is pre-generated and is stored in
In memory 116, the quantity of the target template be it is multiple, different workpiece types corresponds to different target templates.
Processor 118 is used to the target image 1123 that imaging sensor 112 captures being shown in display unit 101 (such as Fig. 1 institute
Show).Processor 118 is also used to determine imaging sensor according to by the adjustment instruction of the input (as shown in Figure 1) of operation portion 103
The 112 target window sizes for needing to adjust, and be configured by window dimension of the preset algorithm to imaging sensor 112
The window dimension of imaging sensor 112 is adjusted to target window size.In present embodiment, the preset algorithm includes image
Recognizer, processor 118 identify target 1125 from the target image 1123 by described image recognizer.
Wherein, the adjustment instruction of the input may include the value of target window size, or the adjusting width including window dimension
The information of degree and direction.When the adjustment instruction of input includes the value of target window size, according to the adjustment instruction, processor
The size of form 1121 can directly be adjusted and arrives target window size by 118.When the adjustment instruction of input includes window dimension
When the amplitude of accommodation and the information in direction, processor 118 can also respond the adjustment instruction, increased by the amplitude of accommodation or reduced
The size of form 1121 is set gradually to be adjusted to target window size.
In present embodiment, display unit 101 is a display screen, and operation portion 103 is touch screen.Operation portion 103 and display unit
101 are stacked, and user inputs the size of adjustment instruction and input setting form 1121 in such a way that touch-control inputs.If user
The new form 1121 being arranged by operation portion 103 is having a size of target window size.In other embodiments, operation portion 103
Structure can also be operated for key etc..Display unit 101, operation portion 103 and photographic device 11 can be independently arranged, display unit 101,
Operation portion 103 can also be integrated on photographic device 11.
Processor 118 is also used to judge according to the target image 1123 that target obtains whether equipment 10 positions normally, if
Processor 118 determines that target obtains equipment 10 and positions exception, and processor 118 controls an output device and exports the first reminder message,
Exception is positioned for reminding user's target to obtain equipment 10.In present embodiment, the output device includes display unit 101.It can
To understand, the output device may also include sounding device, such as loudspeaker, voice device, buzzer etc..
Specifically, referring to Fig. 3, Fig. 3 is the view that target obtains imaging sensor 112 when equipment 10 positions normal situation
1121 schematic diagram of window.When target obtains equipment 10 and positions normal situation, the quantity of the target 1125 in form 1121 is 1
It is a.Processor 118 is analyzed and processed according to the target image 1123 that the target template captures imaging sensor 112,
To identify the target 1125 in the target image 1123 and obtain location information according to the target 1125 identified.Institute
It states position that location information is workpiece 20 or target 21 is located at position on workpiece 20, the target 21 is located on workpiece 20
Position is the position to be processed of workpiece 20.The target obtains equipment 10 and carries out processing work to workpiece 20 according to the location information
Industry, to improve the precision and processing efficiency of processing.
Processor 118 is when the target 1125 identified according to determines and obtains location information failure, then described in judgement
Target obtains equipment 10 and positions exception.In present embodiment, referring to Fig. 4, when Fig. 4 show target acquisition equipment positioning exception
One schematic diagram of the form of imaging sensor has target 1125 in form 1121, but the quantity of target 1125 is more than 1, due to
The quantity of target 1125 is more than 1, and processor 118 identifies target 1125 but can not be determining pair according to the target 1125 identified
Which target 21 on workpiece 20 is positioned, and then can not obtain positioning letter by image recognition target and according to the target
Breath obtains equipment 10 so as to cause target and obtains location information failure.
In the case where processor 118 determines that target acquisition equipment 10 positions exception, processor 118 is also used to control display
Portion 101 exports the first reminder message.First reminder message positions exception for reminding target described in user to obtain equipment 10.
In the case where processor 118 determines that target acquisition equipment 10 positions exception, processor 118 is also used to control display
Portion 101 exports the second reminder message.Second reminder message is for reminding whether user needs setting window dimension.This embodiment party
In formula, after display unit 101 pops up first reminder message, processor 118 controls display unit 101 after preset time threshold values
Pop up second reminder message.It is reminded it is appreciated that processor 118 also can control display unit 101 to export described first simultaneously
Message and second reminder message.
Processor 118 is also used to be directed to the operation of second reminder message in the user detected according to operation portion 103
When movement, the size of form is adjusted by the adjustment instruction that operation portion 103 inputs according to user.Specifically, the output
Device includes display unit 101, and operation portion 103 is touch screen, and display unit 101 and operation portion 103 are combined into touch display screen, is handled
Device 118 detects that user need to adjust setting form ruler for being used to indicate for second reminder message input in operation portion 103
When very little instruction operates, control display unit 101 switches to size input operation interface, and user is facilitated to carry out target window size
Input operation.
Operation portion 103 detects user in the operational motion of the size input operation interface, and then obtains user's input and set
The target window size is simultaneously sent to processor 118 by the target window size set.Processor 118 is also used to mesh described in comparison
Mark window dimension and pre-set dimension range.If the target window size, within the scope of the pre-set dimension, processor 118 controls
Imaging sensor 112 is according to the size of the target window size adjusting form 1121.If the target window size is not in institute
It states within the scope of pre-set dimension, processor 118 controls display unit 101 and exports alarm signal.The output alarm signal can be to locate
It manages device 118 and controls the second reminder message that display unit 101 exports.It is appreciated that the alarm signal may be other information,
Such as the alarm signal can be the first reminder message.
In present embodiment, referring to Fig. 3, form 1121 be it is rectangular, the size on the first party side of form 1121 is set
For d1, form 1121 and size of the first party in adjacent second party are set as d2, the window dimension be characterized as d1 ×
d2.The pre-set dimension range includes form full-size and form minimum dimension, and the size of form 1121 can be described pre-
If being adjusted between size range.Using the center of form 1121 as datum mark, the center is processor 118
First party while perpendicular bisector and the perpendicular bisector when second party crossover location, the control of processor 118 carries out form 1121
It reduces or expands.When target obtains the positioning normal work of equipment 10, target 1125 is located at the center of form 1121.It can manage
Solution, do not limit form 1121 be it is rectangular, form 1121 can be other shapes, such as round.
It is briefly described as an example below.Referring to Fig. 5, Fig. 5 is the form for the imaging sensor that target obtains equipment
Before size adjusting and schematic diagram adjusted.If form full-size is 10mm × 10mm, form minimum dimension is 3mm × 3mm,
If the form 1121 of imaging sensor 112 does not adjust preceding having a size of first window dimension.When operation portion 103 detects d1's
Input value is 4 and the input value of d2 is 4, and the target window is having a size of 4 × 4.Due to 4 × 4 be located at the pre-set dimension range,
Processor 118 determines the target window size in the pre-set dimension range, and processor 118 is according to the target window size
Adjust the size of the form 1121.As it can be seen that the target image that the form before adjustment is shown includes the image of two targets, and pass through
The target image 1123 that form 1121 after size adjusting is shown only includes 1 target 1125.
When operation portion 103 detects that user is not required to adjustment setting view for being used to indicate for second reminder message input
When the instruction operation of window size, the adjustment instruction that is not required to that the generation user of operation portion 103 is not required to adjustment setting window dimension is extremely handled
Device 118.Processor 118 stops operation according to the adjustment instruction control target acquisition equipment 10 that is not required to.
When obtaining equipment 10 using target, target obtains equipment 10 and workpiece 20 carries out Primary Location, and camera lens light source 114 shines
Workpiece 20 is penetrated, image passes to camera lens 111 by turning to prism 115.Imaging sensor 112 captures initial target image, wherein one
Target 1125 is located at the center of form 1121.
The initial target image is shown in display unit 101 by processor 118.Processor 118 is according to the initial target
Image judges that target obtains whether equipment 10 positions normally.Determine that target obtains equipment 10 and positions abnormal feelings in processor 118
Under condition, processor 118 controls display unit 101 and exports the first reminder message and the second reminder message.
When target acquisition equipment 10 positions abnormal.User inputs adjustment instruction, 118 basis of processor by operation portion 103
The adjustment instruction control display unit 101 switches to size input operation interface.It is defeated in the size that operation portion 103 detects user
Enter the operational motion of operation interface and then obtain the target window size that user inputs setting, so that the target in target image 1123
Quantity only 1 of mark 1125.The target window size of processor 118 and pre-set dimension range.If the target window
Within the scope of the pre-set dimension, processor 118 controls imaging sensor 112 and is regarded according to the target window size adjusting size
The size of window 1121.112 pairs of imaging sensor through camera lens 111 be sent to it is sized after form 1121 light carry out induction and
Imaging, to obtain the target image for carrying out target acquisition.
The target that present embodiment provides obtains equipment 10, and the form 1121 of imaging sensor 112 is adjustable, so that described
The quantity of target in form 1121 is no more than 1, facilitates target to obtain grabbing for equipment 10 and targets position.In addition, target acquisition is set
Standby 10 only by adusting form 1121 size, the mechanical location and other parameters of equipment 10 are obtained without changing target, is changed
For it, without to target obtain equipment 10 target positioning accuracy of grabbing be adjusted and/or correct, further increase target acquisition
The ease of use of equipment 10.When the form 1121 of imaging sensor 112 becomes smaller, for target 21 spacing requirement also
Reduce, i.e., the distance between two targets 21 can suitably become smaller.When the target obtains equipment 10 and is corrected, processing
More targets can be processed in range grab target correction, improve process equipment precision.
Referring to Fig. 6, Fig. 6 is a kind of schematic diagram for photographic device 31 that second embodiment of the invention provides.Camera shooting dress
It is roughly the same with the photographic device 11 that first embodiment provides to set 31.Fig. 7 a is please referred to, Fig. 7 a is the flat of iris ring mechanism
Face schematic diagram, difference are that photographic device 31 further includes the iris ring mechanism 317 being detachably mounted on camera lens 311, can
Darkening loop mechanism 317 is set to 311 front of camera lens.Processor determines that described image sensor needs to adjust according to adjustment instruction and arrives
Target window size, and control iris ring mechanism 317 and aperture scale be adjusted to size corresponding with target window size,
And the form of described image sensor is made to be adjusted to the target window size.
Fig. 7 b is please referred to, Fig. 7 b is the side view of iris ring mechanism.Iris ring mechanism 317 has adjustable multiple light
Size is enclosed, for adjusting the light-inletting quantity for entering camera lens 311, so as to adjust the window dimension of described image sensor.When can darkening
When loop mechanism 317 is the first aperture scale, the form of described image sensor is the first window dimension;When iris ring mechanism
317 when being the second aperture scale, and the form of described image sensor is the second window dimension.
Please continue to refer to Fig. 7 a and 7b, in present embodiment, iris ring mechanism 317 includes aperture frame 3171, Duo Geguang
Enclose blade 3173 and regulating part 3175.Aperture frame 3171 is fixed on the front end of camera lens 311, and multiple aperture blades 3173 can be adjusted
Ground is installed on aperture frame 3171, and the size in the gap formed between multiple aperture blades 3173 is iris ring mechanism 317
Aperture scale, regulating part 3175 is for driving aperture blades 3173 to move so that aperture frame 3171 is unfolded or is contained in aperture frame
3171 and adjust the size in the gap formed between multiple aperture blades 3173, so as to adjust the aperture of iris ring mechanism 317
Size.
If the outer diameter of iris ring mechanism 317 is A, if the maximum inner diameter of iris ring mechanism 317 is B, iris ring machine
The minimum diameter of structure 317 is C, if the outer diameter of camera lens 311 is D.In present embodiment, when iris ring mechanism 317 is the first light
When enclosing size, the form of described image sensor is the first window dimension, and first window dimension is described image sensor
Default window dimension.
Wherein, A is greater than D, is used for reserved certain space with increasing fixed device and buffering foam, the fixed device
Iris ring mechanism 317 is fixed on camera lens 311.The buffering foam be used for target obtain equipment 30 impacted when into
Row buffering;B is less than D, avoids in the case where being not required to block, normal form is shielded.
Fig. 8 a is please referred to, Fig. 8 a is that iris ring mechanism form of imaging sensor in the first aperture scale is the first view
The schematic diagram of window size.Line 301 represents the aperture scale of iris ring mechanism 317 as the first aperture scale.Region shown in line 302
For region of the form in the first window dimension of described image sensor.The diameter of the target is d.Target 3125 is located at institute
State the center of form.
Fig. 8 b is please referred to, Fig. 8 b is that iris ring mechanism form of imaging sensor in the second aperture scale is the second view
The schematic diagram of window size.Line 303 represents the aperture scale of iris ring mechanism 317 as the second aperture scale.Region shown in line 305
For region of the form in the second window dimension.The minimum diameter C of the iris ring mechanism 317 is equal to the target
The target that diameter d and the target obtain equipment obtains the sum of error (grabbing target error) Δ d.Target obtains error depending on described
Target obtains equipment precision itself.Such as the target, when obtaining equipment normal use, processing platform is moved to described image biography
When the form of sensor, the target position and the usual very little of setting position error delta d of acquisition (within common 30 μm).But the target
In 31 correction course of photographic device for obtaining equipment, the two distance can be apart from each other.So when choosing iris ring minimum diameter
This value need to be referred to.
Fig. 8 c is please referred to, Fig. 8 c is that the window dimension of described image sensor adjusts form schematic diagram preceding and adjusted.
Iris ring mechanism 317 is adjusted, makes 3173 shield portions camera lens of aperture blades, adjusts the size of the form, is made described
3125 quantity of target in form is 1.If the original dimension of the form is the first window dimension.Region shown in line 302 is
Region of the form in the first window dimension.Region shown in line 305 is region of the form after sized.
Referring to Fig. 9, Fig. 9 is the target acquisition controlling party that a kind of target that an embodiment of the present invention provides obtains equipment
Method flow chart.The target obtain control method the following steps are included:
Step 101, the window dimension of imaging sensor is adjusted.In present embodiment, referred to by the adjustment that operation portion inputs
Enable the window dimension of adjustment described image sensor, comprising: determine that described image sensor needs to adjust according to the adjustment instruction
The target window size saved, and control iris ring mechanism and aperture scale is adjusted to ruler corresponding with target window size
It is very little, and the form of described image sensor is made to be adjusted to the target window size.
Step 102, by described image sensor it is sized after form carry out photosensitive and imaging, thus
To the target image obtained for target.
Referring to Fig. 10, Figure 10 is the target acquisition control that a kind of target that an embodiment of the present invention provides obtains equipment
Method flow diagram.Target obtains equipment application in process equipment, is positioned by obtaining the target on workpiece.The target
Control method the following steps are included:
Step 201, control imaging sensor is obtained to the initial target image for being sent to form through camera lens.
In present embodiment, the initial target image is shown in display unit.It is laggard that the target obtains equipment initialization
Enter positioning operation.The target obtains the process that equipment may be at machine process or grab target correction, and the target acquisition is set
The standby target that can obtain carries out positioning operation.
Step 202, judge that the target obtains whether equipment positions normally, if it is determined that being according to the initial target image
When the no i.e. described target obtains equipment positioning exception, 203 are thened follow the steps;If it is determined that be that the i.e. described target obtains equipment positioning
Normally, 211 are thened follow the steps.
It is described to judge that the target obtains whether equipment positions just according to the initial target image in present embodiment
Often, comprising: the initial target image is analyzed and processed according to target template, to identify in the initial target image
Target and location information is obtained according to the target that identifies, location information failure is obtained according to the target identified
When, then it is abnormal to determine that the target obtains equipment positioning.The location information is the position of the location of workpiece or target on workpiece.
The target obtains equipment and is processed according to the location information.When the target obtains equipment and positions normal situation,
The quantity of target in the form is 1.The target obtains equipment and carries out processing work to workpiece according to the location information
Industry.But when the quantity of the target in the form of described image sensor is more than 1, processor can not be determined on the workpiece
Which target positioned, and then can not to the target image carry out image recognition acquire target and location information,
It is abnormal that equipment positioning is obtained so as to cause the target.
Step 203, one output device of control exports the first reminder message, fixed for reminding target described in user to obtain equipment
Position is abnormal.
In present embodiment, the output device includes display unit.
Step 204, it controls the output device and exports the second reminder message, for reminding whether user needs to adjust the view
Window size.
Step 205, operation portion detection user is directed to the operational motion of second reminder message, judges that user is intended to true
Whether the form for determining described image sensor needs to adjust to target window size.Detect user for described in the operation portion
The input of second reminder message generates adjustment instruction when being used to indicate the instruction operation that need to adjust setting window dimension, executes step
206, the instruction operation for being not required to adjustment and window dimension being set is used to indicate for second reminder message input when detecting
Shi Zhihang step 210.
In present embodiment, the operation portion detection user is directed to the operational motion of second reminder message.The behaviour
The portion of work can be the input units such as touch screen, keyboard.
Step 206, the display unit is controlled according to the adjustment instruction and switches to size input operation interface, facilitate user
Carry out the input operation of target window size.
Step 207, it obtains user and passes through the target window size of operation portion input setting.In present embodiment, use
Family inputs setting target window size by operation portion, and the operation portion is able to detect that user inputs operation circle in the size
The operational motion in face and then the target window size for obtaining user's input setting.
Step 208, the target window size and pre-set dimension range, judge the target window size whether
The pre-set dimension range.If the target window size thens follow the steps 209 within the scope of the pre-set dimension, if the mesh
Mark window dimension not within the scope of the pre-set dimension then return step 204.
It is appreciated that if the target window size also not can return to step 203 within the scope of the pre-set dimension.
Step 209, the window dimension of described image sensor is adjusted according to the target window size.Present embodiment
In, the window dimension of imaging sensor is adjusted according to the target window size Control.After executing the step 209, step is returned
Rapid 201, described image sensor to through the camera lens be sent to it is sized after form light carry out induction and imaging,
To obtain the target image obtained for target.
Step 210, it controls the target and obtains equipment stopping target acquisition operation.
Step 211, target obtains equipment and carries out processing operation.
In other embodiments, step 202-208, step 210-211 can be omitted, and a kind of target obtains the target of equipment
Mark obtains control method comprising following steps: adjusts the window dimension of imaging sensor;Described image sensor is described in warp
Camera lens be sent to it is sized after form light carry out induction and imaging, thus obtain for target obtain target shadow
Picture.
It is appreciated that the operation portion can be knob, i.e., described image sensor is directly adjusted by rotating knob
Window dimension.
Target provided by the invention obtains equipment and its target obtains control method, and the form of described image sensor is adjustable
It is whole, facilitate the target to obtain equipment and obtains the target image obtained for target.It is only adjusted further, since target obtains equipment
The size of form obtains the mechanical location and other parameters of equipment without changing target, in other words, without obtaining to target
The target positioning accuracy of grabbing of equipment is adjusted and/or corrects, and further increases the ease of use that target obtains equipment.
The above is the preferred embodiment of the present invention, it is noted that those skilled in the art are come
It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as this
The protection scope of invention.