Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatV committed May 8, 2024
1 parent 4d19ecf commit 471d06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jobs:
pip install -e .
- name: Test with pytest
run: |
lscpu
pytest tests/
2 changes: 1 addition & 1 deletion tests/test_paddleocr_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_ocr_det_rec_api(ocr, img, det, rec):


def test_ocr_fp16():
ocr = PaddleOCR(lang="ch", use_angle_cls=True, precision=True)
ocr = PaddleOCR(lang="ch", use_angle_cls=True, precision="fp16")
img = cv2.imread("doc/imgs/1.jpg")
result = ocr.ocr(img, det=True, rec=True)
assert result is not None
Expand Down

0 comments on commit 471d06e

Please sign in to comment.