Ask Your Question
0

Detect valve position without colors on a video

asked 2019-10-08 09:32:02 -0600

updated 2019-11-26 05:08:46 -0600

Hello,

I can't find a solution for my problem and I need your help. I have to create an application to detect if a valve is open or close like this :

https://www.youtube.com/watch?v=VY92f...

Some valves had a handle with color, but some valve don't, I dont know how I am going to resolve this problem to detect the valve position "close" or "open" without colors, I can't use machine learning because I have only 3 valves without colors and I can't create a large database.

image description

Any help, i can't find a solution, I tried template matching and it's not working.

Edit 1 : I add a more clear images :

Valve opened :

image description

Valve closed :

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-11-27 01:52:26 -0600

Ziri gravatar image

updated 2019-11-27 02:45:32 -0600

This is not an opencv problem ... you'll need some edge based template matching (rotation invariant). If your camera is fixed that's even easier.

edit flag offensive delete link more

Comments

Thank you for your answer, unfortunately my camera is not fixed

Kitnos gravatar imageKitnos ( 2019-11-27 02:15:49 -0600 )edit

Take a look at the generalize hough for edge based template matching . you can also try SIFT

Ziri gravatar imageZiri ( 2019-11-27 02:47:06 -0600 )edit

I will try "generalize hough for edge based template matching". I already tested SIFT and SURF and ORB and they do not work, they can not find interesting points of interest on the valve.

Kitnos gravatar imageKitnos ( 2019-11-27 03:16:25 -0600 )edit

There is a posibility to add colores, especial ones like pink ir orange at valves for better detection? Colors there are dificult for recognition. All grays..

Greydel gravatar imageGreydel ( 2019-12-04 01:09:53 -0600 )edit

@Greydel Yes, that's the last solution that I have. I will add some "marking colors", for example a red small rectangle or triangle near the valve.

Kitnos gravatar imageKitnos ( 2019-12-04 02:44:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-10-08 09:32:02 -0600

Seen: 447 times

Last updated: Nov 27 '19