Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pillow version to 10.0.0 #8446

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Conversation

livingbody
Copy link
Contributor

@livingbody livingbody commented Jul 18, 2023

  • 修改requirements.txt,pillow版本10.0.0以上

  • 修改相关联的文件,修改长宽获取api
    ex:

  • previous

tw, th = draw.textsize(text)
  • now
left, top, right, bottom = draw.textbbox(text)
tw, th = right - left, bottom - top

@paddle-bot
Copy link

paddle-bot bot commented Jul 18, 2023

Thanks for your contribution!

@@ -109,7 +109,8 @@ def draw_box(im, np_boxes, labels, threshold=0.5):

# draw label
text = "{} {:.4f}".format(labels[clsid], score)
tw, th = draw.textsize(text)
left, top, right, bottom = draw.getbbox(text)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改了

Copy link
Collaborator

@shiyutang shiyutang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@Bobholamovic Bobholamovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@shiyutang
Copy link
Collaborator

本PR的背景为完成开源中的套件一致性任务:PaddlePaddle/PaddleOCR#10380

@zhiboniu zhiboniu merged commit 1632c27 into PaddlePaddle:develop Jul 18, 2023
3 checks passed
shiyutang added a commit to shiyutang/PaddleDetection that referenced this pull request Jul 20, 2023
@shiyutang shiyutang self-assigned this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants