Skip to content

Commit

Permalink
interpolation=cv2.INTER_NEAREST in compare_with_capture (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Aug 30, 2024
1 parent 8c2949b commit e01bea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoSplitImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def compare_with_capture(self, default: "AutoSplit | int", capture: MatLike | No

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

return get_comparison_method_by_index(
self.__get_comparison_method_index(default),
Expand Down

0 comments on commit e01bea8

Please sign in to comment.