GitHub消除马赛克项目

Github 专栏收录该内容
2 篇文章 0 订阅
  • 项目地址

  • https://github.com/beurtschipper/Depix

  • image-20201220223908531

  • image-20201220224005379

  • py文件位置运行

  • python depix.py -p [pixelated rectangle image] -s [search sequence image] -o output.png
    
  • -p 打了马赛克的图片

  • -s 辅助解码的图片

  • 测试图片和辅助图片都在image文件夹中有

  • 如果python不行就换成python3

  • 遇到什么问题去官网下的论坛找解决方案

  • https://github.com/beurtschipper/Depix/issues/12

  • haoyun@HAOYUN Depix % python3 depix.py -p /Users/haoyun/Desktop/git/Depix/images/testimages/testimage3_pixels.png -s /Users/haoyun/Desktop/git/Depix/images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o output.png
    #举例,自己改下路径就行
    
    
    INFO:root:Loading pixelated image from /Users/haoyun/Desktop/git/Depix/images/testimages/testimage3_pixels.png
    INFO:root:Loading search image from /Users/haoyun/Desktop/git/Depix/images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png
    INFO:root:Finding color rectangles from pixelated space
    INFO:root:Found 116 same color rectangles
    INFO:root:86 rectangles left after moot filter
    INFO:root:Found 1 different rectangle sizes
    INFO:root:Finding matches in search image
    INFO:root:Removing blocks with no matches
    INFO:root:Splitting single matches and multiple matches
    INFO:root:[10 straight matches | 76 multiple matches]
    INFO:root:Trying geometrical matches on single-match squares
    INFO:root:[15 straight matches | 71 multiple matches]
    INFO:root:Trying another pass on geometrical matches
    INFO:root:[17 straight matches | 69 multiple matches]
    INFO:root:Writing single match results to output
    INFO:root:Writing average results for multiple matches to output
    INFO:root:Saving output image to: output.png
    #最后执行成功,时间有点久
    
    
    
  • 遇到问题

  • Traceback (most recent call last):
      File "depix.py", line 1, in <module>
        from depixlib.LoadedImage import *
      File "/Users/haoyun/Desktop/git/Depix/depixlib/LoadedImage.py", line 1, in <module>
        from PIL import Image
    ImportError: No module named PIL
    
  • pip3 install -r requirements.txt
    #尝试
    
  • 成功运行

  • image-20201220230436684

  • 输出结果展示

  • 6
    点赞
  • 5
    评论
  • 17
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值