Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Venessa-wei
Copy link

…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
@@ -13,7 +13,7 @@

from functools import partial
from collections import defaultdict

import imghdr
Copy link
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+?

@@ -1091,6 +1091,11 @@ def load_file(self, file_path=None):
image = self.image_data
else:
image = QImage.fromData(self.image_data)
# neglect images type
if image.isNull():
Copy link
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