qrio 模块。
提供 QRDecoder对象。
在这些板上可用
-  ATMegaZero ESP32-S2
-  Adafruit Feather RP2040
-  Adafruit FunHouse
-  Adafruit Grand Central M4 Express
-  Adafruit ItsyBitsy RP2040
-  Adafruit Macropad RP2040
-  Adafruit MagTag
-  Adafruit Metro ESP32S2
-  Adafruit QT Py RP2040
-  Adafruit QT2040 Trinkey
-  Arduino Nano RP2040 Connect
-  Artisense Reference Design RD00
-  BastWiFi
-  Challenger RP2040 WiFi
-  CrumpS2
-  Cytron Maker Pi RP2040
-  ESP 12k NodeMCU
-  EncoderPad RP2040
-  Feather ESP32S2 without PSRAM
-  FeatherS2
-  FeatherS2 Neo
-  FeatherS2 PreRelease
-  Franzininho WIFI w/Wroom
-  Franzininho WIFI w/Wrover
-  Gravitech Cucumber M
-  Gravitech Cucumber MS
-  Gravitech Cucumber R
-  Gravitech Cucumber RS
-  HMI-DevKit-1.1
-  Kaluga 1
-  LILYGO TTGO T8 ESP32-S2 w/Display
-  MORPHEANS MorphESP-240
-  Melopero Shake RP2040
-  Oak Dev Tech BREAD2040
-  Oak Dev Tech PixelWing ESP32S2
-  Pimoroni Interstate 75
-  Pimoroni Keybow 2040
-  Pimoroni PGA2040
-  Pimoroni Pico LiPo (16MB)
-  Pimoroni Pico LiPo (4MB)
-  Pimoroni PicoSystem
-  Pimoroni Plasma 2040
-  Pimoroni Tiny 2040
-  PyKey60
-  Raspberry Pi Pico
-  S2Mini
-  Saola 1 w/Wroom
-  Saola 1 w/Wrover
-  SparkFun MicroMod RP2040 Processor
-  SparkFun Pro Micro RP2040
-  SparkFun Thing Plus - RP2040
-  Targett Module Clip w/Wroom
-  Targett Module Clip w/Wrover
-  TinyS2
-  microS2
-  nanoESP32-S2  w/Wrover
-  nanoESP32-S2 w/Wroom
 
- 
class qrio.PixelPolicy
- 
- 
EVERY_BYTE:PixelPolicy
- 输入缓冲区- QRDecoder.decode由每个字节的灰度值组成
 
 - 
- 
EVEN_BYTES:PixelPolicy
- 输入缓冲区 - QRDecoder.decode由位置 0、2、……中的灰度值和位置 1、3、……中的忽略字节组成。这可以直接从 YUV 图像解码,其中偶数字节保存 Y(亮度)数据。
 
 - 
- 
ODD_BYTES:PixelPolicy
- 输入缓冲区 - QRDecoder.decode由位置 1、3、……中的灰度值和位置 0、2、……中的忽略字节组成。这可以直接从 YUV 图像解码,其中奇数字节保存 Y(亮度)数据
 
 
- 
class qrio.QRDecoder(width: int, height: int)
- 构造一个 QRDecoder 对象 - 
- 参数
- 
 - 
- 
width:int
- 解码器期望的图像宽度 
 - 
- 
height:int
- 解码器期望的图像高度 
 - 
- 
decode(self, buffer: _typing.ReadableBuffer, pixel_policy: PixelPolicy = PixelPolicy.EVERY_BYTE) → List[QRInfo]
- 从给定图像中解码零个或多个二维码。对于 ,缓冲区的大小必须至少- length``×``width为- EVERY_BYTE字节,对于- EVEN_BYTES或必须至少为2×``长度``×``宽度`` 字节- ODD_BYTES。
 
 
- 
class qrio.QRInfo
- 解码后的二维码信息 - 
- 
payload:bytes
- 二维码内容 
 - 
- 
data_type:Union[str, int]
- 将有效负载编码为字符串(如果是标准编码)或 int(如果不是标准编码)