Skip to content

Commit

Permalink
Merge pull request #97 from Pbatch/pb_pillow
Browse files Browse the repository at this point in the history
Upgrade pillow version
  • Loading branch information
Pbatch authored Dec 4, 2023
2 parents f62d2d8 + ddc968e commit cd007cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clashroyalebuildabot/state/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, card_names, debug=False, min_conf=0.5):
self.side_detector = SideDetector(os.path.join(DATA_DIR, 'side.onnx'))

def _draw_text(self, d, bbox, text):
text_width, text_height = self.font.getsize(text)
_, _, text_width, text_height = self.font.getbbox(text)
y_offset = 5
x = (bbox[0] + bbox[2] - text_width) / 2
y = bbox[1] - y_offset
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flatbuffers==2.0
numpy==1.23.0
onnxruntime==1.12.1
Pillow==9.1.1
Pillow==10.1.0
protobuf==4.21.1
scipy==1.8.1

0 comments on commit cd007cf

Please sign in to comment.