Do I see a qrcode ? What is the content ?
You can use this qrcode for example:
Using Angus python SDK:
qrcode.py
The API takes a stream of 2d still images as input, of format jpg
or png
, without constraints on resolution.
Note however that the bigger the resolution, the longer the API will take to process and give a result.
The function process()
takes a dictionary as input formatted as follows:
{'image' : file}
image
: a pythonFile Object
as returned for example byopen()
or aStringIO
buffer.
Events will be pushed to your client following that format:
{
"type": "QRCODE",
"data": "http://www.angus.ai"
}
type
: qrcode data typedata
: content
requirements: opencv2, opencv2 python bindings
This code sample retrieves the stream of a webcam and print on standard output the qrcode content data.
qrcode_fromwebcam.py