This Repo Contains the code for MT Lab(College Curriculum Subject)
-
Crop an image
cropped_image = img[80:280, 150:330]
-
Rotate an image
image = cv2.rotate(src, cv2.cv2.ROTATE_90_CLOCKWISE)
-
Create a histogram
hist = cv2.calcHist([image], [i], None, [256], [0, 256])
-
Splitting of an image
image_slicer.slice('Image.jpg', 4)
-
Transpose an image
image = cv2.transpose(src)
-
Play a video
cv2.imshow('Video', frame)