GithubHelp home page GithubHelp logo

Comments (6)

sam-d007 avatar sam-d007 commented on May 25, 2024

Hey Apoorva, how should I run it on an image? It is giving the above errors, I tried changing the path to the image but it didn't work. Where should i make changes?

from licenseplatedetector.

apoorva-dave avatar apoorva-dave commented on May 25, 2024

@ldkhuong35 plate_like_objects is a list that contains the objects which it finds similar to license plates. The list is empty if it is unable to find any plate looking object and so it is throwing an error. You can try with different image or test dataset in the repo. This code assumes there is only one car in the image with a clear license plate.
I haven't tested for 2 line characters. However, I beileve you can use similar approach CCA for detecting characters as it identifies dense regions.

from licenseplatedetector.

apoorva-dave avatar apoorva-dave commented on May 25, 2024

@sam-d007 you just need to change the input file. For a video, we are taking different frames. For an image, it would be straightforward. You can read a car image as a grayscale image in DetectPlate.py rest of the code will remain same. Try using the test image in repo.

from licenseplatedetector.

sam-d007 avatar sam-d007 commented on May 25, 2024

@apoorva-dave Thanks, it worked. Do you know of any model that is trained on Indian License Plates? I found a haar cascade for Russian plates but not for Indian plates.

from licenseplatedetector.

apoorva-dave avatar apoorva-dave commented on May 25, 2024

@sam-d007 Not that I aware of. But these links might be helpful for you -
https://www.kaggle.com/questions-and-answers/50622
https://towardsdatascience.com/number-plate-detection-with-supervisely-and-tensorflow-part-1-e84c74d4382c

from licenseplatedetector.

girijesh18 avatar girijesh18 commented on May 25, 2024

Hi, @apoorva-dave I am trying to detect licence plate number using your code and it is working like a charm for videos but I am facing some issue while detecting number from an image. In DetectPlate.py I am trying to pass the image path in this line car_image = imread("./car6.jpg", as_gray=True) . But after this, I am getting the following error.

LicensePlateDetector-master\SegmentCharacters.py", line 10, in <module> license_plate = np.invert(DetectPlate.plate_like_objects[0]) IndexError: list index out of range

I tried to rectify by checking other files but no luck yet. Any help would be highly appreciated.

from licenseplatedetector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.