basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
556 stars 207 forks source link

Switch from Landscape mode to Portrait Mode #456

Open LCDTengr498 opened 2 years ago

LCDTengr498 commented 2 years ago

Is there any way to rotate the image feed by 90 degrees on a Basler Ace 2 camera with pypylon?

I'm able to do it using opencv.rotate() function but would like to know if there's a standard and straightforward way for it.

thiesmoeller commented 2 years ago

90° rotate is not available on the camera itself. If you can't avoid it, you have to use external algorithm.

As this is, memory access pattern wise, a very expensive operation, you should check what is the most efficient implementation on your hardware.

E.g. most SoC have HW accelerators for this operation.