<jupyter_start><jupyter_text>Image Cropping<jupyter_code>import cv2
from matplotlib import pyplot as plot
import numpy as nm
img =cv2.imread("house.jfif")
plot.imshow(img)
plot.title("Original Image")<jupyter_output><empty_output><jupyter_text>Cropping across width from 30 to 150 px<jupyter_code>width_crop_1=img[:,30:150]
plot.imshow(width_crop_1)
plot.title("cropping across width from 30 to 150 px")<jupyter_output><empty_output><jupyter_text>Cropping across Height from 10 to 100 px<jupyter_code>height_crop_1=img[10:100,:]
plot.imshow(height_crop_1)
plot.title("cropping across height from 10 to 100 px")<jupyter_output><empty_output><jupyter_text>Cropping across Height 20 to 120 px and Width 90 to 210 px<jupyter_code>width_height_crop_1=img[20:120,90:210]
plot.imshow(width_height_crop_1)
plot.title("Cropping across Height 20 to 120 px and Width 90 to 210 px")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10111111111111111, 'fraction_numerical': 0.07555555555555556, 'mean_word_length': 9.476744186046512, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '370859', 'license': 'MIT', 'n_tokens_mistral': 400, 'n_tokens_neox': 345, 'n_words': 76, 'path': 'ImageCropping/image_cropping.ipynb', 'repo_name': 'noviicee/Image-Processing-OpenCV', 'size': '900'}