Skip to content
Snippets Groups Projects
Commit 69920f8c authored by zalonzo2's avatar zalonzo2
Browse files

all letters upside down test images

parent 0a38bed6
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,8 @@ def find_longest_lines(img):
filtered_horizontal = filter_lines(horizontal_line_points, 50)
# get the 9 largest lines
sorted_vertical = sorted(filtered_vertical, key=lambda line: min(line[0][1], line[0][3]))[:12]
sorted_horizontal = sorted(filtered_horizontal, key=lambda line: min(line[0][0], line[0][2]))[:12]
sorted_vertical = sorted(filtered_vertical, key=lambda line: min(line[0][1], line[0][3]))[:9]
sorted_horizontal = sorted(filtered_horizontal, key=lambda line: min(line[0][0], line[0][2]))[:9]
return sorted_vertical, sorted_horizontal
......
......@@ -76,7 +76,7 @@ class ChessGame:
img = cv2.resize(cropped_img, (512, 512))
# img = orig_img
if (self.show_cv):
if (self.show_cv and not self.calibrate):
display_img([orig_img, img])
# display_img([img])
......
ocr_test_images/ocr_kqbp_flipped1.jpg

920 KiB

ocr_test_images/ocr_kqbp_flipped2.jpg

929 KiB

ocr_test_images/ocr_kqbp_flipped3.jpg

929 KiB

ocr_test_images/ocr_kqbp_flipped4.jpg

923 KiB

ocr_test_images/ocr_kqbp_flipped5.jpg

918 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment