LarsG21 / Darts_Project

This Project is used for automatic dart scoring using computer vision/
38 stars 6 forks source link

2nd dart in your demo video #3

Open Dennis-89 opened 8 months ago

Dennis-89 commented 8 months ago

Hi,

first of all, great work!

Maybe I want to do something similar, so I looked around how other did it. I saw your video and it looks like in the 2nd round the 2nd dart is in position "20" but your program detected position "1". It's great if you are the 1st Player, but for the 2nd it's bad :D

Is this a bug and did you fix it or did I see this wrong?

Thanks!

LarsG21 commented 8 months ago

Hi, thank you :D No, you saw that correct. It is a common bug with our implementation. You can see in the video the little bright spot underneath the dart on the "Threshold" Window. This is the shadow of the dart, which is also detected and causes the fitted triangle to be too big. Therefore, the tip is too far to the right and gets detected as a 1. A possible solution was to enhance the lighting to be even from all sides, so avoid such shadows. For example, you could use a light ring like shown in the README. Or maybe find a way to exclude such shadows from the triangle calculation.

Dennis-89 commented 8 months ago

Thanks for your replay.

At the moment I am working on another project, but when this one is finished I will do a test with your code. It is very interesting and a good opportunity to do something with opencv. I'm also thinking about a webserver to show the GUI in a browser, then you can use a tablet or smartphone and don't have to mount a display near the dartboard. That's good for dart beginners and for the display :D

When I start the project based on your code, I will fork your git so you can see it.