-
6. Camera Control - CameraDLL.DLL
This DLL is used to control MR650’s internal CCD camera.
p.s. Camera’ power on/off control functions are put on SysIOAPI.DLL because it is related to H/W function.
Please refer to Section 5.6
6.1. Open Camera
Function Description:
To open Camera. This API should be called first before executed any other functions.
Function call:
BOOL OpenCamera();
Return code:
TRUE:
OK
FALSE:
Fail to open
6.2. Close Camera
Function Description:
To close Camera. This function must be called after using the camera.
Function call:
void ReleaseCamera();
6.3. Preview CCD video input
Function Description:
Start preview within a rectangle area as given in the parameters (using screen coordinates). Actual
displaying area can be a little smaller than the rectangle for hardware reasons.
Function call:
void StartPreview(UINT left, UINT top, UINT width, UINT height);
Parameters(Input):
left:
UINT
: horizontal starting pixels point from left-top corner
top:
UINT
:
vertical
starting
pixels point from left-top corner
width:
UINT
: horizontal pixel width
height:
UINT
: vertical pixel width
6.4. Stop Preview CCD video input
Function Description:
Stop preview.
Function call:
void StopPreview();
6.5. Capture image
Function Description:
Capture a photo with the specified resolution, must be called within StartPreview() and
StopPreview().
Function call:
BOOL CaptureImage(LPCTSTR filename, UINT width, UINT height);
Parameters(Input):
filename:
LPCTSTR
: File name (with path) to store capture image
width:
UINT
: horizontal pixel width
height:
UINT
: vertical pixel width
Return code:
TRUE:
OK
FALSE:
Fail to capture
Содержание MR650
Страница 1: ...MR650 Programming Manual V 1 12 1 16 2008 ...
Страница 7: ... 7 13 FUNCTION KEY SETTING ON REGISTRY 65 14 UPDATE NOTES 66 ...
Страница 16: ... it is for internal use send messages ...
Страница 33: ... Be aware to release handles when program ends ...