Giter VIP home page Giter VIP logo

Comments (3)

kaylode avatar kaylode commented on May 25, 2024

According to this https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2
Please try this on colab

!pip uninstall opencv-python-headless
!pip install opencv-python-headless==4.1.2.30

from vehicle-counting.

VYRION-Ai avatar VYRION-Ai commented on May 25, 2024

i add the code , it run but it create a other error after finishing , it did not create the video successfully , but it create the csv file

`Fusing layers... 
Model Summary: 213 layers, 7020913 parameters, 0 gradients
Adding AutoShape... 
100% 885/885 [02:39<00:00,  5.54it/s]
/content/main/main/utilities/counting/bb_polygon.py:124: RuntimeWarning: invalid value encountered in double_scalars
  return tmp1/tmp2
  0% 0/885 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "run.py", line 48, in <module>
    main(args, config)
  File "run.py", line 30, in main
    pipeline.run()
  File "/content/main/main/modules/__init__.py", line 98, in run
    polygons=videocounter.polygons)
  File "/content/main/main/modules/datasets.py", line 145, in write_full_to_video
    outvid=self.outvid
  File "/content/main/main/utilities/counting/utils.py", line 319, in visualize_merged
    img = draw_anno(img, zones, directions)
  File "/content/main/main/utilities/counting/utils.py", line 116, in draw_anno
    image = draw_arrow(image, points[0], points[1], colors[5])
  File "/content/main/main/utilities/counting/utils.py", line 8, in draw_arrow
    image = cv2.line(image, start_point, end_point, color, 3)
SystemError: new style getargs format but argument is not a tuple`

from vehicle-counting.

kaylode avatar kaylode commented on May 25, 2024

i have fixed the issue in the recently commit.

from vehicle-counting.

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.