更新记录

1.0.0(2026-02-24)

  • OCR识别图片文本文字
  • 摄像头实时识别文本
  • 支持自定义UI

平台兼容性

uni-app(3.6.17)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - 5.0 -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 小红书小程序 快应用-华为 快应用-联盟
- - - - - - - - - - - -

uni-app x(3.6.18)

Chrome Safari Android iOS 鸿蒙 微信小程序
- - 5.0 - -

其他

多语言 暗黑模式 宽屏模式

OCR识别图片文本文字,摄像头实时识别文本,自定义UI

功能

  • OCR识别图片文本文字
  • 摄像头实时识别文本
  • 支持自定义UI
  • 支持中文、英文、日文、韩文、梵文、拉丁

集成步骤

  1. 拷贝demo里的AndroidManifest.xml、Info.plist、nativeResources文件到项目根目录
  2. 集成插件,集成插件步骤请参考 https://www.cnblogs.com/wenrisheng/p/18323027
  3. 如需定制或增加功能请点击插件标题下方的"进入交流群"私聊作者

接口


    import {
    UTSOCR
} from "@/uni_modules/wrs-uts-ocr"

相机扫描组件

        <!--  #ifdef  APP-HARMONY -->
<embed :style="'width:'+width+'px;height:'+height+'px;'" tag="webview" :options="options"
    @onevent="onEvent"></embed>
<!--  #endif -->
<!--  #ifndef  APP-HARMONY -->
<wrs-uts-ocr :style="'width:'+width+'px;height:'+height+'px;'" @onEvent="onEvent"
    :params="params"></wrs-uts-ocr>
<!--  #endif -->
  • 通过修改params参数来实现业务,通过onEvent事件来回调数据

data() {
    const {
        screenWidth,
        screenHeight,
        windowWidth,
        windowHeight,
        statusBarHeight,
        pixelRatio
    } = uni.getSystemInfoSync();

    const systemInfo = uni.getSystemInfoSync();

    let width = screenWidth
    let height = windowHeight

    //  中间扫描框是占屏幕4/5的正方形

    let rectWidth = width / 7 * 6
    let rectHeight = rectWidth / 16 * 9
    let leftMargin = (width - rectWidth) / 2
    let topMargin = (height - rectHeight) / 2
    switch (uni.getSystemInfoSync().platform) {
        case 'ios': {

        }
        break;
        case 'android': {
            leftMargin = leftMargin * pixelRatio
            topMargin = topMargin * pixelRatio
        }
        break;
        default:
        {

        }
            break;
    }

    let businessArray = []
    businessArray.push({
        business: "setParams", //设置业务参数
        params: {
            margin: { // 设置中间扫描框边距
                left: leftMargin, // 左边距,单位:iOS是dp,android是px
                top: topMargin // 上边距
            },
            tipTxt: "请将身份证对准扫描框", // 提示文本
            tipColor: "#ff0000", // 提示文本颜色
            recognizeInRect: false,// 是否只识别扫码框内的码  
            // angleColor: "#ff0000", // 4个角的颜色
            // maskColor: "#10ff0000" // 遮罩层颜色
        }
    })

    businessArray.push({
        business: "startScan" ,// 开始扫描
        params: {
            type: "TextDetectorChinese" // 识别语言 TextDetector、TextDetectorChinese、TextDetectorDevanagari、TextDetectorJapanese、TextDetectorKorean
        }
    })
    let params = {}
    params.businessArray = businessArray
    let paramsStr = JSON.stringify(params)
    let controlWidth = 150
    let controlHeight = 300
    return {
        controlWidth: controlWidth,
        controlHeight: controlHeight,
        params: paramsStr,
        options: {
            params: paramsStr
        },
        height: height,
        width: width,
        index: 0,
        code: null,
        msg: null,
        }
  • onEvent事件
onEvent(event) {
    console.log("onEvent:" + JSON.stringify(event))
    let detail = event.detail
    let opt = detail.opt
    switch (opt) {
        // 扫描结果
        case "onTextResult": {
            let result = detail.result
            let resultModel = JSON.parse(result)
            this.showMsg(JSON.stringify(resultModel))
            // {
            //  "text": "C\n姓名云小朵\n性别\n女\n民族汉\n:生2016年07 月 01日\n住址北京市朝阳区望京北路9号\n叶青大廈D座801\n公民身份证***",
            //  "textBlocks": [{
            //      "text": "C",
            //      "boundingBox": {
            //          "top": 112,
            //          "left": 823,
            //          "right": 1014,
            //          "bottom": 403
            //      },
            //      "cornerPoints": [{
            //          "x": 1005,
            //          "y": 112
            //      }, {
            //          "x": 1013.7730712890625,
            //          "y": 396.86492919921875
            //      }, {
            //          "x": 831.8593139648438,
            //          "y": 402.4674072265625
            //      }, {
            //          "x": 823.0862426757812,
            //          "y": 117.60247039794922
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "",
            //          "elements": [{
            //              "recognizedLanguage": "",
            //              "text": "C",
            //              "boundingBox": {
            //                  "top": 112,
            //                  "left": 823,
            //                  "right": 1014,
            //                  "bottom": 403
            //              },
            //              "cornerPoints": [{
            //                  "x": 1005,
            //                  "y": 112
            //              }, {
            //                  "x": 1013.7730712890625,
            //                  "y": 396.86492919921875
            //              }, {
            //                  "x": 831.8593139648438,
            //                  "y": 402.4674072265625
            //              }, {
            //                  "x": 823.0862426757812,
            //                  "y": 117.60247039794922
            //              }]
            //          }],
            //          "text": "C",
            //          "boundingBox": {
            //              "top": 112,
            //              "left": 823,
            //              "right": 1014,
            //              "bottom": 403
            //          },
            //          "cornerPoints": [{
            //              "x": 1005,
            //              "y": 112
            //          }, {
            //              "x": 1013.7730712890625,
            //              "y": 396.86492919921875
            //          }, {
            //              "x": 831.8593139648438,
            //              "y": 402.4674072265625
            //          }, {
            //              "x": 823.0862426757812,
            //              "y": 117.60247039794922
            //          }]
            //      }]
            //  }, {
            //      "text": "姓名云小朵",
            //      "boundingBox": {
            //          "top": 129,
            //          "left": 92,
            //          "right": 356,
            //          "bottom": 173
            //      },
            //      "cornerPoints": [{
            //          "x": 92,
            //          "y": 133
            //      }, {
            //          "x": 354.97381591796875,
            //          "y": 129.28929138183594
            //      }, {
            //          "x": 355.5381774902344,
            //          "y": 169.28530883789062
            //      }, {
            //          "x": 92.56436920166016,
            //          "y": 172.9960174560547
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "zh",
            //          "elements": [{
            //              "recognizedLanguage": "zh",
            //              "text": "姓名云小朵",
            //              "boundingBox": {
            //                  "top": 129,
            //                  "left": 92,
            //                  "right": 356,
            //                  "bottom": 173
            //              },
            //              "cornerPoints": [{
            //                  "x": 92,
            //                  "y": 133
            //              }, {
            //                  "x": 354.97381591796875,
            //                  "y": 129.28929138183594
            //              }, {
            //                  "x": 355.5381774902344,
            //                  "y": 169.28530883789062
            //              }, {
            //                  "x": 92.56436920166016,
            //                  "y": 172.9960174560547
            //              }]
            //          }],
            //          "text": "姓名云小朵",
            //          "boundingBox": {
            //              "top": 129,
            //              "left": 92,
            //              "right": 356,
            //              "bottom": 173
            //          },
            //          "cornerPoints": [{
            //              "x": 92,
            //              "y": 133
            //          }, {
            //              "x": 354.97381591796875,
            //              "y": 129.28929138183594
            //          }, {
            //              "x": 355.5381774902344,
            //              "y": 169.28530883789062
            //          }, {
            //              "x": 92.56436920166016,
            //              "y": 172.9960174560547
            //          }]
            //      }]
            //  }, {
            //      "text": "性别\n女",
            //      "boundingBox": {
            //          "top": 224,
            //          "left": 92,
            //          "right": 253,
            //          "bottom": 260
            //      },
            //      "cornerPoints": [{
            //          "x": 92,
            //          "y": 224
            //      }, {
            //          "x": 253,
            //          "y": 224
            //      }, {
            //          "x": 253,
            //          "y": 260
            //      }, {
            //          "x": 92,
            //          "y": 260
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "",
            //          "elements": [{
            //              "recognizedLanguage": "",
            //              "text": "性别",
            //              "boundingBox": {
            //                  "top": 227,
            //                  "left": 92,
            //                  "right": 178,
            //                  "bottom": 257
            //              },
            //              "cornerPoints": [{
            //                  "x": 92,
            //                  "y": 227
            //              }, {
            //                  "x": 178,
            //                  "y": 227
            //              }, {
            //                  "x": 178,
            //                  "y": 257
            //              }, {
            //                  "x": 92,
            //                  "y": 257
            //              }]
            //          }],
            //          "text": "性别",
            //          "boundingBox": {
            //              "top": 227,
            //              "left": 92,
            //              "right": 178,
            //              "bottom": 257
            //          },
            //          "cornerPoints": [{
            //              "x": 92,
            //              "y": 227
            //          }, {
            //              "x": 178,
            //              "y": 227
            //          }, {
            //              "x": 178,
            //              "y": 257
            //          }, {
            //              "x": 92,
            //              "y": 257
            //          }]
            //      }, {
            //          "recognizedLanguage": "",
            //          "elements": [{
            //              "recognizedLanguage": "",
            //              "text": "女",
            //              "boundingBox": {
            //                  "top": 223,
            //                  "left": 216,
            //                  "right": 253,
            //                  "bottom": 260
            //              },
            //              "cornerPoints": [{
            //                  "x": 216,
            //                  "y": 226
            //              }, {
            //                  "x": 249.87013244628906,
            //                  "y": 223.03111267089844
            //              }, {
            //                  "x": 252.83901977539062,
            //                  "y": 256.9012451171875
            //              }, {
            //                  "x": 218.96888732910156,
            //                  "y": 259.8701171875
            //              }]
            //          }],
            //          "text": "女",
            //          "boundingBox": {
            //              "top": 223,
            //              "left": 216,
            //              "right": 253,
            //              "bottom": 260
            //          },
            //          "cornerPoints": [{
            //              "x": 216,
            //              "y": 226
            //          }, {
            //              "x": 249.87013244628906,
            //              "y": 223.03111267089844
            //          }, {
            //              "x": 252.83901977539062,
            //              "y": 256.9012451171875
            //          }, {
            //              "x": 218.96888732910156,
            //              "y": 259.8701171875
            //          }]
            //      }]
            //  }, {
            //      "text": "民族汉",
            //      "boundingBox": {
            //          "top": 222,
            //          "left": 361,
            //          "right": 507,
            //          "bottom": 260
            //      },
            //      "cornerPoints": [{
            //          "x": 362,
            //          "y": 222
            //      }, {
            //          "x": 506.9756774902344,
            //          "y": 224.655517578125
            //      }, {
            //          "x": 506.3346862792969,
            //          "y": 259.649658203125
            //      }, {
            //          "x": 361.3590087890625,
            //          "y": 256.994140625
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "",
            //          "elements": [{
            //              "recognizedLanguage": "",
            //              "text": "民族汉",
            //              "boundingBox": {
            //                  "top": 222,
            //                  "left": 361,
            //                  "right": 507,
            //                  "bottom": 260
            //              },
            //              "cornerPoints": [{
            //                  "x": 362,
            //                  "y": 222
            //              }, {
            //                  "x": 506.9756774902344,
            //                  "y": 224.655517578125
            //              }, {
            //                  "x": 506.3346862792969,
            //                  "y": 259.649658203125
            //              }, {
            //                  "x": 361.3590087890625,
            //                  "y": 256.994140625
            //              }]
            //          }],
            //          "text": "民族汉",
            //          "boundingBox": {
            //              "top": 222,
            //              "left": 361,
            //              "right": 507,
            //              "bottom": 260
            //          },
            //          "cornerPoints": [{
            //              "x": 362,
            //              "y": 222
            //          }, {
            //              "x": 506.9756774902344,
            //              "y": 224.655517578125
            //          }, {
            //              "x": 506.3346862792969,
            //              "y": 259.649658203125
            //          }, {
            //              "x": 361.3590087890625,
            //              "y": 256.994140625
            //          }]
            //      }]
            //  }, {
            //      "text": ":生2016年07 月 01日",
            //      "boundingBox": {
            //          "top": 308,
            //          "left": 111,
            //          "right": 629,
            //          "bottom": 350
            //      },
            //      "cornerPoints": [{
            //          "x": 111,
            //          "y": 308
            //      }, {
            //          "x": 629,
            //          "y": 308
            //      }, {
            //          "x": 629,
            //          "y": 350
            //      }, {
            //          "x": 111,
            //          "y": 350
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "zh",
            //          "elements": [{
            //              "recognizedLanguage": "zh",
            //              "text": ":生2016年07",
            //              "boundingBox": {
            //                  "top": 308,
            //                  "left": 111,
            //                  "right": 453,
            //                  "bottom": 344
            //              },
            //              "cornerPoints": [{
            //                  "x": 111,
            //                  "y": 308
            //              }, {
            //                  "x": 453,
            //                  "y": 308
            //              }, {
            //                  "x": 453,
            //                  "y": 344
            //              }, {
            //                  "x": 111,
            //                  "y": 344
            //              }]
            //          }, {
            //              "recognizedLanguage": "zh",
            //              "text": "月",
            //              "boundingBox": {
            //                  "top": 309,
            //                  "left": 468,
            //                  "right": 507,
            //                  "bottom": 350
            //              },
            //              "cornerPoints": [{
            //                  "x": 468,
            //                  "y": 309
            //              }, {
            //                  "x": 507,
            //                  "y": 309
            //              }, {
            //                  "x": 507,
            //                  "y": 350
            //              }, {
            //                  "x": 468,
            //                  "y": 350
            //              }]
            //          }, {
            //              "recognizedLanguage": "zh",
            //              "text": "01日",
            //              "boundingBox": {
            //                  "top": 315,
            //                  "left": 541,
            //                  "right": 629,
            //                  "bottom": 343
            //              },
            //              "cornerPoints": [{
            //                  "x": 541,
            //                  "y": 315
            //              }, {
            //                  "x": 629,
            //                  "y": 315
            //              }, {
            //                  "x": 629,
            //                  "y": 343
            //              }, {
            //                  "x": 541,
            //                  "y": 343
            //              }]
            //          }],
            //          "text": ":生2016年07 月 01日",
            //          "boundingBox": {
            //              "top": 308,
            //              "left": 111,
            //              "right": 629,
            //              "bottom": 350
            //          },
            //          "cornerPoints": [{
            //              "x": 111,
            //              "y": 308
            //          }, {
            //              "x": 629,
            //              "y": 308
            //          }, {
            //              "x": 629,
            //              "y": 350
            //          }, {
            //              "x": 111,
            //              "y": 350
            //          }]
            //      }]
            //  }, {
            //      "text": "住址北京市朝阳区望京北路9号\n叶青大廈D座801",
            //      "boundingBox": {
            //          "top": 400,
            //          "left": 92,
            //          "right": 695,
            //          "bottom": 489
            //      },
            //      "cornerPoints": [{
            //          "x": 92,
            //          "y": 400
            //      }, {
            //          "x": 695,
            //          "y": 400
            //      }, {
            //          "x": 695,
            //          "y": 489
            //      }, {
            //          "x": 92,
            //          "y": 489
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "zh",
            //          "elements": [{
            //              "recognizedLanguage": "zh",
            //              "text": "住址北京市朝阳区望京北路9号",
            //              "boundingBox": {
            //                  "top": 400,
            //                  "left": 92,
            //                  "right": 695,
            //                  "bottom": 436
            //              },
            //              "cornerPoints": [{
            //                  "x": 92,
            //                  "y": 400
            //              }, {
            //                  "x": 695,
            //                  "y": 400
            //              }, {
            //                  "x": 695,
            //                  "y": 436
            //              }, {
            //                  "x": 92,
            //                  "y": 436
            //              }]
            //          }],
            //          "text": "住址北京市朝阳区望京北路9号",
            //          "boundingBox": {
            //              "top": 400,
            //              "left": 92,
            //              "right": 695,
            //              "bottom": 436
            //          },
            //          "cornerPoints": [{
            //              "x": 92,
            //              "y": 400
            //          }, {
            //              "x": 695,
            //              "y": 400
            //          }, {
            //              "x": 695,
            //              "y": 436
            //          }, {
            //              "x": 92,
            //              "y": 436
            //          }]
            //      }, {
            //          "recognizedLanguage": "zh",
            //          "elements": [{
            //              "recognizedLanguage": "zh",
            //              "text": "叶青大廈D座801",
            //              "boundingBox": {
            //                  "top": 453,
            //                  "left": 217,
            //                  "right": 517,
            //                  "bottom": 489
            //              },
            //              "cornerPoints": [{
            //                  "x": 217,
            //                  "y": 453
            //              }, {
            //                  "x": 517,
            //                  "y": 453
            //              }, {
            //                  "x": 517,
            //                  "y": 489
            //              }, {
            //                  "x": 217,
            //                  "y": 489
            //              }]
            //          }],
            //          "text": "叶青大廈D座801",
            //          "boundingBox": {
            //              "top": 453,
            //              "left": 217,
            //              "right": 517,
            //              "bottom": 489
            //          },
            //          "cornerPoints": [{
            //              "x": 217,
            //              "y": 453
            //          }, {
            //              "x": 517,
            //              "y": 453
            //          }, {
            //              "x": 517,
            //              "y": 489
            //          }, {
            //              "x": 217,
            //              "y": 489
            //          }]
            //      }]
            //  }, {
            //      "text": "公民身份证号码",
            //      "boundingBox": {
            //          "top": 633,
            //          "left": 92,
            //          "right": 350,
            //          "bottom": 665
            //      },
            //      "cornerPoints": [{
            //          "x": 92,
            //          "y": 633
            //      }, {
            //          "x": 350,
            //          "y": 633
            //      }, {
            //          "x": 350,
            //          "y": 665
            //      }, {
            //          "x": 92,
            //          "y": 665
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "zh",
            //          "elements": [{
            //              "recognizedLanguage": "zh",
            //              "text": "公民身份证号码",
            //              "boundingBox": {
            //                  "top": 633,
            //                  "left": 92,
            //                  "right": 350,
            //                  "bottom": 665
            //              },
            //              "cornerPoints": [{
            //                  "x": 92,
            //                  "y": 633
            //              }, {
            //                  "x": 350,
            //                  "y": 633
            //              }, {
            //                  "x": 350,
            //                  "y": 665
            //              }, {
            //                  "x": 92,
            //                  "y": 665
            //              }]
            //          }],
            //          "text": "公民身份证号码",
            //          "boundingBox": {
            //              "top": 633,
            //              "left": 92,
            //              "right": 350,
            //              "bottom": 665
            //          },
            //          "cornerPoints": [{
            //              "x": 92,
            //              "y": 633
            //          }, {
            //              "x": 350,
            //              "y": 633
            //          }, {
            //              "x": 350,
            //              "y": 665
            //          }, {
            //              "x": 92,
            //              "y": 665
            //          }]
            //      }]
            //  }, {
            //      "text": "110000201607010801",
            //      "boundingBox": {
            //          "top": 633,
            //          "left": 428,
            //          "right": 1030,
            //          "bottom": 667
            //      },
            //      "cornerPoints": [{
            //          "x": 428,
            //          "y": 633
            //      }, {
            //          "x": 1030,
            //          "y": 633
            //      }, {
            //          "x": 1030,
            //          "y": 667
            //      }, {
            //          "x": 428,
            //          "y": 667
            //      }],
            //      "lines": [{
            //          "recognizedLanguage": "",
            //          "elements": [{
            //              "recognizedLanguage": "",
            //              "text": "110000201607010801",
            //              "boundingBox": {
            //                  "top": 633,
            //                  "left": 428,
            //                  "right": 1030,
            //                  "bottom": 667
            //              },
            //              "cornerPoints": [{
            //                  "x": 428,
            //                  "y": 633
            //              }, {
            //                  "x": 1030,
            //                  "y": 633
            //              }, {
            //                  "x": 1030,
            //                  "y": 667
            //              }, {
            //                  "x": 428,
            //                  "y": 667
            //              }]
            //          }],
            //          "text": "110000201607010801",
            //          "boundingBox": {
            //              "top": 633,
            //              "left": 428,
            //              "right": 1030,
            //              "bottom": 667
            //          },
            //          "cornerPoints": [{
            //              "x": 428,
            //              "y": 633
            //          }, {
            //              "x": 1030,
            //              "y": 633
            //          }, {
            //              "x": 1030,
            //              "y": 667
            //          }, {
            //              "x": 428,
            //              "y": 667
            //          }]
            //      }]
            //  }]
            // }
        }
        break;
        default:
            break;
    }

}
  • 是否显示遮罩层

let newParams = {}
newParams.businessArray = [{
    business: "setParams",
    params: {
        showMaskLayer: true
    }
}]
let newParamsStr = this.formatNewParams(newParams)
// android、ios
this.params = newParamsStr
// 鸿蒙
this.options = {
    params: newParamsStr
}
  • 是否显示4个角

let newParams = {}
newParams.businessArray = [{
    business: "setParams",
    params: {
        showAngle: true
    }
}]
let newParamsStr = this.formatNewParams(newParams)
// android、ios
this.params = newParamsStr
// 鸿蒙
this.options = {
    params: newParamsStr
}
  • 是否显示动画

let newParams = {}
newParams.businessArray = [{
    business: "setParams",
    params: {
        showAnimation: true
    }
}]
let newParamsStr = this.formatNewParams(newParams)
// android、ios
this.params = newParamsStr
// 鸿蒙
this.options = {
    params: newParamsStr
}
  • 是否开启闪光灯

let newParams = {}
newParams.businessArray = [{
    business: "setParams",
    params: {
        flashTorch: true
    }
}]
let newParamsStr = this.formatNewParams(newParams)
// android、ios
this.params = newParamsStr
// 鸿蒙
this.options = {
    params: newParamsStr
}
  • 识别图片中的文本

let path = "/xxxxx/xxxxx/xxxx.png" // 本地图片绝对地址或网络地址
UTSOCR.recognizeImage({
    url: path
}, (resp) => {

    let flag = resp.flag
    if (flag) {
        let result = resp.result
        if (result) {

        }
    }
    console.log(JSON.stringify(resp))
    this.msg = JSON.stringify(resp)

    // {
    //  "result": {
    //      "text": "C\n姓名云小朵\n性别\n女\n民族汉\n:生2016年07 月 01日\n住址北京市朝阳区望京北路9号\n叶青大廈D座801\n公民身份证***",
    //      "textBlocks": [{
    //          "text": "C",
    //          "boundingBox": {
    //              "top": 112,
    //              "left": 823,
    //              "right": 1014,
    //              "bottom": 403
    //          },
    //          "cornerPoints": [{
    //              "x": 1005,
    //              "y": 112
    //          }, {
    //              "x": 1013.7730712890625,
    //              "y": 396.86492919921875
    //          }, {
    //              "x": 831.8593139648438,
    //              "y": 402.4674072265625
    //          }, {
    //              "x": 823.0862426757812,
    //              "y": 117.60247039794922
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "",
    //              "elements": [{
    //                  "recognizedLanguage": "",
    //                  "text": "C",
    //                  "boundingBox": {
    //                      "top": 112,
    //                      "left": 823,
    //                      "right": 1014,
    //                      "bottom": 403
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 1005,
    //                      "y": 112
    //                  }, {
    //                      "x": 1013.7730712890625,
    //                      "y": 396.86492919921875
    //                  }, {
    //                      "x": 831.8593139648438,
    //                      "y": 402.4674072265625
    //                  }, {
    //                      "x": 823.0862426757812,
    //                      "y": 117.60247039794922
    //                  }]
    //              }],
    //              "text": "C",
    //              "boundingBox": {
    //                  "top": 112,
    //                  "left": 823,
    //                  "right": 1014,
    //                  "bottom": 403
    //              },
    //              "cornerPoints": [{
    //                  "x": 1005,
    //                  "y": 112
    //              }, {
    //                  "x": 1013.7730712890625,
    //                  "y": 396.86492919921875
    //              }, {
    //                  "x": 831.8593139648438,
    //                  "y": 402.4674072265625
    //              }, {
    //                  "x": 823.0862426757812,
    //                  "y": 117.60247039794922
    //              }]
    //          }]
    //      }, {
    //          "text": "姓名云小朵",
    //          "boundingBox": {
    //              "top": 129,
    //              "left": 92,
    //              "right": 356,
    //              "bottom": 173
    //          },
    //          "cornerPoints": [{
    //              "x": 92,
    //              "y": 133
    //          }, {
    //              "x": 354.97381591796875,
    //              "y": 129.28929138183594
    //          }, {
    //              "x": 355.5381774902344,
    //              "y": 169.28530883789062
    //          }, {
    //              "x": 92.56436920166016,
    //              "y": 172.9960174560547
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "zh",
    //              "elements": [{
    //                  "recognizedLanguage": "zh",
    //                  "text": "姓名云小朵",
    //                  "boundingBox": {
    //                      "top": 129,
    //                      "left": 92,
    //                      "right": 356,
    //                      "bottom": 173
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 92,
    //                      "y": 133
    //                  }, {
    //                      "x": 354.97381591796875,
    //                      "y": 129.28929138183594
    //                  }, {
    //                      "x": 355.5381774902344,
    //                      "y": 169.28530883789062
    //                  }, {
    //                      "x": 92.56436920166016,
    //                      "y": 172.9960174560547
    //                  }]
    //              }],
    //              "text": "姓名云小朵",
    //              "boundingBox": {
    //                  "top": 129,
    //                  "left": 92,
    //                  "right": 356,
    //                  "bottom": 173
    //              },
    //              "cornerPoints": [{
    //                  "x": 92,
    //                  "y": 133
    //              }, {
    //                  "x": 354.97381591796875,
    //                  "y": 129.28929138183594
    //              }, {
    //                  "x": 355.5381774902344,
    //                  "y": 169.28530883789062
    //              }, {
    //                  "x": 92.56436920166016,
    //                  "y": 172.9960174560547
    //              }]
    //          }]
    //      }, {
    //          "text": "性别\n女",
    //          "boundingBox": {
    //              "top": 224,
    //              "left": 92,
    //              "right": 253,
    //              "bottom": 260
    //          },
    //          "cornerPoints": [{
    //              "x": 92,
    //              "y": 224
    //          }, {
    //              "x": 253,
    //              "y": 224
    //          }, {
    //              "x": 253,
    //              "y": 260
    //          }, {
    //              "x": 92,
    //              "y": 260
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "",
    //              "elements": [{
    //                  "recognizedLanguage": "",
    //                  "text": "性别",
    //                  "boundingBox": {
    //                      "top": 227,
    //                      "left": 92,
    //                      "right": 178,
    //                      "bottom": 257
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 92,
    //                      "y": 227
    //                  }, {
    //                      "x": 178,
    //                      "y": 227
    //                  }, {
    //                      "x": 178,
    //                      "y": 257
    //                  }, {
    //                      "x": 92,
    //                      "y": 257
    //                  }]
    //              }],
    //              "text": "性别",
    //              "boundingBox": {
    //                  "top": 227,
    //                  "left": 92,
    //                  "right": 178,
    //                  "bottom": 257
    //              },
    //              "cornerPoints": [{
    //                  "x": 92,
    //                  "y": 227
    //              }, {
    //                  "x": 178,
    //                  "y": 227
    //              }, {
    //                  "x": 178,
    //                  "y": 257
    //              }, {
    //                  "x": 92,
    //                  "y": 257
    //              }]
    //          }, {
    //              "recognizedLanguage": "",
    //              "elements": [{
    //                  "recognizedLanguage": "",
    //                  "text": "女",
    //                  "boundingBox": {
    //                      "top": 223,
    //                      "left": 216,
    //                      "right": 253,
    //                      "bottom": 260
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 216,
    //                      "y": 226
    //                  }, {
    //                      "x": 249.87013244628906,
    //                      "y": 223.03111267089844
    //                  }, {
    //                      "x": 252.83901977539062,
    //                      "y": 256.9012451171875
    //                  }, {
    //                      "x": 218.96888732910156,
    //                      "y": 259.8701171875
    //                  }]
    //              }],
    //              "text": "女",
    //              "boundingBox": {
    //                  "top": 223,
    //                  "left": 216,
    //                  "right": 253,
    //                  "bottom": 260
    //              },
    //              "cornerPoints": [{
    //                  "x": 216,
    //                  "y": 226
    //              }, {
    //                  "x": 249.87013244628906,
    //                  "y": 223.03111267089844
    //              }, {
    //                  "x": 252.83901977539062,
    //                  "y": 256.9012451171875
    //              }, {
    //                  "x": 218.96888732910156,
    //                  "y": 259.8701171875
    //              }]
    //          }]
    //      }, {
    //          "text": "民族汉",
    //          "boundingBox": {
    //              "top": 222,
    //              "left": 361,
    //              "right": 507,
    //              "bottom": 260
    //          },
    //          "cornerPoints": [{
    //              "x": 362,
    //              "y": 222
    //          }, {
    //              "x": 506.9756774902344,
    //              "y": 224.655517578125
    //          }, {
    //              "x": 506.3346862792969,
    //              "y": 259.649658203125
    //          }, {
    //              "x": 361.3590087890625,
    //              "y": 256.994140625
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "",
    //              "elements": [{
    //                  "recognizedLanguage": "",
    //                  "text": "民族汉",
    //                  "boundingBox": {
    //                      "top": 222,
    //                      "left": 361,
    //                      "right": 507,
    //                      "bottom": 260
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 362,
    //                      "y": 222
    //                  }, {
    //                      "x": 506.9756774902344,
    //                      "y": 224.655517578125
    //                  }, {
    //                      "x": 506.3346862792969,
    //                      "y": 259.649658203125
    //                  }, {
    //                      "x": 361.3590087890625,
    //                      "y": 256.994140625
    //                  }]
    //              }],
    //              "text": "民族汉",
    //              "boundingBox": {
    //                  "top": 222,
    //                  "left": 361,
    //                  "right": 507,
    //                  "bottom": 260
    //              },
    //              "cornerPoints": [{
    //                  "x": 362,
    //                  "y": 222
    //              }, {
    //                  "x": 506.9756774902344,
    //                  "y": 224.655517578125
    //              }, {
    //                  "x": 506.3346862792969,
    //                  "y": 259.649658203125
    //              }, {
    //                  "x": 361.3590087890625,
    //                  "y": 256.994140625
    //              }]
    //          }]
    //      }, {
    //          "text": ":生2016年07 月 01日",
    //          "boundingBox": {
    //              "top": 308,
    //              "left": 111,
    //              "right": 629,
    //              "bottom": 350
    //          },
    //          "cornerPoints": [{
    //              "x": 111,
    //              "y": 308
    //          }, {
    //              "x": 629,
    //              "y": 308
    //          }, {
    //              "x": 629,
    //              "y": 350
    //          }, {
    //              "x": 111,
    //              "y": 350
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "zh",
    //              "elements": [{
    //                  "recognizedLanguage": "zh",
    //                  "text": ":生2016年07",
    //                  "boundingBox": {
    //                      "top": 308,
    //                      "left": 111,
    //                      "right": 453,
    //                      "bottom": 344
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 111,
    //                      "y": 308
    //                  }, {
    //                      "x": 453,
    //                      "y": 308
    //                  }, {
    //                      "x": 453,
    //                      "y": 344
    //                  }, {
    //                      "x": 111,
    //                      "y": 344
    //                  }]
    //              }, {
    //                  "recognizedLanguage": "zh",
    //                  "text": "月",
    //                  "boundingBox": {
    //                      "top": 309,
    //                      "left": 468,
    //                      "right": 507,
    //                      "bottom": 350
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 468,
    //                      "y": 309
    //                  }, {
    //                      "x": 507,
    //                      "y": 309
    //                  }, {
    //                      "x": 507,
    //                      "y": 350
    //                  }, {
    //                      "x": 468,
    //                      "y": 350
    //                  }]
    //              }, {
    //                  "recognizedLanguage": "zh",
    //                  "text": "01日",
    //                  "boundingBox": {
    //                      "top": 315,
    //                      "left": 541,
    //                      "right": 629,
    //                      "bottom": 343
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 541,
    //                      "y": 315
    //                  }, {
    //                      "x": 629,
    //                      "y": 315
    //                  }, {
    //                      "x": 629,
    //                      "y": 343
    //                  }, {
    //                      "x": 541,
    //                      "y": 343
    //                  }]
    //              }],
    //              "text": ":生2016年07 月 01日",
    //              "boundingBox": {
    //                  "top": 308,
    //                  "left": 111,
    //                  "right": 629,
    //                  "bottom": 350
    //              },
    //              "cornerPoints": [{
    //                  "x": 111,
    //                  "y": 308
    //              }, {
    //                  "x": 629,
    //                  "y": 308
    //              }, {
    //                  "x": 629,
    //                  "y": 350
    //              }, {
    //                  "x": 111,
    //                  "y": 350
    //              }]
    //          }]
    //      }, {
    //          "text": "住址北京市朝阳区望京北路9号\n叶青大廈D座801",
    //          "boundingBox": {
    //              "top": 400,
    //              "left": 92,
    //              "right": 695,
    //              "bottom": 489
    //          },
    //          "cornerPoints": [{
    //              "x": 92,
    //              "y": 400
    //          }, {
    //              "x": 695,
    //              "y": 400
    //          }, {
    //              "x": 695,
    //              "y": 489
    //          }, {
    //              "x": 92,
    //              "y": 489
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "zh",
    //              "elements": [{
    //                  "recognizedLanguage": "zh",
    //                  "text": "住址北京市朝阳区望京北路9号",
    //                  "boundingBox": {
    //                      "top": 400,
    //                      "left": 92,
    //                      "right": 695,
    //                      "bottom": 436
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 92,
    //                      "y": 400
    //                  }, {
    //                      "x": 695,
    //                      "y": 400
    //                  }, {
    //                      "x": 695,
    //                      "y": 436
    //                  }, {
    //                      "x": 92,
    //                      "y": 436
    //                  }]
    //              }],
    //              "text": "住址北京市朝阳区望京北路9号",
    //              "boundingBox": {
    //                  "top": 400,
    //                  "left": 92,
    //                  "right": 695,
    //                  "bottom": 436
    //              },
    //              "cornerPoints": [{
    //                  "x": 92,
    //                  "y": 400
    //              }, {
    //                  "x": 695,
    //                  "y": 400
    //              }, {
    //                  "x": 695,
    //                  "y": 436
    //              }, {
    //                  "x": 92,
    //                  "y": 436
    //              }]
    //          }, {
    //              "recognizedLanguage": "zh",
    //              "elements": [{
    //                  "recognizedLanguage": "zh",
    //                  "text": "叶青大廈D座801",
    //                  "boundingBox": {
    //                      "top": 453,
    //                      "left": 217,
    //                      "right": 517,
    //                      "bottom": 489
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 217,
    //                      "y": 453
    //                  }, {
    //                      "x": 517,
    //                      "y": 453
    //                  }, {
    //                      "x": 517,
    //                      "y": 489
    //                  }, {
    //                      "x": 217,
    //                      "y": 489
    //                  }]
    //              }],
    //              "text": "叶青大廈D座801",
    //              "boundingBox": {
    //                  "top": 453,
    //                  "left": 217,
    //                  "right": 517,
    //                  "bottom": 489
    //              },
    //              "cornerPoints": [{
    //                  "x": 217,
    //                  "y": 453
    //              }, {
    //                  "x": 517,
    //                  "y": 453
    //              }, {
    //                  "x": 517,
    //                  "y": 489
    //              }, {
    //                  "x": 217,
    //                  "y": 489
    //              }]
    //          }]
    //      }, {
    //          "text": "公民身份证号码",
    //          "boundingBox": {
    //              "top": 633,
    //              "left": 92,
    //              "right": 350,
    //              "bottom": 665
    //          },
    //          "cornerPoints": [{
    //              "x": 92,
    //              "y": 633
    //          }, {
    //              "x": 350,
    //              "y": 633
    //          }, {
    //              "x": 350,
    //              "y": 665
    //          }, {
    //              "x": 92,
    //              "y": 665
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "zh",
    //              "elements": [{
    //                  "recognizedLanguage": "zh",
    //                  "text": "公民身份证号码",
    //                  "boundingBox": {
    //                      "top": 633,
    //                      "left": 92,
    //                      "right": 350,
    //                      "bottom": 665
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 92,
    //                      "y": 633
    //                  }, {
    //                      "x": 350,
    //                      "y": 633
    //                  }, {
    //                      "x": 350,
    //                      "y": 665
    //                  }, {
    //                      "x": 92,
    //                      "y": 665
    //                  }]
    //              }],
    //              "text": "公民身份证号码",
    //              "boundingBox": {
    //                  "top": 633,
    //                  "left": 92,
    //                  "right": 350,
    //                  "bottom": 665
    //              },
    //              "cornerPoints": [{
    //                  "x": 92,
    //                  "y": 633
    //              }, {
    //                  "x": 350,
    //                  "y": 633
    //              }, {
    //                  "x": 350,
    //                  "y": 665
    //              }, {
    //                  "x": 92,
    //                  "y": 665
    //              }]
    //          }]
    //      }, {
    //          "text": "110000201607010801",
    //          "boundingBox": {
    //              "top": 633,
    //              "left": 428,
    //              "right": 1030,
    //              "bottom": 667
    //          },
    //          "cornerPoints": [{
    //              "x": 428,
    //              "y": 633
    //          }, {
    //              "x": 1030,
    //              "y": 633
    //          }, {
    //              "x": 1030,
    //              "y": 667
    //          }, {
    //              "x": 428,
    //              "y": 667
    //          }],
    //          "lines": [{
    //              "recognizedLanguage": "",
    //              "elements": [{
    //                  "recognizedLanguage": "",
    //                  "text": "110000201607010801",
    //                  "boundingBox": {
    //                      "top": 633,
    //                      "left": 428,
    //                      "right": 1030,
    //                      "bottom": 667
    //                  },
    //                  "cornerPoints": [{
    //                      "x": 428,
    //                      "y": 633
    //                  }, {
    //                      "x": 1030,
    //                      "y": 633
    //                  }, {
    //                      "x": 1030,
    //                      "y": 667
    //                  }, {
    //                      "x": 428,
    //                      "y": 667
    //                  }]
    //              }],
    //              "text": "110000201607010801",
    //              "boundingBox": {
    //                  "top": 633,
    //                  "left": 428,
    //                  "right": 1030,
    //                  "bottom": 667
    //              },
    //              "cornerPoints": [{
    //                  "x": 428,
    //                  "y": 633
    //              }, {
    //                  "x": 1030,
    //                  "y": 633
    //              }, {
    //                  "x": 1030,
    //                  "y": 667
    //              }, {
    //                  "x": 428,
    //                  "y": 667
    //              }]
    //          }]
    //      }]
    //  },
    //  "flag": true
    // }
})

隐私、权限声明

1. 本插件需要申请的系统权限列表:

相机、相册

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率: