diff options
author | Florian Jung <flo@windfisch.org> | 2014-08-25 19:17:42 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-08-25 19:17:42 +0200 |
commit | 2b01dbe0fe16de73f537b1749746fd1735d2c751 (patch) | |
tree | 7c5d4c2df49b225072f80a9f898f8ff0779fc0e8 | |
parent | 361c8e5837accebd4fd61676fb19e5ecf2c2f998 (diff) |
!
-rw-r--r-- | test.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ while(cap.isOpened()): frame2= cv2.warpAffine(frame, mat2, (scr_width,scr_height) ) mask2 = cv2.warpAffine(mask, mat2, (scr_width,scr_height) ) ret, mask2 = cv2.threshold(mask2, 254, 255, cv2.THRESH_BINARY) - #mask2 = cv2.dilate(mask2, numpy.ones((3,3),numpy.uint8)) + mask2 = cv2.erode(mask2, numpy.ones((2,2),numpy.uint8)) # strip off the potentially-badlooking edges #screencontent = frame2 screencontent = cv2.bitwise_and(screencontent,screencontent, mask=cv2.bitwise_not(mask2)) screencontent = cv2.add(screencontent, cv2.bitwise_and(frame2,frame2,mask=mask2)) |