Code Monkey home page Code Monkey logo

qr2eascii's Issues

use more robust scanner to allow for blurry/crooked qr codes

the squares in the corners of the qr code are missing a block

this is how it looks:

                ██        ██      ████  ████      ████████                
  ████████████  ████████      ██████    ██      ██████████  ████████████  
  ██        ██  ████  ██  ██    ██    ██          ██  ████  ██        ██  
  ██        ██  ██████    ██    ████      ████    ██    ██  ██        ██  
  ██        ██  ██████        ██  ██    ██          ██  ██  ██        ██  
  ██      ████  ██████        ██  ██    ██          ██  ██  ████      ██        # here
  ████████████  ████  ██  ██    ████  ██  ████          ██  ████████████  
                ██  ██  ██    ██  ██  ██  ██    ██  ██  ██                
██████████████████    ████      ██  ████  ██    ████  ████████████████████
    ██      ██  ████  ████    ████          ██████      ██  ████████████  
████    ████████  ████  ████    ██  ██████  ██        ██████      ██    ██
      ████            ████    ██          ████████    ████        ████    
  ██  ████    ██  ██████████████    ██  ██  ████████  ██  ██  ████    ████
      ████████    ██    ████        ██████  ████████    ██    ████████    
      ████████    ██    ████        ██████  ████████    ██    ████████    
  ██          ████████  ██    ██    ████  ██    ████  ██  ██  ████████████
  ██  ████████  ████████████████            ██████████████  ██    ████████
    ██  ██████████      ██          ████  ██    ██    ██████████████  ██  
  ████  ██████    ██████      ████  ██████  ██████████              ██    
  ██        ████████  ██  ████████  ██      ██    ████  ██        ████    
    ██            ████████            ████  ██        ██      ██████████  
██  ██  ████████    ██    ██    ██    ██  ██    ██  ████████████████      
████  ████████  ████      ██    ██      ██  ████████    ████  ████████████
████  ████████  ████      ██    ██      ██  ████████    ████    ██████████
  ██████    ██████    ████      ██  ████    ██████    ██████        ██  ██
  ██  ██    ██  ██████    ██    ██  ████  ██      ██  ██          ████    
  ██    ██    ██████            ██      ██  ████████████  ██  ██████  ████
    ██  ██        ██████        ██    ██        ██████            ████  ██
██████████████████  ██  ████          ████████████████  ██████          ██
                ████████        ██      ██  ██    ██    ██  ██      ██████
  ████████████  ████████  ████████  ████        ████    ██████        ████
  ██      ████  ██  ████████████    ████  ██    ████              ████  ██      # here
  ██        ██  ██  ████████████    ████  ██    ████              ████  ██
  ██        ██  ██                  ██  ██      ████████████████████      
  ██        ██  ████      ████████  ██  ██      ██        ██      ████    
  ████████████  ██  ██  ██    ██  ██  ██████    ████████████              
                ██    ████          ██          ██          ██      ██████

this is how it should be:

                ██        ██      ████  ████      ████████                
  ████████████  ████████      ██████    ██      ██████████  ████████████  
  ██        ██  ████  ██  ██    ██    ██          ██  ████  ██        ██  
  ██        ██  ██████    ██    ████      ████    ██    ██  ██        ██  
  ██        ██  ██████        ██  ██    ██          ██  ██  ██        ██  
  ██        ██  ██████        ██  ██    ██          ██  ██  ██        ██       # here
  ████████████  ████  ██  ██    ████  ██  ████          ██  ████████████  
                ██  ██  ██    ██  ██  ██  ██    ██  ██  ██                
██████████████████    ████      ██  ████  ██    ████  ████████████████████
    ██      ██  ████  ████    ████          ██████      ██  ████████████  
████    ████████  ████  ████    ██  ██████  ██        ██████      ██    ██
      ████            ████    ██          ████████    ████        ████    
  ██  ████    ██  ██████████████    ██  ██  ████████  ██  ██  ████    ████
      ████████    ██    ████        ██████  ████████    ██    ████████    
      ████████    ██    ████        ██████  ████████    ██    ████████    
  ██          ████████  ██    ██    ████  ██    ████  ██  ██  ████████████
  ██  ████████  ████████████████            ██████████████  ██    ████████
    ██  ██████████      ██          ████  ██    ██    ██████████████  ██  
  ████  ██████    ██████      ████  ██████  ██████████              ██    
  ██        ████████  ██  ████████  ██      ██    ████  ██        ████    
    ██            ████████            ████  ██        ██      ██████████  
██  ██  ████████    ██    ██    ██    ██  ██    ██  ████████████████      
████  ████████  ████      ██    ██      ██  ████████    ████  ████████████
████  ████████  ████      ██    ██      ██  ████████    ████    ██████████
  ██████    ██████    ████      ██  ████    ██████    ██████        ██  ██
  ██  ██    ██  ██████    ██    ██  ████  ██      ██  ██          ████    
  ██    ██    ██████            ██      ██  ████████████  ██  ██████  ████
    ██  ██        ██████        ██    ██        ██████            ████  ██
██████████████████  ██  ████          ████████████████  ██████          ██
                ████████        ██      ██  ██    ██    ██  ██      ██████
  ████████████  ████████  ████████  ████        ████    ██████        ████
  ██        ██  ██  ████████████    ████  ██    ████              ████  ██      # here
  ██        ██  ██  ████████████    ████  ██    ████              ████  ██
  ██        ██  ██                  ██  ██      ████████████████████      
  ██        ██  ████      ████████  ██  ██      ██        ██      ████    
  ████████████  ██  ██  ██    ██  ██  ██████    ████████████              
                ██    ████          ██          ██          ██      ██████

Issue regarding resizing image

Hi team!!

We are testing this repo and we are facing issues. It seems it is related to the resizing.

Once we run:

python3 convert.py --invert

We get this error:

Enter data to encode: https://www.test.com
Traceback (most recent call last):
  File "/home/iberia/qr2eascii/convert.py", line 66, in <module>
    image = image.resize((width // scale, height // scale), Image.Resampling.NEAREST)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 65, in __getattr__
    raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'PIL.Image' has no attribute 'Resampling'

Any idea about what I am doing wrong?

Thanks!

Broken in python 3.9

Stack trace:

Enter data to encode: asdfasdfasdfsd
Traceback (most recent call last):
  File "/home/cip/2021/wa94tiju/convert.py", line 20, in <module>
    image = qr.make_image(fill_color=(0, 0, 0), back_color=(255, 255, 255))
  File "/usr/lib/python3/dist-packages/qrcode/main.py", line 292, in make_image
    im = image_factory(
  File "/usr/lib/python3/dist-packages/qrcode/image/base.py", line 13, in __init__
    self._img = self.new_image(**kwargs)
  File "/usr/lib/python3/dist-packages/qrcode/image/pil.py", line 24, in new_image
    if fill_color.lower() != "black" or back_color.lower() != "white":
AttributeError: 'tuple' object has no attribute 'lower'

Please fix!1!!1!11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.