dluvizon / vehicle-dsm Goto Github PK
View Code? Open in Web Editor NEWVehicle detection and speed measurement system
Home Page: http://www.dainf.ct.utfpr.edu.br/~rminetto/projects/vehicle-speed
License: MIT License
Vehicle detection and speed measurement system
Home Page: http://www.dainf.ct.utfpr.edu.br/~rminetto/projects/vehicle-speed
License: MIT License
where is rectangles.txt provided in [gst-plugin/tools/perspective/perspective-transform.cpp](https://github.com/dluvizon/vehicle-dsm/blob/c10a60655b5864d83e65791402cc592a7e8340fb/gst-plugin/tools/perspective/perspective-transform.cpp
and if you can explain more how the four points in the IPM are calculated
Can you please add the information about the camera geometry (eg: camera spesification, camera positioning, angle of view, angle of camera). I think it is important to know, related to the vehicle speed measurements. I hope you can explain it, thanks.
Hello Sir,
I have tried running the code. After running ./autogen.sh and make successfully I'm getting the following error " No such element or plugin 'vehicledsm' ".
I have checked for blacklisted files, there are zero blacklisted files.
I have also checked size of libgstplugin.so it is about 2.0 MB.
Still it is throwing the following error.
Please help in solving the issue.
Thanks in advance.
Hi, I'm working on vehicle speed measurement using single camera and I'm glad to follow your great work.
I got an issue when I run your code.
I put the command ./run-dsm.sh ../../dataset/set1/
. And then, the error messages are:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: H.264 decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(4640): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: H.264 (video/x-h264, stream-format=(string)byte-stream)ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
I tried to figure out the reason but I couldn't...
My system is Ubuntu16.04
Any help will be appreciated.
can this work for real case?
with rtsp protocol using ip camera
Hello,
I'm trying to run the code but I'm getting the following issue while running make command.
" fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory"
I'm using GCC 5.5 version.
I have installed OpenCV and linked all the libraries also I have set the path correctly.
I tried to figure out the issue but I'm unable to figure it out.
Does Including absolute address instead of relative address will help or not?
Any help is greatly appreciated.
Hi @dluvizon
I can see that perspective-transform.cpp
has a method named generate_hmatrix
, in that three variables pixels_per_m
, ipm_top
, ipm_left
are used.
I want to know how you obtained values of these variables ? Did you manually first transformed the image of camera then obtain these values from that transformed image ??
The .so file is created and during inspect the it throws out a error vehicledsm not found and its not a gstreamer plugin.
-rwxr-xr-x 1 root root 2649088 Nov 6 16:06 libgstplugin.so
sudo ./inspect.sh
No such element or plugin 'vehicledsm'
Could you please let me know of the version of the gstreamer
Thanks in advance
I tried bash download-full.sh
But connection error occurs because of the link has been moved.
Hello!
Your works are very great!
For files lanes.xml and matrix.txt,I have two questions.
According to the graph shown on the README.md, what is the exact distance between two yellow lines? Thanks!
Hi,
I'm trying to get the project working on a Raspberry Pi 4 device, but so far out of luck. I'll try to explain the problem in detail, so perhaps someone from the community might have a clue as to what's going on.
I'm running Ubuntu 18.04 LTS ARM64 on RPi4, which is the earliest supported version of Ubuntu for the device.
I installed all the dependencies as explained. The gstreamer plugin got compiled as expected, but is not loading.
It's showing as blacklisted:
$ gst-inspect-1.0 --gst-plugin-path=../gstreamer/.libs/ -b
Blacklisted files:
libgstplugin.so
Total count: 1 blacklisted file
When I try to load directly the shared object:
$ gst-inspect-1.0 ../gstreamer/.libs/libgstplugin.so
Could not load plugin file: File "../gstreamer/.libs/libgstplugin.so" is not a GStreamer plugin
It's linked properly to its dependencies:
$ ldd ../gstreamer/.libs/libgstplugin.so
linux-vdso.so.1 (0x0000ffff96e02000)
libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000ffff96ab5000)
libgstreamer-1.0.so.0 => /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0 (0x0000ffff96985000)
libgobject-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0 (0x0000ffff96928000)
libglib-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000ffff9681a000)
libjpeg.so.8 => /usr/lib/aarch64-linux-gnu/libjpeg.so.8 (0x0000ffff967d0000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000ffff967ac000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff96653000)
/lib/ld-linux-aarch64.so.1 (0x0000ffff96dd6000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffff9659a000)
libgmodule-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0 (0x0000ffff96586000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000ffff96571000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffff96545000)
libffi.so.6 => /usr/lib/aarch64-linux-gnu/libffi.so.6 (0x0000ffff9652d000)
libpcre.so.3 => /lib/aarch64-linux-gnu/libpcre.so.3 (0x0000ffff964bb000)
The file size is about 2.6mB:
$ ls -la ../gstreamer/.libs/libgstplugin.so
-rwxrwxr-x 1 ubuntu ubuntu 2621200 Jan 26 18:57 ../gstreamer/.libs/libgstplugin.so
It's recognized properly as ELF 64-bit LSB shared object:
$ file ../gstreamer/.libs/libgstplugin.so
../gstreamer/.libs/libgstplugin.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=d32b6741f5da7c1f844513f32da1a1a653a97fdd, with debug_info, not stripped
GStreamer version is 1.14.5
$ gst-launch-1.0 --version
gst-launch-1.0 version 1.14.5
GStreamer 1.14.5
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
To see if the CPU architecture is the problem, I installed the same Ubuntu version as a virtual machine on my desktop (x64), and the same problem is showing up.
However, when I installed Ubuntu 16.04 LTS as a virtual machine, it's loading fine. The GStreamer version that comes with it is 1.8.3:
$ gst-launch-1.0 --version
gst-launch-1.0 version 1.8.3
GStreamer 1.8.3
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
Unfortunately Ubuntu 16.04 is not an option for RPi4, and I need to make it work with at least 18.04. So, I wonder why the difference in versions of GStreamer is causing the issue, given that it's only a minor version difference between them (1.8.3 vs 1.14.5) – and is meant to be backwards compatible.
Thanks
can you help me how to run this code from start to end please?
i need help i dont know where to start. I have very little knowledge about this.
When running run-dsm.sh ,ERROR:File 'input/model.svm' not found!
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.