You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
- Coral : [Accelerator](https://coral.ai/products/accelerator) tested with Windows 11 , gave very approximately an order of magnitude speed up.
@@ -291,8 +294,11 @@ The filepath_callback can also be used to reset any 'video recording' indicator
291
294
##### sensor_resolution
292
295
Overrides the default sensor resolution, which is the highest resolution available, except Raspberry Pi where it is (1024, 768). Tuple of two integers, for example `sensor_resolution = (640, 480)`. The resulting capture resolution obtained depends on the behavior of the camera provider (for example it is ignored by GStreamer). The capture resolution also depends on the relative orientation and aspect ratio of the Preview. Treat the value specified as a request that may not be exactly honored.
293
296
297
+
##### sensor_rotation
298
+
On Picamera2 sensor_rotation can be sepecifed in `[0, 90, 180, 270]`, where `0` is the default landscape orientation.
299
+
294
300
##### default_zoom
295
-
Set the default zoom when the camera is connected,`0.5` is the default value.
301
+
Set the default zoom when the camera is connected. On Android`0.5` is the default value.
296
302
297
303
##### analyze_pixels_resolution
298
304
Sets the pixels resolution passed by `analyze_pixels_callback()`. A scalar, representing the number of pixels on the long edge, the short edge is determined using the aspect ratio. For example `analyze_pixels_resolution = 720`. The default is the minimum of cropped sensor resolution and 1024.
@@ -336,7 +342,7 @@ However on Android a disconnect immediately after a capture has be initiated may
336
342
defstop_capture_video(self): # Android only
337
343
```
338
344
339
-
Video capture is only available on Androidor with the OpenCV camera provider. Capturing audio with video is only available on Android.
345
+
Video capture is only available on Android, Picamera2, or OpenCV camera providers. Capturing audio with video is available on Android and Picamera2. OpenCV video quality is poor.
340
346
341
347
Captures are never mirrored, except a screenshot capture if the Preview is mirrored. Capture resolution is discussed [here](https://github.com/Android-for-Python/Camera4Kivy#capture-resolution).
342
348
@@ -384,13 +390,19 @@ Change the currently connected camera, camera_id must specify a physically conne
384
390
```
385
391
386
392
#### Zoom
387
-
On Android only, zoom_delta() is called by pinch/spread gesture unless disabled.
393
+
On Android and Picamera2, zoom_delta() is called by pinch/spread gesture unless disabled.
388
394
On iOS only, zoom_abs() is called by pinch/spread gesture unless disabled.
389
395
```python
390
396
defzoom_delta(self, delta_scale):
391
397
defzoom_abs(self, scale):
392
398
```
393
399
400
+
#### Pan/scroll
401
+
On Picamera2 pan/scroll a zoom'd image with a drag gesture.
402
+
```python
403
+
defdrag(self, delta_x, delta_y):
404
+
```
405
+
394
406
#### Flash
395
407
Android only, and for capture photo only, the value is ignored for video and data. The `state` argument must be in `['on', 'auto', 'off']`, alternatively if `state=None` sequential calls sequence through that list. Note that 'on' always turns on the flash around the time a photo is captured, 'auto' only does this if the light level is low enough.
396
408
@@ -657,9 +669,9 @@ Camera4Kivy depends on a 'camera provider' to access the OS camera api. On most
657
669
| Linux |[Gstreamer](https://github.com/Android-for-Python/camera4kivy#gstreamer)|
@@ -698,6 +710,8 @@ Set `p4a.hook` to enable the app's use of the camera provider.
698
710
699
711
`pip3 install opencv-python`
700
712
713
+
Video recording (no audio) is available, but uncompressed, and may be low quality.
714
+
701
715
### GStreamer
702
716
703
717
Depends on the Linux flavor, but commonly:
@@ -707,10 +721,10 @@ Depends on the Linux flavor, but commonly:
707
721
`sudo apt-get install gstreamer1.0-dev`
708
722
709
723
### Picamera
710
-
Pre-installed
724
+
Pre-installed on Buster.
711
725
712
726
### Picamera2
713
-
Raspberry PI Bullseye support currently not available.
727
+
May be pre-instaled on Bullseye. Additional features for native Pi cameras: higher resolution photos, video optionally with audio, zoom, pan when zoom'd, sensor rotation. USB cameras are not currently supported.
0 commit comments