Visit simple-tools-for-machine-learning for a newer tool, which written in python3.8
,skimage
,numpy
and without opencv-python
. This repo will not be upgraded any more.
A small tool for image augmentation, including mask files to json/xml files , image augmentation(flip,rotation,noise,...) and so on
Try:
pip install -r requestments.txt
IF ERROR, try:
pip install -r requirements.txt --ignore-installed
Under this version, these tools are provided.
2.img2xml
4.json2xml
6.xml2json
7.xml2mask
8.xml2yolo
9.yolo2xml
10.mask2json
1.update spliting yolo-like dataset into train and val datasets AUTOMATICLY.See testYoloLike.py. The test dataset can be found in ./test/ , 68 txts totally.
1. negative sample AUTOMATICLY randomly generate. I am not sure if it is helpful to my face detection cnn.
1.support converting widerface annotations to xmls. see here
3. mosiac(yolov4) augumentation supported(auto labeled for labelImg,for labelme will be updated as fast as i can). Script can be found here
1.image crop supported.(single and multiple crops,rectangle and polygon support. See here)
see here or test-script for details.
1.image augumentation support convert yolo txts to xmls(pascal). See here
1.image augumentation support generating several annotation/images with single image/annotation(json,xml). See here
1.inspired by LabelImgTool, convert xmls to jsons is useful. Also ,i forked this repo and add some pyqt5/py3 support,see here.
examples:
script here
1.support convert xml files to yolo files. see here
examples:
combination of every augmentation method.
2. besides, a simple way convert json file(labelme) to xml file(labelImg) is provided. see here
2. support image augmentation methods: noise,flip,rotation. try test_imgAug.py !
here are some examples:
1. add image augmentation (image flip) test. see test_imgAug.py !
eg:
try test.py !
manually_labeled image
auto_labeled image
manually_labeled image
auto_labeled image
6. re-write main script (2020.10)
7. ~~ solve PyYmal installation error(currently write a script by myself. maybe failure in the end.)~~
if you test the json2mask.py script, 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, see here , try convert.processor
1.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 Binarization issue