Skip to content

detection.py shows video but NO detections on file input (works fine on /dev/video0) #121

Description

@jannskiee

I am encountering an issue running the standard detection.py example on a Raspberry Pi 5 with the Hailo AI Kit.

  • Webcam Source (/dev/video0): Detection works perfectly. Bounding boxes and labels are drawn correctly.
  • Video File Source (.mp4): The video plays smoothly in the window, but zero detections are shown (no bounding boxes, no labels). The FPS counter updates, but the overlay remains empty.

To Reproduce

  1. Setup Raspberry Pi 5 (8GB) with Hailo-8 AI Kit.
  2. Use a custom YOLOv11s HEF model (verified working on webcam) and corresponding JSON labels.
  3. Run the following command pointing to a local MP4 file:
python hailo_apps/python/pipeline_apps/detection/detection.py \
    --hef-path ~/Desktop/hef/yolov11s.hef \
    --input /home/admin/Desktop/hef/vid-3.mp4 \
    --labels-json ~/Desktop/hef/vehicles.json \
    --show-fps

Expected Behavior
The video file should play with bounding boxes drawn around detected vehicles, matching the behavior seen when using the webcam input.

Actual Behavior
The video playback works, but no inference results (bounding boxes) are displayed.

System Configuration

  • Hardware: Raspberry Pi 5 + Hailo AI Kit (Hailo-8L)
  • OS: Raspberry Pi OS 64-bit
  • Hailo Software: hailo-all (installed via apt)
  • Repository: hailo-apps (latest pull)
  • Model: Custom YOLOv11s (compiled to HEF)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions