|
From: | Kire Pudsje |
Subject: | Re: image-acquisition package install |
Date: | Tue, 6 Dec 2016 15:21:52 +0100 |
@Kire Pudsje
Is there a way to load a section of a snapshot, without getting the full image first?
Von: Kire Pudsje [mailto:address@hidden]
Gesendet: Sonntag, 4. Dezember 2016 19:55
An: Dominic Bitter <address@hidden>
Cc: Nicholas Jankowski <address@hidden>; Andreas Weber <address@hidden>; address@hidden
Betreff: Re: image-acquisition package install
And an updated version. Everything except help and live-preview should work now.
I also implemented the set function like the image-acquisition package, to give back the range and step size for the setting.
I will not be trying to get live preview to work. Next step is integrating it in the image-acquisition package. With a little lick I can re-use their preview stuff.
2016-12-02 22:58 GMT+01:00 Dominic Bitter <address@hidden>:
Hello Kire,
thanks for the code.
I have a Matlab script from a colleague which (if i remeber it right) is able to get live images from USB cams.
Sadly i can’t get a Matlab license for me there.
If it can help you i can ask him on Monday and send you the file.
Von: Kire Pudsje [mailto:address@hidden]
Gesendet: Freitag, 2. Dezember 2016 20:49
An: address@hidden; address@hidden; address@hidden; address@hidden
Betreff: Re: image-acquisition package install
Dominic,
I am busy implementing webcam support on Windows.
I based it on the interface described by the webcam package of matlab
https://nl.mathworks.com/help/
supportpkg/usbwebcams/index. html
It is currently in a very early and rough stage. No help yet, very dirty code, etc. I only managed to get it working today, but it can already obtain images. Also Brightness, backlight etc, can be set. No resolution control at the moment.
Once I have everything working, I might try and integrate it in the img-acq package.
>> pkg load webcam
>> webcamlist
ans =
{
[1,1] = VGA Webcam
[2,1] = HD 720P Webcam
}
>> cam=webcam(1);
warning: This is work in progress, be prepared for segfaults
warning: called from
webcam at line 8 column 15
>> cam.get()
ans =
scalar structure containing the fields:
Name = VGA Webcam
Resolution = 640x480
AvailableResolutions =
{
[1,1] = 640x480
[2,1] = 640x360
}
Brightness = 0
Contrast = 32
Hue = 0
Saturation = 64
Sharpness = 4
Gamma = 221
WhiteBalance = auto
BacklightCompensation = off
Exposure = auto
imshow(cam.snapshot);
[Prev in Thread] | Current Thread | [Next in Thread] |