Package: convertmask
convertmaskIssues and advices wanted.IntroductionA small tool for image augmentation, including mask files to json/xml files , image augmentation(flip,rotation,noise,...) and so onHOW TO USE.Installation.Try:pip install -r requestments.txtIF ERROR, try:pip install -r requirements.txt --ignore-installedUse.Under this version, these tools are provided.1.augmentation2.img2xml3.json2mask4.json2xml5.longImgSplit6.xml2json7.xml2mask8.xml2yolo9.yolo2xml10.mask2jsonCHANGE LOGS2021.1.141.update spliting yolo-like dataset into train and val datasets AUTOMATICLY.SeetestYoloLike.py. The test dataset can be found in ./test/ , 68 txts totally.2020.11.251. negative sample AUTOMATICLY randomly generate. I am not sure if it is helpful to my face detection cnn.2. rewritemosaic.py(without resize the origin images). Seehere.2020.11.161.support converting widerface annotations to xmls. seehere2020.11.101. object-oriented rewrite augumentation optional module. Seehere. Test script can be foundhere2020.10.251. bump to 0.5.32. code structure change3. mosiac(yolov4) augumentation supported(auto labeled for labelImg,for labelme will be updated as fast as i can). Script can be foundhere2020.10.241.image crop supported.(single and multiple crops,rectangle and polygon support. Seehere)2.image resize supported (auto labeled). Seehereand the test script ishere2020.10.231.image distortion supported.seehereortest-scriptfor details.2020.10.131.image augumentation support convert yolo txts to xmls(pascal). Seehere2.speed up by using multiprocess2020.10.121.image augumentation support generating several annotation/images with single image/annotation(json,xml). Seehere2020.9.241.inspired byLabelImgTool, convert xmls to jsons is useful. Also ,i forked this repo and add some pyqt5/py3 support,seehere.examples:scripthere2020.8.241.support convert xml files to yolo files. seehereexamples:2020.8.191. image translation supported.combination of every augmentation method.2. besides, a simple way convert json file(labelme) to xml file(labelImg) is provided. seehere2020.8.171. bug fix.2. support image augmentation methods: noise,flip,rotation. trytest_imgAug.py!here are some examples:flipnoiserotation2020.8.141. add image augmentation  (image flip) test. seetest_imgAug.py!2020.7.141.bugfix , test multi objects to xml files, pretty xmlseg:2020.7.131. convert multi objects to xml files supported (untested)2020.7.101. a lot of things to do ,such as many warnings related to labelme.2020.6.121.support multiple objects mask to jsontrytest.py!1.1 multiple objects in different classesmanually_labeled imageauto_labeled image1.2 multiple objects in same classesmanually_labeled imageauto_labeled imagewhat to do next1.support multiple files image augmentation(2020.8.21)2.support image augmentation without a label/json file(2020.8.21)3.support image augmentation with a labeled file (just support json file right now)(2020.9)4. image augmentation supports custom parameters (auto augmented right now)5. do something more interesting6.re-write mainscript(2020.10)7. solve PyYmal installation error(currently write ascriptby myself. maybe failure in the end.)8.image augmentation zoooom(2020.10.14)9. yolo txts split train/val dataset automaticly.OTHERSissue:json2mask has no outputif you test thejson2mask.pyscript, you should change the path first and make sure the file is valid(maybe i have deleted :) )Also, this script is just a reverse of mask2json, for a more COOOOOL method, seehere, try convert.processorSHORTCOMING1.objects connected to each other is not supported yet.this may happen if you labelling multiple-object-images with only 2 labels .Or some objects are of the same type and are connected to each other(eg. a bunch of grapes,it is hard to split one to the other).2.Image Binarizationissue