2

I want to detect hand drawn basic shapes - rectangles, ellipses, triangles etc.

Does anybody have an idea how to implement this?

KlimczakM
  • 11,178
  • 10
  • 55
  • 76
sagarcool89
  • 1,366
  • 8
  • 16
  • where do those shapes come from? An image file from the web? The camera? Or are they even drawn inside your app? – Matthias Bauch Feb 10 '12 at 11:03
  • We have to draw shapes on view....( free hand drawing)..Thanks – sagarcool89 Feb 10 '12 at 12:01
  • possible duplicate of [An iPhone library for shape recognition via the camera](http://stackoverflow.com/questions/2093143/an-iphone-library-for-shape-recognition-via-the-camera) – Brad Larson Feb 14 '12 at 22:56

1 Answers1

1

Maybe you can try the OpenCV library. Actually this library has the focus of computer vision, i.e. analyzing pixeldata of images and video and might be too heavy for your task. But on the other hand it is very powerfull and available on many plattforms (even on iOS). And a hand drawn image with shapes is also just a set of pixels, isn't it ;-)

You might have a look at the manual:

http://www.sciweavers.org/books/opencv-open-source-computer-vision-reference-manual

There is plenty of information about OpenCV here on stackoverflow as well. Some hints on stackoverflow are here:

DETECT the Edge of a Document in iPhoneSDK

and here

iPhone and OpenCV

Community
  • 1
  • 1
Marcus Gründler
  • 885
  • 13
  • 16
  • Thanks for your answer but i am looking for an application named iDesk.iDesk have Shape Recognizer concept So Do you have any idea ? – sagarcool89 Feb 10 '12 at 11:56
  • Actually i want to redraw the hand drawn shape with actual object at same points,say for instance Circle or Squere or rectangle..etc. If i will draw triangle with not closing end points program will detect Triangle as object and redraw with actual object. – sagarcool89 Feb 10 '12 at 11:59