Skip to content

Commit e01bea8

Browse files
authored
interpolation=cv2.INTER_NEAREST in compare_with_capture (#290)
1 parent 8c2949b commit e01bea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoSplitImage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def compare_with_capture(self, default: "AutoSplit | int", capture: MatLike | No
215215

216216
if not is_valid_image(self.byte_array):
217217
return 0.0
218-
resized_capture = cv2.resize(capture, self.byte_array.shape[1::-1])
218+
resized_capture = cv2.resize(capture, self.byte_array.shape[1::-1], interpolation=cv2.INTER_NEAREST)
219219

220220
return get_comparison_method_by_index(
221221
self.__get_comparison_method_index(default),

0 commit comments

Comments
 (0)