Spaces:
Sleeping
Sleeping
Update pages/7_Unstructured_data.py
Browse files133 unmodified lines1341351361371381391401411421431447 unmodified lines152153154155156157158133 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 Functionsimage = cv2.imread('path')# Reads an image - it always converts to 3D array which uses RGB color space7 unmodified lines# To remove from RAM --> automatically removes from RAMcv2.imwrite('output.jpg', image)# Saves the image to a filecv2.resize(image)# Resizes an image to a given dimension.133 unmodified lines1341351361371381391401411421431441451461471487 unmodified lines156157158159160161162133 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 Functionsimage = cv2.imread('path')# Reads an image - it always converts to 3D array which uses RGB color space7 unmodified lines# To remove from RAM --> automatically removes from RAMcv2.imwrite('output.jpg', image)# Converts array to shapecv2.resize(image)# Resizes an image to a given dimension.
pages/7_Unstructured_data.py+5-1