cvtools icon indicating copy to clipboard operation
cvtools copied to clipboard

size analysis

Open Fly-dream12 opened this issue 5 years ago • 2 comments

Could you give a detailed instruction about how to draw the hist of size distribution?

Fly-dream12 avatar Dec 31 '19 02:12 Fly-dream12

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.

image

gfjiangly avatar Dec 31 '19 02:12 gfjiangly

Yeah, i have got the json output result and just don't know how to dispaly.

Fly-dream12 avatar Dec 31 '19 04:12 Fly-dream12