[C# + AForge dot net] Object Detecting with measuring distance and degree

  Рет қаралды 25,171

Hyeonjun Park

Hyeonjun Park

Күн бұрын

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.

Пікірлер: 61
@ELRAYMAKERSOLDADURA
@ELRAYMAKERSOLDADURA 5 жыл бұрын
You are a genius !!! thank you !!!
@jamesdoom1338
@jamesdoom1338 6 жыл бұрын
Thank you sir because i can use this idea that related to my thesis :D
@thangnguyendinh731
@thangnguyendinh731 5 жыл бұрын
thank man you save my life
@demonyokid
@demonyokid 5 жыл бұрын
thank you.. you save my life from butsikek!..
@ersinbagryank1957
@ersinbagryank1957 6 жыл бұрын
Hello, sir. for me, these codes are written in c #. If you have the source code you'll be glad to share good work
@cissemy
@cissemy 2 жыл бұрын
Thank you. Do you have anything about document scanning with canny edge ?
@ihniwgo
@ihniwgo 7 жыл бұрын
Thanks for the link. The video is very impressive. Would you have a code snippet for using a static image (jpg or png) instead of a live image? Thanks for any help!
@techenum3600
@techenum3600 7 жыл бұрын
Park hi.for example the angle with the x axis of a corner how can ı find it?
@محمدابراهيم-ي5ت4ح
@محمدابراهيم-ي5ت4ح 7 ай бұрын
Is it possible to make a Goalkeeper at home from Arduino?
@MrBillnee
@MrBillnee 5 жыл бұрын
Hi bro, how to do it , my project run very slow , over memory ram. apter apply filter color speed process image very slow. How to do solve it ? Thank you ! are you share source code
@solider444
@solider444 6 жыл бұрын
Nice man
@khaledmobarek4184
@khaledmobarek4184 6 жыл бұрын
Hi I am really interested in this code. I need to detect a plastic card (Australian medicare card), take an auto snapshot once it is detected in a viewport area, then save image then I will use an OCR library to read content. If you can provide the code you have used so far to detect shapes realtime like shown in video, I would really appreciate it
@mansishah6268
@mansishah6268 2 жыл бұрын
hi, did you get output? i am working with monocamera with grayscale. will this work?
@ibrahimpolibatam5471
@ibrahimpolibatam5471 6 жыл бұрын
Hello Mr. Hyeonjun Park can you give me or share the your code because I got assignments from my college and this assignment is my final project please help me mr Hyeonjun Park thanks and regard me(ibrahim)
@ncap5155
@ncap5155 4 жыл бұрын
Do you have a chance to publish a video that you described by writing the source codes?
@Geeralf
@Geeralf 4 жыл бұрын
Code: github.com/MrLacquer/CSharp-image-AForge
@marlondumdumaya3409
@marlondumdumaya3409 7 жыл бұрын
can I detect a semicircle? or an arc? and then, I will detect/draw it as a circle too.
@Geeralf
@Geeralf 7 жыл бұрын
Well... I'm not sure about detect a semicircle and arc. First of all, this library can not support of detecting semicircle.
@marlondumdumaya3409
@marlondumdumaya3409 7 жыл бұрын
ahh ok, thank you
@akhilsadhu703
@akhilsadhu703 6 жыл бұрын
Thank you for sharing your code. When I was opening the project, the degree calculator was missing in the picture box and in the code. Is there another file with the code for the degree calculator? Thanks in advance for the help.
@Geeralf
@Geeralf 6 жыл бұрын
Hmm.. the degree part is not a degree... If you check that part, you understand what I saying. Actually just showing about the difference between CoM of the objects and piturebox center point.
@willsontoh7105
@willsontoh7105 6 жыл бұрын
Can share the code?
@dennisbarrios7562
@dennisbarrios7562 7 жыл бұрын
sir need help... can you help me how to detect the width and the length of an object in real-time using C# with Aforge?
@Geeralf
@Geeralf 7 жыл бұрын
When you using the BlobCounter class, you can find the property about detecting width and height of the pixel.
@Mark554QX
@Mark554QX 5 жыл бұрын
may i ask you what the way you find the distance?
@Geeralf
@Geeralf 5 жыл бұрын
well, my project is for measured distance using "one camera". So, I just reference follow url: www.pyimagesearch.com/2015/01/19/find-distance-camera-objectmarker-using-python-opencv/
@vahapbilge23
@vahapbilge23 6 жыл бұрын
hello, do you share the project codes?
@vahapbilge23
@vahapbilge23 6 жыл бұрын
very good project.. code please
@vahapbilge23
@vahapbilge23 6 жыл бұрын
how did you calculate the distance measure?
@Geeralf
@Geeralf 6 жыл бұрын
Oh, Thank your attention... and I'm so sorry late answer... Ok, this code is : github.com/Purdiding/C_Sharp.git and the distance algorithm is : www.pyimagesearch.com/2015/01/19/find-distance-camera-objectmarker-using-python-opencv/ I have referenced this blog. Thank you.
@tussharsamrit7469
@tussharsamrit7469 7 жыл бұрын
I Tried but i cant able to calculate radius of d circle Please Help Sir ASAP
@Geeralf
@Geeralf 7 жыл бұрын
Ok, you mean, your program does not work of the find distance algorithm? Are you understand about the calculation algorithm(the FindDistance method)?
@tussharsamrit7469
@tussharsamrit7469 7 жыл бұрын
No Sir i didnt i m just a trainee
@tussharsamrit7469
@tussharsamrit7469 7 жыл бұрын
can we calculate diameter in your code
@Geeralf
@Geeralf 7 жыл бұрын
Hmm... I never tried to calculate the diameter of a circle, but there is some method in here: www.aforgenet.com/forum/viewtopic.php?f=4&t=2609&start=0 check it, please.
@tussharsamrit7469
@tussharsamrit7469 7 жыл бұрын
i tried most of it but failing every time my boss is going to fire me plese do help me sire....
@skg.18artwork23
@skg.18artwork23 6 жыл бұрын
what is software which using on this video?
@Geeralf
@Geeralf 6 жыл бұрын
zool keepfly I just using that Ocam which is Windows program. It’s really easy!!!
@EscDoDev
@EscDoDev 8 жыл бұрын
Hi Hyeonjun, could you share the code?
@Geeralf
@Geeralf 8 жыл бұрын
Ok, no problem.
@Geeralf
@Geeralf 8 жыл бұрын
This is my github link: github.com/Purdiding/C_Sharp.git the source code in there.
@EscDoDev
@EscDoDev 8 жыл бұрын
Thank you so much!!!
@Geeralf
@Geeralf 7 жыл бұрын
To. Steven Osborne Hi, I think you checked as follow link: www.aforgenet.com/articles/shape_checker/ this link really helpful to your work~
@knownowify
@knownowify 7 жыл бұрын
hello sir , is there a github code for this project
@Geeralf
@Geeralf 7 жыл бұрын
This is my github link: github.com/Purdiding/C_Sharp.git
@knownowify
@knownowify 7 жыл бұрын
Thanks a alot for the link . I actually want to use it for object detection and avoiding . will it be possible to use it for it ..Just that the robot moves straight and when an obstacle comes then robot stops
@Geeralf
@Geeralf 7 жыл бұрын
Ok... If you avoiding obstacles, this system is not suitable. Cuz, the mono-camera cannot be detected the 'depth'. Anyway... I don't know your hardware system.... I recommend, the camera just using detecting object(you know... the shape, color.... things). And the avoiding function, you using other sensors, like ultra-sonic sensor or PSD sensor things.
@cristianserea6865
@cristianserea6865 6 жыл бұрын
@@Geeralf Hi, but in your video and code, there is a distance method, that return a value for distance from camera to object. I am right?
@Geeralf
@Geeralf 6 жыл бұрын
@@cristianserea6865 Yes. exactly correct!
@Soulrebelxyz
@Soulrebelxyz 6 жыл бұрын
Where's the source code?
@Geeralf
@Geeralf 6 жыл бұрын
Hi Tarek, My code as follow as link: github.com/Purdiding/C_Sharp.git
@ersinbagryank1957
@ersinbagryank1957 6 жыл бұрын
Hello, sir. Do you have an e-mail address? Do I have the opportunity to ask you a few questions?
@Geeralf
@Geeralf 6 жыл бұрын
Hi Ersin, If you have any questions, please write on here. Thanks.
@ersinbagryank1957
@ersinbagryank1957 5 жыл бұрын
​Hi@@Geeralf for my project homework I will write in c # with the laser to measure the distance and at the same time I have to write a program to calculate the diameter of the point in the wall of the laser I can get detailed information about the code you have written and how the laser in the wall of the circle can calculate how the circle. thank you
@Geeralf
@Geeralf 5 жыл бұрын
@@ersinbagryank1957 Well, I think that you can detect that your laser circle, using red color detecting functions. How was it?
@ersinbagryank1957
@ersinbagryank1957 5 жыл бұрын
@@Geeralf What about the distance and distance depending on the distance
Aforge Color Tracking !
5:40
Burak Ozeroglu
Рет қаралды 23 М.
Using ML.NET for Object Detection in WinForms
17:49
Jon Wood
Рет қаралды 23 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
R&D: PC Vision using Halcon Library
7:50
Hùng Lê Trung
Рет қаралды 4,2 М.
C# Image & Video Processing using EmguCV
21:01
EETechStuff
Рет қаралды 14 М.
REAL TIME OBJECT MEASUREMENT | OpenCV Python (2020)
53:25
Murtaza's Workshop - Robotics and AI
Рет қаралды 258 М.
Image Classification(Deep Learning) using C# ML .NET
9:20
Biswa Ranjan
Рет қаралды 11 М.
C# GPU Image Processing
28:53
EETechStuff
Рет қаралды 6 М.