Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 anni fa
..
CMakeLists.txt 7ca47ac258 Add gpu support 4 anni fa
LICENSE 155794afa7 Create LICENSE 6 anni fa
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 anni fa
cars.jpg 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa
cars.mp4 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa
colors.txt 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa
mask_rcnn.cpp f6a7fae8ec Fix minor mistake 4 anni fa
mask_rcnn.out 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa
mask_rcnn.py 7ca47ac258 Add gpu support 4 anni fa
mask_rcnn_inception_v2_coco_2018_01_28.pbtxt 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa
mscoco_labels.names 50ce328bfd object detection and instance segmentation using mask rcnn 6 anni fa

README.md

Deep learning based Object Detection and Instance Segmentation using Mask RCNN in OpenCV (Python / C++)

This repository contains code for Deep learning based Object Detection and Instance Segmentation using Mask RCNN in OpenCV (Python / C++) blog post.

download

Python

wget http://download.tensorflow.org/models/object_detection/mask_rcnn_inception_v2_coco_2018_01_28.tar.gz tar zxvf mask_rcnn_inception_v2_coco_2018_01_28.tar.gz

Download and extract the needed model files.

Usage Examples :

Python

python3 mask_rcnn.py --image=cars.jpg python3 mask_rcnn.py --video=cars.mp4

It starts the webcam - if no argument provided.

C++

Compile using:

g++ -ggdb `pkg-config --cflags --libs /Users/snayak/opencv/build/unix-install/opencv.pc` mask_rcnn.cpp -o mask_rcnn.out

Run using: ./mask_rcnn.out --image=cars.jpg ./mask_rcnn.out --video=cars.mp4

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.