OpenCV 3 License Plate Recognition C++ full source code

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • GitHub site:
    github.com/Mic...
    Prerequisites:
    • OpenCV 3 Windows 10 In...
    • OpenCV 3 KNN Character...
    If you found this video helpful please consider supporting me on Patreon:
    www.patreon.co...

КОМЕНТАРІ • 145

  • @DataSlayerMedia
    @DataSlayerMedia 5 років тому

    License Plate Detection Demo Using Raspberry Pi Camera - ua-cam.com/video/E-U_H9EbW60/v-deo.html

  • @misterj9817
    @misterj9817 7 років тому +2

    Hi Chris ! You are saving lives here ... Thank You !!!!!!! millions of love and respect for you. You are awesome . !

  • @arifahmedchowdhury5184
    @arifahmedchowdhury5184 5 років тому +1

    Thank you.. I have run your program. It works.. but i want to understand the method(every steps) mathematically. Can anyone help me?

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

    Can we run it with vs 2012 ?

  • @henson2k
    @henson2k 8 років тому +4

    Best tutorial in the universe!

  • @asdfasdfg4630
    @asdfasdfg4630 7 років тому +2

    there were other words like "california" and "cobra" how did that program distinguish plate or other words?

  • @melissamunoz517
    @melissamunoz517 7 років тому

    Hi Chris, I loved how your programs work, but I have some doubts, I would like to know what is the data for training based on, more specifically in the programs classification.txt and flattened_images.txt. Thank you :)

  • @pongtomar
    @pongtomar 8 років тому

    Thank you very much Chris Dahms about this clip. It was very useful for me. However I have the problem about kNN . It was not successful and exit. How did you fix it? Please kindly advise;

  • @SolvayYT
    @SolvayYT 6 років тому

    Hello Chris, i do a BAC project in France, license plate recognition, i follow your full tutorial without error of myself so, when i F5 the programm, the softaware say "(lot of files) ". Unable to find or open PDB file. Can you help me plz ??? :'(

  • @dip5044
    @dip5044 7 років тому

    i got error "error C3083: 'ml': the symbol to the left of a '::' must be a type C:\Users\dip\Documents\Visual Studio 2010\Projects\OpenCV_3_License_Plate_Recognition_Cpp\DetectChars.cpp 6 1 OpenCV_3_License_Plate_Recognition_Cpp"
    i used visual studio 10 and opencv 249...

  • @bulbulgulzer9770
    @bulbulgulzer9770 4 роки тому

    is there any way of characters from different languages?

  • @부릉부릉부
    @부릉부릉부 7 років тому

    Hello, Chris thank you for the kind explanation about Opencv. It really helped a lot. However I have few errors to solve.
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(358,5): error MSB6006: "CL.exe"이(가) 종료되었습니다(코드: -1073741515). Error sign kept coming out which means "CL.exe" has closed. I used Opencv 3.2.0, Visual Studio 2017. Can you help me with the error? Thank you again.

  • @delaselva8027
    @delaselva8027 8 років тому +2

    Thank you very much chris it was very useful, really appreciate it. I want to know whether this theory can be used for a video of vehicles and to detect the plates in the video. I'll be really thankful if you provide me any useful tips or links regarding how this can be used for a video or can be changed for a video. Thank you.

    • @18F4550videos
      @18F4550videos  8 років тому

      The installation/configuration vid ua-cam.com/video/7SM5OD2pZKY/v-deo.html has a webcam example, it would not be difficult to put the webcam code from that in place of the still image code in this project to get a webcam working.

    • @drangelo8789
      @drangelo8789 8 років тому

      +Chris Dahms hi Chris.. sorry bothering you. I'm very thankful if you could show us which part that can be used from cannywebcam.cpp to apply in this plate recognition coding? i tried many times. it get worse :'(

    • @lucasrezende2340
      @lucasrezende2340 7 років тому

      Hi Dela, have you been able to dock a webcam for image recognition rather than a still image?

    • @arifahmedchowdhury5184
      @arifahmedchowdhury5184 5 років тому

      i want to understand the method(every internal steps) mathematically. Can anyone help me?

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

    Hi Chris, can this program also be use for real time too?

  • @robthorn3910
    @robthorn3910 5 років тому

    Your series is pretty good with one caveat. Windows is a bad choice for software development and its use introduces needless complexity to the process. Computer vision applications are more naturally run on stand-alone systems such as Arduino and the whole windows paradigm just wastes resources. Thus, at the very least your packages should include Makefile scripts for building under Linux. As I understand it, Linux and Python are native to Arduino so adding support for them should make your videos much more useful to the world.

  • @comingwinter929
    @comingwinter929 7 років тому

    Thank you very much chris it was very useful, really appreciate it. but ,i want know where is the theory coming from?Please provide me .Thank you !!

  • @Ivan-rr6bn
    @Ivan-rr6bn 6 років тому

    Hi man, how can I generate myown *.xml files for kNearest algo? Unforyunately, I haven't found guides about kNearest-training on real images.

  • @liviomichaelmelatti8236
    @liviomichaelmelatti8236 7 років тому

    Hello Quick Question. I'm working on a mobile (android) solution using NDK. How well would a solution like this work for analyzing a video stream not just a single frame? I'm mostly concerned with the license plate detection and not actually recognizing characters as I just want to save an image from a video stream that sees a license plate. Thanks!

  • @TungNguyen-ri9uj
    @TungNguyen-ri9uj 5 років тому

    Thank you bro !!!!!

  • @kafuiyankus5372
    @kafuiyankus5372 7 років тому

    hi Chris am getting error in the detectchar.cpp file it says error: name followed by '::' must be namespace or class...any help

  • @mahdishojaei3935
    @mahdishojaei3935 7 років тому

    Hi Chris thanks very much , it's awesome
    i want to knew How use license recognition plate in another language for plates has another character language else english ?
    i saw you use a classifications.xml to detect character
    is it possible to change or make like this for another one??

  • @yeongjeloke3362
    @yeongjeloke3362 5 років тому

    It is a great video. What if i want to detect the car plate with white font black background?

  • @wajdiyoussef576
    @wajdiyoussef576 8 років тому

    Thank you very much chris it was very useful, really appreciate it. I want to know whether this theory can be used for a live video streming and to detect the code in the video. I'll be really thankful if you provide me any useful tips or links regarding how this can be used for a video or can be changed for a video . Thank you.

    • @18F4550videos
      @18F4550videos  8 років тому +1

      The first video in the prerequisites section covers how to use a webcam with OpenCV, you could use the webcam code from that example with this project.

  • @jonacea
    @jonacea 8 років тому

    hello as is possible to run the same example but with a loaded video file from my computer ... I tried it with the example of the webcam you have in a previous video but is not the same as uploading a file ... Could you help me please

  • @ManojKumar-ti7kn
    @ManojKumar-ti7kn 8 років тому

    Hello Chris! great video series for computer vision enthusiast's. There will be two row license plates for some vehicles in INDIA. can this code be modified for the same??

  • @mmuwafiqurr5494
    @mmuwafiqurr5494 7 років тому

    I have error "unable to open training classifications file, exiting program". can someone tell me how fix it ?

  • @윤인식-e6u
    @윤인식-e6u 3 роки тому

    Hello, I'm a UA-cam viewer in Korea. What version of the C++ source code did you work on? Did you set opencv to 3? Please tell me the exact version of opencv.

  • @kapilverma2668
    @kapilverma2668 6 років тому

    I am having trouble in recognizing Indian Number plates and also I need to make use of active learning please help me

  • @Orion.gs777
    @Orion.gs777 8 років тому

    Hi. Are you performing Viola-Jones for the detection?

  • @danialkamaludin3837
    @danialkamaludin3837 8 років тому

    hello chris, thanks for the video but there is a problem with my file. the visual studio cannot read the file of "opencv_world310d". is it i'm wrongly installed or what? need your help. thank you.

  • @buruilin7507
    @buruilin7507 8 років тому

    hey,it's very nice to watch your tutorials, just wondering where you learn about those opencv programming? from official website?

  • @AlleN-kh6ny
    @AlleN-kh6ny 7 років тому

    who can help me,my country license char 1 will be filtered

  • @thaneepopeasri1006
    @thaneepopeasri1006 4 роки тому

    respect !!!!

  • @mrrobo6708
    @mrrobo6708 4 роки тому

    could you guide me how to create images.xml file? thanks so much

  • @haliteris1
    @haliteris1 7 років тому

    Hello, how can i only scan the pixels i want. I mean , i will set pixel range

  • @UnixSan
    @UnixSan 7 років тому

    Hello, can this software to recognize the number from a video stream?

  • @SyimirHalim
    @SyimirHalim 8 років тому

    hi Chris. thanks for the tutorial. however, i hope that you show about the plate recognition using camera. :D

  • @董柏顺
    @董柏顺 8 років тому +1

    very good!

  • @fahadjalal1886
    @fahadjalal1886 8 років тому

    Hey, Really great tutorial. If i want to recognize two or more car's plate at the same time so how it can be done? Please help

  • @shubhamshinganapure8809
    @shubhamshinganapure8809 7 років тому

    Hi Chris! can we use webcam to take a live image of plate and then extract the number on it

  • @thilinaweer5690
    @thilinaweer5690 8 років тому

    Hi Chris, Thanks a lot for this video. I tried your code and worked perfectly with the pics you included in the folder. The problem I have is that when I used some pictures I took from internet and from my camera some worked but for some it returned an error "error: image not read from file". Are there any limitations or restrictions for type of photos that should be used? Waiting for your reply, Thank you

    • @18F4550videos
      @18F4550videos  8 років тому

      Based on the error message you have mentioned it would seem that OpenCV was unable to open the image you provided. To my knowledge OpenCV supports pretty much any common image format and a wide range of sizes, I'm not sure what type or size you are using.
      I would suggest to feed the image giving you trouble into the first program in the installation tutorial ua-cam.com/video/7SM5OD2pZKY/v-deo.html you get the same error then that confirms it's a limitation of OpenCV or something is wrong with the image, in which case that is not something I can assist with and I would suggest you post a question about it on answers.opencv.org/questions/. Best of luck

    • @thilinaweer5690
      @thilinaweer5690 8 років тому

      +Chris Dahms Thanks chris. I built it again and it works now. Sorry about that.

  • @chrisgwet4415
    @chrisgwet4415 7 років тому

    Hello, please when I run the program, there is an error: "opencv_world320d not found in my computer". what should I do? thank you.

  • @anmolshahid6889
    @anmolshahid6889 7 років тому

    Hi i want to recognize national id card number. Can i use this code for it?

  • @elmehdibendriouch5083
    @elmehdibendriouch5083 6 років тому

    hi chris pliz tell me what version of opencv you use ? AND what's your system exploitation u have 32BITS OR 64 bits

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

    How can I add this project to my STM32 card?

  • @meemeesilvercloud944
    @meemeesilvercloud944 8 років тому

    Can I request tutorial video ,tesseract ocr with visual studio ?

  • @naktheo
    @naktheo 7 років тому

    I can run you code and recognize the povided images. However when I try to load my photos, opencv is not able to open it in "cv::imread("my_image.png"); " do you known if there are any restriction in the specifications of images?

    • @guisurek
      @guisurek 7 років тому

      is the image in the project folder? try using full path "C:/Users/..."

  • @starturtle_5328
    @starturtle_5328 6 років тому

    any way to make this work with video? been trying

  • @niasselatan9485
    @niasselatan9485 7 років тому

    I still don't understand in your train data, you are using many number in classifications.txt, is that a random number of something?

  • @adarshtripathi8173
    @adarshtripathi8173 8 років тому

    Thanks bro for your hard work, this video was really informative.
    actually some plates are not recognised correctly can you please help how to fix this problem.

    • @faressiala6614
      @faressiala6614 7 років тому

      I can help you for this: mail to faresiala@live.fr

  • @gioabashidze6960
    @gioabashidze6960 7 років тому

    what if i want to recognize multiple plates?

  • @dilawarnaseem4139
    @dilawarnaseem4139 7 років тому

    how can we do this on a video please help

  • @lavanyaakila3956
    @lavanyaakila3956 7 років тому

    Hi Chris! I just done all steps shown in this video but the probelm am facing is output image not displaying in it. It is not showing any error. The .exe file is generating but diappeared in fraction of second. In output explorer it is showing like many .dll symbols loaded eg: 'arplatedetection.exe' (Win32): Loaded 'C:\Windows\System32
    pcrt4.dll'.Symbols loaded. It is I had installed Visual Studio 2013 and opencv3.1.0 and OS: Windows 10 x64bit. Can you suggest me to fix this problem?

    • @guangyuzhu6281
      @guangyuzhu6281 7 років тому

      Hi Lavanya, have you solved this problem?

    • @lavanyaakila3956
      @lavanyaakila3956 7 років тому

      Yeah! Later I found that I did not include some lib files. After added all files in properties I got output.

    • @guangyuzhu6281
      @guangyuzhu6281 7 років тому

      is there some libraries different from video 1?

  • @josephanthony3630
    @josephanthony3630 6 років тому

    Can the program run fast enough to process, in real time, video of cars passing by if you use a really good camera? or can it only process still photos?

    • @EdyGunawan
      @EdyGunawan 6 років тому

      You may want to employ accelerated computing, using OpenCL and Intel FPGA platform. They can process video stream in real time.

  • @lmaximoff
    @lmaximoff 8 років тому

    Hi , this is my error: 'OpenCV_3_License_Plate_Recognition_Cpp-master.exe' (Win32) : Chargé 'C:\opencv\build\x64\vc12\bin\opencv_world310d.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.

    • @18F4550videos
      @18F4550videos  8 років тому +1

      Did you follow the steps in the 1st prerequisite video linked in the description above to configure OpenCV?

  • @董鑫超
    @董鑫超 5 років тому

    Hello chris, Thank you very much for your video. In the code you just loaded two xml files. I want to know more about your training process and how these two xml files are generated. Can you give me your training code?

  • @fahadkareem2
    @fahadkareem2 8 років тому

    Can you please make this project in C# or what changes do i need to create one in c#
    have seen in visual basic, any information would be highly appreciable
    Thank You!

  • @hieutranhan2403
    @hieutranhan2403 8 років тому

    Can I need you help me ? please !

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

    Thank you a lot!

  • @denzpatricio4749
    @denzpatricio4749 8 років тому

    Hi! thanks for sharing this to us.
    Do you think we can use this for road signs instead of plate number? Any recommendations? Thanks!

    • @18F4550videos
      @18F4550videos  8 років тому +1

      I would tend towards using keypoints (try Googling on "OpenCV ORB" or "OpenCV AKAZE" for more info) for most road signs, but this method may work as well. I'm planning on a road sign tutorial eventually but it will be a while as I have some other projects planned immediately. Thanks for the suggestion though.

  • @eshwarvenkatesh3024
    @eshwarvenkatesh3024 6 років тому

    how can we do this on Qt platform?

  • @maheshpathre5929
    @maheshpathre5929 5 років тому

    HI Chris, i am getting a error that a dependent dll was not found opencv_world310.lib

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

      You have not added the path, see ua-cam.com/video/7SM5OD2pZKY/v-deo.html

  • @lumierre0791
    @lumierre0791 5 років тому

    Do you have some tutorial on how am I going to train my own model and plate number?

  • @Jorgetime
    @Jorgetime 6 років тому

    Thank you! crazy good video

  • @mohammedbatis5991
    @mohammedbatis5991 8 років тому

    what about matlab if i'm working on it how can i use Raspberry p???i

    • @mauriciojimenez283
      @mauriciojimenez283 8 років тому

      You should follow his tutorial on plate recognitionon with Python since you can use Python on Raspberry Pi, I will try it myself later

  • @lmaximoff
    @lmaximoff 8 років тому

    Does anyone has an idea

  • @damiya7977
    @damiya7977 8 років тому

    Hey,
    Awesome video!! can you please do a video on vehicle color recognition?
    Thank you.

  • @sagarca9821
    @sagarca9821 4 роки тому

    My .exe file is not getting created .When I try running the code at compie time it shows an error .exe specified could not be found.
    please someone help

  • @abhinavsaxena8221
    @abhinavsaxena8221 7 років тому

    Hello chris,
    How to do all this in Ubuntu, which IDE?

    • @melissamunoz517
      @melissamunoz517 7 років тому

      clone the git repository, install all the dependencies you're missing, if you have ubuntu 14.04 or a version above python is already installed... all you have to do afterward is type $ python Main.py in terminal

  • @stratkid00
    @stratkid00 7 років тому +1

    Hi Chris! The vehicle plates I am analyzing is of opposite colors(Black plate, white characters). How do I cater for this?

    • @waynelee2639
      @waynelee2639 7 років тому +1

      Hey there, so do u have any clue about it yet? Please email me, lchong93@gmail.com
      Thank you!

    • @niasselatan9485
      @niasselatan9485 7 років тому +1

      I have the same problem

    • @stratkid00
      @stratkid00 7 років тому +3

      I've solved this part. After many trial and errors, I decided to just invert the colors of the source image and it works. lol. Currently working on improving the speed and accuracy of applying this on a video stream.

    • @kresnalitamaulana6341
      @kresnalitamaulana6341 7 років тому

      Hi Daren
      Can I get the code? Because I want to know how it works. I hope you can share with me :)
      Thanks bro

    • @faressiala6614
      @faressiala6614 7 років тому

      I can send you an ANPR code: mail to faresiala@live.fr

  • @samueleradaelli3433
    @samueleradaelli3433 8 років тому

    Hallo!! thank you so much!
    I have a question...Is it possibile to correct the error OCR in KNN?
    In this mode Can I improve the precision and limited the errors?

    • @18F4550videos
      @18F4550videos  8 років тому

      With substantially more time it would be possible to get the character recognition perfect for the limited data set used here, however due to moving on to other projects and time limitations I do not have any immediate plans to so at this time.

  • @helmiardi
    @helmiardi 8 років тому

    what you use for identification character ?

  • @jenitorthomson9477
    @jenitorthomson9477 8 років тому

    can u pls show me how to create a simple gui in opencv

    • @18F4550videos
      @18F4550videos  8 років тому +1

      See part 3 (Emgu CV) or part 4 (Qt) of this series for GUI options.

  • @sayhongtan8993
    @sayhongtan8993 8 років тому

    Hey Chris, great video! Wondering how did you train the character recognition for the car licence plates. Did you crop and paste multiple car licence plates onto a large graphic file and train from there onwards?

    • @18F4550videos
      @18F4550videos  8 років тому

      Please see the 2nd video in the prerequisites section in the comments above.

    • @sayhongtan8993
      @sayhongtan8993 8 років тому

      +Chris Dahms Thanks for the heads up Chris - sorry for the bother!

  • @drangelo8789
    @drangelo8789 8 років тому

    hi chris. i have a question. is it possible to store the result in sql?

    • @18F4550videos
      @18F4550videos  8 років тому +1

      I'm not very familiar with the various SQL options out there and I've not tried that myself, but I don't see any reason the data could not be written from an OpenCV Mat into some sort of database format.

    • @drangelo8789
      @drangelo8789 8 років тому

      +Chris Dahms and there are any possible this tutorial can be use with webcam? and can i use the training set with white characters? in my country, vehicles are using plat number with black background. i tried with training set provided and could not detect any characters. my project for detection in real time.

  • @MuhammadWaseem-vb3qe
    @MuhammadWaseem-vb3qe 4 роки тому

    Error 1 error C2065: 'CV_ADAPTIVE_THRESH_GAUSSIAN_C' : undeclared identifier
    how to resolve this error

    • @danish_8712
      @danish_8712 4 роки тому

      Did you fix it? i face the same problem also

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

      Please see my comment above

  • @thanhcuongchu1199
    @thanhcuongchu1199 8 років тому

    Hello Chris ! when i build success, the program report unable to open trainning classfication, exit program and KNN traning was not successful after exit
    immediately. Can u help me ? Thank you so much.

  • @tingli9535
    @tingli9535 8 років тому

    Can you teach me how to open .xml ??? thanks!

    • @tingli9535
      @tingli9535 8 років тому

      i want to recognition chinese

  • @bularistech110
    @bularistech110 6 років тому

    Hi i follow every step in video i am getting this error
    'ml': the symbol to the left of a ''::'" must be a type