projects:work-in-progress:android1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:work-in-progress:android1 [2018/03/26 11:58] scipioprojects:work-in-progress:android1 [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== android tensor flow projects 01 ====== 
  
-===== prereq ===== 
- 
-bazel 
-<code> 
-echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list 
-curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - 
-sudo apt-get update && sudo apt-get install bazel 
-</code> 
- 
-===== tensorflow ===== 
- 
-clone github tensorflow and build  
-<code> 
-cd /lab 
-git clone --depth 1 https://github.com/tensorflow/tensorflow.git tensorflow.git  
-cd tensorflow.git 
-</code> 
- 
-update WORKSPACE file 
-<file> 
-android_sdk_repository( 
-    name = "androidsdk", 
-    api_level = 23, 
-    # Ensure that you have the build_tools_version below installed in the 
-    # SDK manager as it updates periodically. 
-    build_tools_version = "26.0.1", 
-    # Replace with path to Android SDK on your system 
-    path = "/opt/android-sdk", 
-) 
-# 
-android_ndk_repository( 
-    name="androidndk", 
-    path="/opt/android-sdk/ndk-bundle", 
-    # This needs to be 14 or higher to compile TensorFlow. 
-    # Please specify API level to >= 21 to build for 64-bit 
-    # archtectures or the Android NDK will automatically select biggest 
-    # API level that it supports without notice. 
-    # Note that the NDK version is not the API level. 
-    api_level=14) 
-</file> 
- 
- 
- 
-git clone https://github.com/azainab/androidTFDetect/ 
-cd androidTFDetect 
-# download assets from https://drive.google.com/file/d/0B4dPZkgiYl-SWW1TNTBpNUtKbGs/view?usp=sharing 
-cd assets 
-unzip ~/Scaricati/Place\ in\ assets\ folder.zip 
-</code> 
- 
-import project in android studio 
- 
-<file build.gradle> 
-buildscript { 
-    repositories { 
-        google() // Gradle 4.0+ 
-        maven { url "https://maven.google.com" } // Gradle < 4.0 
-        jcenter() 
-    } 
- 
-    dependencies { 
-        classpath 'com.android.tools.build:gradle:3.0.1' 
-        classpath 'org.apache.httpcomponents:httpclient:4.5.2' 
-    } 
-} 
-</file> 
  • projects/work-in-progress/android1.1522058286.txt.gz
  • Last modified: 2018/03/26 11:58
  • by scipio