-2

I get the image through the webcam. Then I want to process the image and calculate the distance to a certain object in the image from the right edge of the image. Subsequently, I want to give this distance as the input to the fuzzy controller.

How can I do this? How can I link the image processing output to the fuzzy controller?

1 Answers1

0

To get distance you need to work with a depth camera or stereo camera or stereo with a projector.

Stereo camera and projector are use to do triangulation. You can have a look to image calibration/rectification.

At the end, you want to compute a disparity map.

Have a look to this to understand more : Disparity This article is really nice too : here

Community
  • 1
  • 1
Vuwox
  • 2,293
  • 17
  • 31
  • Can't I use a simple technique like edge detection for this? Further how can I link this image processing output to a fuzzy controller. For example say I'm doing this image processing part in a .m file. Can I give the output of the .m file (the distance calculated) as the input to the fuzzy controller block in the Matlab Simulink? – user1603409 Oct 17 '13 at 06:06
  • Fuzzy can be use as block or as script in matlab directly, so their a way to pass disparity map as input data for sure. I don't know what fuzzy do or how simulink works, sorry. – Vuwox Oct 17 '13 at 11:52