sinful1992 commited on
Commit
b364fa7
·
1 Parent(s): a5789fa

perf(ocr): increase max image size to 2048px for better accuracy

Browse files
Files changed (1) hide show
  1. utils/image_prep.py +1 -1
utils/image_prep.py CHANGED
@@ -2,7 +2,7 @@ import cv2
2
  import numpy as np
3
 
4
 
5
- MAX_LONG_EDGE = 1500
6
 
7
 
8
  def preprocess_image(input_data: str | bytes | np.ndarray) -> np.ndarray:
 
2
  import numpy as np
3
 
4
 
5
+ MAX_LONG_EDGE = 2048
6
 
7
 
8
  def preprocess_image(input_data: str | bytes | np.ndarray) -> np.ndarray: