개정판 2a8873b1
issue #1366: fix w h order
Change-Id: I559387c42465d42e7206172ecaef331682fc1bb9
DTI_PID/WebServer/symbol_recognition/test_doftech_all_images.py | ||
---|---|---|
94 | 94 | |
95 | 95 |
# expand origin image for tile |
96 | 96 |
image = img_list[idx_img] |
97 |
(img_h, img_w) = image.size
|
|
97 |
(img_w, img_h) = image.size
|
|
98 | 98 |
new_image = Image.new('RGB', (img_w + 850 + 1, img_h + 850 + 1), (255, 255, 255)) |
99 | 99 |
new_image.paste(image, image.getbbox()) |
100 | 100 |
img_list[idx_img] = new_image |
... | ... | |
287 | 287 |
crop_list = [] |
288 | 288 |
if type(image) is str: |
289 | 289 |
image = Image.open(image) |
290 |
(img_h, img_w) = image.size
|
|
290 |
(img_w, img_h) = image.size
|
|
291 | 291 | |
292 | 292 |
# crop 할 사이즈 : grid_w, grid_h |
293 | 293 |
grid_w = patch_size # crop width |
내보내기 Unified diff