Skip to content

How to use org.bytedeco.opencv.global.opencv_imgproc.polylines method #1778

Answered by saudet
NicolasDrapier asked this question in Q&A
Discussion options

You must be logged in to vote

It's usually easier to look at some sample code in C++ and port that, for example:
https://github.com/opencv/opencv/blob/master/samples/dnn/scene_text_detection.cpp#L109
But I see that uses std::vector<std::vector<cv::Point>>, which isn't mapped... We should be able to get this working pretty easily with MatVector though. If you want to draw a single polygon with those points, something like this should work:

polylines(mat, new MatVector(new Mat(pts.position(0))), false, ...)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NicolasDrapier
Comment options

@NicolasDrapier
Comment options

Answer selected by NicolasDrapier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants