py-feat icon indicating copy to clipboard operation
py-feat copied to clipboard

Issue with tutorial example code

Open deepblue8581 opened this issue 1 year ago • 2 comments

I'm attempting to run this example code from the tutorial on my local Pycharm. GIThelp

However, my program does not generate an image, (See below) image2

To ensure the program is using the correct photo directory I've used print(). (Below) image3

I don't receive any errors, just a "Process finished with exit code 0" and I should have an image which should pop up like the example

Any help on the matter would be greatly appreciated thank you!

Environment: Python version: 3.8.0 SciPy version: 1.10.1 Py-Feat version: 0.6.1 Operating System: WIndows 10

deepblue8581 avatar Feb 14 '24 15:02 deepblue8581

Please note this same issue occurs when doing the video detection tutorial code and there is no issue with the directory files

videoerror

deepblue8581 avatar Feb 14 '24 16:02 deepblue8581

Hi, I am just a passerby.

The issue is caused by the IDE, which is PyCharm. In jupyter notebook, the plot will be shown. But in PyCharm, you need extra calls to show it.

Maybe adding the following code after your imshow() will show the image.

import matplotlib.pyplot as plt
plt.show()

sucv avatar Mar 20 '24 07:03 sucv

Thanks @sucv! Yes @deepblue8581 this seems to be an issue with your IDE not py-feat so I'm going to close this

ejolly avatar Mar 29 '24 20:03 ejolly