creotiv / object_detection_projects Goto Github PK
View Code? Open in Web Editor NEWMy public projects about object detection algorithms
My public projects about object detection algorithms
Can I use this method of counting in combination with the deep learning detection algorithms like SSD YOLO FRCNN etc? after generating the bounding boxes how can I find the centroid of the objects ?
Hi,
I have installed all the dependencies and when I am tried to execute the program I am stuck on an error. I did some google but didn’t find any update. can You please help me in this.
The error is
File “C:\Users\Deepu\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo\io\io.py”, line 240, in vreader
assert _HAS_FFMPEG, “Cannot find installation of ffmpeg.”
AssertionError: Cannot find installation of ffmpeg.
hi!i want to know what are your criteria for judging the capacity of the road and what is the percentage of the shadow area of the vehicle?
NameError: global name 'EXIT_COLOR' is not defined
it is in the file named pipeline.py
Thank you !
How to run this code step by step?
I'm newbie here in GitHub and I want to know how to run this program Thanks!
The script traffic.py won't open the winodw of video. Just it excecutes on console/terminal.
Apologies this may be a really simple issue but when running pip install - r requirements.txt it cannot find the version on opencv-python version 3.2.0.7 saying only versions 3.4.2.16 and above are available. Any ideas?
Hello! This project is really awesome and I'm looking to do more related-research based on this repo.
I'm trying to make this work with a live feed of video coming from webcam or RTSP. I read in the code that you tried to use CV2 but had no luck, but I was wondering if you found something at this moment.
I have tried using CV2 but had no luck. even using frames and getting an .mp4 file "on air".
Anyways, thanks for this awesome project!
Hello!
Help me, please.
Try to use cv2 with rtsp, but receiving errors:
Traceback (most recent call last):
File "C:/Users/usr6243828/PycharmProjects/traffic-count/traffic.py", line 120, in
main()
File "C:/Users/usr6243828/PycharmProjects/traffic-count/traffic.py", line 109, in main
pipeline.run()
File "C:\Users\usr6243828\PycharmProjects\traffic-count\pipeline.py", line 57, in run
self.context = p(self.context)
File "C:\Users\usr6243828\PycharmProjects\traffic-count\pipeline.py", line 379, in call
frame = self.draw_ui(frame, vehicle_count, exit_masks)
File "C:\Users\usr6243828\PycharmProjects\traffic-count\pipeline.py", line 363, in draw_ui
mask = cv2.bitwise_and(_img, _img, mask=exit_mask)
cv2.error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\core\src\arithm.cpp:250: error: (-215:Assertion failed) (mtype == CV_8U || mtype == CV_8S) && _mask.sameSize(*psrc1) in function 'cv::binary_op'
How to solve it?
Hi,
I am getting error while trying to run traffic.py file from command prompt-
assertion error : Cannnot find installation of ffmpeg
When I try it with small video file its saved images in out folder and write csv file.
But in the end this error show up:
Traceback (most recent call last):
File "C:\Users\Dev-PC\Anaconda3\envs\Cars\lib\site-packages\skvideo\io\ffmpeg.py", line 267, in _read_frame_data
assert len(arr) == framesize
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "traffic.py", line 115, in <module>
main()
File "traffic.py", line 80, in main
for frame in cap:
File "C:\Users\Dev-PC\Anaconda3\envs\Cars\lib\site-packages\skvideo\io\io.py", line 253, in vreader
for frame in reader.nextFrame():
File "C:\Users\Dev-PC\Anaconda3\envs\Cars\lib\site-packages\skvideo\io\ffmpeg.py", line 293, in nextFrame
yield self._readFrame()
File "C:\Users\Dev-PC\Anaconda3\envs\Cars\lib\site-packages\skvideo\io\ffmpeg.py", line 277, in _readFrame
s = self._read_frame_data()
File "C:\Users\Dev-PC\Anaconda3\envs\Cars\lib\site-packages\skvideo\io\ffmpeg.py", line 271, in _read_frame_data
raise RuntimeError("%s" % (err1,))
RuntimeError
What version i must install? I have version 3.4.2.16.
I cloned the repo and when I tried to run traffic.py got the following error:
Training BG Subtractor...
Traceback (most recent call last):
File "traffic.py", line 115, in <module>
main()
File "traffic.py", line 104, in main
pipeline.run()
File "/home/niko/workspace/object_detection_projects/opencv_traffic_counting/pipeline.py", line 59, in run
self.context = p(self.context)
File "/home/niko/workspace/object_detection_projects/opencv_traffic_counting/pipeline.py", line 151, in __call__
context['objects'] = self.detect_vehicles(fg_mask, context)
File "/home/niko/workspace/object_detection_projects/opencv_traffic_counting/pipeline.py", line 122, in detect_vehicles
fg_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_L1)
ValueError: not enough values to unpack (expected 3, got 2)
mask = cv2.bitwise_and(_img, _img, mask=exit_mask)
cv2.error: OpenCV(3.4.1) /tmp/opencv-20180307-60086-ryy1b3/opencv-3.4.1/modules/core/src/arithm.cpp:241: error: (-215) (mtype == 0 || mtype == 1) && _mask.sameSize(*psrc1) in function binary_op
It fails on tensorflow-gpu, can't I just remove it?
Hello Andrey,
Thank a lot for this code it will be very useful for me. I have some questions. Why counting mistakes happen when I use this code on other video?
1* When I set exit green mask at 1280px - 150px, this algorithm count 19 cars (real is 25 cars).
2* When I set exit green mask shorter/longer at 100px or 250px algorithm count 0 cars.
How to properly set up exit mast for counting?
I have example with video for 1* situation.
https://nedrive.live.com/?authkey=%21AH%5Flz73hdY4IXt8&cid=E0A9A985367B002F&id=E0A9A985367B002F%216180&parId=E0A9A985367B002F%216179&o=OneUp
After the traffic_capacity.py reaches the end of the 'input.mp4' video file, it throws a StopIteration exception as follows:
Traceback (most recent call last):
File "traffic_capacity.py", line 72, in
main()
File "traffic_capacity.py", line 61, in main
cap.next()
StopIteration
Also the make_video.sh file is not creating an output video for traffic capacity example.
if __name__ == "__main__":
log = utils.init_logging()
if not os.path.exists(IMAGE_DIR):
log.debug("Creating image directory `%s`...", IMAGE_DIR)
os.makedirs(IMAGE_DIR)
main()
Output is:
AttributeError: module 'utils' has no attribute 'init_logging'
Did someone faced with same issue?
I don't know what is the mean of " [number of seconds to group by] "
how can i do if i want to python plot.py ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.