Free imaging tools and software
This is blog provide best Imaging 100% free tools Software , Excel Template, Home remedies. .
Pages
- Home
- Loan Calculator tool
- URL Shortener
- GST Calculator
- Earn online Start immediately
- Currency Converter
- Unit Converter
- JPG to PNG Converter
- SEO Audit Tool
- Digital Signature
- SpeedTest Checker
- PNG to JPG Converter Tool
- Video to Audio Converter
- Text to Binary converter
- Binary to Text
- HEX to Binary
- Binary to HEX
- ASCII to Binary
- Binary to ASCII
- Decimal to Binary
- Binary to Dec
- Zip File Maker Tool
- Privacy policy review
Video
import cv2
# Load the video
cap = cv2.VideoCapture('input_video.mp4')
while cap.isOpened():
ret, frame = cap.read()
if not ret:
break
# Convert frame to cartoon
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
gray = cv2.medianBlur(gray, 5)
edges = cv2.adaptiveThreshold(gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 9, 9)
color = cv2.bilateralFilter(frame, 9, 300, 300)
cartoon = cv2.bitwise_and(color, color, mask=edges)
# Display the cartoon frame
cv2.imshow('Cartoon Video', cartoon)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
Subscribe to:
Posts (Atom)