[py-tx][mlh] Add un-letterboxing reference implementation to Photo Content Type #1666
Labels
mlh
Related to Major League Hacking Fellowship
python-threatexchange
Items related to the threatexchange python tool / library
Goal:
Provide a method in Photo content type which, given an image, returns either the same image, or a smaller image that has square black boxes removed from the side.
Example
Take this image:
Given this "letterboxed" version of the image, the return should be the first image.
Demonstrating
Add a new flag to
tx hash
that will allow preprocessing steps for imagesImplementing
Try to avoid pulling in new dependencies if you can, even though there are a million libraries that might already solve this. Instead, take a look at the image libraries already included, such as Pillow - there is robust documentation.
Testing
Include a unittest that demonstrates the functionality, including edge cases you might consider. Use the bridge mod photos, either algorithmically updating them
The text was updated successfully, but these errors were encountered: