Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Select the Histogram value of the part of the image you want to remove
- Extract the values of the pixels those fall inside the histogram values
- Subtract this original image with this extracted image
- Then covert the img into numpy array
- Used this to turn all the black pixels removed into with
- finalimage=img[np.where((img == [0,0,0]).any(axis=2))]=[255,255,255]
Add Comment
Please, Sign In to add comment