Ask Your Question

Revision history [back]

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.

image description