'how i can convert jpeg mask to json coco format?

my dataset include jpeg images and jpeg mask for each image. I have to convert masks to json format to train my dataset on pre trained coco mask rcnn. can you help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source