I'm trying to detect the bottles is attached image with opencv.
mainly position and orientation is what i'm aiming for.
I tried contour detection and Canny, but this gives me mainly very unclear images and cant see where to distinguish the bottles.
I think if i can detect following edges i can determine the orientation based on their distance
Can someone help me out with any ideas?
Thanks!
Related
It is necessary to detect on the image, on which geometric shapes (rectangle, circle, polygon, etc.) are drawn on top, different areas of these shapes. Areas can be selected with a click.
Regarding my task, it is necessary to identify the zone in which the mouse is located. I have included some images as an example.
Can you please tell me how this can be implemented? Are there any libraries or solutions?
I found a lot of articles and answers on the topic of finding contours in OpenCV, as well as finding geometric shapes in an image. But contours are found there, and I need to find all the zones. There is no understanding of how to do this and where to look further. Help me please
I have a FOV camera that has approximately 195*130 degree. So this 'lens' will put in a circle holder and the lens should not see the holder. Here's the image of not I want.
I draw 4 rectangle in Paint. There are 4 black spots which is the holder. The full red one is for censorship not there actually
If the camera image streams like that, that's a no. I need to detect that black spots and if it is like this it should gives me a error message or simply 'false'. I searched google and couldn't found this. I'm a noob of this subject but if you explain me how to do this I can connect the dots.
Thank you for your helps.
And I get the stream via USB-Capture Card. It acts like webcam.
#UPDATE1: I cropped the four corners of image then get the threshold. Made a basic if else logic and get what I want. Thank you anyway.
Try detection by generating custom HAAR filters.
Or make it simply by applying a threshold (nearly black) and look if some tiny squares in the corneres are completely black.
I wanted to find the measurement or the point of the laser light which touches that plane using OpenCV and display the measurement. I searched for many resources regarding this use case but unfortunately, I could not find anything. I will attach an image for more clarification of my use case.
the image:
If you have a vertical plane and you have a laser light. and you hit this laser light to any place on the vertical plane, then using the camera and OpenCV, it should be able to detect the particular point or the reading of the vertical plane that the laser light has touched in millimeters and display the value on the screen.
I want to detect dust in the circle in the image, but there is a problem in that the edges are detected even in areas that are not actually defective. I am curious to see if it helps to handle the border part.
I would like to know how to clean up the pixels of the partial parts.
i'm trying to detect ellipse egg-like shaped objects using opencv. color detection doesn't work properly in my case, because of different lighting angles. how would i be able to detect ellipse egg-like shapes in a real world environment?
things i've tried so far:
color detection (too many different lighting angles)
contour matching
calculating the form factor of the object
i can include my code if needed, but i don't think it will add much value.