-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more exemples ? #2
Comments
hello when i add the path of a cascade xml (/usr/share/opencv...) fr me it "works" no errors but it just print me one of the image and that s all ? |
Hello, there are a few examples in the samples folder. You can also use this .csv file to process a number of images for which you know the ground truth. This allows You should be able to do: Or you could point Or you could point I hope this helps. |
hi thanks for the reply will try it asap could you give me more informations about the ground-truth ? thanks a lot :) Le 14/03/2016 09:47, Greg Heinrich a écrit :
|
Hi, the ground truth is a list of images. For every image the .csv file On Mon, Mar 14, 2016 at 9:49 AM, smolleyes [email protected] wrote:
|
hi i understand :) last question how can i do the make the software learn and have more it seems working on some photos when i put them black and white before... thanks ! Le 14/03/2016 09:53, Greg Heinrich a écrit :
|
hello sorry to bother you just trying to understand the whole process so i have a list of 1000 images for exemple i create a csv file with like 50 images and the bib numbers i know as then the xml represent the format of the bib to search for ? how do we thanks ! Le 14/03/2016 09:53, Greg Heinrich a écrit :
|
Hi, I tuned the parameters for the images from monaco-athletisme.com. If you're using a different set of images you might have to update some of the parameters. Most critically, the text detection stage is quite sensitive to the scale and contrast of your images. I suggest you read the code to understand more. Also, have a look at this paper. After you get |
hi ok so i imagine that for each set of images i ll have to tune the parameters again ? (if the bib are not the same) ? i m doing some test with imagemagick for now then will see what you tuned in your code (might be cool to add it as parameters to the bin :p) thanks! |
hello ok i have some good results by converting my tests images like this first convert 12.jpg -fuzz 15% -fill 'black' -opaque '#0171fd' -colorspace Gray -contrast -normalize -scale 500 0.jpg because my bib numbers are cyan color... just have the numbers detected but rejected by asymetry angle or size :( Reject 292 on asymmetry but it s the good bnr might be cool to have this as parameter ;) thanks |
ok works well with "classic" black / white bibs but for exemple an image with 1724 and 725 bib it give me 724 and 725 won t detect more or less than 3 digits (with or without your xml and csv exemples) thanks ! |
hi still testing (very interesting!) so if i want to create a xml i have to create my cvs file with images and corresponding bib numbers first then use the -train parameter if i understand, problem when i use the -train param i have an error
|
Some of the text detection parameters can be customized from the The Make good note of this line. During inference this is where we tune parameters depending on whether an SVM model was provided. |
Hello, I just started working with bibnumber and I'm very interested to work with this. Finally I was able to run it. Some difficulties with compil but it was my problem. I started with some pictures and only one I got the result asymetrics. All the others, I got read []. I try to train my directory with no success. ERROR: Missing parameter My command line was ./bibnumber -train /home/android/Downloads/ I also try : ./bibnumber -train /home/android/Downloads/ -model /home/android/Mytest/bibnumber/samples/svm-prom1.xml This program extracts bib numbers from images. What's my problem ? I only need couple hints to work by my side. Kind Regards, Eric |
Hi @barne73 you need to tell ./bibnumber image.jpg Or: ./bibnumber /path/to/directory/ The |
Hello, Thanks for your answer. Look the result: **android@builduntu-VM:~/Mytest/bibnumber/bibnumber/Debug$ ./bibnumber /home/android/Downloads/ [1/11] Processing file /home/android/Downloads/christian.jpg [2/11] Processing file /home/android/Downloads/heidi.jpg [3/11] Processing file /home/android/Downloads/heidi1.jpg [4/11] Processing file /home/android/Downloads/heidi2.jpg [5/11] Processing file /home/android/Downloads/jeanne.jpg [6/11] Processing file /home/android/Downloads/jonathan.jpg [7/11] Processing file /home/android/Downloads/mathew.jpg [8/11] Processing file /home/android/Downloads/melanie1.jpg [9/11] Processing file /home/android/Downloads/melanie2.jpg [10/11] Processing file /home/android/Downloads/stephane.jpg [11/11] Processing file /home/android/Downloads/william.jpg None of them can find the number I attach an example and it's corresponding to [7/11] Processing file /home/android/Downloads/mathew.jpg I try to figure out why I can't have any result. Thanks again for your help Eric |
You might want to read this. By default |
i think doing a small screencast starting from scratch with this module could be a very good thing :p |
hello :) with all my reading on ocr / opencv etc i better understand the process now, just one thing when you tell us t
what must me change ? only TextDetectionParams values ? thanks |
normal to have "**/home/greg/ws/**opencv/data/haarcascades/haarcascade_frontalface_alt.xml"; hardcoded in facedetection.cpp ? replaced it by /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml |
hello i m more a js dev than c/c++ dev... i tweak some values of pipeline.cpp then rebuild it each time with
is it right ? on my test set , 2 images on 6 got results each miss the 1 number (2128 and 2413 normal) and got 228 and 243 :p |
i continue my tests, now got pretty good results just can t detect the damn 1 ! :p
what can we tweak for the 1 ? |
Whoops, sorry. This is a remnant of a previous attempt to detect bibs by first detecting faces like in this paper. It turns out that the face detector in OpenCV isn't reliable enough so I decided to not do this. |
@smolleyes why don't you use the makefile as recommended on the readme?
|
You need to understand this paper and the code in |
hello yeah i rebuild the whole app each time .. no way to add all this values in pipelines.cpp as parameter for bibnumber command line ? faster to test ... will look at the textdetection.cpp code yep :) ps: i have very good results on face/eyes detect ith the lastest opencv |
Feel free to submit a Pull Request.
It didn't work too well on the dataset I was using primarily because amateur photos are usually taken from the sides of the running track so faces appear at an angle - runners don't look towards the camera. |
@gheinrich this is some really great work you have put up! Although, I am not able to get any results on my image set. I am novice at coding, but can tweak things if you can point me to what exactly will need to be changed. I am having photographs of runners from various marathon runs. Also the issue being that in each marathon, the BIBs are designed differently. Hoping to hear from you. |
@skyviewmedia i have same question, blue/green background and black digits on my numbers. @gheinrich could you point what parameter to check in pipeline ? And thanks for very nice work!!! |
Hello, I have installed bibnumber on Ubuntu 16. When I call the "train" option I get an error. I get: What am I doing wrong ? |
hi @smolleyes Thanks. |
To be honest: As the owner of this project doesnt seem to bother/answer to any request, I have given up. The "manual way" of putting in bib numbers is far better as a human puts in the numbers and uses his/her brain to compare the previous / next picture to put in the correct number. It is a pity, but it seems that the manual way is the best (fastest and at the same time least error producing way). I have also tried a way with qr codes, but this seems to be complicated as well. |
hi yup same thing i builded a complete tagging system, storing previously entered bib numbers etc, we can works at many people in the same time and it s far better (really boring but better) :) i close the issue |
@smolleyes do you know how I can make this work with bibs that have numbers in white? Thanks |
@steverob |
I receive this error: root@redes-senac:~/bibnumber/bibnumber/Debug# ./bibnumber -train /root/bibnumber/bibnumber/Debug/Fotos-Teste/ /root/bibnumber/bibnumber/Debug/Fotos-Teste/ Training from positives in /root/bibnumber/bibnumber/Debug/Fotos-Teste/ image data in /root/bibnumber/bibnumber/Debug/Fotos-Teste/ Aborted (core dumped) |
hi
first, thanks for this project :)
i just builded it on ubuntu 15.10 but when i try a simple
./bibnumber /my/path/*
i have
could you add some exemple to get the results you have in the demo ?
2/ with this batch is it possible to get the original image name of the detected bib ?
thanks !
The text was updated successfully, but these errors were encountered: