How Can i adjust pixel size of camera

python basic_pipelines/detection.py --hef-path resources/yolov8m.hef --input rpi
[0:51:08.083317352] [2725] INFO RPI pisp.cpp:1484 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected CFE format: 2028x1080-PC1B
Picamera2 configuration: width=1280, height=720, format=RGB
picamera_process started

i want to change pixel size which is here 1280x720, i want to make 1920x1080 ,how

Hey @Enes_Durudeniz ,

Welcome to the Hailo Community!

Configuration Options

You have two primary locations to set the video dimensions:

1. In detection_pipeline.py

When initializing the source pipeline, you can specify custom width and height:

source_pipeline = SOURCE_PIPELINE(
    self.video_source, 
    self.video_width,   # Custom width 
    self.video_height   # Custom height
)

2. In gstreamer_app.py

You can set default parameters in the initialization:

# Video Source Configuration
self.batch_size = 1
self.video_width = 1280    # Modify this value
self.video_height = 720    # Modify this value
self.video_format = "RGB"