DLM for video capture [message #90668] |
Sun, 22 March 2015 08:47  |
dg86
Messages: 118 Registered: September 2012
|
Senior Member |
|
|
Dear Folks,
I've written a DLM that captures images from video cameras directly
into IDL. The library is available for download at
http://github.com/davidgrier/idlvideo
Video capture functionality is provided by OpenCV, the Open Source
Computer Vision library. The DLM and associated camera objects should
work for any camera that is supported by OpenCV. This package has
been tested with IDL 8.3 and IDL 8.4 running on linux and MacOS systems.
On my MacBook Pro, the following code snippet acquires and displays
3 seconds of 1280 x 720 RGB video images at 30 frames per second
using the built-in FaceTime camera:
cam = dgggrvideo()
im = image(cam.read())
for i = 0, 89 do im.putdata, cam.read()
obj_destroy, cam
Let me know if this is useful, and please do follow up with feature
requests and bug reports.
All the best,
David
|
|
|
Re: DLM for video capture [message #92498 is a reply to message #90668] |
Fri, 01 January 2016 02:55   |
andrewcool777
Messages: 27 Registered: November 2012
|
Junior Member |
|
|
On Monday, 23 March 2015 02:17:13 UTC+10:30, David Grier wrote:
> Dear Folks,
>
> I've written a DLM that captures images from video cameras directly
> into IDL. The library is available for download at
>
> http://github.com/davidgrier/idlvideo
>
> Video capture functionality is provided by OpenCV, the Open Source
> Computer Vision library. The DLM and associated camera objects should
> work for any camera that is supported by OpenCV. This package has
> been tested with IDL 8.3 and IDL 8.4 running on linux and MacOS systems.
>
> On my MacBook Pro, the following code snippet acquires and displays
> 3 seconds of 1280 x 720 RGB video images at 30 frames per second
> using the built-in FaceTime camera:
>
> cam = dgggrvideo()
> im = image(cam.read())
> for i = 0, 89 do im.putdata, cam.read()
> obj_destroy, cam
>
> Let me know if this is useful, and please do follow up with feature
> requests and bug reports.
>
> All the best,
>
> David
> please do follow up with feature requests and bug reports.
OK then David, how about a version for Windows...?
Andrew Cool (who's too dumb to do it himself...)
|
|
|
Re: DLM for video capture [message #92504 is a reply to message #92498] |
Sat, 02 January 2016 06:24  |
zanderman.grier
Messages: 2 Registered: September 2015
|
Junior Member |
|
|
On Friday, January 1, 2016 at 5:55:15 AM UTC-5, andrew...@gmail.com wrote:
> On Monday, 23 March 2015 02:17:13 UTC+10:30, David Grier wrote:
>> Dear Folks,
>>
>> I've written a DLM that captures images from video cameras directly
>> into IDL. The library is available for download at
>>
>> http://github.com/davidgrier/idlvideo
>>
>> Video capture functionality is provided by OpenCV, the Open Source
>> Computer Vision library. The DLM and associated camera objects should
>> work for any camera that is supported by OpenCV. This package has
>> been tested with IDL 8.3 and IDL 8.4 running on linux and MacOS systems.
>>
>> On my MacBook Pro, the following code snippet acquires and displays
>> 3 seconds of 1280 x 720 RGB video images at 30 frames per second
>> using the built-in FaceTime camera:
>>
>> cam = dgggrvideo()
>> im = image(cam.read())
>> for i = 0, 89 do im.putdata, cam.read()
>> obj_destroy, cam
>>
>> Let me know if this is useful, and please do follow up with feature
>> requests and bug reports.
>>
>> All the best,
>>
>> David
>
>> please do follow up with feature requests and bug reports.
>
> OK then David, how about a version for Windows...?
>
> Andrew Cool (who's too dumb to do it himself...)
Sorry, I don't have a Windows machine, and don't know much about
Windows development -- weird, right?
Ronn Kling had a DLM for video capture under Windows, although
I don't have a link for it, and couldn't find it with a quick Google
search. That might be the best place to start looking.
If you're feeling more adventurous, you might want to look at
IDL's support for ActiveX controls.
TTFN,
David
|
|
|