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

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.