0
点赞
收藏
分享

微信扫一扫

解决pyzbar中文出现乱码的问题

芝婵 2022-01-12 阅读 113

windows平台

  • https://github.com/skb666/ZBarWin64/tree/master/x64/Release

Linux平台(包含但不限于 树莓派)

  • 如果已经安装libzbar0,先卸载

    sudo apt purge libzbar0
    
  • 重新编译zbar

    #安装编译工具
    sudo apt install build-essential
    #拉取修改后的zbar源码
    git clone https://github.com/skb666/rpi-detector-serial.git
    cd rpi-detector-serial/zbar-0.10
    #配置编译选项
    ./configure --enable-shared --enable-static --without-imagemagick --without-jpeg --without-python --without-gtk --without-qt --disable-video
    #编译安装
    make && sudo make install
    

效果

举报

相关推荐

0 条评论