Added multiple image augmentation methods #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Multiple image augmentation methods were implemented: Gaussian blur, directional blur, contrast, brightness, saturation, exposure, random rotation, and random flip. Comments have been included to try to explain the method implemented. Unique ids are generated for every new image made based on time stamps down to the microseconds because the images are generated so fast.
Tasks
Implemented and tested the creation of images for all the methods independently. I have not tested the result of the pipeline when all are included.
Test Plan
I verified random rotation visually by drawing a circle for the new calculated coordinates on the rotated image and checked for alignment. I did not run that through flip because flip is more simple than random rotation. The annotated circles are not saved on the photos; they only served for debugging purposes
A few photo examples;
![0191_3_754767](https://private-user-images.githubusercontent.com/110004681/337244644-adbf7cc8-66e8-40cc-b2f6-2eb885589c29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4OTA1NjYsIm5iZiI6MTczOTg5MDI2NiwicGF0aCI6Ii8xMTAwMDQ2ODEvMzM3MjQ0NjQ0LWFkYmY3Y2M4LTY2ZTgtNDBjYy1iMmY2LTJlYjg4NTU4OWMyOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQxNDUxMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04Y2Q0MDZhYzBiNzAxMzZkNjk5NGU3MWY2Mjg2Y2Y4MDAzMWQ2OWJmODcxMTZjZGY5OTVkZGE4OGY0OTJkN2IzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.oO3SgNCIiF8ZF4wGtnilkwmqAsGXKABXKFdTqWzh_aI)
![0191_3_605901](https://private-user-images.githubusercontent.com/110004681/337244914-46055d20-1d0b-41f7-b6aa-6c28ff938c65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4OTA1NjYsIm5iZiI6MTczOTg5MDI2NiwicGF0aCI6Ii8xMTAwMDQ2ODEvMzM3MjQ0OTE0LTQ2MDU1ZDIwLTFkMGItNDFmNy1iNmFhLTZjMjhmZjkzOGM2NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQxNDUxMDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjIyYTU5ODNlYjc1YTFjZDc2ZjBmZTk5MWRmNmYzY2FmNzVlYmFiMTBiNzg0YWQwYjJlZTNhOTBlZjYwMjkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._Yzo-HKHFBz_SpJDLho6CsNHFtqWD49DVEYiOvfQnqM)
#18 should be solved by this PR
To run the sample pipeline, you can run data_augmentation.py by itself. Currently it only has directional and rotational in its pipeline list.