YOLOv8 model detecting wrong using IMX219 8MP camera module

I’m using Raspberry Pi V2 camera for Yolo detection. But when using the model, the predictions are wrong… But it works fine on the laptop camera. Is it any format or color mode issue? How to solve this issue?

Hi,

Which sample do you use?
Could you also check with the sample owner?

Thanks.

def gstreamer_pipeline(
sensor_id=0,
capture_width=1920,
capture_height=1080,
display_width=960,
display_height=540,
framerate=30,
flip_method=0,
):
return (
"nvarguscamerasrc sensor-id=%d ! "
"video/x-raw(memory:NVMM), width=(int)%d, height=(int)%d, framerate=(fraction)%d/1 ! "
"nvvidconv flip-method=%d ! "
"video/x-raw, width=(int)%d, height=(int)%d, format=(string)BGRx ! "
"videoconvert ! "
“video/x-raw, format=(string)BGR ! appsink”
% (
sensor_id,
capture_width,
capture_height,
framerate,
flip_method,
display_width,
display_height,
)
)

I used this code for pipelining and it’s from JetsonHacks.

Hi,

Since this is a third party sample, please check with the ower for better help.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.