Code Monkey home page Code Monkey logo

Comments (6)

saswat0 avatar saswat0 commented on May 30, 2024

Hi @kstar1996
Could you please share with me the code that you're trying? It seems like a referencing issue which should be pretty straightforward to deal with

from license-plate-recognition.

kstar1996 avatar kstar1996 commented on May 30, 2024

Just demo.py! I haven't changed anything. I was just trying it out and it works for some images(including test.jpeg which you provided), but for some images it gives me that error above.

To be exact, it says this.
Traceback (most recent call last):
File "/Users/eujin/Downloads/License-Plate-Recognition-master/demo.py", line 12, in
plate_img, plate = extract_plate(original_image)
File "/Users/eujin/Downloads/License-Plate-Recognition-master/license_plate_extraction.py", line 19, in extract_plate
return plate_img, plate # returning the processed image.
UnboundLocalError: local variable 'plate' referenced before assignment

from license-plate-recognition.

saswat0 avatar saswat0 commented on May 30, 2024

@kstar1996
Can you please share with me the image you're trying to test? I think the cascade classifier isn't able to detect any licence plates in the image

from license-plate-recognition.

kstar1996 avatar kstar1996 commented on May 30, 2024

Yeah sure.
car2
This is one of the images! I think the problem is what you said.

I have another question related to something else.
'bash download.sh' doesn't work.

So I went here http://sergiomsilva.com/pubs/alpr-unconstrained/ and downloaded the weights and descriptor for
WPOD-NET and OCR-NET

but the license-plate-ocr.py requires also two other files called "ocr-net.data" and "ocr-net.names".
also the vehicle-detector weights yolo-voc.weights and configurations yolo-voc.cfg files are needed.

Do you maybe have the files that are needed? I think it is not public anymore!

from license-plate-recognition.

saswat0 avatar saswat0 commented on May 30, 2024

This meta file is generated purely for Indian license plates. It might not recognise the characters that are present in your image's plate

You can download yolo-voc files from the official darknet website instead. I'm not sure if I'd have ocr.data and ocr.names files but if I get them, I'll let you know

The author's site seems to be down intermittently. You can probably try some time later

from license-plate-recognition.

kstar1996 avatar kstar1996 commented on May 30, 2024

Thanks!

from license-plate-recognition.

Related Issues (9)

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.