Skip to content

Commit

Permalink
fix: Update contrast setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan committed Jun 9, 2023
1 parent 40bb299 commit f496307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DECIMER/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_bnw_image(image):
# (thresh, im_bw) = cv2.threshold(grayscale, 128, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)
im_pil = Image.fromarray(grayscale)
enhancer = ImageEnhance.Contrast(im_pil)
im_output = enhancer.enhance(1.4)
im_output = enhancer.enhance(1.2)
return im_output


Expand Down

0 comments on commit f496307

Please sign in to comment.