import cv2
import numpy as np
import lib0110

if __name__ == '__main__':
    img = cv2.imread("Gasyori100knock/Question_01_10/imori.jpg")
    grayimage = lib0110.BGR2GRAY(img)
    ans = lib0110.OTSU_binarization(grayimage).astype(np.uint8)

    cv2.imshow("imori", ans)
    cv2.waitKey(0)
    cv2.imwrite("q01_10/004.jpg", ans)
    cv2.destroyAllWindows()