Giter Site home page Giter Site logo

Comments (9)

zhangwenxiang26 avatar zhangwenxiang26 commented on August 16, 2024

@devilsen

from czxing.

zhangwenxiang26 avatar zhangwenxiang26 commented on August 16, 2024

image

from czxing.

devilsen avatar devilsen commented on August 16, 2024

现在默认是只识别扫描框里的数据,不过为了增加扫码范围,会处理几帧与屏幕宽的界面,如果有这样 的需求可以增加一个这样的API。

from czxing.

zhangwenxiang26 avatar zhangwenxiang26 commented on August 16, 2024

你好,你这个库,识别效率确实很高。我想把它用在项目上,针对上面问题,我应该从哪一块入手,去实现这个功能呢?如果方便的话,能在你的库,加上这个api就更好了 😊😊

from czxing.

zhangwenxiang26 avatar zhangwenxiang26 commented on August 16, 2024

@devilsen

from czxing.

devilsen avatar devilsen commented on August 16, 2024

确实有你说的这样的需求,晚上回去加一下。

from czxing.

zhangwenxiang26 avatar zhangwenxiang26 commented on August 16, 2024

确实有你说的这样的需求,晚上回去加一下。

我发现这样修改代码能实现,只识别扫描框中二维码,但是不知道会有什么影响?

BarCoderView 类

源代码

if (scanSequence < 5) {
onPreviewFrame(data, left, top, scanBoxSize, scanBoxSize, rowWidth, rowHeight);
} else {
scanSequence = -1;
int bisSize = rowWidth < rowHeight ? rowWidth : rowHeight;
onPreviewFrame(data, 0, top, bisSize, bisSize, rowWidth, rowHeight);
}
scanSequence++;

修改如下

onPreviewFrame(data, left, top, scanBoxSize, scanBoxSize, rowWidth, rowHeight);

// if (scanSequence < 5) {
// onPreviewFrame(data, left, top, scanBoxSize, scanBoxSize, rowWidth, rowHeight);
// } else {
// scanSequence = -1;
// int bisSize = rowWidth < rowHeight ? rowWidth : rowHeight;
// onPreviewFrame(data, 0, top, bisSize, bisSize, rowWidth, rowHeight);
// }
// scanSequence++;

@devilsen 这样修改会有什么问题码?

from czxing.

devilsen avatar devilsen commented on August 16, 2024

没问题,就是在这里修改的。

from czxing.

devilsen avatar devilsen commented on August 16, 2024

已加入api setScanMode(ScanView.SCAN_MODE_TINY)

from czxing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.