Followlect is an Online learning site. The followlect give coding knowledge to novices developer. This site share content on SQL queries, Dot.Net, PHP, HTML,Python, C, C++, Asp.Net MSSQL Server, Oracle etc. In this we give learners with coding along with example and explanation in steps by steps. The followlect will guide how to develop and create software application. The followlect guide how to design database, how to create java application or create simple website etc. Followlect give content on most search topic google for example JOIN Operation in SQL,ALTER statement in sql, Select Sql statement , Search Engine Optimazation, the connection string etc. for tamil guide, tn govt jobs, govt jobs in tamilnadu, tamilnadu government jobs visit https://tnjobs.co.in/
Trimming image using python: The following code contains to trim image in equal height and width size. To do this image pixel stored as array of pixel. from PIL import Image import cv2 import numpy as np from matplotlib import pyplot as plt imagename = "pixg.png" img = cv2.imread(imagename, 0) # 0 params, for gray image height, width = img.shape[:2] # image height and width img1 = Image.fromarray(img) print("height") print(height) print("width") print(width) array=np.array(img) d=np.delete(array,231,0) d=np.delete(d,231,0) d=np.delete(d,231,0) d=np.delete(d,230,0) img2=Image.fromarray(d) plt.imshow(img2,cmap = 'gray') plt.show() print("After Trim") height, width = img2.size #img2.save('trim.png') print("height") print(height) print("width") print(width) Output: height:234, width:230 After Trim: height:230, width:230 By using cv2 the img read the image from local file. The numpy np c