Python ANPR with OpenCV and EasyOCR in 25 Minutes | Automatic Number Plate Recognition Tutorial

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 386

  • @piyushkumar-wg8cv
    @piyushkumar-wg8cv Рік тому +7

    What's the difference between this video and your 2 hour long video on ANPR

    • @Ben-gh1bz
      @Ben-gh1bz Рік тому

      This video uses OpenCv, the 2 hour long video uses TensorFlow

  • @DefendIntelligence
    @DefendIntelligence 3 роки тому +1

    You make amazing content Nicholas ! I have a (french) channel too on AI, we could collaborate on a video. Cheers :)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Hell yeah!! Thanks so much 🙏!! Let’s touch base in the new year? Want to add me on LinkedIn and plan something out?

  • @subhronilbiswas2190
    @subhronilbiswas2190 2 роки тому +1

    My Jupiter kernel is dying each and every time I'm trying to import easyocr. Plzzzz help 😭😭😭😭😭😭😭😭😭😭

  • @MUHAMMADIZZKAMARUDDIN
    @MUHAMMADIZZKAMARUDDIN Рік тому +1

    why other images besides the 4 images provided cant extract the plate number?

  • @marziehkhaliliy6908
    @marziehkhaliliy6908 2 роки тому +2

    this Code is perfect. thanks. but, Is there anyone to help me? I have problem in 4th part and i got error:(

    • @jainvinay
      @jainvinay 2 роки тому

      Can you please write down the code

  • @dhruvdarji7729
    @dhruvdarji7729 8 місяців тому +1

    I import opencv library but kernal automatically close??

  • @jesunahmadushno
    @jesunahmadushno 2 роки тому +1

    Hi, whenever i'm trying to import cv2 and other my jupyter kernel The kernel appears to have died. It will restart automatically. do you have any solution?

  • @ashish.ksingh8765
    @ashish.ksingh8765 3 роки тому +2

    Can u make some videos using open cv....
    (Problem statement on real life based.. )
    And also tere solution.

  • @ronaktawde
    @ronaktawde 3 роки тому +2

    please make object tracking & counting video on vehicles in opencv & python

  • @anthonylwalker
    @anthonylwalker 3 роки тому +18

    Thanks, this has helped simplify a lot of techniques I was getting my head around. Such a great pipeline, and a great tutorial. Keep them up in the same style!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Thanks so much @Anthony, glad you enjoyed it!

  • @jhansiballini5863
    @jhansiballini5863 3 дні тому

    Thank you for the detail. But could you please make a video of collecting toll tax using this ANPR.

  • @aniketbhanderi5927
    @aniketbhanderi5927 2 роки тому +1

    I am getting this error.
    error: (-215:Assertion failed) (mtype == CV_8U || mtype == CV_8S) && _mask.sameSize(*psrc1) in function 'cv::binary_op'

  • @swapnilchowdhury3957
    @swapnilchowdhury3957 2 роки тому +1

    Everything worked perfectly fine and I even got the cropped number plate but the line
    result = reader.readtext(cropped_image)
    Showing unknown C++ exception from opencv code
    I don't have GPU so using CPU only
    Plz help

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Try uninstalling opencv and reinstalling it using pip install opencv-python

  • @webdeveloper9094
    @webdeveloper9094 3 роки тому +1

    it's not working on Pakistani number plates like a dual-line on the number plate
    i.e:
    FD-13
    388
    here is only detect FD not other text on the number plate
    how i can fix it
    ????

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Try using the updaed version of the model, it's a 2hr tutorial on the channel!

  • @theertham9399
    @theertham9399 3 роки тому +1

    Hi sir
    am getting this error
    from matplotlib._path import (
    ImportError: DLL load failed while importing _path: The specified module could not be found.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Can you change it to from matplotlib import pyplot as plt?

  • @Eightminutesengineering
    @Eightminutesengineering 2 роки тому +1

    Great video , very helpful. When i am running this code , i am getting this error message ModuleNotFoundError: No module named 'imutils
    can you please guide

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Heya @Faryal, can you ensure you're running the notebook in the same kernel as what you've installed the dependencies in.

  • @electromusic9206
    @electromusic9206 3 роки тому +1

    Hiii I am getting error like attribute error
    Cv2. Cv2 module not found something like that
    Help me out off it
    I am using Jupiter notebook

  • @pranavjajal3657
    @pranavjajal3657 3 роки тому +1

    i AM Getting an error saying cv2 not defined what should i do??, i have also installed source forge of opencv, please help

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Double check that opencv is installed in the current environment. Normally this pops up because there's a mismatch between where it's installed and the kernel that the notebook is using @Pranav.

  • @azmijedli743
    @azmijedli743 2 роки тому +1

    haw can i applied on raspberry pi plz for my graduation project

  • @KingCustomArtProjektX
    @KingCustomArtProjektX 2 роки тому

    Thanks 👍
    But it's not working with my Europe license plate.
    Can you give a little bit of support.
    Best regards from Germany

  • @Jake4
    @Jake4 2 роки тому

    The 43 dislikes on this video are by triggered Argentinians

  • @oldbutgold2355
    @oldbutgold2355 3 роки тому +1

    hello bro, thank you so much for your habitual collaboration am mohamed from morocco im technician IT support I have an end-of-study project, the theme of the project is to find the lisence numbers of cars that do not respect the car code, the numbers sought (wanted) are filled in a file with the idea it is while driving to put a phone camera on the road which detects the plate number once we find a similar number in the file that we already have we receive a notification that it is the target car
    could you.helo me pleaaase anyone can help me ..urgent request

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Mohamed, sure, happy to help! You can start out by:
      1. Defining a list of plates that don't meet the code
      2. Run your video frame by frame through the OCR code in the tutorial
      3. Check if the plate detected is in the list using standard python functionality e.g. if plate in plates_list
      4. You might need something a little more hardcore than a phone to run the code though, possibly a jetson nano

  • @okanmaden3980
    @okanmaden3980 3 роки тому +1

    hey bro can u explain why text = result [0] [-2]. I didnt understand why it's "-" and why "2".

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      The -2 grabs the second last value from the array!

  • @LIMYEOWCHYE
    @LIMYEOWCHYE 3 роки тому +1

    Is it possible to actually automatically use the pictures inside the folder without manually typing the image file into cv2.imread?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      You can loop through the images in the folder using os.listdir then pass them to the model!

  • @RavnnN
    @RavnnN 2 роки тому

    line 28, in
    new_image = cv2.drawContours(mask, [location], 0,255, -1)
    error: (-215:Assertion failed) reader.ptr !=
    NULL in function 'cvDrawContours'
    got this error...
    can u resolve it?

  • @wakakawakaka2889
    @wakakawakaka2889 2 роки тому +1

    try with the backside of a minivan , which also have .................4 points.

  • @pokojowyfreestyle9269
    @pokojowyfreestyle9269 3 роки тому +1

    I don't know why, but it works for me only with Porsche, the others have still None on location step. Could you help me and tell on which parts of code should i focus?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Pokojowy, walk through each step and ensure you're still detecting the edges appropriately. You might need to play with the Canny algorithm line!

  • @jafaraqeel8248
    @jafaraqeel8248 2 роки тому

    File "c:\Users\AX\Desktop\ANPRwithPython-main\ANPR - Tutorial.ipynb", line 320, in
    "execution_count": null,
    NameError: name 'null' is not defined

  • @raghuram9876
    @raghuram9876 3 роки тому

    it is not working for me
    cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
    it is showing me this no matter how many times i am editing

  • @businessgamerprb5398
    @businessgamerprb5398 4 місяці тому

    Hi... Great video but the problem is it works only on about 10 percent of images in my data set... On others it either says cannot find contour or just detects wrong contour... I have tried with 400+ images and only got about 40-50 correct results... What should i do... Or is this algorithm not enough??

  • @rickieryan3919
    @rickieryan3919 3 роки тому +1

    Was just involved in a hit and run... Can you help me uncover the license plate number. should be fun haha

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Oh no! You should take a look at the super resolution models!

  • @giggslim4917
    @giggslim4917 3 роки тому +1

    Hi nic anyway to edit the code such that it can better detect images of black license plates with white text? (Singaporean License Plate)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Giggs! Try out the new workflow, it's way more accurate and can do different types of plates!

  • @vonvanmany997
    @vonvanmany997 2 роки тому +2

    Hi Nicholas,
    Thank You for all the hard work you put into this tutorial, its taught me SO Much..
    I have a question about the images you used vs. My own images , yours work fine in the program, but the ones I used doesn't populate any coordinates in the location cell.
    the properties of your images are: 160KB in sizes, 300dpi, 960x722 (dimensions) and 24 bit depth,
    my images are: 600KB, 96dpi, 2000x1500, and 24 bit depth,
    aren't

    • @vonvanmany997
      @vonvanmany997 2 роки тому

      is this the reason why the coordinates aren't population or am I missing something in the code

  • @AbhinavKumar-xi2qw
    @AbhinavKumar-xi2qw 3 роки тому +1

    Can you please tell me how can we give command to Arduino to do something when we detect face or our algorithms given us yes to do something

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Haven't worked much with arduinos yet but when I do I got you!

  • @erinbiju7766
    @erinbiju7766 8 місяців тому

    i copy pasted your code in Pycharm ,it shows no error but it does not display any output.

  • @fredbaafi9013
    @fredbaafi9013 2 роки тому

    Hello Nick, I'm working on a similar project with different approach and I really need your help, can you help me with your email so that we flow from there. Thank you

  • @laponiec
    @laponiec 2 роки тому

    All I got after reading the text from the cropped image was an error:
    \Scripts\venv\lib\site-packages\easyocr\craft_utils.py", line 31, in getDetBoxes_core
    nLabels, labels, stats, centroids = cv2.connectedComponentsWithStats(text_score_comb.astype(np.uint8), connectivity=4)
    cv2.error: Unknown C++ exception from OpenCV code

  • @nimeshkumar3663
    @nimeshkumar3663 3 роки тому +1

    hi, I just wanted to know can I use this model as a Text detection model, will this model be able to recognize text from images.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +2

      Sure can, check out the drug extraction video I did for PaddleOCR. I show how to do it there.

  • @yuukichan_
    @yuukichan_ 3 роки тому

    Hi sir, as I'm still new to this so I tried to install easyocr packages but got the error of Collecting torch
    Using cached torch-0.1.2.post2.tar.gz (128 kB)
    ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-m9vav7bi\\torch_5f6414e8e9624e38a0fa52cbd01e0d14\\torch.egg-info/SOURCES.txt'
    Consider using the `--user` option or check the permissions.
    What should I do, sir? Please do guide me.

  • @arabe7486
    @arabe7486 6 місяців тому

    hi, im like zero of python, im trying to follow step by step but i could not install imutil, i've installed easyocr but here can i find imutil to install?
    thanks

  • @rizaladhi7066
    @rizaladhi7066 Рік тому

    please share tutorial how to search number in bulk image folder use free api ocr

  • @paulmalagoli2336
    @paulmalagoli2336 2 роки тому

    Has anyone had the same problem on Mac m1? CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.

    • @kingsleydrah562
      @kingsleydrah562 Рік тому

      Yeah, same issue and don't know how to fix that...mine is even on windows

  • @godfreyfonseca5707
    @godfreyfonseca5707 3 роки тому +4

    Really amazing,was very helpful. Just wanted to know if there's a way to use an entire dataset of images for this technique? Any tutorial you may know of?
    Thanks In advance!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Stay tuned @Godfrey, updated version of this tutorial coming out this week!

    • @godfreyfonseca5707
      @godfreyfonseca5707 3 роки тому

      @@NicholasRenotte great 😍🙌... looking forward to it!

  • @ramsimmha8672
    @ramsimmha8672 3 роки тому +1

    How to perform the same operation using a video file. kindly update regarding that?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya Ram, take a look at my latest ANPR video. All you need to do is sub out cv2.VideoCapture(0) for cv2.VideoCapture('path/to/your/file')

  • @morgenjunior2179
    @morgenjunior2179 2 роки тому

    anyone has ever tried recognizing square number plates?please help

  • @lizzyangelinalphonsag1652
    @lizzyangelinalphonsag1652 Рік тому

    when I run the import cell , my kernel is keep on dying .what should I do to recover from this problem ?@Nicholas Renotte

  • @maitreyakanitkar8742
    @maitreyakanitkar8742 3 роки тому +2

    my program ended up up detecting everything other than the numberplate, it go a headlight, a tailight

  • @gugasevero76
    @gugasevero76 2 роки тому

    Hi body! I run your code on colab. Almost everything perfect but other plate I tryed it recognize letter "I" as "1".
    There is some update?

  • @kennyackerman1938
    @kennyackerman1938 3 роки тому +1

    I have this error thats bugging me it says "CUDA not available - defaulting to cpu. Note: this module is much faster with a GPU." i have went on and installed Cuda on my windows 10 and I have also nvidia GeForce GTX 960M ..can anyone help me

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Kenny, can you check you have a compatible version of Tensorflow, CUDA and cuDNN from this list: www.tensorflow.org/install/source you need to have a matching combination otherwise Tensorflow doesn't pick up GPU acceleration.

    • @nas7553
      @nas7553 3 роки тому

      Same problem

    • @kingsleydrah562
      @kingsleydrah562 Рік тому

      Yeah, same issue 😢

  • @jiachuntan3144
    @jiachuntan3144 3 роки тому +2

    I noticed that the program doesnt work well with black plates, how should I tweak it so it can detect black colour plates?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Jia, can you share some of your example images? I can play around with the mask settings for you and give you some updated parameters!

    • @jiachuntan3144
      @jiachuntan3144 3 роки тому +1

      @@NicholasRenotte sure, can u drop your email here ??

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      @@jiachuntan3144 hmu on LinkedIn to share privately! www.linkedin.com/in/nicholasrenotte/

  • @ygproductions4025
    @ygproductions4025 3 роки тому +1

    I want to make a executable file with a GUI for this project. How can I do that? Please help me.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Check out PySimpleGUI, you could probably wrap the code into something like that!

  • @datapro007
    @datapro007 2 роки тому +7

    Hi, Nick, Great video. I did spend a lot of time on the Tensorflow version of this project that you posted a while back. What do you see as the plusses and minuses of the two different approaches?

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +8

      The TF version is a lot more resilient to different photos of plates. This almost needs to be tuned each time depending on lighting, contrast, hue and sat to be able to effectively pick up the plate each time. However the TF version is wayyyy more compute heavy.

    • @adityagoel2792
      @adityagoel2792 2 роки тому

      @@NicholasRenotte I had the same question. Thanks for clarifying Nick! Keep them coming - you're a GREAT teacher! :)

  • @luciferkhusrao
    @luciferkhusrao 3 роки тому

    Just a shitty model. No result was correct using this model.

  • @rverm1000
    @rverm1000 2 місяці тому

    can this be used to detect numbers on coins? and color of coins?

  • @ScaryLasers
    @ScaryLasers 2 місяці тому

    You are awesome! I am just digging in to python and you my friend are so informative, easy to undersatand, and the pacing is perfect. Thank you will be following and checking out your other vids 😁

  • @charradmalek7020
    @charradmalek7020 2 роки тому +1

    Hi Nick great video thanks , i just wanted to ask you a question if it is possible to give me a tool so that it reads plates in Arabic I tried with ArabicOcr but I cannot install it on my computer

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Try PaddleOCR: github.com/PaddlePaddle/PaddleOCR

    • @lindazakraoui3974
      @lindazakraoui3974 2 роки тому

      hi there, did you find a solution to read plates in arabic please?

  • @h-electronics602
    @h-electronics602 3 роки тому +1

    I have a problem in when in section number zero when I import the libraries. "The kernel appears to have died. It will restart automatically." it occurs only when I try to run "import easyocr", when I remove it runs normally, please help!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Hmm, what does it say in your terminal or command prompt that's running the Jupyter Notebook server?

    • @h-electronics602
      @h-electronics602 3 роки тому +1

      @@NicholasRenotte I solved the problem, I cleaned my pc from everything related to python and download everything from the begging I Guess something was related to the log in appdata file was making problem.
      Thank you!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@h-electronics602 awesome stuff, yeah sometimes there's a bunch of conflicts and it requires a clean slate. Awesome work on getting it working though!!

  • @akshitsoni9800
    @akshitsoni9800 2 роки тому

    Hey bro m facing assert error 251 for drawcontour anu suggestion how to solve it

  • @MrLyasine
    @MrLyasine Рік тому

    thank you for this videos but I found that works only on separated cars I mean when there is only one car in a photo, and also the car doesnt have rectangles in its shape

  • @xavier32421
    @xavier32421 Рік тому

    Wonder people will start injecting virus through this

  • @vishwashehan8441
    @vishwashehan8441 3 роки тому

    im having a error in reader = easyocr.Reader(['en']) line it says it's detection models an after like 2% it is getting stucked kinda very very slow any idea?

  • @C-Krunali
    @C-Krunali Рік тому

    Can I use this code to detect number plate from videos

  • @IrdiansyahBMK
    @IrdiansyahBMK Рік тому

    Hi this is a great tutorial. Fortunately, it doesn't work with any other images apart from the few images you have.

  • @hilmeroudijk5991
    @hilmeroudijk5991 Рік тому

    would this work on a raspberry pi? with raspberry pi OS

  • @incredible792
    @incredible792 2 роки тому

    I got this error "too many values to unpack (expected 2)" when i did the crop part

  • @abdulwaseymohammed9729
    @abdulwaseymohammed9729 Рік тому +1

    Hi Nicholas, thanks for this video. Could you do another video that shows how to extract hand written text from the Crosswords puzzles and compare that with the correct answers?

  • @JH-ms1jv
    @JH-ms1jv 3 роки тому +2

    Hey mate. Great videos. I’ve read through a few comments and pretty excited to see this “new” video ahah. Any idea when it’s going to be released?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Was smashing it out til late last night @J H, let me know what you think: ua-cam.com/video/0-4p_QgrdbE/v-deo.html

  • @bhushantayde5762
    @bhushantayde5762 3 роки тому +1

    Sir can you further modify this code to be used in Parking Management System.

  • @simbarashenyaruwata7740
    @simbarashenyaruwata7740 2 роки тому

    Good day, Nicholas can i use opencv contour detection to detect square number plates used in Zimbabwe

  • @byiringirooscar321
    @byiringirooscar321 3 роки тому +1

    how to store those number plate recognized like in mysql?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      You could connect to a DB using something like pypi.org/project/MySQL-python/ and push those results out!

  • @VarunSingh-hb7zg
    @VarunSingh-hb7zg 3 роки тому +1

    I successfully installed easyocr but my kernel is dead when I'm importing it..I don't know why

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Any errors in the terminal @Varun?

    • @VarunSingh-hb7zg
      @VarunSingh-hb7zg 3 роки тому

      @@NicholasRenotte Nope..I didn't had any

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@VarunSingh-hb7zg possibly try running it in a virtual environment?

  • @vinsmokearifka
    @vinsmokearifka 3 роки тому +1

    Hello Sir, how about in my country? White text in black background?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Try using the updated version of the model, video is on the channel!!

    • @vinsmokearifka
      @vinsmokearifka 3 роки тому

      @@NicholasRenotte thank you Sir

  • @m02-049
    @m02-049 3 місяці тому

    In my case it is detecting headlights and bumper

  • @candrasniper3404
    @candrasniper3404 2 роки тому +1

    What if there is another text beside the number plate? Such as, numbers on car sticker.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Normally would need to do some additional processes to manually filter it out. Could also filter based on detected region size i.e. the main plate is going to be the largest detected block of text (most of the time)

    • @candrasniper3404
      @candrasniper3404 2 роки тому

      @@NicholasRenotte if using region detected trick, so it must have a certain distance from the camera to get the range of plate box, if you do it in real time from a video capture, not from a photo. But it will also get another text in a box that close to the range region that we've set.

  • @costin2k
    @costin2k Рік тому

    Great video , i want to add to this project real time object detection from webcam. Can you tell me few stepts for that? Thanks in advance :)

  • @35_pranotisarjoshi_2b6
    @35_pranotisarjoshi_2b6 Рік тому

    Nich Sir, what if I dont have External Graphics card can it still work?

  • @humoruniverse6399
    @humoruniverse6399 3 роки тому +1

    I couldnt install easyocr , is anybody help me about it?

  • @yativijay1336
    @yativijay1336 3 роки тому +1

    can you please make a video for helmet detection using open cv please

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Yati, check out the latest video, should give you a walkthrough on how to do it!

  • @mencychristian1831
    @mencychristian1831 3 роки тому +4

    Man you saved my presentation ....thank you so much!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      YESS, glad I could help @Mency, how did your presentation go?

    • @mencychristian1831
      @mencychristian1831 3 роки тому +1

      @@NicholasRenotte That was my best presentation ever 😀

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@mencychristian1831 YESSSSS, so glad to hear!!

  • @aimenino7285
    @aimenino7285 2 роки тому

    Hi have a small request in the last step (step 6) for rendering results can you help me how i can add Chinese characters and English on the image

  • @jumbertparrenas3218
    @jumbertparrenas3218 Рік тому

    Can you help me for that for research paper only..

  • @nguyenphuctri9953
    @nguyenphuctri9953 3 роки тому +1

    ONLY 1 of 4 pictures that this system got it right.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Try the new and improved model: ua-cam.com/video/0-4p_QgrdbE/v-deo.html

  • @AKKJ420
    @AKKJ420 2 роки тому

    easyocr cannot be installed on a raspberry pi 4. I have spent hrs trying to fix it but I gave up and tried a different package pytesseract or something which seem to work now.

    • @AKKJ420
      @AKKJ420 2 роки тому

      I have managed to get this to work on Jetson Nano until I got to easyOCR where I m getting the following error:
      CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
      Illegal instruction (core dumped)
      Another rabbit hole

  • @tejeshwarrajput1679
    @tejeshwarrajput1679 3 роки тому +1

    Great video!! i have a doubt can do the same thing by using visual studio code ??

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Sure can, just need to install a Python interpreter into VSC.

  • @ozlematz2528
    @ozlematz2528 3 роки тому +3

    Thank you my teacher. Nice education. ^_^

  • @許廷瑋-x6x
    @許廷瑋-x6x 2 роки тому

    I tried again, I made a mistake
    Thank you

  • @joaopedropereira8741
    @joaopedropereira8741 3 роки тому +1

    when I run the import my jupyter stops working and does not run any lines after the import, could someone help me?
    error line "import cv2
    from matplotlib import pyplot as plt
    import numpy as np
    import imutils
    import easyocr"

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Joao, just checking in, what's the error?

    • @joaopedropereira8741
      @joaopedropereira8741 3 роки тому

      @@NicholasRenotte when I go, I oppose the libraries to install opencv, easyocr and PyTorch, the jupyter notbook tells me that I don't have the 'matplolib' module
      even if i installed it locally with my anaconda 3, could you help me?
      Error line
      "import cv2
      from matplolib import pyplot as plt
      import numpy as np
      import imutils
      import easyocr "
      Error = "ModuleNotFoundError Traceback (most recent call last)
      in
      1 import cv2
      ----> 2 from matplolib import pyplot as plt
      3 import numpy as np
      4 import imutils
      5 import easyocr
      ModuleNotFoundError: No module named 'matplolib' "

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @@joaopedropereira8741 can you try setting up a virtual environment and doing a clean install. I show how to do this at the beginning of this vid: ua-cam.com/video/0-4p_QgrdbE/v-deo.html

    • @joaopedropereira8741
      @joaopedropereira8741 3 роки тому

      @@NicholasRenotte thaks!!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@joaopedropereira8741 anytime! How did you go?

  • @MaestriiCabanelor
    @MaestriiCabanelor 3 роки тому +1

    please make video when u capture with live camera the plates

  • @satyanarayanakoppuravuri
    @satyanarayanakoppuravuri 2 місяці тому

    i am not getting any location which you explained at 14:20 then what to do at that time?

  • @ajaybhadwal
    @ajaybhadwal 3 роки тому +1

    Amazing Nicholas. I am into ANPR technology. Let me know how we can collaborate.

  • @jaap6384
    @jaap6384 3 роки тому +1

    Hey, amazing video first of. I do have one problem with the mask, it does not mask out the numberplate but instead masks out the window, any clue how i can fix this?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Hold up on it, I've actually got a significantly better version of it coming this week!

    • @jaap6384
      @jaap6384 3 роки тому +1

      @@NicholasRenotte Oh that is great to hear? Does it use something like TensorFlow?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@jaap6384 sure does!

  • @jaytab3686
    @jaytab3686 3 роки тому +1

    Is this one better than the other one?

  • @h-electronics602
    @h-electronics602 3 роки тому +1

    I have another question how can I detect a plate in a video instead of a high-quality picture I modified the code to take frames from a video but the plate is not really clear. In another video I used, the plate in it was very clear, but could not detect, and even I tried your original code with a screenshot of the scene but it could not detect the picture anyway. Any suggestions?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @H-Electronics, it might take some additional processing to detect. What I would suggest is using a DL model to identify the region with the plate, single out the region, apply perspective transformation (www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/) THEN applying OCR.

    • @h-electronics602
      @h-electronics602 3 роки тому

      @@NicholasRenotte Oops!
      The page you are looking for no longer exists. Perhaps starting from the site's homepage will get you on the right track.
      XD That what I found

    • @h-electronics602
      @h-electronics602 3 роки тому +1

      @@NicholasRenotte I am thinking of an algorithm to detect all the possible rectangles in the frame and then by machine learning try to identify whether this rectangle is a plate or not. Like the algorithm that recognize if this animal is cat or dog.The problem I think it will not be efficient because the processing time will belong. What do you think?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@h-electronics602 from what I've seen, it's normally a little slower than using non-deep learning powered OCR. It should be a lot more resilient to different styled plates though!

  • @kannigasathya1016
    @kannigasathya1016 Рік тому

    My kernel dies when I import easyocr. Is there any solution?

  • @RanjitSingh-rq1qx
    @RanjitSingh-rq1qx 2 роки тому

    Sir how can we create the front end for this project by using flask.

  • @gimanthadesilva
    @gimanthadesilva 3 роки тому +1

    I get an error when installing torch, windows 10
    "Could not find a version that satisfies the requirement"

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Heya @Gimantha, what command did you use to run the install?

    • @gimanthadesilva
      @gimanthadesilva 3 роки тому +1

      @@NicholasRenotte hey thanks for the reply, the command i used is,
      pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio===0.8.1 -f download.pytorch.org/whl/torch_stable.html

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@gimanthadesilva And you're running Python 3.x? I'd check this and make sure that the machine you're running meets the dependencies: pytorch.org/get-started/locally/

    • @drew9017
      @drew9017 3 роки тому

      @@gimanthadesilva make sure you are running 64 bit python, I had this issue too

  • @hariskabeerhariskabeer6190
    @hariskabeerhariskabeer6190 3 роки тому +1

    hi nicholas the video was literally awseome. but there is one thing i need to ask is how can i store the results in my data base because i am working on a parking system based on facial recognition and license plate recognition i have to first save the license plate result then go to the next process of verification and other stuff help will be appreciated.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Depends on your db but you could output the results using a Python SQL client or something along those lines!

    • @malikahmad2441
      @malikahmad2441 3 роки тому

      @@NicholasRenotte is there any comma separation technique used and extract only number plate characters from the result and store it into a db ?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@malikahmad2441 not sure what's the goal of splitting by commas but you could use the split method. e.g. 'PLATE,99'.split(',') #will split based on commas

  • @rahulmanocha4533
    @rahulmanocha4533 2 роки тому

    How to get the accuracy of this model

  • @philatkinson8051
    @philatkinson8051 2 роки тому +1

    Great video and really good explanation and as for typing that amount of code by hand and it working first time. . . Just amazing.

  • @CBECSamiths
    @CBECSamiths 2 роки тому

    please say how to detect vehicle in real time and extract the number plate