simplecv-js icon indicating copy to clipboard operation
simplecv-js copied to clipboard

Does simplecv-js support contour detection

Open shamelmerchant opened this issue 11 years ago • 2 comments

I have an image with multiple rectangles and am trying to detect them, I am new to opencv/simplecv and dont quite fully understand how to use this tool, is there some examples I could refer to?

shamelmerchant avatar Aug 17 '13 23:08 shamelmerchant

Hi there, simplecv-js is currently under development and we don't have a findContours method yet. I don't know what type of rectangles (overlapping or distinct) you are looking for .However The Blob class in SimpleCV has a isRectangle() method which might help you. The instructions for installing SimpleCV are given here

https://github.com/sightmachine/SimpleCV?source=cc

You can refer to the blob.py in "Features" module of SimpleCV source . Look for isRectangle() method and then you may write a small snippet to extract only the rectangular blobs. The instructions on how to use a particular method is given in the code. Let me know how it goes.

cheers

chaithuzz2 avatar Aug 18 '13 05:08 chaithuzz2

Thank You, I am looking for distinct (but blurred) rectangles. I am trying to implement this on a existing webpage and was looking for a javascript library to help me out.

shamelmerchant avatar Aug 18 '13 12:08 shamelmerchant