Jump to content

Recommended Posts

Posted

Hey everyone,

I am looking for a simple function to take a single snapshot from webcam and save  it as a picture

I've searched in google and most of UDF's I foud were outdated and not working, others are very complicated to use .

It would be cool if it can control the quality of saved picture like in screenshots

_ScreenCapture_SetJPGQuality($Quality)

I would appreciate it If someone can help
thanks in advance :)

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

This one :

 

works for me out of the box.

 

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 4/28/2016 at 12:23 AM, DrAhmed said:

I am on Windows 10 x64 with bultin webcam for laptop

Expand  

I'm exactly in the same situtuation.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 4/28/2016 at 12:25 AM, mLipok said:

I'm exactly in the same situtuation.

Expand  

Well After many tests .. I did a restart to my pc and both scripts worked good for the first run

But, If I close the script and run it again I get the popup and black screen (like above) :( , is there a solution for that ? or the bug is in the UDF itself ?

Edited by DrAhmed
Posted

Do not know, I just used it first time.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

I used the UDF from Ludocus long time ago and published a Demo for it: https://autoit.de/index.php/Thread/22404-Beispiel-SnapShot-s-from-WebCam-ver-0-8-1-3/?pageNo=1

In https://autoit.de/index.php/Thread/28732-Zwei-Webcam-Anwendungen/ BugFix posted a changed UDF. And from this thread i know 1*Skype started and WebCam can't be used with AutoIt (also when Skype is closed meanwhile) without a restart of the system. The Downloadable Files are attached.

My "SnapShot from WebCam"-Example: WebCam_SnapShots.au3 uses the the webcam.au3 from Ludocus,but will also work with the newer Web_Cam.au3 from @BugFix

The atached files from BugFix thread: SimpleWebCamApp.au3, MyWebcam.au3, Web_Cam.au3, WebcamConstants.au3 .

When using BugFix Web_Cam.au3 (based on Ludocus WebCam.au3) the WebCamConstants.au3 must be in same folder as the Web_Cam.au3. 

 

Edited by AutoBert
Posted

 

@BugFix

Trying to download: SimpleWebcamApp.au3
From site mentioned by @AutoBert

And I get:    Fatal error: An error occured. Sorry.

Can you post your modification to the AutoIt forum in:

https://www.autoitscript.com/forum/files/category/12-hardware/

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Thanks .
EDIT: Works prety good ;)

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I've a friend who made a .Net webcam viewer using an external webcam.dll plugin written in VB.NET and it  works correctly every time :o

I wonder if we can do this in Autoit :'(

Posted

The original script from Ludocus, the BugFix scripts and mine are working correctly every time on my pc. The script von Limiter don't work on my pc. Have you tried mine?

Posted
  On 4/28/2016 at 1:02 PM, AutoBert said:

The original script from Ludocus, the BugFix scripts and mine are working correctly every time on my pc. The script von Limiter don't work on my pc. Have you tried mine?

Expand  

yes that's what I got :

DgvCaPn.jpg

 

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...