szanni / slideextract Goto Github PK
View Code? Open in Web Editor NEWextract slides from videos
Home Page: https://szanni.org/slideextract/
License: BSD 2-Clause "Simplified" License
extract slides from videos
Home Page: https://szanni.org/slideextract/
License: BSD 2-Clause "Simplified" License
It seems like the last video frame is not written to file in all cases.
The help and manual describe the -r
option to be used as X1.Y1:X2.Y2
, suggesting two coordinate points are required.
It requires a point and width and height instead though X.Y:W.H
.
Fix the docs, the implementation or add two options (preferred):
X1.Y1:X2.Y2
and X1.Y1:W+H
or similar.
Lovely project, this issue.
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:29: error: no member named 'val' in 'cv::Scalar_<float>'
return Scalar_<float>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:43: error: no member named 'val' in 'cv::Scalar_<float>'
return Scalar_<float>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:57: error: no member named 'val' in 'cv::Scalar_<float>'
return Scalar_<float>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2348:71: error: no member named 'val' in 'cv::Scalar_<float>'
return Scalar_<float>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:30: error: no member named 'val' in 'cv::Scalar_<double>'
return Scalar_<double>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:44: error: no member named 'val' in 'cv::Scalar_<double>'
return Scalar_<double>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:58: error: no member named 'val' in 'cv::Scalar_<double>'
return Scalar_<double>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2355:72: error: no member named 'val' in 'cv::Scalar_<double>'
return Scalar_<double>(a.val[0] * s, a.val[1] * s, a.val[2] * s, a.val[3] * s);
~ ^
/usr/local/opt/opencv/include/opencv4/opencv2/core/types.hpp:2388:24: error: no matching constructor for initialization of 'Matx<double, 4, 1>'
Matx<double, 4, 1> c((Matx<double, 4, 4>)a, b, Matx_MatMulOp());
When I run the slide extractor, I always receive the following error:
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.7.0) /usr/src/debug/opencv/opencv-4.7.0/modules/imgcodecs/src/loadsave.cpp:738: error: (-2:Unspecified error) in function 'bool cv::imwrite_(const String&, const std::vector<Mat>&, const std::vector<int>&, bool)'
> Encoding 'params' must be key-value pairs:
> '(params.size() & 1) == 0'
> where
> 'params.size()' is 3
zsh: IOT instruction (core dumped) slideextract -g cross-validation.mp4 cross-validation
It seems slideextract.cpp:171
the imwrite(_, _, params) -> params
argument requires a key-value pairwise array ([k1, v1, k2, v2, ..., kn, vn]
).
I commented out line 152 and then the program runs without errors. I don't know if this is a proper fix or not, since i don't know how OpenCV works.
OpenCV version: 4.7.0
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.