Opencv-rust ~ How do I get the image display in its original resolution?

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?

Hi @Joe232 Have you tried setting the flag with imgcodecs::IMREAD_COLOR or imgcodecs::IMREAD_UNCHANGED?