Files
MultimodalOCR/models/__pycache__/process.cpython-310.pyc

9 lines
690 B
Plaintext
Raw Normal View History

2023-05-17 03:38:36 +08:00
o
<00><>`du<00>@sddlZdd<03>ZdS)<04>Nc
Cs<>|j\}}|\}}t||||<00>}t||d<00>}t||d<00>}|d7}|d7}|<00>||ftjj<06>}tj<05>d||fd<04>} | <09>|||d||df<02>| S)zd
:param image: input image
:param target_size: a tuple (num,num)
:return: new image
g<00>?<3F><><00>RGB)rrr<00>) <09>size<7A>min<69>int<6E>resize<7A>PIL<49>Image<67>BICUBIC<49>new<65>paste)
<EFBFBD>image<67> target_size<7A>iw<69>ih<69>w<>h<>scale<6C>nw<6E>nhZ new_image<67>r<00>1/home/zhangli/GPT4/MutimodelOCR/models/process.py<70> pad_images
 r)r rrrrr<00><module>s