ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
293 stars 46 forks source link

Support 90º degree rotation #100

Open calexandre opened 10 months ago

calexandre commented 10 months ago

As the topic states, I would like to request support for 90º degree rotation for the camera-streamer.

There's a topic already opened in the OctoPrint forums which eventually led us here.

According to libcamera.org, the library apparently supports the transform function which can be used to apply a 90º degree rotation.

kbingham commented 10 months ago

libcamera supports a 90* rotation - but the RPi ISP hardware doesn't - so the rotation must be handled by some later layer. That could be the browser perhaps in this instance if we can report the rotation desired?

kbingham commented 10 months ago

Or ... perhaps at the encoder stage?

bra1nDeaD commented 4 months ago

+1

I've been searching blind to see how I can rotate 90 degrees CCW. I found that the camera has "properties" that show it can have a value for "Rotation", but I have not yet found a way set this with camera-streamer:

CAMERA Properties:

  • property: SensorSensitivity (00000009, type=Float) = 1.000000
  • property: SystemDevices (0000000a, type=Integer64) = [ 20750, 20738, 20739, 20740 ]
  • property: ScalerCropMaximum (00000008, type=Rectangle) = (348, 434)/1928x1080
  • property: ColorFilterArrangement (0000000b, type=Integer32) = 2
  • property: PixelArrayActiveAreas (00000007, type=Rectangle) = [ (16, 6)/2592x1944 ]
  • property: PixelArraySize (00000005, type=Size) = 2592x1944
  • property: Rotation (00000002, type=Integer32) = 0
  • property: Location (00000001, type=Integer32) = 2
  • property: UnitCellSize (00000004, type=Size) = 1400x1400
  • property: Model (00000003, type=String) = ov5647

So far I've only seen how the "options" can be changed. What is the fundamental difference between "options" and "properties" ? Would it be possible to change properties?