Skip to main content
. 2023 Aug 28;18(1):20220689. doi: 10.1515/biol-2022-0689
Algorithm 2: Algorithm to resize and augment images
Input: f1 = Path_to_dataset
Output: final_image
For all_images in f1 do
 final_image = file_i.resize(300,300)
 final_image.flip_left_right(0.7)
 final_image.rotate(0.6, 23, 25)
 final_image.skew(0.8, 0.8)
 final_image.zoom(probability = 1.0, min_factor = 1.0, max_factor = 1.6)
 final_image.sample(403)
End