How to clone only one branch from a repository

How to clone only one branch from a repository

  Git clones the master branch by default, sometimes need to copy a specific branch git clone --single-branch --branch <branchname> <remote-repo>  

Read More →

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 →

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