Skip to main content

Posts

Showing posts with the label python OpenCV WilliamOsman maker

Unwrapping someone's face to make wrapping paper

Unwrapping someone's face to make wrapping paper My first step image processing with OpenCV for Python So this last weekend I was pretty bored at home with nothing to do and no one to climb with. During the last days, I made a Twitter bot and I had quite a lot of fun doing it. After some research of the most useful or popular libraries in Python I came across OpenCV, which seems to be a very powerful library for image processing and many other much more complex things. I decided to give it a try and remember watching this William Osman's video. He explained more or less the process to create his code and even made his code public in his blog, well he was using a library called PIL but I wanted to learn to use OpenCV so it served for nothing. So well here is my code and a brief explanation of what it does. Be gentle, I am a newbie, I do this to amuse myself as I find it quite entertaining and educative. import cv2 as cv import numpy as np video = cv.VideoCapture( 'C:/Users/U...