/Multi-Media-Lab

This Repo Contains the code for Multi Media Lab(College Curriculum Subject)

Primary LanguageJupyter Notebook

MT_Lab

This Repo Contains the code for MT Lab(College Curriculum Subject)

Using Python OpenCV library

  • Crop an image

    cropped_image = img[80:280, 150:330]

    image

  • Rotate an image

    image = cv2.rotate(src, cv2.cv2.ROTATE_90_CLOCKWISE)

    image

  • Create a histogram

    hist = cv2.calcHist([image], [i], None, [256], [0, 256])

    image

  • Splitting of an image

    image_slicer.slice('Image.jpg', 4)

    image

  • Transpose an image

    image = cv2.transpose(src)

    image

  • Play a video

    cv2.imshow('Video', frame)

    image