Comments (3)
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.
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.
i have fixed the issue in the recently commit.
from vehicle-counting.
Related Issues (20)
- (ptrorch) PS C:\Users\Administrator\Downloads\Compressed\vehicle-counting-1-master> python detect.py --video_path input.mp4 Traceback (most recent call last): File "detect.py", line 123, in <module> config = Config(os.path.join('configs',args.config)) File "D:\ProgramData\Anaconda3\envs\ptrorch\lib\ntpath.py", line 117, in join genericpath._check_arg_types('join', path, *paths) File "D:\ProgramData\Anac HOT 4
- t7 to pb HOT 3
- error in useing different video name HOT 2
- IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed HOT 1
- This is not an issue, this is a request, can you detect speed please HOT 2
- Question: Where to find the list of vehicle types? HOT 2
- a quick question about download process yolov5 master.zip file to root HOT 2
- main file HOT 3
- Slow to detect on windows 10? HOT 1
- Pass video without the json file HOT 1
- all things is done, but can't read any sample video ?!
- Suggest to loosen the dependency on albumentations
- Pretrained-weight with HCMC-AIC ? HOT 2
- Request file camera config HOT 1
- pth files HOT 1
- i have an issue HOT 8
- chào anh, cho e hỏi cách chạy đoạn chương trình của mình với ạ HOT 4
- how to put custom weight? HOT 1
- A problem has occurred. Why is this? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vehicle-counting.