de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Webcam
PostPosted: Sun May 06, 2012 9:02 pm 
Offline
Active member
Is it possible to capture a image from a webcam with SexScripts? If so, how?


W.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Mon May 07, 2012 11:16 am 
Offline
Site Admin
User avatar
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")


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Thu Mar 05, 2015 7:24 pm 
Offline
Veteran
User avatar
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.....


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Thu Mar 05, 2015 8:39 pm 
Offline
Site Admin
User avatar
http://webcam-capture.sarxos.pl is used here, and indeed seems in a better shape than before. OK, in the roadmap from now.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Sun Mar 15, 2015 7:23 pm 
Offline
Site Admin
User avatar
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)


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Mon Mar 16, 2015 8:12 pm 
Offline
Site Admin
User avatar
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)


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Wed Mar 18, 2015 12:29 pm 
Offline
Veteran
User avatar
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 :roll: good work on the getting it working Thanks Doti :D

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Wed Mar 18, 2015 1:52 pm 
Offline
Site Admin
User avatar
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 :roll: good work on the getting it working Thanks Doti :D

In the current architecture of sss, it would be always or never.

Please feel free to ask anything about SexScripts here, it's useful.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Wed Mar 18, 2015 2:04 pm 
Offline
Veteran
User avatar
Thanks Doti, you are a star :D

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 :) Its not as if the pics are going to be used for anything that needs a high quality (They hope :oops: )

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Fri Apr 10, 2015 9:30 am 
Offline
Shy
One more for the pile!
Java 8 ! Windows 7 64 bit | peripheral webcam | program asks for file.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Sat Apr 11, 2015 11:54 pm 
Offline
Regular
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


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Sun Apr 12, 2015 9:28 am 
Offline
Site Admin
User avatar
Plase Mreow02 send me the last lines (after crash) of your file error.log


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Sun Apr 12, 2015 4:50 pm 
Offline
Regular
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


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Sun Apr 12, 2015 8:02 pm 
Offline
Site Admin
User avatar
Ok, this is quite clear, it is a bug. There will be a patch soon about this, this month.


Top
 Profile Send private message 
 
 Re: Webcam
PostPosted: Mon Apr 27, 2015 11:30 am 
Offline
Shy
When the script have to use my webcam, it asks me for a file in my documents...


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.