com.pax.dal

Interface ILPR



  • public interface ILPR
    LPR模块。
    LPR module.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static interface  ILPR.ILPRListener
      识别结果回调。
      Callback of recognition result.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int TYPE_CHN
      中国车牌。
      Chinese license plate.
      static int TYPE_IND
      印度车牌。
      Indian license plate.
    • 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
      • 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 after open() and before startPreview(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 -
        识别车牌类型。
        Type of license plate.
        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.ILPRListener
        Callback of recognize results.ILPR.ILPRListener
        Throws:
        LPRException
        Since:
        V4.04.00