Giter Site home page Giter Site logo

using python2.7:vehicle-detection.py, line 28, vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: wrong type # about alpr-unconstrained HOT 3 OPEN

liu52020 avatar liu52020 commented on August 10, 2024
using python2.7:vehicle-detection.py, line 28, vehicle_net = dn.load_net(vehicle_netcfg, vehicle_weights, 0) ctypes.ArgumentError: argument 1: wrong type #

from alpr-unconstrained.

Comments (3)

huynhthaihoa avatar huynhthaihoa commented on August 10, 2024

I also got the same error when I tried to run the model on NVIDIA Jetson Nano (Ubuntu 18.04, Python 3.6.9, Tensorflow 1.15.2, OpenCV 4.1.1). Does anyone know how to solve this? Thanks so much for any help.

from alpr-unconstrained.

huynhthaihoa avatar huynhthaihoa commented on August 10, 2024

I have fixed this error by following the instruction of ashish1405 from this link: [pjreddie/darknet/issues/241]
The solution is as below:

the <class 'TypeError'> is due the passing of string from python to c/c++ lib. just add 'b' before your string like load_net(b"/path/darknet/cfg/yolo-lines.cfg",b"/path/darknet/backup/yolo-lines_63000.weights", 0)

For string variables use bytes(str_variable, encoding='utf-8')

from alpr-unconstrained.

rsingh2083 avatar rsingh2083 commented on August 10, 2024

I have fixed this error by following the instruction of ashish1405 from this link: [pjreddie/darknet/issues/241]
The solution is as below:

the <class 'TypeError'> is due the passing of string from python to c/c++ lib. just add 'b' before your string like load_net(b"/path/darknet/cfg/yolo-lines.cfg",b"/path/darknet/backup/yolo-lines_63000.weights", 0)
For string variables use bytes(str_variable, encoding='utf-8')

Hows the performance on Jetson ? Did you try this on video/camera ? How much is the fps and accuracy ?

from alpr-unconstrained.

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.