pypylon icon indicating copy to clipboard operation
pypylon copied to clipboard

Switch from Landscape mode to Portrait Mode

Open LCDTengr498 opened this issue 2 years ago • 1 comments

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.

LCDTengr498 avatar Jan 08 '22 05:01 LCDTengr498

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.

thiesmoeller avatar Jan 08 '22 10:01 thiesmoeller