Skip to content

Instantly share code, notes, and snippets.

@JnCrMx
JnCrMx / instructions.md
Last active August 10, 2022 15:24
Build tensorflow-lite Java libraries for desktop rather than for Android

Required software:

  • Bazel version 3.0.0
  • Android SDK with NDK installed

First of all you need to clone tensorflow's repository from GitHub using git clone:

git clone https://github.com/tensorflow/tensorflow.git

Then cd into the directory you just cloned the repository to:

@stilist
stilist / gist:cd7fdfabbf9ec5ed89b7
Created July 3, 2014 21:46
Installing OpenCV on OS X (using Homebrew)

Based on http://jjyap.wordpress.com/2014/02/21/installing-opencv-2-4-8-on-mac-osx-with-python-support/

  1. edit .bashrc or .bash_profile to include: export PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Python/2.7/site-packages/:$PATH"
  2. brew update
  3. brew tap homebrew/science
  4. brew install opencv
  5. cd /Library/Python/2.7/site-packages/
  6. ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv.py cv.py
  7. ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv2.so cv2.so