Giter Club home page Giter Club logo

slideextract's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

slideextract's Issues

Using `-r` does not behave the way it is descibed as in the docs.

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.

Error during `make install`

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());

OpenCV::imwrite receives 3 params but needs num%2==0

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.