mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
Merge pull request #109 from bertsky/patch-3
pil_cv2.check_dpi: fix class membership test
This commit is contained in:
commit
5f7d9a475c
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def pil2cv(img):
|
||||||
|
|
||||||
def check_dpi(img):
|
def check_dpi(img):
|
||||||
try:
|
try:
|
||||||
if isinstance(img, Image.__class__):
|
if isinstance(img, Image.Image):
|
||||||
pil_image = img
|
pil_image = img
|
||||||
elif isinstance(img, str):
|
elif isinstance(img, str):
|
||||||
pil_image = Image.open(img)
|
pil_image = Image.open(img)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue