Skip to content

Commit d1a153f

Browse files
committed
Merge branch 'master' of https://github.com/SharpAI/DeepCamera
2 parents f41491c + 04a7446 commit d1a153f

3 files changed

Lines changed: 32 additions & 75 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ iOS: https://testflight.apple.com/join/8LXGgu3q
131131

132132
## [How to deploy server on your server](https://github.com/SharpAI/mobile_app_server/issues/1)
133133
# Call For Help
134-
- [ ] Documents, A LOT OF DOCUMENTS, we already deploy our deep camera in industry leading company but we don't have extra resource to build up community friendly documents.
135-
- [ ] Tutorial on youtube, we can build up some of them, only if with your help, we can success together.
136-
- [ ] Translation, we did deploy our production in China, much of our resource is in Chinese, need your help to translate, especially the Mobile APP built with Meteor https://github.com/SharpAI/mobile_app_server (need i18n selection based on system language)
137-
- [ ] Remove unused code/project in https://github.com/SharpAI/mobile_app_server
138-
- [ ] PR, more than welcome, anything :)
134+
- [x] Translation, we did deploy our production in China, much of our resource is in Chinese, need your help to translate, especially the Mobile APP built with Meteor https://github.com/SharpAI/mobile_app_server (English_Version)
135+
- [x] Remove unused code/project in https://github.com/SharpAI/mobile_app_server
136+
- [x] PR, more than welcome, anything :)
139137
- [ ] Meetup hosts, in Silicon Valley
140138

141139
![screen shot 2019-03-07 at 4 03 59 pm](https://user-images.githubusercontent.com/3085564/53941268-a0781b80-40f2-11e9-8cc6-6295c3a39c96.png)

docs/RunOnRK3288.md

Lines changed: 28 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# RK3288 Source Code(For Face Recognition)
1+
# DeepCamera on RK3288
22

3-
## 1 Prepare rk3288 Environment(Connect dev box and workstation in the same network)
3+
## 1 Prepare RK3288 Environment(Connect dev box and workstation in the same network)
44

5-
### 1-1 get modified termux apk (Built from [here](https://github.com/SharpAI/mobile_app_server/tree/android_porting/AndroidPorting/Launcher))
5+
### 1-1 Install SharpAI LauncherTermux
66

7-
#### 1-1-1 From Baidu (sharpai-norootfs-lambda_key.apk)
8-
> Link: https://pan.baidu.com/s/1ic3jEItCNG8mgJQPlHBYhg Password: mq9p
9-
#### 1-1-2 termux Compile
10-
> Use Android studio to build https://github.com/SharpAI/mobile_app_server/tree/android_porting/AndroidPorting/Launcher
7+
#### 1-1-1 [SharpAI-LauncherTermux.apk](https://github.com/SharpAI/DeepCamera/releases/download/1.1/SharpAI-LauncherTermux.apk)
8+
#### 1-1-2 [Source Code](https://github.com/SharpAI/Launcher_Termux)
119

1210
### 1-2 Install modified termux apk
1311
#### 1-2-1 from u disk
@@ -19,10 +17,8 @@ The following figure:
1917

2018
![image.png](https://cdn.nlark.com/yuque/0/2019/png/170897/1552229210075-a6ab9acf-76b9-4bf4-82d5-45bd4a492622.png)
2119

22-
23-
2420
```
25-
adb install sharpai-norootfs-lambda_key.apk
21+
adb install SharpAI-LauncherTermux.apk
2622
```
2723

2824
#### 1-2-3 install openssh termux
@@ -71,88 +67,44 @@ $ apt-get update
7167

7268

7369
### 1-3 Install Source Code
74-
Download based root fs and arch linux fs
75-
76-
> usr_dev_root_armv7_1126_2018.tgz
77-
link: https://pan.baidu.com/s/18GwmAj04ylqg1AYS5T5BQA password:0w8a
78-
arch_dev_root_1203_2018_final.tgz
79-
link: https://pan.baidu.com/s/1FdaTiqjuLKEr7ZvKw2JF4g password:hvlz
80-
81-
Upload them onto RK3288 box by adb
82-
83-
The following figure:
84-
85-
![image.png](https://cdn.nlark.com/yuque/0/2019/png/170897/1552229234603-331832f7-4af1-48be-bcfe-0bc93489841f.png#align=left&display=inline&height=157&name=image.png&originHeight=314&originWidth=1476&size=600996&status=done&width=738)
8670

8771
```
88-
adb root
89-
90-
adb push usr_dev_root_armv7_1126_2018.tgz data/data/com.termux/files/usr_dev_root_armv7_1126_2018.tgz
91-
92-
adb push arch_dev_root_1203_2018_final.tgz /data/data/com.termux/files/home/arch_dev_root_1203_2018_final.tgz
72+
pkg install wget
73+
cd /data/data/com.termux/files/
74+
$PRIFIX/bin/wget https://github.com/SharpAI/DeepCamera/releases/download/1.1/usr_dev_root_armv7_1126_2018.tgz
75+
tar -zxmf usr_dev_root_armv7_1126_2018.tgz
9376
```
94-
> reference https://developer.android.com/studio/command-line/adb?hl=en-us
95-
96-
97-
openssh RK3288 box
9877

78+
##### Remove if you want to save space
9979
```
100-
cd /data/data/com.termux/files/
101-
tar -zxvmf usr_dev_root_armv7_1126_2018.tgz
10280
rm -f usr_dev_root_armv7_1126_2018.tgz
103-
104-
cd /data/data/com.termux/files/home
105-
tar -zxvmf arch_dev_root_1203_2018_final.tgz
106-
rm -f arch_dev_root_1203_2018_final.tgz
10781
```
10882

109-
110-
## 2 Prepare source code runtime
11183
```
112-
$ cd /data/data/com.termux/files/home
113-
$ git clone https://github.com/SharpAI/DeepCamera
84+
cd /data/data/com.termux/files/home
85+
$PRIFIX/bin/wget https://github.com/SharpAI/DeepCamera/releases/download/1.1/arch_dev_root_1203_2018_final.tgz
86+
tar -zxmf arch_dev_root_1203_2018_final.tgz
11487
```
11588

116-
117-
If you want to install a face model,download the model-armv7a.tgz
118-
119-
> link: [https://pan.baidu.com/s/1YQENe4f0wDx7RMi3fZ5G2w](https://pan.baidu.com/s/1YQENe4f0wDx7RMi3fZ5G2w) password:5ekz
120-
121-
122-
upload, untar, remove
123-
89+
##### Remove if you want to save space
12490
```
125-
$ cd /data/data/com.termux/files/home/DeepCamera
126-
$ tar -zxvmf model-armv7a.tgz
127-
$ rm -f model-armv7a.tgz
91+
rm -f arch_dev_root_1203_2018_final.tgz
12892
```
12993

130-
If you want to install human model,download the model-rk3288-termux.tgz
131-
132-
> link: [https://pan.baidu.com/s/1ic3jEItCNG8mgJQPlHBYhg](https://pan.baidu.com/s/1ic3jEItCNG8mgJQPlHBYhg) password: mq9p
133-
134-
upload, untar, remove
13594

95+
## 2 Prepare source code runtime
13696
```
137-
$ cd /data/data/com.termux/files/home/DeepCamera
138-
$ tar -zxvmf model-rk3288-termux.tgz
139-
$ rm -f model-rk3288-termux.tgz
97+
$ cd /data/data/com.termux/files/home
98+
$ git clone https://github.com/SharpAI/DeepCamera
99+
cd DeepCamera
100+
./setup_arm32.sh
140101
```
141102

142-
143-
144103
Install must have dependencies
145104
```
146105
$ pip2 uninstall scipy
147106
$ apt-get install python2-scipy
148-
149107
$ apt-get install graphicsmagick
150-
151-
$ cd /data/data/com.termux/files/home/DeepCamera/src/flower/
152-
$ pip2 install -r requirements.txt
153-
154-
$ cd /data/data/com.termux/files/home/DeepCamera/src/detector/
155-
$ npm install
156108
```
157109

158110

@@ -172,3 +124,10 @@ Add following line to files:
172124
files:
173125
> /data/data/com.termux/files/usr/lib/python2.7/site-packages/scipy-1.2.0-py2.7-linux-armv8l.egg/scipy/stats/_continuous_distns.py
174126
/data/data/com.termux/files/usr/lib/python2.7/site-packages/scipy-1.2.0-py2.7-linux-armv8l.egg/scipy/stats/_stats_mstats_common.py
127+
128+
129+
```
130+
LD_LIBRARY_PATH=/system/lib:$LD_LIBRARY_PATH:$PREFIX/lib:/system/vendor/lib/egl:/system/vendor/lib LD_PRELOAD=$LD_PRELOAD:libatomic.so:libcutils.so python2
131+
132+
import tvm
133+
```

docs/Run_Source_Android_aarch64.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## Get Launcher_Termux source code
1313
```
14-
git clone https://github.com/SharpAI/Launcher_Termux
14+
git clone https://github.com/SharpAI/Launcher_Termux -b dev
1515
```
1616

1717
## Config authorized_keys for ssh

0 commit comments

Comments
 (0)