1 | initial version |
for reasons i fail to understand, this does the trick:
res = cv2.bitwise_not(~image1,image,mask=mask)
2 | No.2 Revision |
for reasons i fail to understand, no idea why, but this does the trick:
res = cv2.bitwise_not(~image1,image,mask=mask)