openalpr / train-detector

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

Confused #35

Open ivanh23 opened 4 years ago

ivanh23 commented 4 years ago

So i wanted to ask , after tagging the plates in the tagger tool , i got simple yaml file , like this : image_file: 1.jpeg image_width: 640 image_height: 480 plate_corners_gt: 453 322 547 315 547 338 453 347 region_code_gt: mk plate_number_gt: SK2235AR plate_inverted_gt: false Now how can i use this ? also when i try to run the crop plates script , it says 0 images found in the output folder , even if i add some images it still says 0 , what am i doing wrong ? can someone please walk me through ? or at least little more explanation Thank you

DaemonChoejur commented 3 years ago

https://github.com/openalpr/train-detector

The crop_plates.py script makes use of the .yaml files generated by the tagger tool to crop the plates.

The images and the .yaml files are created in the same folder by the tagger utility. So the script crop_plates.py takes that folder as input and you specify an output dir.

python crop_plates.py --input_dir "Images/Plates" --out_dir "Images/CroppedPlates"