Closed guchengxi1994 closed 2 years ago
sometimes i convert a img to a binary image , the boundray of each area is not binary(see https://github.com/guchengxi1994/mask2json/blob/test/static/issue.png),which will result in some errors when convert masks to xmls .
code can be found here: https://github.com/guchengxi1994/mask2json/blob/test/convertmask/utils/xml2mask/x2m.py line 117
io.imsave(parentpath+os.sep+'mask'+os.sep+fileName+'.jpg',np.array(mask_img/np.max(mask_img)*255,dtype=np.uint8))
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
sometimes i convert a img to a binary image , the boundray of each area is not binary(see https://github.com/guchengxi1994/mask2json/blob/test/static/issue.png),which will result in some errors when convert masks to xmls .
code can be found here: https://github.com/guchengxi1994/mask2json/blob/test/convertmask/utils/xml2mask/x2m.py line 117
io.imsave(parentpath+os.sep+'mask'+os.sep+fileName+'.jpg',np.array(mask_img/np.max(mask_img)*255,dtype=np.uint8))