MobileSAM icon indicating copy to clipboard operation
MobileSAM copied to clipboard

Hello professor, how can I generate overlay images corresponding to the mask and the original image?

Open zaoyueri opened this issue 2 years ago • 1 comments

Hello professor, how can I generate overlay images corresponding to the mask and the original image?

zaoyueri avatar Nov 10 '23 13:11 zaoyueri

Hi! The predict function should give you a mask (a boolean array). Convert it in np.uint8 array, then use the function ```cv2.addWeight function in order to combine the original image and the mask.

Hope this helped

John-Reddon avatar Feb 27 '24 21:02 John-Reddon