Horizontal projection of area between 2 circles
I use OpenCV library with python. I would like to make an horizontal projection of area between two circles. As show in image below.
I use OpenCV library with python. I would like to make an horizontal projection of area between two circles. As show in image below.
One Opencv tool you should try is lineIterator. Create some radial lines and step across the boundary of the bottle opening. Look at the pixel values and the change in pixel values at each step. We call this a line profile. Below are some plots of a few of these line profiles. Most have a significant "valley" that looks like the area you are interested in.
Asked: 2019-05-30 08:48:06 -0600
Seen: 290 times
Last updated: Jun 04 '19
Area of a single pixel object in OpenCV
Weird result while finding angle
cv2.perspectiveTransform() with Python
cv2 bindings incompatible with numpy.dstack function?
Getting single frames from video with python
Line detection and timestamps, video, Python
Different behaviour of OpenCV Python arguments in 32 and 64-bit systems