koba / overhead-camera-people-counter Goto Github PK
View Code? Open in Web Editor NEWPeople counting algorithm using an overhead video camera
License: GNU General Public License v3.0
People counting algorithm using an overhead video camera
License: GNU General Public License v3.0
Can you please tell me which algorithm is used in this project because your given link is not working
Hello agurz,
I clone your code and compile on ubuntu16.0.4, it always report errors.
Do you know how to resolve this error?
thanks for your kindly help!
elf@elf-shadow:/wjx/workspace/code/counter/overhead-camera-people-counter/build$ ll/wjx/workspace/code/counter/overhead-camera-people-counter/build$ make
total 44
drwxrwxr-x 3 elf elf 4096 12月 1 10:55 ./
drwxrwxr-x 7 elf elf 4096 12月 1 10:55 ../
-rw-rw-r-- 1 elf elf 19637 12月 1 10:55 CMakeCache.txt
drwxrwxr-x 6 elf elf 4096 12月 1 11:02 CMakeFiles/
-rw-rw-r-- 1 elf elf 1451 12月 1 10:55 cmake_install.cmake
-rw-rw-r-- 1 elf elf 5150 12月 1 10:55 Makefile
elf@elf-shadow:
[ 50%] Building CXX object CMakeFiles/people-counter.dir/src/main.cpp.o
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33:0,
from /usr/include/c++/5/bits/allocator.h:46,
from /usr/include/c++/5/string:41,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/help.cpp:1,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/main.cpp:1:
/usr/include/c++/5/ext/new_allocator.h: In instantiation of ‘struct __gnu_cxx::new_allocator’:
/usr/include/c++/5/bits/allocator.h:92:11: required from ‘class std::allocator’
/usr/include/c++/5/bits/stl_vector.h:79:14: required from ‘struct std::_Vector_base<const Line, std::allocator >::_Vector_impl’
/usr/include/c++/5/bits/stl_vector.h:164:20: required from ‘struct std::_Vector_base<const Line, std::allocator >’
/usr/include/c++/5/bits/stl_vector.h:214:11: required from ‘class std::vector’
/home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/counter/VideoCapturePeopleCounter.cpp:119:57: required from here
/usr/include/c++/5/ext/new_allocator.h:93:7: error: ‘const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const Line; __gnu_cxx::new_allocator<_Tp>::const_pointer = const Line*; __gnu_cxx::new_allocator<_Tp>::const_reference = const Line&]’ cannot be overloaded
address(const_reference __x) const _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/ext/new_allocator.h:89:7: error: with ‘_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const Line; __gnu_cxx::new_allocator<_Tp>::pointer = const Line*; __gnu_cxx::new_allocator<_Tp>::reference = const Line&]’
address(reference __x) const _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::deallocate(__gnu_cxx::new_allocator<_Tp>::pointer, __gnu_cxx::new_allocator<_Tp>::size_type) [with _Tp = const Line; __gnu_cxx::new_allocator<_Tp>::pointer = const Line*; __gnu_cxx::new_allocator<_Tp>::size_type = long unsigned int]’:
/usr/include/c++/5/bits/alloc_traits.h:517:9: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::deallocate(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, std::allocator_traits<std::allocator<_CharT> >::pointer, std::allocator_traits<std::allocator<_CharT> >::size_type) [with _Tp = const Line; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator; std::allocator_traits<std::allocator<_CharT> >::pointer = const Line*; std::allocator_traits<std::allocator<_CharT> >::size_type = long unsigned int]’
/usr/include/c++/5/bits/stl_vector.h:178:19: required from ‘void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t) [with _Tp = const Line; _Alloc = std::allocator; std::_Vector_base<_Tp, _Alloc>::pointer = const Line*; std::size_t = long unsigned int]’
/usr/include/c++/5/bits/vector.tcc:433:19: required from ‘void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {const Line&}; _Tp = const Line; _Alloc = std::allocator]’
/usr/include/c++/5/bits/stl_vector.h:923:23: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const Line; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::value_type = const Line]’
/home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/counter/VideoCapturePeopleCounter.cpp:132:64: required from here
/usr/include/c++/5/ext/new_allocator.h:110:26: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
{ ::operator delete(__p); }
^
In file included from /usr/include/c++/5/ext/new_allocator.h:33:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33,
from /usr/include/c++/5/bits/allocator.h:46,
from /usr/include/c++/5/string:41,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/help.cpp:1,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/main.cpp:1:
/usr/include/c++/5/new:115:6: note: initializing argument 1 of ‘void operator delete(void*)’
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
^
In file included from /usr/include/c++/5/bits/stl_tempbuf.h:60:0,
from /usr/include/c++/5/bits/stl_algo.h:62,
from /usr/include/c++/5/algorithm:62,
from /usr/local/include/opencv2/core/base.hpp:55,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/opencv.hpp:52,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/model/Line.cpp:1,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/model.hpp:6,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/counter.hpp:4,
from /home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/main.cpp:2:
/usr/include/c++/5/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = const Line; _Args = {const Line&}]’:
/usr/include/c++/5/bits/stl_uninitialized.h:75:18: required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const Line*; _ForwardIterator = const Line*; bool _TrivialValueTypes = false]’
/usr/include/c++/5/bits/stl_uninitialized.h:126:15: required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const Line*; _ForwardIterator = const Line*]’
/usr/include/c++/5/bits/stl_uninitialized.h:281:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = const Line*; _ForwardIterator = const Line*; _Tp = const Line]’
/usr/include/c++/5/bits/stl_uninitialized.h:303:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = const Line*; _ForwardIterator = const Line*; _Allocator = std::allocator]’
/usr/include/c++/5/bits/vector.tcc:422:8: required from ‘void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {const Line&}; _Tp = const Line; _Alloc = std::allocator]’
/usr/include/c++/5/bits/stl_vector.h:923:23: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const Line; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::value_type = const Line]’
/home/elf/wjx/workspace/code/counter/overhead-camera-people-counter/src/modules/counter/VideoCapturePeopleCounter.cpp:132:64: required from here
/usr/include/c++/5/bits/stl_construct.h:75:7: error: invalid static_cast from type ‘const Line*’ to type ‘void*’
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^
CMakeFiles/people-counter.dir/build.make:62: recipe for target 'CMakeFiles/people-counter.dir/src/main.cpp.o' failed
I'm trying to test the project on ubuntu 16.04.
All step 1 "1. Installing Dependencies" went smooth with no issues.
In step 2 "2. Build" when I run the command: "cmake --build /build" I'm getting the error: "Error: /build is not a directory". I'm running the command from the "release" directory.
What an I missing?
Thanks in advanced,
Guy
Hi all,
After make the program and run by build/people-counter dta/bus.avi. It show me the error as following.
and I am using opencv 3.3.1. I installed libgtk2.0-dev and pkg-config in raspberry.
As I am new raspbian platform, would you help to advice me to the problem?.
Thanks.
B. Regards
Kenneth
terminate called after throwing an instance of 'cv::Exception'
what(): /home/pi/opencv/modules/highgui/src/window.cpp:593: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow
Aborted
Hi
I cannot locate the lapacke.h file anywhere. Maybe I have missed it somewhere and it gives me an error. Kindly help by providing the solution/path to the header file.
Thanks and Regards
Saurabh Dawra
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppicom_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory /home/opencv_contrib-4.0.0/modules/cudev
linked by target "opencv_cudev" in directory /home/opencv_contrib-4.0.0/modules/cudev
linked by target "opencv_test_cudev" in directory /home/opencv_contrib-4.0.0/modules/cudev/test
linked by target "opencv_test_core" in directory /home/opencv-4.0.0/modules/core
linked by target "opencv_core" in directory /home/opencv-4.0.0/modules/core
linked by target "opencv_core" in directory /home/opencv-4.0.0/modules/core
linked by target "opencv_perf_core" in directory /home/opencv-4.0.0/modules/core
linked by target "opencv_test_cudaarithm" in directory /home/opencv_contrib-4.0.0/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory /home/opencv_contrib-4.0.0/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory /home/opencv_contrib-4.0.0/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory /home/opencv_contrib-4.0.0/modules/cudaarithm
linked by target "opencv_flann" in directory /home/opencv-4.0.0/modules/flann
linked by target "opencv_flann" in directory /home/opencv-4.0.0/modules/flann
linked by target "opencv_test_flann" in directory /home/opencv-4.0.0/modules/flann
linked by target "opencv_test_hdf" in directory /home/opencv_contrib-4.0.0/modules/hdf
linked by target "opencv_hdf" in directory /home/opencv_contrib-4.0.0/modules/hdf
linked by target "opencv_hdf" in directory /home/opencv_contrib-4.0.0/modules/hdf
linked by target "opencv_test_imgproc" in directory /home/opencv-4.0.0/modules/imgproc
linked by target "opencv_imgproc" in directory /home/opencv-4.0.0/modules/imgproc
linked by target "opencv_imgproc" in directory /home/opencv-4.0.0/modules/imgproc
linked by target "opencv_perf_imgproc" in directory /home/opencv-4.0.0/modules/imgproc
Hello
I been looking where did you select the path for the video but i cant find it, could you tell me where is it? i would like to change this program to have a people counter live from a usb webcam, do you have any idea of how i could do it?
Regards
CMake Error at modules/core/CMakeLists.txt:40 (message):
CUDA: OpenCV requires enabled 'cudev' module from 'opencv_contrib'
repository: https://github.com/opencv/opencv_contrib
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.