# ext-qrcode_decode **Repository Path**: liliang9693/ext-qrcode_decode ## Basic Information - **Project Name**: ext-qrcode_decode - **Description**: mind+python qrcode decode - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-05-26 - **Last Updated**: 2024-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Pyzbar二维码解码库 ![](./python/_images/featured.png) --------------------------------------------------------- ## Table of Contents * [URL](#url) * [Summary](#summary) * [Blocks](#blocks) * [License](#license) * [Supported targets](#Supportedtargets) ## URL * Project URL : ```https://github.com/liliang9693/ext-qrcode_decode``` * Tutorial URL : ```https://mindplus.dfrobot.com.cn/extensions-user``` ## Summary 使用Mind+V1.7.2及以上版本包含opencv图形化库的版本,在python模式用户库中加载此扩展,可实现二维码图片或摄像头实时解码。 如果在行空板中使用,则需要先安装pyzbar库: **方法1:** 离线安装 - 下载**二维码识别库安装3.mp**,用mind+打开。 - 切换到**代码模式**,打开**安装库**文件夹,双击打开**安装库 . py**,然后**连接行空板**,**运行**,等待安装完成即可 ![](./安装库.png) **方法2:** 联网安装 - 根据行空板官方文档教程将行空板联网 - 打开Mind+,在Mind+中点击**终端**,连接行空板 - 复制如下命令到终端中回车运行,等待代码执行完毕: ```apt-get install libzbar0 -y``` - 然后复制如下命令到终端中回车运行,等待代码执行完毕: ```pip install pyzbar``` **方法3:** 更新行空板系统镜像到0.3.5及以上版本(内置了pyzbar库) **使用教程**: 【新课标】信息科技跨学科案例-五年级 无人自助收银系统 https://mc.dfrobot.com.cn/thread-314329-1-1.html ## Blocks ![](./python/_images/blocks.png) ## Examples > 读取本地图片进行解码 ![](./python/_images/example1.png) > 调用摄像头进行实时解码 ![](./python/_images/example2.png) > 用按键开关二维码识别功能 ![](./python/_images/examples3.png) ## License MIT ## Supported targets |MCU | JavaScript | Arduino | MicroPython | Python | |------------------ | :----------: | :----------: | :---------: | :-----:| |arduino | | | | | |micro:bit | | | | | |esp32 | | | | | |unihiker | | | | √ | ## Release Logs * V0.0.1 基础功能完成 * V0.0.2 解决摄像头continu报错 * V0.0.3 解决摄像头显示问题(行空板) * V0.0.4 调整窗口显示生成代码,多语言处理 * V0.0.5 解决关闭摄像头积木缺失问题