CHAPTER 10. KEYED OPTICAL LOCK
77
•
– Use a
Property Node
to retrieve a rectan-
gular ROI from the image display.
•
Some tasks should execute only one time after a Boolean flag sets. For
example, the
valid key
flag is clear when no valid key is visible and is
set the entire time a valid key is in view. However, the
unlock-wait-
lock
task should execute exactly one time
only
when the
valid key
flag first
changes
from clear to set. Study
to learn how to create a subVI that detects when a flag changes state.
10.2
Development Tips
Representative Images
•
Set up the camera on a table-top camera copy stand with an optically
black background. Adjust the field of view to accommodate a single key
or perhaps several keys. Allow for the key to be rotated to any angle. Set
all of the camera attributes to manual, and adjust the brightness, contrast,
and exposure to ensure that the background looks completely black while
the foreground (metal key) maintains good contrast.
•
Experiment with the available resolutions. Strive for a balance between
good resolution on the key cuts and high frame rate.
•
Select one of the keys as the “master key” and collect images of the key
at various angles of rotation. Be sure to create one image in which the flat
side of the key is horizontal, i.e., aligned with the image rows.
•
Flip the key onto its back side and repeat. Again, ensure that one of the
images shows the key’s flat side as horizontal.
•
Select another key that is of the same type but with a different cut pattern.
Collect several images at various rotation angles.
•
Select a key that is obviously of a different type and repeat.
•
Optional: Collect several images of multiple keys in the field of view,
some containing the master key and some not.
(2:29)
(6:58)
Содержание NI myRIO
Страница 1: ...Ed Doering NI myRIO Vision Essentials Guide...
Страница 2: ......
Страница 11: ...Part I Machine Vision Fundamentals...
Страница 12: ......
Страница 31: ...Part II Introductory Machine Vision Projects...
Страница 32: ......
Страница 38: ...32 CHAPTER 4 CAMERA SETUP...
Страница 44: ...38 CHAPTER 5 STEREO VISION...
Страница 61: ...Part III Machine Vision Application Projects...
Страница 62: ......
Страница 72: ...66 CHAPTER 8 COIN COUNTER...
Страница 85: ...CHAPTER 10 KEYED OPTICAL LOCK 79 Figure 10 3 Typical expected results for the Geometric Matching step...
Страница 86: ...80 CHAPTER 10 KEYED OPTICAL LOCK...
Страница 92: ...86 CHAPTER 11 DMM TEST STAND...
Страница 134: ...128 CHAPTER 17 MARBLE SORTER...
Страница 135: ...Part IV Appendices...
Страница 136: ......
Страница 143: ...B MXPandMSPConnectorDiagrams Figure B 1 MXP myRIO eXpansion Port connector diagram...
Страница 144: ...138 APPENDIX B MXP AND MSP CONNECTOR DIAGRAMS Figure B 2 MSP miniSystem Port connector diagram...
Страница 148: ...142 APPENDIX D BUILD A STAND ALONE APPLICATION...
Страница 149: ...E MarbleSorterConstructionDetails To be continued...
Страница 150: ...144 APPENDIX E MARBLE SORTER CONSTRUCTION DETAILS...