🦈🔬Underwater Shark Image Extraction Without Machine Learning
pip3 install opencv-contrib-python numpy
- Create multiple images from a combination of different channels and color spaces
- Create an image with a detailed view of the shark in grayscale and color
- Create a binary mask that can identify the shark and part of the image we don't want
- Create a 2nd binary mask that can identify the shark and a different part of the image we don't want
- Combine and clean the two masks to get a rough outline of the shark
- Fill the outline/edges so that it can actually be used as a mask
- Use the mask to extract only the shark from the detailed image
- Crop the image to only contain the shark using the mask as a guide
- Replace the background color with white
- Display both a Grayscale and Color version of the shark