ankithpatel commited on
Commit
ad600a9
·
verified ·
1 Parent(s): 51d558f

Update pages/Lifecycle of Machine Learning.py

Browse files
pages/Lifecycle of Machine Learning.py CHANGED
@@ -161,7 +161,7 @@ print(df.head())
161
  "Select a format to explore further:",
162
  ("IMAGE","VIDEO", "AUDIO")
163
  )
164
-
165
  #HOW TO READ TEXT
166
  if format_selected == "IMAGE":
167
 
@@ -170,28 +170,32 @@ print(df.head())
170
  st.write(
171
  "Photos, medical scans, satellite images. "
172
  )
 
 
173
  st.write("*How to Read IMAGE Files?*")
174
  st.code(
 
175
  """
 
 
 
 
 
 
 
 
 
176
 
177
- pip install opencv-python
178
- import cv2
179
 
180
- # Read the image
181
- image = cv2.imread('example.jpg')
182
 
183
- # Display the image
184
- cv2.imshow('Image', image)
185
- cv2.waitKey(0) # Wait for a key press to close the window
186
- cv2.destroyAllWindows()
187
-
188
 
 
189
 
190
 
191
- """,
192
- language="python"
193
- )
194
  st.write("*Common Issues When Handling image Files*")
 
195
  st.write(
196
  """
197
  - data augumentation and overfitting
@@ -202,6 +206,7 @@ cv2.destroyAllWindows()
202
  )
203
 
204
 
 
205
  st.write("*How to Overcome These Errors/Issues?*")
206
  st.write(
207
  """
@@ -223,4 +228,6 @@ cv2.destroyAllWindows()
223
 
224
 
225
 
226
-
 
 
 
161
  "Select a format to explore further:",
162
  ("IMAGE","VIDEO", "AUDIO")
163
  )
164
+
165
  #HOW TO READ TEXT
166
  if format_selected == "IMAGE":
167
 
 
170
  st.write(
171
  "Photos, medical scans, satellite images. "
172
  )
173
+
174
+
175
  st.write("*How to Read IMAGE Files?*")
176
  st.code(
177
+
178
  """
179
+
180
+ from PIL import Image
181
+ image = Image.open('example.jpg')
182
+ image.show()
183
+ """,
184
+ language="python"
185
+
186
+
187
+ )
188
 
 
 
189
 
 
 
190
 
 
 
 
 
 
191
 
192
+
193
 
194
 
195
+
196
+
 
197
  st.write("*Common Issues When Handling image Files*")
198
+
199
  st.write(
200
  """
201
  - data augumentation and overfitting
 
206
  )
207
 
208
 
209
+
210
  st.write("*How to Overcome These Errors/Issues?*")
211
  st.write(
212
  """
 
228
 
229
 
230
 
231
+
232
+
233
+