From 6f991642e97f6fd082a980d7b0d03e25d5f10bf8 Mon Sep 17 00:00:00 2001 From: Jianbin Qi Date: Tue, 22 Dec 2015 18:25:05 +0800 Subject: [PATCH] add folder note add folder note --- README.md | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 49d53e6..23ac7d4 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,21 @@ This library tries to transfer data between`processing` and `android`. I make a It's only beta named **''Beta1.0''**. Welcome to try it and if there is a problem, please contact me or new a issues. -#### **android app project : [https://github.com/onlylemi/AndroidCapture](https://github.com/onlylemi/AndroidCapture)** +## Folder +* **android-apk** + android phone client app in it. +* **examples** + 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. +* **library** + The `processing-android-capture.jar` file in it. +* **src** + The source code of this lib int it. -**A primitive example to get phone camera image :** +## Android App + **the source code of app : [https://github.com/onlylemi/AndroidCapture](https://github.com/onlylemi/AndroidCapture)** + +## Examples +**1. A primitive example to get phone camera image :** ```processing import com.onlylemi.processing.android.capture.*; @@ -15,7 +27,7 @@ PImage img; void setup() { size(720, 480); ac = new AndroidCapture(width, height, 30); - pc.start(); + ac.start(); } void draw() { @@ -27,9 +39,12 @@ void exit() { ac.exit(); } ``` + + -- -**A primitive example to get the middle color of phone camera :** + +**2. A primitive example to get the middle color of phone camera :** ```processing import com.onlylemi.processing.android.capture.*; @@ -39,7 +54,7 @@ void setup() { size(720, 480); ac = new AndroidCapture(width, height, 20); - pc.start(); + ac.start(); } void draw(){ @@ -56,3 +71,6 @@ void exit(){ ac.exit(); } ``` + + +