Skip to content

Commit 6f99164

Browse files
author
Jianbin Qi
committed
add folder note
add folder note
1 parent 859b193 commit 6f99164

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@ This library tries to transfer data between`processing` and `android`. I make a
33

44
It's only beta named **''Beta1.0''**. Welcome to try it and if there is a problem, please contact me or new a issues.
55

6-
#### **android app project : [https://github.com/onlylemi/AndroidCapture](https://github.com/onlylemi/AndroidCapture)**
6+
## Folder
7+
* **android-apk**
8+
android phone client app in it.
9+
* **examples**
10+
There are some primitive examples in it. The users download them and load `.jar` file in the project. The `.jar` file is set the named `'code'` folder.
11+
* **library**
12+
The `processing-android-capture.jar` file in it.
13+
* **src**
14+
The source code of this lib int it.
715

8-
**A primitive example to get phone camera image :**
16+
## Android App
17+
**the source code of app : [https://github.com/onlylemi/AndroidCapture](https://github.com/onlylemi/AndroidCapture)**
18+
19+
## Examples
20+
**1. A primitive example to get phone camera image :**
921
```processing
1022
import com.onlylemi.processing.android.capture.*;
1123
@@ -15,7 +27,7 @@ PImage img;
1527
void setup() {
1628
size(720, 480);
1729
ac = new AndroidCapture(width, height, 30);
18-
pc.start();
30+
ac.start();
1931
}
2032
2133
void draw() {
@@ -27,9 +39,12 @@ void exit() {
2739
ac.exit();
2840
}
2941
```
42+
43+
3044
--
3145

32-
**A primitive example to get the middle color of phone camera :**
46+
47+
**2. A primitive example to get the middle color of phone camera :**
3348
```processing
3449
import com.onlylemi.processing.android.capture.*;
3550
@@ -39,7 +54,7 @@ void setup() {
3954
size(720, 480);
4055
4156
ac = new AndroidCapture(width, height, 20);
42-
pc.start();
57+
ac.start();
4358
}
4459
4560
void draw(){
@@ -56,3 +71,6 @@ void exit(){
5671
ac.exit();
5772
}
5873
```
74+
75+
76+

0 commit comments

Comments
 (0)