So i am trying to detect some test tubes with a webcam, so i can pick them up using a robot. I have successfully detected the straight lines and from there i can get the position and orientation of the line. For this task i am using OpenCV library for Processing and then using the linedetection (see picture)
What i need now is to figure out what is up and down on the tube. Hence i would like to detect the half circle which correspond to the bottom of the tube. The problem here being that HoughCircles are not a part of the OpenCV library for processing. It is however a part of the OpenCV library for java (or Python).
Are there anyway to install the full Java OpenCV package for Processing? I could not get it to work, since there was no jar. extension in the OpenCV (for Java) download.
Any other way of detecting a half circle in Processing are welcome as well.