Рет қаралды 25,171
Code: github.com/MrL...
This program can detecting object with measuring distance and degree, using C# with AForge .net framework.
The main method for color object detection by Blob counter algorithm.
If you using this method, then you can detecting as follows:
red circle, rectangle, triangle
blue circle, rectangle, triangle
green circle, rectangle, triangle
the process of this method as follow:
1. color filtering by Euclidean filtering(R, G, B).
2. the grayscale filtering based on color filtered image.
3. In this step, you can choose the blur option. Applied blur option(or not),
this method donging Sobel edge filtering based on grayscale(or grayscale + blur) image.
4. the binary filtering based on edge filter image.
5. Finally, detecting object, distance from the camera and degree are expreed on picturebox 1.