【问题标题】:How do I make the camera focus only inside the rectangle and read the text inside the rectangle only in a flutter?如何使相机仅在矩形内聚焦并仅在颤动中读取矩形内的文本?
【发布时间】:2021-09-16 13:10:59
【问题描述】:

如何让摄像头只聚焦在矩形内,读取矩形内的文字,在读取数字时按照一定的条件,比如数字的长度为11,转移到另一个页面自动将值发送给它 github上的项目链接 https://github.com/mohanad87m/camer_number_reader

【问题讨论】:

标签: android flutter dart camera google-mlkit


【解决方案1】:

这是一个类似的问题,您可以查看一些解决方案。 Is there a way to crop Image/ImageProxy (before passing to MLKit's analyzer)?

另一个想法是不裁剪图像,而是过滤掉不在指定区域内的条形码结果(基于边界框)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-12
    • 2011-10-07
    相关资源
    最近更新 更多