
CHAPTER 14. COMPONENT PLACEMENT INSPECTOR
105
with
Add Array Elements
that indicates the number of defects found for
a given component color.
T
IP
:
Use the “Quick Drop” shortcut (Ctrl + space bar) to look up
and place a LabVIEW element by name. See Appendix C on page 139
for more LabVIEW tips.
14.2
Development Tips
Representative Images
•
Create a mock-up of a printed circuit board with properly-placed compo-
nents similar to that pictured in Figure 14.1 on page 101. Use several of
each color and size of brick.
•
Set up the camera on a table-top camera copy stand and adjust the field
of view to accommodate a single board. Allow for the board to be tilted
and translated somewhat. Adjust the camera mode to obtain reasonably
high resolution and the camera attributes to obtain good contrast without
over or underexposure.
NOTE
:
Ensure that the camera’s physical setup remains undisturbed
throughout this project! The conditions under which you define the
color matching ROIs must be identical to the way that your finished
vision application collects images of the board.
•
Collect one image to serve as the basis of your color matching ROIs. Align
the board with the pixel array to the best of your ability.
•
Collect additional images of the defect-free board with varying amounts
of translation and rotation. Use these images during vision script develop-
ment to verify that your script detects zero defects even when the board
orientation changes.
•
Collect multiple views of each product label defect category, including
missing bricks, swapped bricks, etc.
•
If you plan to use the “image flip” option in the
Machine Vision App
template you will want to collect all of your images so that they appear
in the same orientation when you develop your script. Consider one of
these two options:
–
Run either the
Machine Vision App
project or one of your exist-
ing projects with the “image flip” option enabled, adjust the camera
Содержание 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...