Harika22 commited on
Commit
018926d
·
verified ·
1 Parent(s): 9fa532e

Update pages/7_Unstructured_data.py

Browse files
Files changed (1) hide show
  1. pages/7_Unstructured_data.py +5 -1
pages/7_Unstructured_data.py CHANGED
@@ -134,11 +134,15 @@ if file_type == "IMAGE":
134
  - OpenCV allows users to perform basic operations like reading, displaying, and saving images.
135
  - Along with that it also performs resizing, cropping, and filtering of images based on requirements.
136
  - **Key Functions:** `imread()`, `imshow()`, `imwrite()`
 
137
  - **`imread()`**: Reads an image from the disk, storing it as an array.
 
138
  - **`imshow()`**: Displays the image in a window, allowing for easy visualization.
 
139
  - **`imwrite()`**: Saves the image to a specified location on your storage.
140
  ```python
141
  # Example Usage of OpenCV Functions
 
142
  image = cv2.imread('path')
143
  # Reads an image - it always converts to 3D array which uses RGB color space
144
 
@@ -152,7 +156,7 @@ if file_type == "IMAGE":
152
  # To remove from RAM --> automatically removes from RAM
153
 
154
  cv2.imwrite('output.jpg', image)
155
- # Saves the image to a file
156
 
157
  cv2.resize(image)
158
  # Resizes an image to a given dimension.
 
134
  - OpenCV allows users to perform basic operations like reading, displaying, and saving images.
135
  - Along with that it also performs resizing, cropping, and filtering of images based on requirements.
136
  - **Key Functions:** `imread()`, `imshow()`, `imwrite()`
137
+
138
  - **`imread()`**: Reads an image from the disk, storing it as an array.
139
+
140
  - **`imshow()`**: Displays the image in a window, allowing for easy visualization.
141
+
142
  - **`imwrite()`**: Saves the image to a specified location on your storage.
143
  ```python
144
  # Example Usage of OpenCV Functions
145
+
146
  image = cv2.imread('path')
147
  # Reads an image - it always converts to 3D array which uses RGB color space
148
 
 
156
  # To remove from RAM --> automatically removes from RAM
157
 
158
  cv2.imwrite('output.jpg', image)
159
+ # Converts array to shape
160
 
161
  cv2.resize(image)
162
  # Resizes an image to a given dimension.