com.pax.dal
Interface ILPR
-
public interface ILPR
LPR模块。LPR module.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceILPR.ILPRListener识别结果回调。Callback of recognition result.
-
Field Summary
Fields Modifier and Type Field and Description static intTYPE_CHN中国车牌。Chinese license plate.static intTYPE_IND印度车牌。Indian license plate.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()关闭LPR。Close the LPR.booleanisOpened()获取当前LPR服务打开状态。Get the current LPR service opening status.booleanisStarted()获取当前LPR服务开始状态。Get the current LPR service start status.voidopen()打开LPR。Open the LPR.voidsetAuthId(java.lang.String authId)设置授权认证ID。Set the authorization ID.voidsetPreviewParam(android.os.Bundle param)设置预览配置。在open()之后和startPreview(int, int, ILPR.ILPRListener)之前调用。Set the preview configuration.Called afteropen()and beforestartPreview(int, int, ILPR.ILPRListener).voidstartPreview(int type, int timeout, ILPR.ILPRListener listener)打开预览界面进行识别。Open the preview screen for recognition.voidstopPreview()关闭扫描预览界面。Close the scan preview screen.
-
-
-
Field Detail
-
TYPE_IND
static final int TYPE_IND
印度车牌。Indian license plate.- Since:
- V4.04.00
- See Also:
- Constant Field Values
-
TYPE_CHN
static final int TYPE_CHN
中国车牌。Chinese license plate.- Since:
- V4.04.00
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAuthId
void setAuthId(java.lang.String authId) throws LPRException
设置授权认证ID。Set the authorization ID.- Parameters:
authId-授权认证ID。Authorization ID.- Throws:
LPRException- Since:
- V4.04.00
-
open
void open() throws LPRException
打开LPR。Open the LPR.- Throws:
LPRException- Since:
- V4.04.00
-
isOpened
boolean isOpened()
获取当前LPR服务打开状态。Get the current LPR service opening status.- Returns:
- true:开启状态 false:关闭状态true: open state false: closed state
- Since:
- V4.04.00
-
isStarted
boolean isStarted()
获取当前LPR服务开始状态。Get the current LPR service start status.- Returns:
- true:开始状态 false:停止状态true: start state false: stop state
- Since:
- V4.04.00
-
setPreviewParam
void setPreviewParam(android.os.Bundle param) throws LPRException
设置预览配置。在open()之后和startPreview(int, int, ILPR.ILPRListener)之前调用。Set the preview configuration.Called afteropen()and beforestartPreview(int, int, ILPR.ILPRListener).- Parameters:
param-KEY名称 类型 说明 cameraId int 摄像头ID(默认后置) 0:后置摄像头 1:前置摄像头 isFlashOn boolean 是否开启闪光灯(默认不开启) true:开启 false:不开启 isAutoFocus boolean 是否开启自动对焦(默认不开启) true:开启 false:不开启 The KEY name Type Instructions cameraId int Camera ID(default rear). 0: rear camera 1: front camera isFlashOn boolean Whether to turn on the flash (not on by default).true:open, false:not open isAutoFocus boolean Whether to turn on autofocus (not on by default).true:open, false:not open - Throws:
LPRException- Since:
- V4.04.00
-
startPreview
void startPreview(int type, int timeout, ILPR.ILPRListener listener) throws LPRException
打开预览界面进行识别。Open the preview screen for recognition.- Parameters:
type-timeout-超时时间。单位:毫秒。超时传入的小于3000ms,则是3000ms,超过3000ms则为传入的实际时间,0为不超时Timeout time. Unit: ms. If the timeout provided is less than 3000ms, it will be set to 3000ms. If it exceeds 3000ms, the timeout will be set to the actual time provided. 0 means no timeout.listener-识别结果回调。ILPR.ILPRListenerCallback of recognize results.ILPR.ILPRListener- Throws:
LPRException- Since:
- V4.04.00
-
stopPreview
void stopPreview() throws LPRException
关闭扫描预览界面。Close the scan preview screen.- Throws:
LPRException- Since:
- V4.04.00
-
close
void close() throws LPRException
关闭LPR。Close the LPR.- Throws:
LPRException- Since:
- V4.04.00
-
-