Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phamquiluan authored Dec 28, 2023
1 parent ce64594 commit f870876
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_basic():
def test_text_image_angle_range_10(angle: int):
"""Test_text_image_angle_range_10."""
image = cv2.imread(path.join(path.dirname(__file__), "test.png"))
# for angle in range(-10, 10):
skew_image = rotate(image, angle=angle, resize=False)
estimated_angle = get_angle(skew_image, vertical_image_shape=512)
assert abs(angle + estimated_angle) < 0.5, f"{angle} - {estimated_angle}"
Expand All @@ -29,7 +28,6 @@ def test_text_image_angle_range_10(angle: int):
def test_text_image_angle_range_44(angle: int):
"""Test_text_image_angle_range_44."""
image = cv2.imread(path.join(path.dirname(__file__), "test.png"))
# for angle in range(-44, 44):
skew_image = rotate(image, angle=angle, resize=False)
estimated_angle = get_angle(skew_image, vertical_image_shape=512, angle_max=44.9)
assert abs(angle + estimated_angle) < 0.5, f"{angle} - {estimated_angle}"

0 comments on commit f870876

Please sign in to comment.