ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 DShowParams.CameraControl_Focus

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
tbilalis Posted - Aug 29 2016 : 17:17:19
Dear ImageEn,

I need to manually focus a web camera that supports auto focus. I can do it from within the video dialog -> camera control -> set focus or
(ImageEnView1.IO.DShowParams.ShowPropertyPages(iepVideoInput, ietFilter,false)),
but I cannot do it programmatically. There is no focus setter in DShowParams as in a translated MS directshow file:

--Get/Set on the IAMCameraControl interface

code snippet from DShow.pas at http://www.micrel.cz/Dx/
(translation by Hiroyuki Hori
Mail: hori@ingjapan.ne.jp
Homepage: http://www.ingjapan.ne.jp/hori/index-e.html)

...
  TCameraControlProperty = (
    CameraControl_Pan,
    CameraControl_Tilt,
    CameraControl_Roll,
    CameraControl_Zoom,
    CameraControl_Exposure,
    CameraControl_Iris,
    CameraControl_Focus
  );

  TCameraControlFlags = (
    CameraControl_Flags_Manual,
    CameraControl_Flags_Auto
  );

  IAMCameraControl = interface(IUnknown)
    ['{C6E13370-30AC-11d0-A18C-00A0C9118956}']
    function GetRange(Property_: TCameraControlProperty;
        var pMin, pMax, pSteppingDelta, pDefault, pCapsFlags: Longint): HResult; stdcall;
    function Set_(Property_: TCameraControlProperty; lValue: Longint;
        Flags: TCameraControlFlags): HResult; stdcall;
    function Get(Property_: TCameraControlProperty; var lValue: Longint;
        var Flags: TCameraControlFlags): HResult; stdcall;
  end;
...


What should I do to set focus manually?

Thanks

tbilalis
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 29 2016 : 19:21:53
Hi

I'm afraid there is no support for this in ImageEn at this time.

You might want to request it on our user voice page.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com