Skip to content
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

npd #12297

Closed
wants to merge 2 commits into from
Closed

npd #12297

wants to merge 2 commits into from

Conversation

Manikandan11G
Copy link

@Manikandan11G Manikandan11G commented Oct 30, 2023

πŸ€– Generated by Copilot at 13b933f

Summary

πŸš—πŸ“–πŸ› οΈ

This pull request adds the functionality of extracting license plate text from images using OCR methods. It modifies the detect.py script and creates three alternative versions: detect_1.py, detect_2.py, and detect_3.py, which use condition.py, PaddleOCR, or both for OCR respectively. It also creates a Flask web application that allows users to upload images and view the results using the app.py script and the templates/input.html and templates/result.html files.

We'll scan the plates with OCR
With condition.py or PaddleOCR
We'll show the text on the web app
Heave away, me hearties, heave away

Walkthrough

  • Add a Flask web application that allows users to upload an image and extract the license plate text using OCR (link, link, link)
  • Modify the detect.py script to use two different OCR tools: condition.py and PaddleOCR (link, link, link, link)
  • Add the condition.py script that preprocesses the image and applies OCR using pytesseract (link)
  • Add the detect_1.py script that is a modified version of detect.py that uses only condition.py for OCR (link)
  • Add the detect_2.py script that is a modified version of detect.py that uses only PaddleOCR for OCR (link)
  • Add the detect_3.py script that is a modified version of detect.py that uses both condition.py and PaddleOCR for OCR (link)

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Adding OCR (Optical Character Recognition) Functionality to YOLOv5 App πŸ“·βœ¨

πŸ“Š Key Changes

  • Integrated Flask app supporting upload and OCR text extraction from images.
  • Added multiple Python scripts (condition.py, detect_1.py, detect_2.py, detect_3.py) for image processing, OCR routines, and model inference.
  • Modified detect.py to include OCR with pytesseract.
  • Improved .gitignore to handle different file modes.
  • Utilized PaddleOCR library to enhance text extraction.
  • Included web templates for user interaction (input.html and result.html).

🎯 Purpose & Impact

  • 🎯 Provides users with a web interface to upload images and extract text from them, particularly useful for tasks like license plate recognition.
  • 🎯 Improved model inference scripts (detect_1/2/3.py) now include OCR, making the system a more complete solution for text detection and recognition from various sources.
  • 🎯 The changes positively affect developers and end-users by offering a simplified, interactive way to work with OCR and object detection models.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘‹ Hello @Manikandan11G, thank you for submitting a YOLOv5 πŸš€ PR! To allow your work to be integrated as seamlessly as possible, we advise you to:

  • βœ… Verify your PR is up-to-date with ultralytics/yolov5 master branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by running git pull and git merge master locally.
  • βœ… Verify all YOLOv5 Continuous Integration (CI) checks are passing.
  • βœ… Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." β€” Bruce Lee

@glenn-jocher
Copy link
Member

@Manikandan11G thanks for your contribution! This looks like a substantial enhancement to the YOLOv5 functionality, especially with the addition of OCR text extraction and the Flask web application. It's great to see the community expanding YOLOv5's capabilities.

I'll take a thorough look at the PR with my team to ensure that the changes align with the project's goals and quality standards. If additional input is needed, we'll be sure to reach out. Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants