Hello, i have a pi5 with a hailo8 Hat. The examples run well, super fast (using --input rpi) for my pi camera V3. So the problem is the clip app will run the demo, but not with any other inputs ? iv tried /dev/video0 witch rarely works anyway, and --input rpi. do i need to change the pipeline code, it seems to try and open it as a file ?
Hey @only1ledy ,
Welcome to the Hailo Community!
Can you please provide the error you get or a screenshot of what the clip app showing ?
Welcome to the Hailo Community!
There are many video devices on the Raspberry Pi. They are not necessarily the camera capture output. Just run the following command in your terminal and you will see many video devices.
ls /dev/
When you plug in a new camera it may become device /dev/video0 or another. Run the same command before and after you plug in a camera to find the potential candidates.
We do use Logitech BRIO cameras a lot for demos and you can run the CLIP app with them all day long.
The camera is connected to the pi5 directly on a ribbon. (pi camera V3) it uses libcamera and rpicam i believe as drivers. iv always had to inishalize the camera with picamera2 if i want to use in openCV. also what about using a ip camera. with the input ARG take a rstp or https://IP ? … i might just try to rewite the pipeline for the gstrem it seems to want to read a file. thanks
fixed it, now works with --input rpi i changed this part of
clip_pipeline
<< SOURCE_PIPELINE = f’v4l2src device={self.input_uri} ! image/jpeg, framerate=30/1 ! decodebin ! {QUEUE()} !
videoconvert ! {QUEUE()} ! videoscale ! video/x-raw, width={RES_X}, height={RES_Y}, format=RGB ! {QUEUE()} ! videoflip video-direction=horiz ! '>>
TOO
<< SOURCE_PIPELINE = f’libcamerasrc name=libcamerasrc0 ! video/x-raw, format=YUY2, width=1536, height=864 ! {QUEUE()} ! \ videoconvert ! videoscale ! video/x-raw, format=RGB ! {QUEUE()} ! videoflip video-direction=horiz ! '>> if anyone needs i can give complate code.