Update api.py
Browse files
api.py
CHANGED
|
@@ -20,7 +20,7 @@ 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 // 2)
|
| 25 |
img_crop = img.crop(area_crop)
|
| 26 |
|
|
|
|
| 20 |
img = Image.open(img_file)
|
| 21 |
lebar, tinggi = img.size
|
| 22 |
|
| 23 |
+
potong_atas = 201
|
| 24 |
area_crop = (0, potong_atas, lebar, tinggi // 2)
|
| 25 |
img_crop = img.crop(area_crop)
|
| 26 |
|