All Projects → csharpseattle → Tensorflowios

csharpseattle / Tensorflowios

Licence: mit
A Real Time Object Detection application on iOS using Tensorflow and pre-trained COCO dataset models. Video frames are captured and inference is done locally using the provided mobilenet models. Both Swift and Objective-C projects.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Tensorflowios

Opencv Android Object Detection
This is sample code for object detection using OpenCV on android
Stars: ✭ 70 (-18.6%)
Mutual labels:  object-detection
Tracktor
Python and OpenCV based object tracking software
Stars: ✭ 76 (-11.63%)
Mutual labels:  object-detection
Gtavisionexport
Code to export full segmentations from GTA
Stars: ✭ 83 (-3.49%)
Mutual labels:  object-detection
Data generator object detection 2d
A data generator for 2D object detection
Stars: ✭ 73 (-15.12%)
Mutual labels:  object-detection
Tensorflow Object Detection With Tensorflow 2.0
Use the Tensorflow Object Detection API with Tensorflow 2
Stars: ✭ 76 (-11.63%)
Mutual labels:  object-detection
Vidvrd Helper
To keep updates with VRU Grand Challenge, please use https://github.com/NExTplusplus/VidVRD-helper
Stars: ✭ 81 (-5.81%)
Mutual labels:  object-detection
Frustum Pointnets
Frustum PointNets for 3D Object Detection from RGB-D Data
Stars: ✭ 1,154 (+1241.86%)
Mutual labels:  object-detection
Fastai
R interface to fast.ai
Stars: ✭ 85 (-1.16%)
Mutual labels:  object-detection
Hand Detection.pytorch
FaceBoxes for hand detection in PyTorch
Stars: ✭ 76 (-11.63%)
Mutual labels:  object-detection
Gossipnet
Non-maximum suppression for object detection in a neural network
Stars: ✭ 83 (-3.49%)
Mutual labels:  object-detection
Votenet
Deep Hough Voting for 3D Object Detection in Point Clouds
Stars: ✭ 1,183 (+1275.58%)
Mutual labels:  object-detection
Tju Dhd
A newly built high-resolution dataset for object detection and pedestrian detection (IEEE TIP 2020)
Stars: ✭ 75 (-12.79%)
Mutual labels:  object-detection
Htcn
Implementation of "Harmonizing Transferability and Discriminability for Adapting Object Detectors" (CVPR 2020)
Stars: ✭ 82 (-4.65%)
Mutual labels:  object-detection
Panet
PANet for Instance Segmentation and Object Detection
Stars: ✭ 1,170 (+1260.47%)
Mutual labels:  object-detection
Raster Vision
An open source framework for deep learning on satellite and aerial imagery.
Stars: ✭ 1,248 (+1351.16%)
Mutual labels:  object-detection
Fcos Pytorch 37.2ap
A pure torch implement of FCOS 37.2AP
Stars: ✭ 69 (-19.77%)
Mutual labels:  object-detection
Cnn Paper2
🎨 🎨 深度学习 卷积神经网络教程 :图像识别,目标检测,语义分割,实例分割,人脸识别,神经风格转换,GAN等🎨🎨 https://dataxujing.github.io/CNN-paper2/
Stars: ✭ 77 (-10.47%)
Mutual labels:  object-detection
Frostnet
FrostNet: Towards Quantization-Aware Network Architecture Search
Stars: ✭ 85 (-1.16%)
Mutual labels:  object-detection
Yolo Custom Object Detector
Making custom object detector using Yolo (Java and Python)
Stars: ✭ 84 (-2.33%)
Mutual labels:  object-detection
Labelme
automatic tagging data, the training data prepare for mask-rcnn
Stars: ✭ 83 (-3.49%)
Mutual labels:  object-detection

Tensorflow iOS Object Detection

An Object Detection application on iOS using Tensorflow and pre-trained COCO dataset models. Video frames are captured and inference is done locally using one of the 3 provided models: ssd_mobilenet_v1_coco, ssd_modelnet_v2_coco, or ssd_inception_v2_coco. Both Swift and Objective-C projects.

cat image

Building

  • Make sure you have automake and libtool. Using homebrew:

brew install automake libtool

  • Clone the tensorflow source repo on GitHub

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

  • cd into the tensorflow repo and at a minimum checkout the v1.5.0 tag. The v1.5.0 release has the Makefile support for the following ANDROID_TYPES environment variable. I have tested up to v1.12.0

git checkout origin/r1.11

if you run into this issue: thread-local storage is not supported for the current target, you may need to edit the two files affected. The following one-liners worked for me:

gsed '/ifeq[^,]*,I386)/!b;n;n;n;n;n;s/thread_local//' < ./tensorflow/contrib/makefile/Makefile > foo; mv foo ./tensorflow/contrib/makefile/Makefile

gsed 's/thread_local int per_thread_max_parallism/__thread int per_thread_max_parallism/' < tensorflow/core/util/work_sharder.cc > foo; mv foo ./tensorflow/core/util/work_sharder.cc

You can get gsed using homebrew: brew install gnu-sed

  • We need to build the tensorflow components with ANDROID_TYPES_FULL. In the terminal type:

export ANDROID_TYPES="-D__ANDROID_TYPES_FULL__"

  • Build the tensorflow libraries for iOS. Go to the root of your newly downloaded tensorflow repo and run:

tensorflow/contrib/makefile/build_all_ios.sh

Go get a coffee. This can take a while. On my macBook it took almost 2 hours.

  • Open either the Swift or Objective-C project in this repo and edit the tensorflow.xconfig file to point to the folder where you cloned the tensorflow repo

TENSORFLOW_ROOT=/Users/username/Development/tensorflow

  • Compile the xcode project and run. Since we need a camera this will only run on a device.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].