Skip to main content
Question

How to do custom cropping (x, y, width, height) in Axelera preprocessing?

  • September 17, 2025
  • 6 replies
  • 81 views

Hi everyone,
I’m new to working with the Axelera system. I see that there is a CenterCrop style preprocessing function, but in my use case I need more control. Specifically, I’d like to crop an image (for RTSP streams or training data) by specifying the x-offset, y-offset, width, and height of the region of interest.

Is there a built-in preprocessing function in the Axelera SDK/YAML configs for this kind of custom crop? Or is the recommended way to handle this via GStreamer (e.g., videocrop/videobox) before passing frames to axinferencenet?

Any help would be greatly appreciated.

Thank you! 🙏

6 replies

  • Axelera Team
  • September 17, 2025

Currently the recommended way is to use gstreamer elements as you describe. In the next release the roicrop plugin has been extended to provide the functionality you request.


  • Author
  • Cadet
  • September 17, 2025

Hi John,

Thanks for the quick reply. It's helpful to know that GStreamer is the recommended approach for now and that a new plugin is coming in the next release.

Thank you so much.

 


Spanner
Axelera Team
Forum|alt.badge.img+2
  • Axelera Team
  • September 17, 2025

What’s the project you’re working on ​@dany ?


  • Author
  • Cadet
  • September 17, 2025

I’m working on an AI-based drowning-detection system for swimming pools.


Spanner
Axelera Team
Forum|alt.badge.img+2
  • Axelera Team
  • September 17, 2025

I’m working on an AI-based drowning-detection system for swimming pools.

Ah, very cool! Keep us posted on that one!


  • Author
  • Cadet
  • September 17, 2025

I’m working on an AI-based drowning-detection system for swimming pools.

Ah, very cool! Keep us posted on that one!

Sure!