robbiepaul / zbar-qrdecoder Goto Github PK
View Code? Open in Web Editor NEWA PHP wrapper for Zbar. Decodes images/photos containing QR codes.
A PHP wrapper for Zbar. Decodes images/photos containing QR codes.
I tried my best to get it to work but it's not happening. Apparently, it cannot find java path while being explicitly given to it,.
public function getDecode(){
$image = Input::file('image');
$name = $image->getClientOriginalName();
$path = $image->getRealPath();
$result = ZbarDecoder::make($image);
echo $result; // Outputs the decoded text
echo $result->format;
}
Is it possible to get the coordinates of a scanned code? I want to remove the barcode / qr code from the image (actually, I want to crop the image so that the QR code is excluded, but I can do that once I have the coordinates.
Result should be "New Document"
Observed result: "New Document\n"
Suggestion:
Have zbarimg return back XML. Parse resulting XML, as the result is wrapped as:
$> zbarimg -q -D --xml qrcode.27486477.png
where qrcode.27486477.png, is supposed to be "Document Separator"
<barcodes xmlns='http://zbar.sourceforge.net/2008/barcode'>
<source href='qrcode.27486477.png'>
<index num='0'>
<symbol type='QR-Code' quality='1'><data><![CDATA[Document Separator]]></data></symbol>
</index>
</source>
</barcodes>
Since the <![CDATA[ is collecting the actual string, we can use that. We cannot "trim", as sometime the QR may have the \n at the end, which may be needed.
Supports multiple qr codes in one image?
When I tried to install the library via composer, I've got this error
robbiep/zbar-qrdecoder 2.x-dev requires symfony/process ^3.0
but I'm currently using symfony/process[v4.1.7], can you provide an update to work with this version of symfony?
'providers' => [
RobbieP\ZbarQrdecoder\ZbarQrdecoderServiceProvider::class,
]
If your're using Symfony3, then composer won't install it, because of the requirements "symfony/process 2.*".
Should work with "symfony/process 3.*".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.