Mask_rcnn: AttributeError: 'list' object has no attribute 'read' (getOpenFileName)

Created on 20 Sep 2018  路  2Comments  路  Source: matterport/Mask_RCNN

Hi all,

I am trying to use a Gui Interface (PyQt) to load an image, and launch the detection on it through a button.
But when I select my image, it displays this error:

problem2

My code for this is:

problem1

I don't know how to convert the "list" file (fileName) to the corresponding input for the network.
Sorry, I'm a beginner in Python.

EDIT: It works with the commented line:
filePath = os.path.join(IMAGE_DIR, 'image56.jpg')
But I want to load my image through the "getOpenFileName" :(

Regards,
Antoine

Most helpful comment

I solved my problem. It was because I wrote "GetOpenFileNames" and it was "GetOpenFileName".

All 2 comments

?

I solved my problem. It was because I wrote "GetOpenFileNames" and it was "GetOpenFileName".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wadmes picture wadmes  路  4Comments

ziyigogogo picture ziyigogogo  路  3Comments

Jargon4072 picture Jargon4072  路  3Comments

techjjun picture techjjun  路  4Comments

simonhandsome picture simonhandsome  路  3Comments