Closed wuhanstudio closed 3 years ago
I see from the example that the input is RGB [0.0, 1.0].
Everything works if I load the image from file. But if I construct the image using raw RGB [0.0, 1.0] from the camera, nothing is detected.
The network itself sees [0.0, 1.0]. Are you trying to construct DynamicImage first, then convert to darknet Image? If not, use DynamicImage as it is part of stable API.
Thanks for your reply.
I construct an image using darknet_sys::make_image
let dimg = unsafe { darknet_sys::make_image(width, height, channel) };
Filling the data, then pass it to darknet::Image:
let img = darknet::Image {
image: d_img
};
I'll try DynamicImage, thanks for your help.
This is the full project that detects objects using images from ROS Camera:
Hi,
I'm trying to construct an image for the darknet model inference.
But I'm not sure if the sequence of the raw image data for the darknet input is RGB or BGR.
And is the range of the pixel value [0.0, 1.0] or [0, 255]
Thanks for your help.