marcoradocchia / bombuscv-rs Goto Github PK
View Code? Open in Web Editor NEWOpenCV based motion detection/recording software built for research on Bumblebees.
License: GNU General Public License v3.0
OpenCV based motion detection/recording software built for research on Bumblebees.
License: GNU General Public License v3.0
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.
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.
Hi!
I think it would be useful to be able to perform motion detection on a limited region of the video frame during post-production elaboration.
Create output directory specified in config or CLI arguments if it doesn't exist rather than using defaults.
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.