• Home
  • History
  • Annotate
  • only in /frameworks/base/tests/Camera2Tests/SmartCamera/
NameDateSize

..29-Aug-20174 KiB

Android.mk29-Aug-2017633

README.txt29-Aug-20172.3 KiB

SimpleCamera/29-Aug-20174 KiB

README.txt

1Copyright 2013 The Android Open Source Project
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7     http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16Smart Camera / Auto Snapshot (formerly named SimpleCamera) ReadMe
17
18Created by: Benjamin W Hendricks
19
20How to build the application:
21From root: make SmartCamera will build the apk for generic
22Otherwise, to build the application for a specific device, lunch to that device
23and then run mm while in the SimpleCamera directory.
24Then take the given Install path (out/target/.../SmartCamera.apk)
25and run adb install out/target/.../SmartCamera.apk. The application should
26then appear in the launcher of your device.
27You might also need to run adb sync after building to sync the
28libsmartcamera_jni library
29Summarized:
30    make SmartCamera
31    adb remount
32    adb sync
33    adb install -r $ANDROID_PRODUCT_OUT/data/app/SmartCamera.apk
34
35How to run the application:
36On a Nexus 7, open up the application from the launcher, and the camera preview
37should appear. From there, you can go to the gallery with the gallery button or
38press start to start capturing images. You can also change the number of images
39to be captured by changing the number on the spinner (between 1-10).
40
41What does it do:
42The application tries to take good pictures for you automatically when in the
43start mode. On stop, the application will capture whatever images are in the
44bottom preview and save them to the Gallery. It does this by looking at the
45following image features:
46    - Sharpness
47    - Brightness
48    - Motion of the device
49    - Colorfulness
50    - Contrast
51    - Exposure (over/under)
52
53By comparing each of these features frame by frame, a score is calculated to
54determine whether an image is better or worse than the previous few frames,
55and from that score I can determine the great images from the bad ones.
56
57What libraries does it use:
58- Mobile Filter Framework (MFF)
59- Camera2 API
60- Renderscript
61