earthat / ALPR--Automatic-License-Plate-Recognition

This repository uses openALPR to locate the license plate in each frame and to detect the moving vehicle license plate number.
https://free-thesis.com
6 stars 3 forks source link

linux instructions #1

Open santoshmanojbantu opened 5 years ago

santoshmanojbantu commented 5 years ago

how can i run it in LINUX. Please help me.

earthat commented 5 years ago

did you follow the instructions over here

santoshmanojbantu commented 5 years ago

did you follow the instructions over here

thanks for u'r response. Yeah i followed the instructions but i'm getting this error in STEP-2 "main.py <-c> <--config><C:/openALPR_1/openalpr_64/openalpr.conf> <--runtime_data><C:/openALPR_1/openalpr_64/runtime_data>

earthat commented 5 years ago

use it as main.py -c --config C:/openALPR_1/openalpr_64/openalpr.conf --runtime_data C:/openALPR_1/openalpr_64/runtime_data

earthat commented 5 years ago

it says itself usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA]

santoshmanojbantu commented 5 years ago

thank u, but again i got this error python main.py -c --config C:/openALPR_1/openalpr_64/openalpr.conf --runtime_data C:/openALPR_1/openalpr_64/runtime_data

usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] Video_Source thrsArea main.py: error: argument -c/--country: expected one argument

Shubammanhas commented 5 years ago

I got the same error while using Linux distribution Centos 7. Can you tell me how I can modify the usage main.py -c --config C:/openALPR_1/openalpr_64/openalpr.conf --runtime_data C:/openALPR_1/openalpr_64/runtime_data for Linux because i am not able to find the config and runtime data in my system under ALPR repository.

Shubammanhas commented 5 years ago

thank u, but again i got this error python main.py -c --config C:/openALPR_1/openalpr_64/openalpr.conf --runtime_data C:/openALPR_1/openalpr_64/runtime_data

usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] Video_Source thrsArea main.py: error: argument -c/--country: expected one argument

Have you solved this problem? If yes can you suggest the solution to me?

ZIKO94ZIKO commented 5 years ago

I have this problem can you please help me .!!

main.py -c --config C:/openALPR/openalpr_64/openalpr.conf --runtime_data C:/openALPR/openalpr_64/runtime_data

usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] Video_Source thrsArea main.py: error: argument -c/--country: expected one argument

earthat commented 5 years ago

@ZIKO94ZIKO you need to specify country code in the argument. Please check out the openalpr for available options.

ZIKO94ZIKO commented 5 years ago

i find same problem when i put this command:

main.py -c eu --config C:/openALPR/openalpr_64/openalpr.conf --runtime_data C:/openALPR/openalpr_64/runtime_data usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] Video_Source thrsArea main.py: error: the following arguments are required: Video_Source, thrsArea

ZIKO94ZIKO commented 5 years ago

@earthat please sir if u have any help don't hesitate to cantact me

earthat commented 5 years ago

Check out the instructions here

ZIKO94ZIKO commented 5 years ago

i try it since 3 days i found the same issue : please give me one minute , or your account to discuss with us .

ZIKO94ZIKO commented 5 years ago

Check out the instructions here

i followed all steps , step by step i get the same issue : #(base) C:\Users\zakaria\Desktop\vehicle-tracking-and-license-plate-number-detcetion>python main.py -c us --config C:/openALPR_1/openalpr_64/openalpr.conf --runtime_data C:/openALPR_1/openalpr_64/runtime_data/runtime_data/ 15ene2018.avi 100000

usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] main.py: error: unrecognized arguments: 15ene2018.avi 100000

earthat commented 5 years ago

try with this

python main.py -c mx 15ene2018.avi 100000

ZIKO94ZIKO commented 5 years ago

C:\Users\zakaria\Desktop\vehicle-tracking-and-license-plate-number-detcetion>python main.py -c mx 15ene2018.avi 100000 usage: main.py [-h] [-c COUNTRY] [--config CONFIG] [--runtime_data RUNTIME_DATA] Video_Source thrsArea main.py: error: the following arguments are required: Video_Source, thrsArea

ZIKO94ZIKO commented 5 years ago

the problem in line 23 and 25 i dont know how resolve it

ZIKO94ZIKO commented 5 years ago

Sir when i set the lines 23 , 25 and 76 as a comments( # ) and change the line 47 like that : cap = cv2.VideoCapture('15ene2018.avi') i found this results

image

please help me to find correct results

earthat commented 5 years ago

I appreciate it. My suggestion is to use another video as this video has shake in the recording. This one is basically detecting the moving vehicle first and extracting the number plate by openALPR. The GMM is used for background extraction which is sensitive to a threshold value. So, it's a task to tune the threshold value upon another video or on this video to improve the vehicle detection part.

ZIKO94ZIKO commented 5 years ago

Ok thanks for your answer sir, it's possible to detect the plate in real time? because I want to make a code that brings in real-time : detect the car speed and ALPR