WongKinYiu / yolov7

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
GNU General Public License v3.0
13.15k stars 4.16k forks source link

How can I detect a license plate along with a car and perform OCR in it? #1510

Open sanchaykasturey opened 1 year ago

sanchaykasturey commented 1 year ago

So, I want to perform license plate recognition but also I want it to save the image of the car along with the license plate.

Example If there are 4 cars I want to save the images of 4 vehicles, which is possible quickly with yolo based detection, but I want to also detect license plates in the same frame, and save those images (detected license plates and cars). And then proceed further for OCR.

Please help me with how can I save both detections because I don't want one license plate and a car to be saved separately.

Thanks for all your time and answers.

ghost commented 1 year ago

@sanchaykasturey Hi.

You can crop detected object with corresponding bounding boxes and pass it to some OCR (PaddleOCR seems to be very good for english language.) If you crop detected car, it will also contain license plate.