frederictost / images_annotation_programme

Online web tool for image annotation (Pascal VOC format used in Image Recognition)
MIT License
152 stars 53 forks source link

images not loading #2

Open nysso opened 6 years ago

nysso commented 6 years ago

I cloned project, didn't change or touch anything, and the images are not loading, keeps showing the "wait.gif"

frederictost commented 6 years ago

Hi,

May be you should check you web server and PHP capabilities. You can had some breakpoint in the javascript code (F12 on Chrome) and get the error message. You can also call the PHP file manualy in the URL of Chrome and add some debug message in the PHP code.

Keep me informed of your issues.

Regards

Frédéric

2018-01-10 10:13 GMT+01:00 kingAnys notifications@github.com:

I cloned project, didn't change or touch anything, and the images are not loading, keeps showing the "wait.gif"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/frederictost/images_annotation_programme/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ALrNiJj0KqOTC1t3JnLw1687ATtp8K8_ks5tJH80gaJpZM4RZA_I .

FilDevTronic commented 6 years ago

Getting the same error. Tried to load the app directly from disk to my browser and get the following message in the Chrome console:

jquery-3.2.1.js:9566 Failed to load file:///[path to the directory]/images_annotation_programme/inc/getNewImage.php: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

Any suggestions for a newbie?

Tried seeing if putting this in helps but it did nothing - https://enable-cors.org/server_php.html

lorenzori commented 6 years ago

+1 same error as you.

cleha commented 6 years ago

The browser cannot access any local disk for security reasons, that is why no images are displayed if the framework runs locally. Easiest way to resolve this is starting a local server in the same directory, e.g. via php -S localhost:8000 and then accessing http://localhost:8000/ in the browser