OpenCV Convert Image into Sketch

OpenCV Convert Image into Sketch

import cv2 import numpy as np import scipy.ndimage image = cv2.imread('bull.png') def grayscale(rgb): # 2 dimensional array to convert image to sketch return np.dot( rgb[..., :3], [0.2989, 0.5870, 0.1140] ) def dodge(front, back): # if image is greater than 255 (which is not possible) it will convert it...

Read More →

OpenCV resize image

OpenCV resize image

image = cv2.resize(src, dsize, fx, fy, interpolation) where: src    The file path in which the input image resides. dsize    The size of the output image, which adheres to the syntax (width, height). fx    The scale factor for the X axis. fy    The scale factor for the Y axis...

Read More →

Installation Julia Language to Ubuntu

Installation Julia Language to Ubuntu

1. Download last version (you can look last version on the page https://julialang.org/downloads/#musl-fn) wget https://julialang-s3.julialang.org/bin/linux/x64/1.9/julia-1.9.1-linux-x86_64.tar.gz 2. Extrat the downloaded archive tar zxvf julia-1.9.1-linux-x86_64.tar.gz 3. Adding Julia to system path nano ~/.bashrc 3....

Read More →

1 2 3 ... 5 6 7 Next →
Search
Popular Posts
Subscribe
{{post}}