How to control a camera with Delphi

后端 未结 3 899
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 10:22

A Delphi programm should make produkt photos with a Nikon D5000AF SDX. The only commands I need are \"make a photo\", \"get me the photo\".

Which library or API can

3条回答
  •  無奈伤痛
    2021-01-03 10:30

    I would advise using the WIA (Windows Image Acquisition) API. For this you need the file "WIALib_TLB.pas" which will be created by Delphi automatically when following these steps:

    1. Select "Project > Import Type Library" from the Menu
    2. Select ""Microsoft Windows Image Acquisition 1.01 Type Library" from the list
    3. Choose "Create Unit"
    4. You will then get the unit "WIALib_TLB.pas"

    Use the code from the following URL to see how you can enumerate the available devices and their properties and take a snapshot with the camera.

    http://www.neunbeere.de/UseNet/WIA.html

    Sorry, the comments are in German, but I think the code is easy to understand

提交回复
热议问题