labelme2seg.py工具生成的png文件是全黑的
Created by: zhuyushi
您好,我使用labelme进行标注,然后使用labelme2seg.py生成数据集,但是生成的png文件打开之后是全黑的,看不到标注的物体,麻烦帮忙看看原因,谢谢。
下面附上labelme生成的json文件: { "version": "3.16.7", "flags": {}, "shapes": [ { "label": "test", "line_color": null, "fill_color": null, "points": [ [ 130.10619469026545, 275.87610619469024 ], [ 261.0796460176991, 419.2389380530973 ], [ 492.9380530973451, 430.74336283185835 ], [ 507.98230088495563, 297.99999999999994 ], [ 348.6902654867256, 183.84070796460176 ], [ 191.16814159292034, 236.93805309734512 ] ], "shape_type": "polygon", "flags": {} }, { "label": "ttt", "line_color": null, "fill_color": null, "points": [ [ 211.52212389380526, 482.9557522123893 ], [ 247.80530973451323, 602.4247787610619 ], [ 412.4070796460177, 623.6637168141592 ], [ 446.0353982300884, 513.929203539823 ], [ 425.68141592920347, 459.9469026548672 ], [ 262.84955752212386, 460.8318584070796 ] ], "shape_type": "polygon", "flags": {} } ], "lineColor": [ 0, 255, 0, 128 ], "fillColor": [ 255, 0, 0, 128 ], "imagePath": "6.jpg", "imageData": "太多,省略", "imageHeight": 694, "imageWidth": 685 }