09-22-2018 03:20 PM
Hi all,
I need to make make machine vision application known as pattern matching but before making pattern matching I need to process image in order:
1) Acquire RGB image with webcam
2) Convert to 8-bit Grayscale image
3) Covert to Binary image (threasholding)
4) Apply Danielsson function
5) Watershed and segment image
6) Lable image
7) Detect geometric contoure of the shapes
😎 Learn and train pattern matching
I am new to image processing and I have problem on step 7. I have applied Filters as Gausian and Sobel filter on grayscaled image to smooth the image and extract outer contur of the objects. Threasholded the image and made it better with Grayscale Morphology. Before step 7 I need to represent shapes on an image and overal them with text that says what shape is represented. The tricky part is that the application needs to be scale and rotation invariant on trained patterns. I am not sure what to do between step 6 and 8 and also I am not sure that I am doing things correctly.Can someone help me with this task?
I am working on Labview 2013 with VAS and VDM modules. You can find attached VI-a, Snap Image and screenshot of the front panel below.
ps.
You travel through application by clicking the buttons in order because the buttons are connected to event structure.
09-24-2018 07:40 AM
That's basically the nr. 1 problem in image processing: getting the computer to recognize shapes. AKA (object) classification.
It might not be possible, or just hard, or even easy, all depending on the objects you try to recognize. You need some classification algorithm, and there's not one that fits every problem.
For instance, the object labeling algorithm returns particle heuristics (ratio's, concavity and such). If those are distinguishable enough to separate the objects you have, you could use those. That would be fairly easy.
09-24-2018 08:52 AM
When I tested the program, gray scale morphology removed all features from the program so there were no rectangles to recognize. Perhaps I am missing a setting in your program?