How to Crop an image in opencv using Python Code : import cv2 import numpy as np img = cv2.imread("lambo.png") imcrop = img[0:100,200:500] cv2.imshow("im…
Read moreHow to do Resize of image in Opencv Python Code: import cv2 import numpy as np img = cv2.imread('input.jpg') print(img.shape) imgResize = cv2.resize(img,(300,20…
Read moreHow to make a arc between two lines in python Code : from numpy import * from matplotlib.pyplot import * theta = eval(input("Enter the value of theta")) t = l…
Read moreNaca airfoil ploting in matplotlib python Code: from matplotlib.pyplot import * from numpy import * t = .2 c= 1.5 xc = linspace(0,1,100) y1 = t*c/.2*(.296*sqrt(xc)-.12…
Read moreHow to plot a graph in matplotlib for beginners Code: import matplotlib.pyplot as plt x = [1,2,3,4] y = [8,12,10,3] plt.xlabel('x axis') plt.ylabel('y axis…
Read moreHow to plot triangle ,square or any polygon shape in Python Matplotlib Code from matplotlib.pyplot import * from numpy import * n = eval(input('enter the no. of sid…
Read moreHow to Draw a rectangle in Opencv Python As we all know a image in nothing a 2d graph in which several pixels are there arranging rows and colum Note : I am assuming t…
Read moreImage Translation in OpenCV Python Image Input : import cv2 import numpy as np img = cv2.imread('1.jpg') rows, cols = img.shape[0],img.shape[1] translation= np.f…
Read more
Social Plugin