• (5 Pages)
  • +
  • « First
  • 3
  • 4
  • 5

Win32 WebCam Program Displays a Webcam Picture, Saves it as a .bmp file Rate Topic: ***** 4 Votes

#61 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Posted 09 April 2017 - 11:27 PM

You cant with this api,

for a more modern approach please see my other webcam program

http://www.dreaminco...-c-for-windows/

where you can get rid of the need to choose a camera if you wish.

However remember, it is good practice to allow the user to choose a camera.

Regards

Snoopy.
Was This Post Helpful? 1
  • +
  • -

#62 DussanR   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-April 17

Posted 10 April 2017 - 10:00 AM

Oh thanks anyways! And is there any way i can edit the capture, like adding a red line in the middle of the capture before saving it as a file in my project folder??
Was This Post Helpful? 0
  • +
  • -

#63 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Posted 10 April 2017 - 11:43 AM

Yes with the new program you can do such a thing as overlays !
Was This Post Helpful? 0
  • +
  • -

#64 adamchalkley   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 54
  • Joined: 17-July 15

Posted 07 November 2018 - 01:47 PM

Hi Snoopy,

reading the tutorial looks amazing,

this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?

I am using codeblocks IDE with a mingw32 compiler as mentioned on Windows 10

is it possible that any functions/procedures that are used in this tutorial are deprecated?

I hope to start on this tutorial tomorrow :)
Was This Post Helpful? 0
  • +
  • -

#65 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1554
  • View blog
  • Posts: 4,930
  • Joined: 20-March 10

Posted 08 November 2018 - 06:21 AM

View Postadamchalkley, on 07 November 2018 - 08:47 PM, said:

Hi Snoopy,

snip

this is something that I always wanted to experiment with but I have a question will this still work on a windows 10 machine?

snip

is it possible that any functions/procedures that are used in this tutorial are deprecated?


It relies on old technology ie VFW running it from a laptop with a built-in webcam can give patchy results you must take into consideration I wrote this on Windows XP when windows XP was new and it was designed to run from a pc with a usb camera it still can run on windows 10 but results can be patchy as .

A more modern approach is found here

https://www.dreaminc...-c-for-windows/

It uses WMF which is not yet deprecated even under Windows 10.

VFW is supposed to be deprecated but if you have a usb camera then the program works fine.



Please read the new Tutorial properly though as it will only run under Visual Studio and not Code::Blocks this is due to VS specific headers and I have not translated the new tut to run under MinGW as of yet, I had given consideration to using TDM-GCC's version of MinGW but have not done so as yet.
Was This Post Helpful? 0
  • +
  • -

  • (5 Pages)
  • +
  • « First
  • 3
  • 4
  • 5