OpenCV in JavaScript

asked 2015-03-03 20:26:54 -0600

cabeza gravatar image

Hi: We are working in a project of "Gaze Tracking". This project have to run in a web browser. We don't have to install any application in the user's computer. Then collect what the user was seeing and send theses point XY to a web server. This is a web based application. Questions:

  • Somebody knows a version of opencv to run in web browsers to run in JavaScript?
  • What about to develop this application in Java and run it in Applet Java over web browser? Is this possible?
  • Any suggestion
  • Somebody want to add to this project?
  • any suggestion, will be appreciate

    Really sorry my English, I'm striving to improve.



edit retag flag offensive close merge delete


there will be no way to run opencv in a webbrowser without installing any opencv libs on the client side.

then, since you will have to do your processing on the server side anyway, language does no more matter. (you can do it as well in c++ or python)

well, that was 2015, it's 2018 now, and we got opencv.js

berak gravatar imageberak ( 2015-03-04 00:54:27 -0600 )edit

Hi Berak, please, Could you explain me more in detail: How can I implement Gaze Tracking in a web browser? I have an interesting project. Do you interest on it? Sorry my English, I trying to improve it. Really thank you Berak

cabeza gravatar imagecabeza ( 2015-05-11 20:23:07 -0600 )edit

@cabeza I guess it's possible now.

rishant gravatar imagerishant ( 2018-05-20 22:38:20 -0600 )edit

Just my 2 cents - if you dont want to do too much with javascript:

You could also just capture the content of your video frame / canvas / whatever and send it to the server via ajax. Then on the server use the language of your choice (c++ / python / java) and opencv to record / accumulate and return the response as json.

holger gravatar imageholger ( 2018-06-27 07:54:19 -0600 )edit