cvtools
cvtools copied to clipboard
size analysis
Could you give a detailed instruction about how to draw the hist of size distribution?
import cvtools
img_prefix = '/your_data/images' # images folder
ann_file = '/your_data/dataset.json' # your coco data format json
coco_analysis = cvtools.COCOAnalysis(img_prefix, ann_file)
coco_analysis.stats_size_per_cat('/out/analysis/size_per_cat_data.json')
Use this html page to visually display the output json, refer to the output json in the html page.
Yeah, i have got the json output result and just don't know how to dispaly.