yuhonglin / shotdetect Goto Github PK
View Code? Open in Web Editor NEWA fast video's shot detection program written in C++, based on libavcode and openCV etc.
A fast video's shot detection program written in C++, based on libavcode and openCV etc.
Hi, Honglin, which algorithm did you use to detect shot changes? HOG difference?
Thanks in advance.
I attempted to build but seem to have an error with Hist::calculate() and Video::GetNextFrame().
Here is the output from the attempted build:
..../shotdetect-master/build# make -j 3
[ 12%] Built target logger
[ 25%] Built target option
[ 37%] [ 50%] Building CXX object src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o
Building CXX object src/CMakeFiles/shotdetect.dir/video.cpp.o
/..../shotdetect-master/src/biThreshold/hist.cpp: In member function ‘void Hist::calculate()’:
/..../shotdetect-master/src/biThreshold/hist.cpp:112:61: error: ‘cvCvtPixToPlane’ was not declared in this scope
cvCvtPixToPlane(hsvframe, h_plane, s_plane, v_plane, 0);
^
src/CMakeFiles/shotdetect.dir/build.make:169: recipe for target 'src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o' failed
make[2]: *** [src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/jordan/Desktop/shotdetect-master/src/video.cpp: In member function ‘bool Video::GetNextFrame()’:
/home/jordan/Desktop/shotdetect-master/src/video.cpp:252:32: error: ‘AVFrame’ has no member named ‘av_frame_get_best_effort_timestamp’
currentTimeStamp = pFrame->av_frame_get_best_effort_timestamp() * av_q2d(pFormatCtx->streams[videoStream]->time_base);
^
src/CMakeFiles/shotdetect.dir/build.make:100: recipe for target 'src/CMakeFiles/shotdetect.dir/video.cpp.o' failed
make[2]: *** [src/CMakeFiles/shotdetect.dir/video.cpp.o] Error 1
CMakeFiles/Makefile2:163: recipe for target 'src/CMakeFiles/shotdetect.dir/all' failed
make[1]: *** [src/CMakeFiles/shotdetect.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
src/biThreshold/bithreshold.cpp:4:22: fatal error: option.hpp: No such file or directory
it seems like you using some option function, and the .hpp file didn't include the file.
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.