www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - WebCam or Video in D

reply brian <brian infinityplusb.com> writes:
Howdy folks.

Has anyone gotten an example of using D as mechanism to read in 
video files, specifically from a webcam?

I don't see any OpenCV libraries, and the example in the DCV 
library that uses FFMPEG, I can't get to work (I've raised an 
issue in Github here https://github.com/libmir/dcv/issues/119 if 
anyone has suggestions).

If anyone has a working example of something that reads in some 
video, that'd be a start for a project I'm looking to undertake.

TIA
Brian
Aug 13
parent reply Guillaume Piolat <contact spam.com> writes:
On Monday, 14 August 2017 at 04:41:24 UTC, brian wrote:
 Howdy folks.

 Has anyone gotten an example of using D as mechanism to read in 
 video files, specifically from a webcam?

 I don't see any OpenCV libraries, and the example in the DCV 
 library that uses FFMPEG, I can't get to work (I've raised an 
 issue in Github here https://github.com/libmir/dcv/issues/119 
 if anyone has suggestions).

 If anyone has a working example of something that reads in some 
 video, that'd be a start for a project I'm looking to undertake.

 TIA
 Brian
It wouldn't be very hard to write a minimal OpenCV loader (for example based on DerelictUtil) with only the few functions you need in OpenCV.
Aug 14
parent brian <brian infinityplusb.com> writes:
On Monday, 14 August 2017 at 13:19:30 UTC, Guillaume Piolat wrote:
 It wouldn't be very hard to write a minimal OpenCV loader (for 
 example based on DerelictUtil) with only the few functions you 
 need in OpenCV.
Do you know of any simple examples that I could try mimic? I've looked through some of the Derelict code before and it doesn't seem exceptionally straight-forward, but maybe I haven't spent enough time on it.
Aug 15