Giter VIP home page Giter VIP logo

bombuscv-rs's People

Contributors

marcoradocchia avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

ibanknatoprad

bombuscv-rs's Issues

Retrieve video metadata when using pre-recorded input

Make bombuscv detect resolution and framerate from video file metadata when using pre-recorded input feed and use them in configuration parsing, ignoring values passed in the configuration file and rejecting values passed as CLI arguments.

Unable to compile on AArch64

Compilation passes on x86_64, but fails on AArch64 with error:

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:96:48
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, 'P' as i8, 'G' as i8).unwrap(),
   |                                                ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
96 |             Codec::MJPG => VideoWriter::fourcc(('M' as i8).try_into().unwrap(), 'J' as i8, 'P' as i8, 'G' as i8).unwrap(),
   |                                                +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:96:59
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, 'P' as i8, 'G' as i8).unwrap(),
   |                                                           ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, ('J' as i8).try_into().unwrap(), 'P' as i8, 'G' as i8).unwrap(),
   |                                                           +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:96:70
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, 'P' as i8, 'G' as i8).unwrap(),
   |                                                                      ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, ('P' as i8).try_into().unwrap(), 'G' as i8).unwrap(),
   |                                                                      +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:96:81
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, 'P' as i8, 'G' as i8).unwrap(),
   |                                                                                 ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
96 |             Codec::MJPG => VideoWriter::fourcc('M' as i8, 'J' as i8, 'P' as i8, ('G' as i8).try_into().unwrap()).unwrap(),
   |                                                                                 +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:97:48
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, 'I' as i8, 'D' as i8).unwrap(),
   |                                                ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
97 |             Codec::XVID => VideoWriter::fourcc(('X' as i8).try_into().unwrap(), 'V' as i8, 'I' as i8, 'D' as i8).unwrap(),
   |                                                +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:97:59
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, 'I' as i8, 'D' as i8).unwrap(),
   |                                                           ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, ('V' as i8).try_into().unwrap(), 'I' as i8, 'D' as i8).unwrap(),
   |                                                           +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:97:70
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, 'I' as i8, 'D' as i8).unwrap(),
   |                                                                      ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, ('I' as i8).try_into().unwrap(), 'D' as i8).unwrap(),
   |                                                                      +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:97:81
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, 'I' as i8, 'D' as i8).unwrap(),
   |                                                                                 ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
97 |             Codec::XVID => VideoWriter::fourcc('X' as i8, 'V' as i8, 'I' as i8, ('D' as i8).try_into().unwrap()).unwrap(),
   |                                                                                 +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:98:48
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, '4' as i8, 'v' as i8).unwrap(),
   |                                                ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
98 |             Codec::MP4V => VideoWriter::fourcc(('m' as i8).try_into().unwrap(), 'p' as i8, '4' as i8, 'v' as i8).unwrap(),
   |                                                +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:98:59
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, '4' as i8, 'v' as i8).unwrap(),
   |                                                           ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, ('p' as i8).try_into().unwrap(), '4' as i8, 'v' as i8).unwrap(),
   |                                                           +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:98:70
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, '4' as i8, 'v' as i8).unwrap(),
   |                                                                      ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, ('4' as i8).try_into().unwrap(), 'v' as i8).unwrap(),
   |                                                                      +         +++++++++++++++++++++

error[E0308]: mismatched types
  --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/bombuscv-rs-0.1.0/src/lib.rs:98:81
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, '4' as i8, 'v' as i8).unwrap(),
   |                                                                                 ^^^^^^^^^ expected `u8`, found `i8`
   |
help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
   |
98 |             Codec::MP4V => VideoWriter::fourcc('m' as i8, 'p' as i8, '4' as i8, ('v' as i8).try_into().unwrap()).unwrap(),
   |                                                                                 +         +++++++++++++++++++++

so basically on every call to VideoWriter::fourcc().

Issue discussed here: twistedfall/opencv-rust#292.

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.