p-v-o-s / infrapix-flask

flask app for developing infragram photos
9 stars 3 forks source link

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

Open jywarren opened 11 years ago

jywarren commented 11 years ago

using JavaScript MediaStream webcam API

dwblair commented 11 years ago

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

jywarren commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22280429 .

dwblair commented 11 years ago

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/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

jywarren commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22281731 .

dwblair commented 11 years ago

... 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/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

jywarren commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22282701 .

dwblair commented 11 years ago

i for one welcome this new mission statement!

Fastie commented 11 years ago

How good to see such a commendable priority emerging.

jywarren commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

dwblair commented 11 years ago

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 commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22646835 .

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

dwblair commented 11 years ago

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 commented 11 years ago

(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 commented 11 years ago

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 commented 11 years ago

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

$ apt-get install coffeescript
dwblair commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22653215 .

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

jywarren commented 11 years ago

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 commented 11 years ago

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/Pioneer-Valley-Open-Science/infrapix-flask/issues/19#issuecomment-22716549 .

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