| SexScripts : Webcam - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=239 | Page 1 of 3 |
Webcam |
wiliam [ Sun May 06, 2012 9:02 pm ] |
|---|---|
Is it possible to capture a image from a webcam with SexScripts? If so, how? W. |
|
Re: Webcam |
doti [ Mon May 07, 2012 11:16 am ] |
|---|---|
No there's no way, SexScript does not have access to a webcam (it doesn't use JMF, nor v4l4j, nor...). You should so do something like this : Code: show("Now take an picture with your webcam")
showButton("Done") def image = getFile("Show me") |
|
Re: Webcam |
Liz [ Thu Mar 05, 2015 7:24 pm ] |
|---|---|
Just wondering if it would work having a re-look at a way to take pictures direct from a users webcam some of the scripts would work so much better if this was possible.. And since this was last looked at things have moved on and I think you can now easily get a cross platform webcam module that works with groovy e.g.: http://rsb.info.nih.gov/ij/plugins/webc ... index.html Just to put it out there..... |
|
Re: Webcam |
doti [ Thu Mar 05, 2015 8:39 pm ] |
|---|---|
http://webcam-capture.sarxos.pl is used here, and indeed seems in a better shape than before. OK, in the roadmap from now. |
|
Re: Webcam |
doti [ Sun Mar 15, 2015 7:23 pm ] |
|---|---|
Will be in the next release (today ?). It will be getImage(message). There will be a fallback mecanism to getFile() Code: def pic = getImage("Your picture ?")
if(pic!=null) setImage(pic) |
|
Re: Webcam |
doti [ Mon Mar 16, 2015 8:12 pm ] |
|---|---|
The release of SexScripts of yesterday contains it. There's a test in test.groovy (or the code above). Please let me know if it works for you, it's a very precarious feature. I begin here a database : Java 7 | Windows 7x64 | Hitachi laptop | Integrated webcam | Ok, bad picture Java 7 | Windows XP | Noname desktop | No webcam | Gracefull degradation (ask for a file) |
|
Re: Webcam |
Liz [ Wed Mar 18, 2015 12:29 pm ] |
|---|---|
another one for your list.. Java 8 | Windows 8.1x64 | Alienware laptop | Integrated webcam | Ok, ok picture Also is there a way to tell if the webcam is used or if it is falling back to browsing for a file? I guess I can work it out by how long they take?.. But thinking I will want to have it as a requirement for my "Sub control" script Also may be nice to have an option of previewing the image as it gets taken (but not always) but that may be a pain to add I guess? mm sounding like I'm never happy |
|
Re: Webcam |
doti [ Wed Mar 18, 2015 1:52 pm ] |
|---|---|
Quote: Also is there a way to tell if the webcam is used or if it is falling back to browsing for a file? I guess I can work it out by how long they take?.. But thinking I will want to have it as a requirement for my "Sub control" script The path of webcam capture files will contain "captured". You can do this : Code: def filename = getImage("Smile !") if(!filename.contains("captured/")) show("You need a real webcam working") Quote: Also may be nice to have an option of previewing the image as it gets taken (but not always) but that may be a pain to add I guess? mm sounding like I'm never happy In the current architecture of sss, it would be always or never. Please feel free to ask anything about SexScripts here, it's useful. |
|
Re: Webcam |
Liz [ Wed Mar 18, 2015 2:04 pm ] |
|---|---|
Thanks Doti, you are a star Quote: In the current architecture of sss, it would be always or never. Ok will go with never previewing.. I will prob add a review option to the webcam stuff in "Mandy has fun" and that will work fine |
|
Re: Webcam |
thetallguy [ Fri Apr 10, 2015 9:30 am ] |
|---|---|
One more for the pile! Java 8 ! Windows 7 64 bit | peripheral webcam | program asks for file. |
|
Re: Webcam |
Mreow02 [ Sat Apr 11, 2015 11:54 pm ] |
|---|---|
the test script simply stops when it has to use my webcam I'm using the .jar of the latest version of sexscripts and I'm on mac OSX 10.9.5 |
|
Re: Webcam |
doti [ Sun Apr 12, 2015 9:28 am ] |
|---|---|
Plase Mreow02 send me the last lines (after crash) of your file error.log |
|
Re: Webcam |
Mreow02 [ Sun Apr 12, 2015 4:50 pm ] |
|---|---|
Code: Sun Apr 12 16:48:33 CEST 2015
os.name : Mac OS X os.arch : x86_64 java.version : 1.6.0_65 Exception in thread "Thread-6" java.lang.NoClassDefFoundError: com/github/sarxos/webcam/Webcam at ss.desktop.Script.getImage(Script.java:259) at ss.IScript$getImage.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at ss.FullScript_test.run(script1428850090672134422259.groovy:157) at ss.desktop.MainFrame$2.run(MainFrame.java:593) Caused by: java.lang.ClassNotFoundException: com.github.sarxos.webcam.Webcam at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more |
|
Re: Webcam |
doti [ Sun Apr 12, 2015 8:02 pm ] |
|---|---|
Ok, this is quite clear, it is a bug. There will be a patch soon about this, this month. |
|
Re: Webcam |
lolo3100 [ Mon Apr 27, 2015 11:30 am ] |
|---|---|
When the script have to use my webcam, it asks me for a file in my documents... |
|
| Page 1 of 3 | All times are UTC + 1 hour [ DST ] |