[Bug 6815] New: Capture member photo via webcam
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Bug #: 6815 Summary: Capture member photo via webcam Classification: Unclassified Change sponsored?: --- Product: Koha Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Patrons AssignedTo: kyle.m.hall@gmail.com ReportedBy: savitra.sirohi@osslabs.biz QAContact: koha-bugs@lists.koha-community.org CC: gmcharlt@gmail.com Instead of uploading a file, capture the image directly from a webcam -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #1 from Savitra Sirohi <savitra.sirohi@osslabs.biz> 2011-08-30 09:00:40 UTC --- A sys pref to turn the feature on or off. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Savitra Sirohi <savitra.sirohi@osslabs.biz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|kyle.m.hall@gmail.com |amit.gupta@osslabs.biz -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Amruta <amrutapatil_30@yahoo.in> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amrutapatil_30@yahoo.in --- Comment #2 from Amruta <amrutapatil_30@yahoo.in> --- Created attachment 22623 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22623&action=edit how to take Instead of uploading a file, capture the image directly from a webcam -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nengard@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Pablo López Liotti <paliotti@mdp.edu.ar> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paliotti@mdp.edu.ar --- Comment #3 from Pablo López Liotti <paliotti@mdp.edu.ar> --- In that state of development is this ? I am searching for some solution to bring Koha a patrons capture image capability. Anybody is using this or anything other way? Thanks. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #22623|1 |0 is patch| | -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- I don't know if the attached patch is functional in any way--it was attached as a .docx Word document, which doesn't make any kind of sense. The "patch" looks like it was made against an older version of Koha, so even if you could pull out the changes you'd have to re-implement the solution. Anyway, the offered solution relies on a Flash file, and there's no way a Flash dependency is going to get into Koha. Perhaps it would work as a local customization. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com Version|unspecified |master Assignee|kohapatch@gmail.com |tomascohen@gmail.com -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #22623|0 |1 is obsolete| | --- Comment #5 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Comment on attachment 22623 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22623 how to take Instead of uploading a file, capture the image directly from a webcam As said before, the attached file is not a patch or usable. Obsoleted then -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtompset@hotmail.com --- Comment #6 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 29613 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29613&action=edit Readable, but not useable attachment This will get obsoleted as well. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #29613|0 |1 is obsolete| | --- Comment #7 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 29613 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29613 Readable, but not useable attachment I'm pretty sure it won't apply, even if I tried to make it a nice patch. Don't like the proprietary requirement either. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|master |3.10 --- Comment #8 from M. Tompsett <mtompset@hotmail.com> --- This was likely against 3.10.x or earlier. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.10 |master --- Comment #9 from Owen Leonard <oleonard@myacpl.org> --- (In reply to M. Tompsett from comment #8)
This was likely against 3.10.x or earlier.
tcohen has re-assigned this bug to himself because he is working on a new version. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |indradg@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #10 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38518 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38518&action=edit Bug 6815: Capture picture from web cam This enhancement gives the librarian the ability to capture a photo from a webcam attached to the Koha server. It does this by adding a 'Capture' button to the member details page. This button is only visible if there is likely a webcam. This is determined by if /dev/video{something} exists. This also corrects the functionality of the delete button, which is broken, because borrowernumber and cardnumber got mixed up. This requires the package streamer be installed: $ sudo apt-get install streamer Additionally, I had to add www-data to the video group. $ sudo addgroup www-data video TEST PLAN --------- 1) Back up DB. 2) Have a picture file available for uploading. 3) Find a particular patron 4) Upload the picture file on hand. -- should work fine. 5) Delete the patron picture. -- fails. 6) Apply patch. 7) Delete the patron picture. -- success 8) Upload the patron picture again. -- success 9) Check for Capture button. a) plug in it and refresh page -- capture button should be there. b) unplug it and refresh page -- capture button should not be there. c) plug it back in and refresh 10) Make a strange face, hold it, and click 'Capture' -- a few seconds later the page should refresh with your face. 11) Restore DB 12) run koha qa test tools. -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #11 from M. Tompsett <mtompset@hotmail.com> --- Though we probably want something more client-side like: http://jsfiddle.net/attuts/svcf41o6/2/ -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch --- Comment #12 from Marc Véron <veron@veron.ch> --- Sorry, could not test patch (no access to webcam with my server / vm) Tested code on jsfiddle.net with a client - works. I would prefer a client side solution. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #13 from Josef Moravec <josef.moravec@gmail.com> --- The client side capturing does make much more sense to me. I've tested the jsfiddle code and it works like a charm, I think it's the way how it could work. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #14 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Josef Moravec from comment #13)
The client side capturing does make much more sense to me. I've tested the jsfiddle code and it works like a charm, I think it's the way how it could work.
Did you test with Internet Explorer? What about Firefox, Opera, Safari, Chrome, and Chromium? jsfiddle code does not work for all of them, last I checked. It failed for IE, if I recall. -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #15 from Josef Moravec <josef.moravec@gmail.com> --- I tested it in Opera, Chromium and Firefox. According to this page, it doesn't work in Safari and IE, but it will work in Microsoft's new browser Edge: http://caniuse.com/#search=getUserMedia There are some polyfills available, based on flash: https://github.com/addyosmani/getUserMedia.js https://github.com/jhuckaby/webcamjs There is also an plugin for IE and Safari, which implements WebRTC: https://temasys.atlassian.net/wiki/display/TWPP/WebRTC+Plugins/ -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #16 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Josef Moravec from comment #15) [SNIP]
There are some polyfills available, based on flash:
You said the word of evil: flash. This is one of the things attempted to be avoided. I'm pretty sure it is license related. [SNIP]
There is also an plugin for IE and Safari, which implements WebRTC: https://temasys.atlassian.net/wiki/display/TWPP/WebRTC+Plugins/
Nice. So, is there a way to mix this with something using getUserMedia? I think that would be palatable. -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #17 from Josef Moravec <josef.moravec@gmail.com> --- (In reply to M. Tompsett from comment #16)
(In reply to Josef Moravec from comment #15) [SNIP]
There are some polyfills available, based on flash:
You said the word of evil: flash. This is one of the things attempted to be avoided. I'm pretty sure it is license related.
I agree that flash s evil, I've just tried to find "something" :)
[SNIP]
There is also an plugin for IE and Safari, which implements WebRTC: https://temasys.atlassian.net/wiki/display/TWPP/WebRTC+Plugins/
Nice. So, is there a way to mix this with something using getUserMedia? I think that would be palatable.
I've tried that plugin and edit the jsfiddle and use Adapter.js, which kind of polyfill for webrtc accross browsers and the plugin: http://jsfiddle.net/6azxcg0j/1/ but it can't access to the plugin (in browsers, which has support to getUserMedia it works good), but the demo site for webrtc plugin does work in IE 11 with plugin... so I think there is an error in my code ;) https://plugin.temasys.com.sg/ However, it looks as a viable way I think... -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #18 from Josef Moravec <josef.moravec@gmail.com> --- Even if I copy-pasted the code from webrtc plugin demo page, it doesn't work in jsfiddle, so I suppose problem with accessing ActiveX plugins in jsfiddle... -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6815 --- Comment #19 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Comment on attachment 38518 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38518 Bug 6815: Capture picture from web cam Review of attachment 38518: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6815&attachment=38518) ----------------------------------------------------------------- I have to say I am in favour of a client side solution and we are not supporting IE for the staff client officially. I think for a feature that is not a core functionality it would be ok for me if it was limited to Firefox/Chromium. ::: koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ +271,5 @@
</li> </ol> <fieldset class="action"> + <input type="submit" name="op" id="op" value="Upload" class="submit btn" /> + [% IF ( webcam ) %]<input type="submit" name="op" id="op" value="Capture" class="submit btn" /> [% END %]
Using multiple for styling is no good style - this should be done using CSS. -- You are receiving this mail because: You are watching all bug changes. You are the QA Contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org