Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postprocess: hailo: Handle multiple scaler crops on the ISP outputs #703

Merged
merged 3 commits into from
Aug 29, 2024

Commits on Aug 29, 2024

  1. options: Add StreamRole::Viewfinder when enumerating for --list-cameras

    The change for rpi::ScalerCrops changes the behaviour of how crops are
    advertised - we now need a non-RAW output stream to be configured to
    return the available crop control.
    
    Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
    naushir committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    e3357be View commit details
    Browse the repository at this point in the history
  2. postprocess: hailo: Handle multiple scaler crops on the ISP outputs

    Add a HailoPostProcessingStage::ConvertInferenceCoordinates() helper
    that converts from the inference (low res) image co-ordinate space
    to the main image space, accounting for different scaler crops.
    
    Fixup the Yolo inference and pose estimation stages to use this new
    helper.
    
    Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
    naushir committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    f58bfe1 View commit details
    Browse the repository at this point in the history
  3. core: Add aspect ratio control for lores stream

    Add a new command line argument "--lores-par" that when set, preserves
    the 1:1 aspect ratio of the low res stream. This is only possible on the
    PiSP platform. The default behaviour is to have this switch disabled,
    allowing for identical behaviour betwen VC4 and PiSP platforms. This
    requires the use of the rpi::ScalerCrops vendor control.
    
    This switch can also be triggered via the "rpicam-apps.lores.par" key
    in the postprocessing JSON file.
    
    Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
    naushir committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    92938e9 View commit details
    Browse the repository at this point in the history