Exemple #1
0
def temp_filter_method_kmeans_color(imageFile):
    clustered, clustered_color = ocr.img_kmeans(imageFile, 2)

    bin_pos_mat = ocr.binary_matrix_to_position_2(clustered)

    np.savetxt("test.txt",bin_pos_mat) # %.5f specifies 5 decimal round