Recent

Author Topic: amateur cam  (Read 7135 times)

sam707

  • Guest
amateur cam
« on: May 09, 2018, 02:28:53 pm »
Nowadays, 90-100% devices come with a keyboard (virtual or not), a mouse or touch screen, sound output/INput, and a camera

Lazarus is great and has CrossPlatform ways to drive keyboards, touch systems, sound outputs.

My simple general question is :

Is there a lazarus/freepascal (more or less standardized) way to work with sound inputs (well there are some), and cameras (I did not find), CrossPlatform way? I mean a set of components or libraries working for desktop comps to android phones cameras...

Thanks
« Last Edit: May 09, 2018, 02:41:55 pm by sam707 »

hrayon

  • Full Member
  • ***
  • Posts: 118
Re: amateur cam
« Reply #1 on: May 09, 2018, 04:14:04 pm »
I read the title and thought it was some pornographic spam...
Well, I know that it is possible to capture video using the twain driver (for Windows only), but I have never tried it.
I used it to scan documents. There is a lazarus component here:
http://www.kluug.net/delphitwain.php
« Last Edit: May 09, 2018, 04:17:37 pm by hrayon »

sam707

  • Guest
Re: amateur cam
« Reply #2 on: May 09, 2018, 04:44:18 pm »
LooOooL no porn for me, I'm just looking for facial reco and video streams capture for online chats/lessons

 >:D @hrayon hahaha thx for answering
« Last Edit: May 09, 2018, 04:46:47 pm by sam707 »

sam707

  • Guest
Re: amateur cam
« Reply #3 on: May 09, 2018, 04:50:51 pm »
... eventually a 3D interpolation scanner basic modeler software  written in pascal
So I think I'm not the only one interested in crossplatfarm standardized cameras components/library

AM I???
« Last Edit: May 09, 2018, 04:56:33 pm by sam707 »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: amateur cam
« Reply #4 on: May 09, 2018, 04:59:29 pm »
On windows usually dspack is used.


jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: amateur cam
« Reply #5 on: May 09, 2018, 11:08:08 pm »
https://msdn.microsoft.com/en-us/library/windows/desktop/dd757708(v=vs.85).aspx

All you need to know to get video capture working on Winders!

P.S.
 
I've had it working for years in Delphi and have ported it to Laz, it seems to work just as well there
too.
The only true wisdom is knowing you know nothing

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: amateur cam
« Reply #6 on: May 09, 2018, 11:20:28 pm »
Afaik many webcams from after 2010 don't work with vfw.

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: amateur cam
« Reply #7 on: May 10, 2018, 12:01:48 am »
Really?

 They work just fine on my Windows 10 machine using VFW with old and recent cams.
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: amateur cam
« Reply #8 on: May 10, 2018, 01:52:06 am »
I wanted to thank you for this post, it made me try out a couple of cams here to make sure..

 The cams worked in an app i have in laz as expected using VFW but, I noticed a couple of things, I didn't see the
name of the camera in the list I generate for user to select which isn't a big deal. But I unplugged the cam before exiting
the program and when I exist the program it hung..
 
 So I need to thank you for that, I need to find out how to recover from that  :)
The only true wisdom is knowing you know nothing

sam707

  • Guest
Re: amateur cam
« Reply #9 on: May 10, 2018, 03:31:39 am »
yup I know how to go thru on windows desktop comps, my question was a general question enclosing multiplatfarming in a pretty usefull way for basic pictures and vidstreams use.

On windoz there are apis in dsp and twain, IKR thanks

actually mobile development is a sci-fi future that implode into present days,  bringing me the thought = simple standardized crossplatfarm camera components (win/linux/android/mac) would be A MUST have for laz programmers wanting to make apps like I earlier mentionned
- chats (easy)
- facial reco (medium)
- smartphone as 3d scanner/modeler everywhere (OMG I need a full team 40 ppl working on that last hard one)
« Last Edit: May 10, 2018, 03:36:28 am by sam707 »

sam707

  • Guest
Re: amateur cam
« Reply #10 on: May 10, 2018, 03:33:52 am »
so... I guess such a crossplatform approach do not exist to manage camera devices unlike crossplatform appraches exist for pointing devices and keyboards.

does My old twisted mind light a dev path with that usefull post? can't know for now.. should be nice (at least)

« Last Edit: May 10, 2018, 03:46:43 am by sam707 »

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: amateur cam
« Reply #11 on: May 10, 2018, 03:45:38 am »
It appears that MS supports the VFW but as a portal through DirectShow. Most common functions of VFW work
or at least the one's I use but, I guess the getCapDriverDescription does not return any names but that also could be
the fact that the cams i plugged in didn't have their original software installed so there are all no entries there, only what
ever MS windows 10 has for support driver as a minimum I guess..

  This makes it interesting, cause I can assume for example there is a cam there and then open it and use the
cap... API's to query info, which seems to work...

 I may incorporate the DirectShow stuff who knows..

The only true wisdom is knowing you know nothing

sam707

  • Guest
Re: amateur cam
« Reply #12 on: May 10, 2018, 03:47:02 am »
I had a dream bros and sis!
=> walking on street I captured 30 pics from a statue, all around , and my smartphone modelized it into more or less accurate 3D (with live textures), then back home, I uploaded it into autodesk maya and refined it quickly

smartphone app was made with the Great LAZarus <3

Hope this dream comes true one day, with standardized cameras basic components and an app  O:-)
« Last Edit: May 10, 2018, 04:03:25 am by sam707 »

sam707

  • Guest
Re: amateur cam
« Reply #13 on: May 10, 2018, 03:57:33 am »
omfg such app on gogole appstore would make new billionaires LOL
kinda
"replay and modify at will your smartphone captured hollydays/souvenirs again in 3D scenes on your pc and 3D printer"
« Last Edit: May 10, 2018, 04:01:49 am by sam707 »

sam707

  • Guest
« Last Edit: May 12, 2018, 09:52:34 pm by sam707 »

 

TinyPortal © 2005-2018