This project will allow to get some statistics and useful preprocessing utilities before using your images in ML models.
In order to be able to use src_util functions. You need to install from parent directory.
pip install -e .
e.g.
python get_stats.py -j get_stats_AIIMS.json
e.g. get_stats_AIIMS.json
{
"directory_data": "/home/pcallec/analyze_images/data/LighOCT/Dataset/AIIMS_Dataset",
"type_file":"bmp",
"directory_output": "/home/pcallec/analyze_images/results",
"suffix": "data_AIMMS"
}
directory_data
: path of datatype_file
: bmp. jpeg, pngdirectory_output
: path of output directorysuffix
: Suffix to name the output csv files
example shape list
,filename,filepath,shape
0,Default_0008_Mode3D_0034.bmp,/home/pcallec/analyze_images/data/LighOCT/Dataset/AIIMS_Dataset/Cancer Sample/Patient c11/Default_0008_Mode3D_0034.bmp,"(441, 245, 3)"
1,Default_0007_Mode3D_0089.bmp,/home/pcallec/analyze_images/data/LighOCT/Dataset/AIIMS_Dataset/Cancer Sample/Patient c11/Default_0007_Mode3D_0089.bmp,"(442, 245, 3)"
...
example shape list summary
,shape,qty
0,"(441, 245, 3)",5775
1,"(442, 245, 3)",3465
...
e.g. rename_pig_kidney_subset.json
{
"directory_data": "/home/pcallec/mif_outer/data/pig_kidney_subset",
"type_file": "jpg",
"list_old_name":["pelvis_calyx"],
"list_new_name":["pelvis-calyx"]
}
directory_data
: path of datatype_file
: type of file to change namelist_old_name
: list of string that if found in file would be modifiedlist_new_name
: list of string that would be used to rename.
e.g.
python rename_file_name.py -j rename_pig_kidney_subset.json
Paul Calle - pcallec@ou.edu