Git Product home page Git Product logo

license-plate-detection's Introduction

License-plate-detection

This project using yolov3 to detection license plate in street using repo : https://github.com/ultralytics/yolov3

Description

Python 3.7 or later with the following pip3 install -U -r requirements.txt packages:

  • numpy
  • torch >= 1.0.0
  • opencv-python
  • tqdm

Data

  • Data training :3600 images (size 1000x2000)
  • Data test : 900 images

How to training

  • Start Training: Run train.py --cfg cfg/yolov3.cfg --img-size 416

Inference

Some demo

Webcam

  • Run detect.py with webcam=True to show a live webcam feed.

Test

    • Use test.py --weights weights/weight.pt to test YOLOv3 weights.

mAP

  • MAP YOLOv3-416 : 97

license-plate-detection's People

Contributors

thorpham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

license-plate-detection's Issues

error to find module darknet and var

Excuse me, sir. I want to report, while i was trying to train using command "python train.py --cfg cfg/yolov3.cfg --img-size 416" in my windows command prompt, there were errors like these following paragraph:

Namespace(accumulated_batches=1, batch_size=16, cfg='cfg/yolov3.cfg', data_cfg='cfg/coco.data', epochs=100, freeze=False, img_size=416, multi_scale=False, resume=False, var=0, weights='weights')

Using cpu

Traceback (most recent call last):
File "train.py", line 214, in
var=opt.var,
File "train.py", line 38, in train
model = darknet(cfg, img_size)
NameError: name 'darknet' is not defined

I hope anyone can help me to solve this error, thank you very much before

Export weight to Darknet format

How I can export weight to Darknet (.weight) format instead PyTorch(.pt) without weights transpose? OpenCV throw exception with "Transpose the weights (except for convolutional) is not implemented"...

/* OpenCV check version */
bool transpose = (major_ver > 1000) || (minor_ver > 1000);
if(transpose)
    CV_Error(cv::Error::StsNotImplemented, "Transpose the weights (except for convolutional) is not implemented");

Training data

Hi,
I didn't see a License_plate label on the COCO dataset.
Can you explain exactly on what data did you train yolo?

thanks

Dataset?

Hi, you report 97% mAP, but which dataset did you use for training/testing?
Thanks in advance.

Crop License Plate

How can i crop license plate image which gets highlighted by prediction. and get license plate color

No such file or directory: 'label_train.txt'

Here is the full error:

Traceback (most recent call last):
File "train.py", line 214, in
var=opt.var,
File "train.py", line 41, in train
dataloader = LoadImagesAndLabels(train_path, batch_size, img_size, multi_scale=multi_scale, augment=True)
File "/Users/IsabellaTing/Downloads/License-plate-detection-master/utils/datasets.py", line 94, in init
with open(path, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'label_train.txt'

Wondering if the repo is just incomplete for now?

No detection in output folder

Okay so i downloaded the code, I also downloaded the weights from the google drive link that is provided. Now when i run the detect.py and give it a jpg from test folder, it does nothing but copies that image and pastes to a folder named output.
Now when i open that folder, there are images but no detection on them. There is no bbox on the number plate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.