Rzx008 commited on
Commit
589c4ac
·
verified ·
1 Parent(s): 0805864

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -2
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 = 100
24
- area_crop = (0, potong_atas, lebar, tinggi // 3)
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)