WebashalarForML commited on
Commit
4dbb811
1 Parent(s): 667243e

Update utility/utils.py

Browse files
Files changed (1) hide show
  1. utility/utils.py +9 -0
utility/utils.py CHANGED
@@ -9,6 +9,15 @@ from PIL import Image, ImageEnhance, ImageDraw
9
  import cv2
10
  import numpy as np
11
  from paddleocr import PaddleOCR
 
 
 
 
 
 
 
 
 
12
 
13
  # Set the PaddleOCR home directory to a writable location
14
 
 
9
  import cv2
10
  import numpy as np
11
  from paddleocr import PaddleOCR
12
+ import logging
13
+
14
+ # Configure logging
15
+ logging.basicConfig(
16
+ level=logging.INFO,
17
+ handlers=[
18
+ logging.StreamHandler() # Remove FileHandler and log only to the console
19
+ ]
20
+ )
21
 
22
  # Set the PaddleOCR home directory to a writable location
23