Update api.py
Browse files
api.py
CHANGED
|
@@ -20,8 +20,8 @@ def process_ocr():
|
|
| 20 |
img = Image.open(img_file)
|
| 21 |
lebar, tinggi = img.size
|
| 22 |
|
| 23 |
-
potong_atas =
|
| 24 |
-
area_crop = (0, potong_atas, lebar, tinggi //
|
| 25 |
img_crop = img.crop(area_crop)
|
| 26 |
|
| 27 |
result, _ = engine(img_crop)
|
|
|
|
| 20 |
img = Image.open(img_file)
|
| 21 |
lebar, tinggi = img.size
|
| 22 |
|
| 23 |
+
potong_atas = 200
|
| 24 |
+
area_crop = (0, potong_atas, lebar, tinggi // 2)
|
| 25 |
img_crop = img.crop(area_crop)
|
| 26 |
|
| 27 |
result, _ = engine(img_crop)
|