OcrControl.StartPreviewAsync(String) Method

The StartPreviewAsync(String) Method starts the specified camera for The Bing Optical Character Recognition (OCR) Control in preview mode. For more information, see the OcrControl.StartPreviewAsync() Method documentation.

Published date: June 26, 2013

public IAsyncAction StartPreviewAsync(string preferredCameraId);
<Button onClick="MyOcrControl.StartPreviewAsync('MyCameraId');" .../>

Parameters

preferredCameraId

Type: System.String

The ID of the preferred camera.

To obtain a value for the preferredCameraId parameter, see the OcrControl.CameraDeviceId Property.

Minimum Supported Client

Windows 8, Windows 8.1, Windows RT

Assemblies

Bing.Ocr.winmd, Bing.Controls.AuthenticationAccessToken.winmd

Namespace

Bing.Ocr

Show: