Spaces:
Sleeping
Sleeping
Update pages/7_Unstructured_data.py
Browse files133 unmodified lines1341351361371381391401411421431441451461471487 unmodified lines156157158155159160161162133 unmodified lines - OpenCV allows users to perform basic operations like reading, displaying, and saving images. - Along with that it also performs resizing, cropping, and filtering of images based on requirements. - **Key Functions:** `imread()`, `imshow()`, `imwrite()` - **`imread()`**: Reads an image from the disk, storing it as an array. - **`imshow()`**: Displays the image in a window, allowing for easy visualization. - **`imwrite()`**: Saves the image to a specified location on your storage. ```python # Example Usage of OpenCV Functions image = cv2.imread('path') # Reads an image - it always converts to 3D array which uses RGB color space 7 unmodified lines # To remove from RAM --> automatically removes from RAM cv2.imwrite('output.jpg', image) # Saves the image to a file # Converts array to shape cv2.resize(image) # Resizes an image to a given dimension.pages/7_Unstructured_data.py+5-1