openalpr / train-detector

Input files and scripts necessary to train the license plate detector.
GNU Affero General Public License v3.0
125 stars 166 forks source link

crop_plates.py problem #30

Open losabio1617 opened 5 years ago

losabio1617 commented 5 years ago

File "crop_plates.py", line 34 print "input_dir (%s) doesn't exist" ^ SyntaxError: invalid syntax

what to do if this happens?

JoJo-Joestar commented 5 years ago

Here is an example format from me, try editing the --input _dir path to your folder directory where your images are stored:

python crop_plates.py --input_dir C:\Users\computername\Desktop\Trainer\train-detector\yaml --out_dir ph --plate_width 390 --plate_height 140

Kristyan01 commented 5 years ago

@JoJo-Joestar Sir are you also working on this repository? If you don't mind, can I ask for your help? I'm already on the process of editing of prep.py. and I am stock thinking what to do.

JoJo-Joestar commented 5 years ago

Good day! @Kristyan01 can i see your error code so that i can tell what the problem is?

On Wed, Jan 30, 2019 at 11:26 PM Kristyan01 notifications@github.com wrote:

@JoJo-Joestar https://github.com/JoJo-Joestar Sir are you also working on this repository? If you don't mind, can I ask for your help? I'm already on the process of editing of prep.py. and I am stock thinking what to do.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openalpr/train-detector/issues/30#issuecomment-458985008, or mute the thread https://github.com/notifications/unsubscribe-auth/Am0-PUEEH8NSbOQk_PtC28bBrLU4NBtkks5vIbmIgaJpZM4ZyitD .

Kristyan01 commented 5 years ago

Good Day @JoJo-Joestar . I'm done with editing the prep.py. I am also on the training process. but I don't know what must be the exact value of the height and width in prep.py text. Where should I based on editing this?

import os from PIL import Image import uuid import shutil

import sys

WIDTH=70 <--- HEIGHT=39 <--- (HERE Sir.) COUNTRY='ph'

WIDTH=70

HEIGHT=50

COUNTRY='eu2'

WIDTH=52

HEIGHT=13

COUNTRY='eu'

losabio1617 commented 5 years ago

Hi @JoJo-Joestar i am training ph plate also did you encounter , i installed leptonica which req for tesseract but i encounter this probllem (env) losabio@losabio-System-Product-Name:~/ENV/leptonica-1.71$ ./make-for-auto mv: cannot stat 'src/makefile': No such file or directory mv: cannot stat 'prog/makefile': No such file or directory have Sir encounter this or know how to solve this problem i really need to move on the next phase

On Wed, Feb 6, 2019 at 10:39 AM Kristyan01 notifications@github.com wrote:

Good Day @JoJo-Joestar https://github.com/JoJo-Joestar . I'm done with editing the prep.py. I am also on the training process. but I don't know what must be the exact value of the height and width in prep.py text. Where should I based on editing this?

import os from PIL import Image import uuid import shutil

import sys

WIDTH=70 <--- HEIGHT=39 <--- (HERE Sir.) COUNTRY='ph' WIDTH=70 HEIGHT=50 COUNTRY='eu2'

WIDTH=52

HEIGHT=13

COUNTRY='eu'

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openalpr/train-detector/issues/30#issuecomment-460882037, or mute the thread https://github.com/notifications/unsubscribe-auth/AlDB4id5Y6q01FDy69mFDKhafC59m8xtks5vKkBYgaJpZM4ZyitD .

losabio1617 commented 5 years ago

Sir Pinoy po ba kau?? pwede po kita ma add sa fb for assist po sa openalpr

On Thu, Feb 7, 2019, 1:21 AM Broken Silence <losabio1617@gmail.com wrote:

Hi @JoJo-Joestar i am training ph plate also did you encounter , i installed leptonica which req for tesseract but i encounter this probllem (env) losabio@losabio-System-Product-Name:~/ENV/leptonica-1.71$ ./make-for-auto mv: cannot stat 'src/makefile': No such file or directory mv: cannot stat 'prog/makefile': No such file or directory have Sir encounter this or know how to solve this problem i really need to move on the next phase

On Wed, Feb 6, 2019 at 10:39 AM Kristyan01 notifications@github.com wrote:

Good Day @JoJo-Joestar https://github.com/JoJo-Joestar . I'm done with editing the prep.py. I am also on the training process. but I don't know what must be the exact value of the height and width in prep.py text. Where should I based on editing this?

import os from PIL import Image import uuid import shutil

import sys

WIDTH=70 <--- HEIGHT=39 <--- (HERE Sir.) COUNTRY='ph' WIDTH=70 HEIGHT=50 COUNTRY='eu2'

WIDTH=52

HEIGHT=13

COUNTRY='eu'

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openalpr/train-detector/issues/30#issuecomment-460882037, or mute the thread https://github.com/notifications/unsubscribe-auth/AlDB4id5Y6q01FDy69mFDKhafC59m8xtks5vKkBYgaJpZM4ZyitD .

JoJo-Joestar commented 5 years ago

@Kristyan01 the length and width in prep.py should be proportional to the actual length and width of the plate.

Kristyan01 commented 5 years ago

@JoJo-Joestar Sir. what if, my positives has different sizes ? but same aspect ratio. what should I do? example sir. i have a pos with size of 1200 by 600. then the others are 120 by 60.

and the size are pixel sir, right?

Kristyan01 commented 5 years ago

img_20190221_005352 Good Day Sir. Are you done training the detector? I'm on the process of training wherein I already run the neg, pos and train using prep.py. Then it gives me the training 0 stage. But I am not sure on what is happening to it. I don't know if it stopped or still continuing. I'm almost 7 hours here on this stage? Is it normal? I have 3093 positive pictures.

On Thu, 7 Feb 2019, 10:11 am JoJo-Joestar, notifications@github.com wrote:

@Kristyan01 https://github.com/Kristyan01 @losabio1617 https://github.com/losabio1617 add me in fb https://www.facebook.com/profile.php?id=100005998995319. I am also new in using openalpr. I will delete this comment within 24 hours.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openalpr/train-detector/issues/30#issuecomment-461263742, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajd5fzK3Oef2mYLjB_U9n366rd_g3cgRks5vK4tSgaJpZM4ZyitD .

cannonball0608 commented 5 years ago

hi, i keep having the error message even though I have inserted the arguments as per suggested. What other things should I try? line 34 print "input_dir (%s) doesn't exist

nidhipunj7 commented 5 years ago

What is this .yml file?