Comments (16)
Might be related to (partially my fault, so sorry, as you will see) #123
from php-qrcode-detector-decoder.
OK, do you will create a new release with a fix?
from php-qrcode-detector-decoder.
I can only open a new PR asking the kind maintainer to publish as a major instead of a minor version and deleting the version he just published. I will do that somewhen on the weekend when I can actually provide some more value in the PR.
Your fix for now is to have composer require this library with version 1.0.5.2 (or upgrade to PHP 8.1).
from php-qrcode-detector-decoder.
from php-qrcode-detector-decoder.
Where can i download previous version, im not very familiar on github yet, wich version would be?
from php-qrcode-detector-decoder.
on your project, you should hqve conposer:json file, just put on "require" array
"khanamiryan/qrcode-detector-decoder": "1.0.5.2"
1.0.5.2 is an example; the latest version is 2.0.2
from php-qrcode-detector-decoder.
...and if you do not use composer, you find the releases (with source code) here: https://github.com/khanamiryan/php-qrcode-detector-decoder/releases
from php-qrcode-detector-decoder.
Thanks that did it.
from php-qrcode-detector-decoder.
Im converting a QR PDF to JPG and then to a string , it works great now.... I just found that if the PDF is sent via whatsapp, for some reason after that the process throw an empty text, (not finding qr anyone more), ¿does whatsapp affects pdfs?, i didnt know... Anyway is there any way to adjust de "sensibilty" or something like that? Sorry if this question is on the wrong place.
from php-qrcode-detector-decoder.
Anyway is there any way to adjust de "sensibilty" or something like that?
Yes, there actually is (in the new version though):
you can use
$text = $qrcode->text([
'TRY_HARDER' => true
]);
for example. Other adjustments are also available, see for one example here, though be aware that these others require some fiddling with the numbers for your use case. Look at the library code where the options you pass are used, and what they accept.
I would recommend to either
- cut your image better, such that it includes less stuff around, if you know where the QR-code is,
- check the error, why no QR code is detected (
$qrcode->getError()
) and work from there - send a PR with such a failing PDF as a test (so devs know to fix this),
- use a different QR-reader if this here fails.
from php-qrcode-detector-decoder.
Hello
I have upgraded to 1.0.6 and then I have error
PHP Parse error: syntax error, unexpected fully qualified name "\Zxing\BinaryBitmap", expecting variable in /mnt/web115/a3/96/52045096/htdocs/AQB/vendor/khanamiryan/qrcode-detector-decoder/lib/QrReader.php on line 14
from php-qrcode-detector-decoder.
Please upgrade to the latest version (2.0.2, seee https://github.com/khanamiryan/php-qrcode-detector-decoder/releases) if you have problems with an earlier one.
If you can't due to PHP incompatibilities, please downgrade to 1.0.5.2, 1.0.6 was removed, at least here on GitHub, since it should have been a major release.
from php-qrcode-detector-decoder.
Hello
with 1.0.5 I have this now :
PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /mnt/web115/a3/96/52045096/htdocs/AQB/vendor/khanamiryan/qrcode-detector-decoder/lib/QrReader.php:94
Stack trace:
#0 /mnt/web115/a3/96/52045096/htdocs/AQB/vendor/khanamiryan/qrcode-detector-decoder/lib/QrReader.php(94): method_exists()
from php-qrcode-detector-decoder.
Alright, you can now either catch this error and accept that it is equivalent to no text found, or upgrade to 1.0.5.2, it seems it was fixed there, see 1.0.5...1.0.5.2
from php-qrcode-detector-decoder.
Yes all is ok now. I will and a catch in case of. Thanks
from php-qrcode-detector-decoder.
Ok im doing a log if errors come in. And im also adding this. Sice which version is this available?
$text = $qrcode->text([
'TRY_HARDER' => true
]);
from php-qrcode-detector-decoder.
Related Issues (20)
- Is the QR code decoded as a url?
- when a part of photo is the qr code,decode not work
- When use PHP 8.1 got warning: PHP Deprecated: Implicit conversion from float xx to int loses precision HOT 2
- Maximum execution time of 60 seconds exceeded
- packagist.org HOT 2
- why ignore crossCheckDiagonal when NOT"PURE_BARCODE"
- Can't decode this qrcode
- Compatibility broken with PHP < 8.1 HOT 6
- Can't decode these qrcodes, but can decode all of them through online decoder website
- Qr HOT 1
- "PHP Memory Limit does not allow pixel export." exception when the memory limit is in fact unlimited HOT 2
- syntax error, unexpected fully qualified name "\Zxing\BinaryBitmap", expecting variable HOT 4
- Fatal error: Declaration of Zxing\GDLuminanceSource::isCropSupported() must be compatible with Zxing\LuminanceSource::isCropSupported(): bool in vendor\khanamiryan\qrcode-detector-decoder\lib\GDLuminanceSource.php on line 169 HOT 3
- image with more text, dont read HOT 2
- [bug] PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) HOT 1
- problem with composer
- Division by zero error on some codes.
- php-mbstring is not mentioned HOT 4
- PHP code works, but dumps a large PHP object HOT 1
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 php-qrcode-detector-decoder.