Web App to convert image in to sketch image
Packages:
- streamlit – pip install streamlit
- numpy- pip install numpy
- opencv-python – pip install opencv-python
- Pillow – pip install Pillow
Logic
- Convert the color image to grayscale –
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
- Invert the grayscale image to get a negative –
imagem = cv2.bitwise_not(imagem)
- Apply a Gaussian blur to the negative from step 2 –
blur = cv.GaussianBlur()
- Blend the grayscale image from step 1 with the blurred negative from step 3 using a color dodge –
dodgeV2(mg_gray, img_blur)