Home > database >  How do i generate a QR code like image using python
How do i generate a QR code like image using python

Time:04-18

I'm not trying to make a QR code, but I am looking to make a similar type of style that is generated multiple times as an image.

This is a brief example of one of these images: enter image description here

CodePudding user response:

Basic concept:

  • Create small resolution image with random 0 and 255 values.
  • Resize the small image with NEAREST interpolation.

Setting the probabilities is not very clear from the question.
I tried creating a look up table that converts from from probability percent to the percentage of white pixels.
I used enter image description here


enter image description here


enter image description here

  • Related