Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

fix the bug [Error opening file]:The codes in labelImg.py only take '…#815

Open
Venessa-wei wants to merge 1 commit intoHumanSignal:masterfrom
Venessa-wei:venessa
Open

fix the bug [Error opening file]:The codes in labelImg.py only take '…#815
Venessa-wei wants to merge 1 commit intoHumanSignal:masterfrom
Venessa-wei:venessa

Conversation

@Venessa-wei
Copy link
Copy Markdown

…jpg' types into consideration, while now it is able to ignore the type of image

…jpg' types into consideration, while now it is able to ignore the type of image
Comment thread labelImg.py
from functools import partial
from collections import defaultdict

import imghdr
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it built-in library? available for python 2 and 3+?

Comment thread labelImg.py
else:
image = QImage.fromData(self.image_data)
# neglect images type
if image.isNull():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we have this, we don't need line:1099 to 1101

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants