Anyone using opencv-rust
?
extern crate opencv;
//use opencv::prelude::*;
use opencv::highgui;
use opencv::imgcodecs;
#[allow(dead_code)]
fn main()
{
let image = imgcodecs::imread(r"opencv-course\Resources\Photos\cat.jpg", -1).unwrap(); // Issue over here
highgui::named_window("hello opencv!", 0).unwrap();
highgui::imshow("hello opencv!", &image).unwrap();
highgui::wait_key(10000).unwrap();
}
This is my code but the image comes out as squashed.
Anyone knows what flag let image = imgcodecs::imread(r"opencv-course\Resources\Photos\cat.jpg", -1).unwrap();
am I supposed to pass over here to get it to output normally?