forked from ros-android/android_camera_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
41 lines (26 loc) · 1.7 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Authors:
[email protected] (Chad Rockey)
[email protected] (Axel Furlan)
This is an extension to the first version of the Ros Android Camera Driver.
It extends the driver to camera readings and updates the previous version to the post-gradle shift of the rosjava libs.
Two compression methods are currently supported, PNG and JPEG (with selectable compression quality).
The topic names are:
/camera/camera_info
/camera/image/compressed
Compiling:
To compile it on you machine, please follow the detailed instructions at:
Rosjava:
http://www.dobots.nl/blog/-/blogs/android-and-rosjava
Android OpenCV:
http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_binary_package.html
Once your environment is set, do the following steps:
1) git clone the repo in the android_core folder (the same folder where tutorials are).
2) Edit the settings.gradle file in the android_core folder, adding 'android_camera_driver' at the end of the include list.
3) cd android_camera_driver; ../gradlew clean debug
Install the appropriate OpenCV from Google Play.
https://play.google.com/store/apps/details?id=org.opencv.engine&hl=en
The manager will tell you which OpenCV is required for your hardware. Then search in the market and install the appropriate version.
For the whole process of building, packing, installing into the phone and running the app in debug mode, use the buildAll.sh script.
Known issues:
1) The code for raw images is also written, although the funcion is currently disabled due to OutOfMemory exceptions and lack of time to debug them. Any help is welcome.
2) A better UI would be needed, e.g. to set camera parameters (now everything is fixed at 640x480, far focus, ecc.)