Comments (13)
见 #372,需要有需求的开发者贡献代码,并参考 #406 (comment) 提交 PR。
from vue-qrcode-reader.
在本地调试中,我加了data_matrix参数,扫码时还是不支持data_matrix类型?
from vue-qrcode-reader.
如果在这个 demo 页面中 data_matrix
是能够正常工作的,那么问题就不是出在 BarcodeDetector
中,而是可能出在你实现方式上。建议先用最小的可复现 demo 来定位问题出现的位置和原因,并参考 5.x 版本的代码调整 3.x 的结构。
from vue-qrcode-reader.
我不太确定是否BarcodeDetector 的版本问题,这个demo版本是可以的,但这个demo是5.x版本,由于5.x版本中的BarcodeDetector与3.x版本的不一样,3.x版本的BarcodeDetector 版本是1.0.3在npm官网上搜索不到
from vue-qrcode-reader.
我不太确定是否BarcodeDetector 的版本问题,这个demo版本是可以的,但这个demo是5.x版本,由于5.x版本中的BarcodeDetector与3.x版本的不一样,3.x版本的BarcodeDetector 版本是1.0.3在npm官网上搜索不到
你需要更新 BarcodeDetector 版本。实际上 BarcodeDetector 1.x 是另外一个包,现在已经不维护了,它也不支持其他 formats。目前继续维护的版本是 2.x,所以这个依赖需要升级到 2.x。
from vue-qrcode-reader.
是的,升级后是可以识别了,我是否 可以推送到3.x分支上?
from vue-qrcode-reader.
是的,升级后是可以识别了,我是否 可以推送到3.x分支上?
ok,不过我并不是本仓库的维护者,提交 PR 时建议用英文写明做了哪些修改,然后让仓库拥有者 @gruhn 审查修改并合并。
from vue-qrcode-reader.
好的,谢谢
from vue-qrcode-reader.
错误内容如下:
WARN GET https://registry.npmjs.org/--no-install error (ETIMEDOUT). Will retry in 10 seconds. 2 retries left. WARN GET https://registry.npmjs.org/--no-install error (ETIMEDOUT). Will retry in 1 minute. 1 retries left. D:.pnpm-store\v3\tmp\dlx-15668: ERR_PNPM_META_FETCH_FAIL GET https://registry.npm.taobao.org/--no-install: request to https://registry.npmjs.org/--no-install failed, reason: connect ETIMEDOUT 104.16.25.34:443 This error happened while installing a direct dependency of D:.pnpm-store\v3\tmp\dlx-15668
from vue-qrcode-reader.
像是命令行参数有些问题,搜了一下可能和这个问题有关,应该要先正确安装一下 husky:pnpm/pnpm#4790
from vue-qrcode-reader.
@Sec-ant 现在出现这个问题,我应该怎么处理,能否帮我提交?
remote: Permission to gruhn/vue-qrcode-reader.git denied to carpONE. unable to access 'https://github.com/gruhn/vue-qrcode-reader.git/': The requested URL returned error: 403
支持formats实现修改如下:
升级barcode-detector:pnpm i [email protected]
from vue-qrcode-reader.
你不能直接在本仓库创建分支,简单的 PR 提交步骤是:
- fork 一份本仓库到你的账户下;
- 将你 fork 的仓库克隆到本地;
- 本地切换到 "3.x" 分支;
- 基于 "3.x" 分支新建一个新的分支,名字可以为 "support-formats",反映你做的修改内容;
- 将你做的修改提交(commit)到这个新的分支;
- 将这个新的分支 push 到你 fork 的仓库中;
- 在 GitHub 上发起 Pull Request,source 是你仓库下的 "support-formats" 分支,target 是这个仓库下的 "3.x" 分支。
你先尝试一下这个步骤,如果你实在遇到困难,再考虑让我帮你提交。
from vue-qrcode-reader.
This issue has been marked as stale. If there is no further activity it will be closed.
from vue-qrcode-reader.
Related Issues (20)
- CDN download link returns file does not exist HOT 2
- Serious bug(严重的bug) HOT 1
- 版本3.1.9,方法onCameraOn无效,是否含有这个方法?
- Scan small DataMatrix HOT 2
- Detect and tracking don't work anymore if choose a camera with constraints HOT 9
- corresponding type declarations HOT 2
- use paused introduce around 1s to 2s of freeze HOT 4
- Feature Request: PDF-Support for Dropzone HOT 4
- reading 'enumerateDevices' is undefined HOT 2
- Are formats available in vue 2? HOT 1
- Unable to read PDF417 Barcodes HOT 2
- Error on installation on Nuxt 3 HOT 1
- Incorrect file extension in "exports" (package.json) HOT 2
- Custom `wasm` file not loading correctly in Nuxt apps HOT 5
- Coponent types missing HOT 3
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- ERROR Failed to execute 'detect' on 'BarcodeDetector': Barcode detection service unavailable. DOMException@ er@ @ HOT 11
- Unable to switch the camera once selected with the problem camera HOT 7
- StreamLoadTimeoutError in your demo page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-qrcode-reader.