Skip to content

Takes JSON file with annotations and .png files and generates binary masks and bounding boxes for use in Machine Learning.

Notifications You must be signed in to change notification settings

LaurenBassett/BinaryMasksAndBoundingBoxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

BinaryMasksAndBoundingBoxes

Takes JSON file with annotations and .png files and generates binary masks and bounding boxes for use in Machine Learning.

open cv must be installed

This can be accomplished with the following command:

pip install opencv-python

Preconditions: This python file, the .png files to annotate, and a json file.

Post conditions: -a folder containing the binary mask .png files -a folder containing json files with coordinates for the bounding boxes -a folder containing the bounded .png files

Note: If there is any part of one polygon which overlaps the another polygon, the bounding box will contain both polygons.

To compile

python Process.py

About

Takes JSON file with annotations and .png files and generates binary masks and bounding boxes for use in Machine Learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages