kdzwinel / JS-OCR-demo

JavaScript optical character recognition demo
https://kdzwinel.github.io/JS-OCR-demo/
GNU General Public License v2.0
479 stars 154 forks source link

getUserMedia API needs HTTPS only #3

Closed frontenddeveloping closed 8 years ago

frontenddeveloping commented 8 years ago

Chrome error:

Mixed Content: The page at 'https://kdzwinel.github.io/JS-OCR-demo/' was loaded over HTTPS, but requested an insecure resource 'http://ghbtns.com/github-btn.html?user=kdzwinel&repo=JS-OCR-demo&type=watch&count=true'. This request has been blocked; the content must be served over HTTPS.

Security changes were released to Chrome, unsecured (HTTP) sites no longer able to implement voice, video.

kdzwinel commented 8 years ago

Hey, thanks for reporting - see #2 for solution.

alejandri commented 8 years ago

Hi very nice work. I cannot upload photo from cellphone, show me a black screen after take picture. Motorola G Version Android 4.4.4 Extra question: how I can uplod file jpg directly with a simple form? 12825390_10201292710557356_1850513641_n

frontenddeveloping commented 8 years ago

@alejandri if you will open remote console you will get the same error. I just create a fork.

kdzwinel commented 8 years ago

@alejandri please let me know what browser and which version you are using, I'll try to reproduce that. Please also make sure that you are on the https version of the website

@frontenddeveloping as far as I understand, there is no need to fix anything, just make sure to open the website via HTTPS. Am I right?

frontenddeveloping commented 8 years ago

@kdzwinel you have http request (http://ghbtns.com) in https mode. This throw error and getUserMedia API don't work.

kdzwinel commented 8 years ago

@frontenddeveloping ah, I missed that, thank you!

greatbiodun1 commented 8 years ago

I download the JS_OCR run the index file for a test before using, its not working. can anyone guide me on the installation please?

kdzwinel commented 8 years ago

You can't just open the index file in your browser from your filesystem, you need a http server (e.g. https://www.npmjs.com/package/http-server ). Also make sure you are using localhost as your host, otherwise it won't work over http (it will require https to access camera).

greatbiodun1 commented 8 years ago

ok, how can I configure my localhost to use https instead of http?

kdzwinel commented 8 years ago

if you use http://localhost, you can use http. If you use anything else, you have to use https.

greatbiodun1 commented 8 years ago

Thanks you, it worked!. the text recognition is poor

On 26 April 2016 at 12:52, Konrad Dzwinel notifications@github.com wrote:

if you use http://localhost, you can use http. If you use anything else, you have to use https.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/kdzwinel/JS-OCR-demo/issues/3#issuecomment-214715772

Adegbuyi Abiodun Oluwaseun

Software Architect

08038141686

kdzwinel commented 8 years ago

Fix it! I'm using this library - http://antimatter15.com/ocrad.js/demo.html

greatbiodun1 commented 8 years ago

is the OCRAD you are using the updated version?

On 26 April 2016 at 13:29, Konrad Dzwinel notifications@github.com wrote:

Fix it! I'm using this library - http://antimatter15.com/ocrad.js/demo.html

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/kdzwinel/JS-OCR-demo/issues/3#issuecomment-214723374

Adegbuyi Abiodun Oluwaseun

Software Architect

08038141686

kdzwinel commented 8 years ago

I havent' updated it in a while, please do that! You can create a PR when you will.