truthofmatthew / persian-license-plate-recognition

PLPR utilizes YOLOv5 and custom models for high-accuracy Persian license plate recognition, featuring real-time processing and an intuitive interface in an open-source framework.
GNU General Public License v3.0
400 stars 117 forks source link

Installation issues. #2

Closed pooyasa closed 2 months ago

pooyasa commented 6 months ago

Hi!

Currently found 2 issues.

  1. botocore==1.34.45 depends on another version of urllib3 so I had to remove the required urllib3 version from requirements.txt file
  2. yolov5 is a submodule and need to be cloned using --recursive however the repository does not exist. Also, with this much dependencies, it is much better to start a venv in the beginning. Many thanks for your work.
truthofmatthew commented 6 months ago

thanks for your respond and checking in this repo, yes sure you have to create venv :D and please clone the yolov5 from their repo

pooyasa commented 6 months ago

Sure. Also by default, main_yolo reads from a file which does not exist. Settings button does not work so you need to change config.ini or line 361 to self.Capture = cv2.VideoCapture(0) to read from the webcam.

Also, any way to increase the performance by pruning or quantizing the model?

truthofmatthew commented 6 months ago

yes possible, you need to train the model based on your own dataset again or from the datasets repos i provided the link in readme, i forgot to change it to work on webcam, your right

milad-fa commented 6 months ago
C:\Users\Fatemeh\Desktop\pelak>C:\Users\Fatemeh\AppData\Local\Programs\Python\Python311\python.exe C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\home-yolo.py
Traceback (most recent call last):
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\home-yolo.py", line 32, in <module>
    from database.db_entries_utils import db_entries_time, dbGetAllEntries
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\database\db_entries_utils.py", line 6, in <module>
    from database.classEntries import Entries
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\database\classEntries.py", line 5, in <module>
    from helper.gui_maker import get_status_color, get_status_text
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\helper\gui_maker.py", line 14, in <module>
    from helper.text_decorators import *
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\helper\text_decorators.py", line 14, in <module>
    params = Parameters()
             ^^^^^^^^^^^^
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\configParams.py", line 33, in __init__
    dbconfig = config_object["DATABASE"]
               ~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\Fatemeh\AppData\Local\Programs\Python\Python311\Lib\configparser.py", line 979, in __getitem__
    raise KeyError(key)
KeyError: 'DATABASE'

Hello, I am encountering this error while running. Could you please guide me? Thank you

truthofmatthew commented 6 months ago

i updated to core, please clone and let me know

aminallahrabi commented 6 months ago
C:\Users\Fatemeh\Desktop\pelak>C:\Users\Fatemeh\AppData\Local\Programs\Python\Python311\python.exe C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\home-yolo.py
Traceback (most recent call last):
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\home-yolo.py", line 32, in <module>
    from database.db_entries_utils import db_entries_time, dbGetAllEntries
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\database\db_entries_utils.py", line 6, in <module>
    from database.classEntries import Entries
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\database\classEntries.py", line 5, in <module>
    from helper.gui_maker import get_status_color, get_status_text
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\helper\gui_maker.py", line 14, in <module>
    from helper.text_decorators import *
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\helper\text_decorators.py", line 14, in <module>
    params = Parameters()
             ^^^^^^^^^^^^
  File "C:\Users\Fatemeh\Desktop\pelak\smart-resident-guard\configParams.py", line 33, in __init__
    dbconfig = config_object["DATABASE"]
               ~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\Fatemeh\AppData\Local\Programs\Python\Python311\Lib\configparser.py", line 979, in __getitem__
    raise KeyError(key)
KeyError: 'DATABASE'

Hello, I am encountering this error while running. Could you please guide me? Thank you

i have the same error when i run code in google.colab.: if you can solve it , share your tip. thank you.

Traceback (most recent call last): File "/content/drive/MyDrive/persian-license-plate-recognition/home-yolo.py", line 32, in from database.db_entries_utils import db_entries_time, dbGetAllEntries File "/content/drive/MyDrive/persian-license-plate-recognition/database/db_entries_utils.py", line 6, in from database.classEntries import Entries File "/content/drive/MyDrive/persian-license-plate-recognition/database/classEntries.py", line 5, in from helper.gui_maker import get_status_color, get_status_text File "/content/drive/MyDrive/persian-license-plate-recognition/helper/gui_maker.py", line 14, in from helper.text_decorators import * File "/content/drive/MyDrive/persian-license-plate-recognition/helper/text_decorators.py", line 14, in params = Parameters() File "/content/drive/MyDrive/persian-license-plate-recognition/configParams.py", line 33, in init dbconfig = config_object["DATABASE"] File "/usr/lib/python3.10/configparser.py", line 965, in getitem raise KeyError(key) KeyError: 'DATABASE'