Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(long term) add in-browser live infragramming for modded webcams #19

Open
jywarren opened this issue Aug 7, 2013 · 20 comments
Open

(long term) add in-browser live infragramming for modded webcams #19

jywarren opened this issue Aug 7, 2013 · 20 comments

Comments

@jywarren
Copy link

jywarren commented Aug 7, 2013

using JavaScript MediaStream webcam API

@dwblair
Copy link
Member

dwblair commented Aug 7, 2013

This would be super cool! Is this the same API that spectralworkbench uses?

@jywarren
Copy link
Author

jywarren commented Aug 7, 2013

yep, this wouldn't be too difficult either, i think.

On Wed, Aug 7, 2013 at 4:15 PM, dwblair notifications@github.com wrote:

This would be super cool! Is this the same API that spectralworkbench
uses?


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22280429
.

@dwblair
Copy link
Member

dwblair commented Aug 7, 2013

Aside: is Processing.js another route? Would it be possible to hook that
into this sort of API? Maybe that's a bit convoluted (it's just that I
have some familiarity with Processing) ...

On Wed, Aug 7, 2013 at 4:24 PM, Jeffrey Warren notifications@github.comwrote:

yep, this wouldn't be too difficult either, i think.

On Wed, Aug 7, 2013 at 4:15 PM, dwblair notifications@github.com wrote:

This would be super cool! Is this the same API that spectralworkbench
uses?


Reply to this email directly or view it on GitHub<
https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22280429>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22281084
.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair

@jywarren
Copy link
Author

jywarren commented Aug 7, 2013

could be done, but it's a little convoluted... Processing.js kind of
creates a Java environment inside of JavaScript... yikes...

this'll be cool, once we figure out some other things, like user accounts
and maybe database tracking of each image (so it's searchable, and we can
store metadata and such). This sort of code will also allow us to generate
composites on the fly, including trying out different color wheels and
such, without doing any server-side work.

On Wed, Aug 7, 2013 at 4:34 PM, dwblair notifications@github.com wrote:

Aside: is Processing.js another route? Would it be possible to hook that
into this sort of API? Maybe that's a bit convoluted (it's just that I
have some familiarity with Processing) ...

On Wed, Aug 7, 2013 at 4:24 PM, Jeffrey Warren notifications@github.comwrote:

yep, this wouldn't be too difficult either, i think.

On Wed, Aug 7, 2013 at 4:15 PM, dwblair notifications@github.com
wrote:

This would be super cool! Is this the same API that spectralworkbench
uses?


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22280429>

.


Reply to this email directly or view it on GitHub<
https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281084>

.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22281731
.

@dwblair
Copy link
Member

dwblair commented Aug 7, 2013

... wow, I see what you mean: being able to interact "live" with an image,
as one would with an image editor, and apply filters on the fly before
"saving" them ... that would be really great. And would make C Fastie
pleased.

On Wed, Aug 7, 2013 at 4:44 PM, Jeffrey Warren notifications@github.comwrote:

could be done, but it's a little convoluted... Processing.js kind of
creates a Java environment inside of JavaScript... yikes...

this'll be cool, once we figure out some other things, like user accounts
and maybe database tracking of each image (so it's searchable, and we can
store metadata and such). This sort of code will also allow us to generate
composites on the fly, including trying out different color wheels and
such, without doing any server-side work.

On Wed, Aug 7, 2013 at 4:34 PM, dwblair notifications@github.com wrote:

Aside: is Processing.js another route? Would it be possible to hook that
into this sort of API? Maybe that's a bit convoluted (it's just that I
have some familiarity with Processing) ...

On Wed, Aug 7, 2013 at 4:24 PM, Jeffrey Warren notifications@github.comwrote:

yep, this wouldn't be too difficult either, i think.

On Wed, Aug 7, 2013 at 4:15 PM, dwblair notifications@github.com
wrote:

This would be super cool! Is this the same API that
spectralworkbench
uses?


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22280429>

.


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281084>

.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair


Reply to this email directly or view it on GitHub<
https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281731>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22282471
.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair

@jywarren
Copy link
Author

jywarren commented Aug 7, 2013

that indeed is our ultimate goal here at Public Lab :-)

On Wed, Aug 7, 2013 at 4:47 PM, dwblair notifications@github.com wrote:

... wow, I see what you mean: being able to interact "live" with an image,
as one would with an image editor, and apply filters on the fly before
"saving" them ... that would be really great. And would make C Fastie
pleased.

On Wed, Aug 7, 2013 at 4:44 PM, Jeffrey Warren notifications@github.comwrote:

could be done, but it's a little convoluted... Processing.js kind of
creates a Java environment inside of JavaScript... yikes...

this'll be cool, once we figure out some other things, like user
accounts
and maybe database tracking of each image (so it's searchable, and we
can
store metadata and such). This sort of code will also allow us to
generate
composites on the fly, including trying out different color wheels and
such, without doing any server-side work.

On Wed, Aug 7, 2013 at 4:34 PM, dwblair notifications@github.com
wrote:

Aside: is Processing.js another route? Would it be possible to hook
that
into this sort of API? Maybe that's a bit convoluted (it's just that I
have some familiarity with Processing) ...

On Wed, Aug 7, 2013 at 4:24 PM, Jeffrey Warren <
notifications@github.com>wrote:

yep, this wouldn't be too difficult either, i think.

On Wed, Aug 7, 2013 at 4:15 PM, dwblair notifications@github.com
wrote:

This would be super cool! Is this the same API that
spectralworkbench
uses?


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22280429>

.


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281084>

.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair


Reply to this email directly or view it on GitHub<

https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281731>

.


Reply to this email directly or view it on GitHub<
https://github.com/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22282471>

.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22282701
.

@dwblair
Copy link
Member

dwblair commented Aug 8, 2013

i for one welcome this new mission statement!

@Fastie
Copy link
Member

Fastie commented Aug 13, 2013

How good to see such a commendable priority emerging.

@jywarren
Copy link
Author

Using Ben Gamari's https://github.com/bgamari/infragram-js now, I installed it at: http://infragram.org/static/infragram-js/infragram.html but there is not an infragram.js next to the infragram.coffee -- I haven't compiled coffeescript before... looking at that now.

@jywarren
Copy link
Author

er, didn't want to install all the dependencies on the infragram.org server if possible, so I'm installing coffeescript locally and compiling there, and committing a frozen infragram.js to my forked version of Ben's repo: https://github.com/jywarren/infragram-js

@jywarren
Copy link
Author

OK, basically running now: http://infragram.org/static/infragram-js/infragram.html

@dwblair
Copy link
Member

dwblair commented Aug 14, 2013

Very exciting stuff.

@bgamari :

-- I think I needed node.js just to get 'coffee' working, in order to compile the coffeescript file ... is that right?
-- re: comparing coffeescript to Haskell ... I oughtn't to have dared :)
-- and it's super cool that the javascript version of the NDVI code will work client-side ... it'd allow for a smartphone-based version, no?

... which makes wonder (and this is for @bgameri, @jywarren, @Fastie, and others):

Question: if we end up switching over the javascript for processing the images, soon, ought we to consider simply switching the entire rest of the codebase over to Ruby? It seems that most of the desired infragram web app infrastructure (database of images, tagging, commenting, logins, etc) is already implemented nicely at spectralworkbench.org; it'd make sense to leverage that, wouldn't it, rather than reinvent the wheel using Flask?

@dwblair
Copy link
Member

dwblair commented Aug 14, 2013

Works!

I was able to get the coffeescript to compile locally, but hadn't been
able to get it to work in the browser, yet ... working on it.

On Wed, Aug 14, 2013 at 12:09 PM, Jeffrey Warren
notifications@github.comwrote:

OK, basically running now:
http://infragram.org/static/infragram-js/infragram.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22646835
.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair

@dwblair
Copy link
Member

dwblair commented Aug 14, 2013

Quick question, @bgamari -- were you using the version of node.js that installs via the Ubuntu package manager (0.6 - ish, I think)? Or did you grab a later version? Not sure if that's my problem.

@dwblair
Copy link
Member

dwblair commented Aug 14, 2013

(That is: I'm using the older, Ubuntu package version; apparently to use the latest version on my ARM machine, I'm going to need to compile from source ...)

@dwblair
Copy link
Member

dwblair commented Aug 14, 2013

Oh. Heh. Was missing most of the requisite javascript files in jpgjs and etc. Hadn't cloned your git repo with 'recursive' -- as you'd suggested. Heh. Now it all works!

This is going to be fun -- thanks for forging ahead into javascript awesomeness, Ben.

@bgamari
Copy link
Member

bgamari commented Aug 14, 2013

@dwblair I have been using Ubuntu 13.04's coffeescript package,

$ apt-get install coffeescript

@dwblair
Copy link
Member

dwblair commented Aug 15, 2013

Okay cool -- I've also forked a version to PVOS:
https://github.com/Pioneer-Valley-Open-Science/infragram-js

Where shall we track issues?

Aside: Ben made a nice fix this afternoon, so you might want to pull his
changes ... the code now displays the entire image (there was an issue with
Canvas, or somesuch) ...

On Wed, Aug 14, 2013 at 1:41 PM, Ben Gamari notifications@github.comwrote:

@dwblair https://github.com/dwblair I have been using Ubuntu 13.04's
coffeescript package,

$ apt-get install coffeescript


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22653215
.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair

@jywarren
Copy link
Author

Looks great, super! I pulled it in and did some typo fixing and style cleaning, and made a little bit of Bootstrap interface: http://infragram.org/static/infragram-js/infragram.html

@dwblair
Copy link
Member

dwblair commented Aug 15, 2013

Oh my gosh ... suddenly it looks official!

On Thu, Aug 15, 2013 at 1:40 PM, Jeffrey Warren notifications@github.comwrote:

Looks great, super! I pulled it in and did some typo fixing and style
cleaning, and made a little bit of Bootstrap interface:
http://infragram.org/static/infragram-js/infragram.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-22716549
.

web: http://dwblair.github.io <---- info, projects, docs, etc
skype: dwingateb
voice & SMS: +1-651-252-4765
*twitter: *@donwblair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants