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
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CameraDemoForAndroidThings
2
2
3
-
Camera demo for android things, current support capture still pictureas well as camera preview.
3
+
Camera demo for android things, current support capture still picture, camera preview as well as capture still picture while preview is on-going.
4
4
5
5
## Schematics
6
6
@@ -12,6 +12,8 @@ Key process of setup camera preview extract from example [Android Camera2 Exampl
12
12
13
13
In order to support camera preview, you should enable hardware acceleration for your `Activity` or `Application`. More information about hardware acceleration, please refer to [Android Things Realse Notes][AndroidThingsRleaseNotes] and [Android Hardware Acceleration][HardwareAcceleration].
14
14
15
+
Take still picture while preview is on-going will close the preview capture session first and renew a preview capture session after picture is taken. This is because `V4L2 only supports 1 stream configuration at a time`, so we can not pass more than one `Surface` like `ImageReader.getSurface()` when we call `CameraDevice.createCaptureSession(...)`.
16
+
15
17
## Capture still picutre support
16
18
17
19
Key process of capture still picture extract from example [Doorbell][Doorbell].
@@ -32,7 +34,7 @@ In `TakePictureActivity`:
32
34
33
35
In `CameraPreviewActivity`:
34
36
35
-
- Button A: current not defined (*maybe trigger take still picture while preview is going on.*)
37
+
- Button A: trigger take still picture while preview is on-going
0 commit comments