Edge detection is the name for a set of mathematical methods which aim at identifying points in a digital image at which the image brightness changes sharply or, more formally, has discontinuities. Fig.1 is result of edge detection.
Fig. 1. Edge Detection.
This program use USB camera (As Fig. 2. shows) to grap raw image and then use edge detection algorithm to process the image. After processing, raw image and processed image will be written to network streams. Desktop can read images from network streams and show them in front panel.
Fig. 2. USB Camera Connection.
In edge detection algorithm, there is a parameter called color threshold to indicate how much image brightness changes sharply. There are some images to show how this threshold will affect the processing result in Fig. 3.
(a) Set Color Threshold = 20.
(b) Set Color Threshold = 60.
(c) Set Color Threshold = 100.
Fig. 3. results for different color threshold.
We can get the result from fig. 3. With higher color threshold, edge will be detected more strictly.
Here are some experiment results about the performance of myRIO and roboRio vision module.We use "640*480 30.00fps" camera model to do the test.