android - How to detect a white document (or a card) on a white background (opencv) -
i using opencv , android .
the opencv function "findcontours" returns detected contours white document on darker background .
whereas white document on white(or lighter) background not detect .
could please suggest way in android using opencv .
thanks in advance :)
the opencv function "findcontours" returns detected contours white document on darker background .
this not accurate. according opencv documentation findcontours(...)
"finds contours in binary image".
therefore you'll need binarize image first, either using threshold or more sophisticated approach. there nice tutorials on matter, this one. though many of them c++ api, of opencv methods have counterparts in java.
Comments
Post a Comment