You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested to use this pkg to draw and measure contours on object in a video image. This is a fairly classic non-ML use of computer vision for online/streaming object shape and size analysis. We filter the image a bit, then use an algorithm to find the outline (or contour) of the object of interest and collect some metrics about the object via the outline. OpenCV is ideal for this because the implementation of the Canny algorithm it uses for edge detection is excellent and incredibly fast.
This is how I'm doing it in Python (which I know nothing about, code is in a gist here):
Would it be possible to make some of these opencv functions available as R functions this pkg?
cv2.threshold
cv2.dilate
cv2.erode
cv2.morphologyEx
cv2.cvtColor
cv2.drawContours
cv2.contourArea
cv2.minAreaRect
cv2.moments
I can see the C++ versions of these in src/util.cpp in this repo, but I'm not sure how to wrap them so I can use them with R. Thanks!
The text was updated successfully, but these errors were encountered:
benmarwick
changed the title
how to draw contours?
how to do edge detection, draw and measure contours?
May 25, 2019
I'm interested to use this pkg to draw and measure contours on object in a video image. This is a fairly classic non-ML use of computer vision for online/streaming object shape and size analysis. We filter the image a bit, then use an algorithm to find the outline (or contour) of the object of interest and collect some metrics about the object via the outline. OpenCV is ideal for this because the implementation of the Canny algorithm it uses for edge detection is excellent and incredibly fast.
This is how I'm doing it in Python (which I know nothing about, code is in a gist here):
Would it be possible to make some of these opencv functions available as R functions this pkg?
I can see the C++ versions of these in src/util.cpp in this repo, but I'm not sure how to wrap them so I can use them with R. Thanks!
The text was updated successfully, but these errors were encountered: