All Projects → TetsuakiBaba → ofxOpenCvDnnObjectDetection

TetsuakiBaba / ofxOpenCvDnnObjectDetection

Licence: MIT license
OpenCV based DNN Object Detection Library for Openframeworks

Programming Languages

C++
36643 projects - #6 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ofxOpenCvDnnObjectDetection

Yolo label
GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2 https://github.com/AlexeyAB/darknet, https://github.com/pjreddie/darknet
Stars: ✭ 128 (+276.47%)
Mutual labels:  annotation, detection, yolo
ofxCameraAnaglyph
Anaglyph Camera for Stereo 3D Rendering for OpenFrameworks
Stars: ✭ 25 (-26.47%)
Mutual labels:  openframeworks, addon, openframeworks-addon
ofxAubio
openFrameworks addon for aubio, estimates beat, onset, pitch, and a few other things
Stars: ✭ 56 (+64.71%)
Mutual labels:  openframeworks, addon
Ofxcv
Alternative approach to interfacing with OpenCv from openFrameworks.
Stars: ✭ 614 (+1705.88%)
Mutual labels:  openframeworks, addon
Ofxbullet
Bullet Physics Wrapper for Openframeworks
Stars: ✭ 138 (+305.88%)
Mutual labels:  openframeworks, addon
ofxDeferredShading
an openFrameworks addon for shading, lighting, lens simulation.
Stars: ✭ 78 (+129.41%)
Mutual labels:  openframeworks, openframeworks-addon
ofxOilPaint
An oil painting simulation addon for openFrameworks
Stars: ✭ 45 (+32.35%)
Mutual labels:  openframeworks, openframeworks-addon
Ofxio
A collection of I/O core utils including a directory watcher, file filters and ordering, compression and more.
Stars: ✭ 78 (+129.41%)
Mutual labels:  openframeworks, addon
ofxPS3EyeGrabber
A Sony PS3 Eye Camera grabber for openFrameworks.
Stars: ✭ 83 (+144.12%)
Mutual labels:  openframeworks, addon
Face landmark factory
These are a set of tools using OpenCV, Tensorflow and Keras, with which you can generate your own model of facial landmark detection and demonstrate the effect of newly-generated model easily.
Stars: ✭ 120 (+252.94%)
Mutual labels:  annotation, detection
Label Studio
Label Studio is a multi-type data labeling and annotation tool with standardized output format
Stars: ✭ 7,264 (+21264.71%)
Mutual labels:  annotation, yolo
Labelbox
Labelbox is the fastest way to annotate data to build and ship computer vision applications.
Stars: ✭ 1,588 (+4570.59%)
Mutual labels:  annotation, detection
ofxPubSubOsc
bind OSC messages and values with only writing tiny codes on setup once.
Stars: ✭ 72 (+111.76%)
Mutual labels:  openframeworks, openframeworks-addon
ofxCorkCsg
A constructive solid geometry (mesh boolean) addon for openFrameworks.
Stars: ✭ 43 (+26.47%)
Mutual labels:  openframeworks, openframeworks-addon
ofxSpaceColonization
Space Colonization algorithm implementation in openFrameworks
Stars: ✭ 62 (+82.35%)
Mutual labels:  openframeworks, addon
Ofxtweenzor
Tweening Engine for OpenFrameworks
Stars: ✭ 52 (+52.94%)
Mutual labels:  openframeworks, addon
ofxDlib
An openFrameworks wrapper for dlib. http://dlib.net/
Stars: ✭ 52 (+52.94%)
Mutual labels:  openframeworks, dnn
ofxRaycaster
Plane, 2D and 3D Ray objects for openFrameworks.It checks for the intersection of a ray with a segment, a sphere, a triangle, a plane, an ofPrimitive, an ofPolyline an with an ofMesh.
Stars: ✭ 54 (+58.82%)
Mutual labels:  openframeworks, addon
Myvision
Computer vision based ML training data generation tool 🚀
Stars: ✭ 453 (+1232.35%)
Mutual labels:  annotation, yolo
3d Bat
3D Bounding Box Annotation Tool (3D-BAT) Point cloud and Image Labeling
Stars: ✭ 179 (+426.47%)
Mutual labels:  annotation, detection

ofxOpenCvDnnObjectDetection

sample_images/result_sample01.gif

Description

ofxOpenCvDnnObjectDetection is an addon for openframeworks(version.0.11.0).

I created this addon for beginers or learner who are going to try object detection with Yolo, SSD and R-CNN on OF. Latest oF includes opencv(version4) as a default opencv library, so you can run dnn object detection with ofxOpenCv.

Usage

See Examples for more details

Example

single_image

single_image screenshot Detection example for single image.

camera

Realtime Detection example for webcam video.

annotation

annotation screenshot My annotation software to export a yolo format. It enables you to annotate image, video, camera. I'm preparing the manual to use it.... not yet.

Getting Started with Examples/single_image.

1. Clone ofxOpenCvDnnObjectDetection to your of/addon directory

$ git clone https://github.com/TetsuakiBaba/ofxOpenCvDnnObjectDetection.git

2. Download models

$ sh getWeights.sh

3. Open a project generator and import Example/single_image. Then click the update button.

4. Open the project with IDE(xcode) and just run.

Compatibility

  • only macOS ( tested on Catalina 10.15)
  • oF version: 0.11.0

If you wanna get faster inference time.

Openframeworks(version.0.11.0) includes opencv-4.0.1 for ofxOpenCv addon. But you can get faster inference time by using local-compiled opencv library. Here is my inference time result on each dnn object detection.

Now, I've done an inference test on M1 mac with arm64 compiled opencv2.framework. If you would like to try oF with M1 native, please check the below link.

CPU Inference Time on MacBook Pro (13-inch Mid 2018) https://browser.geekbench.com/v5/cpu/1184669 opencv.a (opencv-4.0.1, oF bundle) opencv2.framework (opencv-4.2.0, local compiled)
yolov3 (416x416,coco) 760 [ms] 307 [ms]
yolov3-tiny (416x416,coco) 62 [ms] 27 [ms]
yolov2-tiny (416x416,coco) 61 [ms] 28 [ms]
MobileNet-SSD (300x300, voc) 40 [ms] 26 [ms]
SSD (300x300, coco) 768 [ms] 310 [ms]
CPU Inference Time on mac mini (M1 2020) https://browser.geekbench.com/v5/cpu/5044574 opencv.a (opencv-4.0.1, oF bundle) opencv2.framework (opencv-4.5, intel macbook pro(2018) compiled) opencv2.frameworks
(Arm64 M1 compiled)
yolov3 (416x416,coco) 412 [ms] 413 [ms] 320 [ms]
yolov3-tiny (416x416,coco) 39 [ms] 39 [ms] 30 [ms]
yolov2-tiny (416x416,coco) 37 [ms] 38 [ms] 29 [ms]
MobileNet-SSD (300x300, voc) -- [ms] -- [ms] -- [ms]
SSD (300x300, coco) -- [ms] -- [ms] -- [ms]

How to replace opencv.a to opencv2.framework

  1. Copy opencv2.framework to ofxOpenCvDnnObjectDetection/lib directory
  2. Edit addon_config.mk and comment out a line of #ADDON_INCLUDES += libs/opencv2.framework
  3. Import a project, such as single_image, camera, with projectgenerator then remove ofxOpenCv from addon list.
  4. update and run.

Licence

Author

TetsuakiBaba

Reference

  1. Model Zoo on OpenCV DNN Module README page: https://github.com/opencv/opencv/blob/master/samples/dnn/README.md
  2. How to implement OpenCV Yolo on Openframeworks: https://qiita.com/buchayaty/items/4020100f531c07418f38
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].