Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 18th, 2018
99
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
[x,y,w,h] = cv2.boundingRect(contour)
roi = image[y:y+h,x:x+w]
m[y:y+h, x:x+w]=roi
cv2.drawContours(m,[c],-1,0,1)
image = cv2.bitwise_and(image,image, mask=m)
Add Comment
Please,
Sign In
to add comment
Public Pastes
snowybot
JavaScript | 16 min ago | 1.95 KB
Untitled
C# | 16 min ago | 15.64 KB
Untitled
Python | 18 min ago | 2.39 KB
Lesson29
C++ | 18 min ago | 1.09 KB
snowybot
JavaScript | 19 min ago | 1.95 KB
update-twitter-to-x-icon
PHP | 26 min ago | 1.15 KB
CASHAPP Free Amazon Giftcard
GetText | 39 min ago | 0.29 KB
Untitled
PHP | 43 min ago | 476.44 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!