Code Monkey home page Code Monkey logo

pic_hide_barcode's Introduction

pic_hide_barcode

From original author:

hide barcode in a picture. 在一张普通图片里隐藏二维码,可以被微信识别。这个代码谁都可以用,唯独有一个人不给用,抖X上有个叫“大神开发”的营销号,先后盗了我十几个原创视频,我从未见过如此厚颜无耻之人!

What is new in this fork:

  • Enables the creation of such pictures starting from a base picture and a link, instead of a QR code needed
  • Supports more command-line input parameters, including:
    • Input picture path
    • Input QR code path
    • Output picture path
    • link (Only when using link)
    • anchor_x: the x position of your QR code on the picture (Only when using link)
    • anchor_y: the y position of your QR code on the picture (Only when using link)
    • mode: alternative modes in positioning the QR code (Only when using link)
    • dimensions: dimension of your QR code on the picture (Only when using link)

Here are quotes discussing different input methods:

Quotes about Input Methods:

Basic Usage:

python pic_hide_barcode.py

  1. General input / ouput path:

    --imgPutongPath "path/to/Basepic.jpg" or -pin "path/to/Basepic.jpg"

    --imgOutputPath "path/to/Outputpic.jpg" or -pout "path/to/Outputpic.jpg"

  2. Using QR code path directly (Only available when not using link):

    --imgBarcodePath "path/to/QRcode.jpg" or -qrin "path/to/QRcode.jpg"

    "By providing the path to your QR code image directly, you can seamlessly integrate it into your base picture."

  3. Using a link to generate QR code:
    --link "your-link-here" or -l "your-link-here"

    "With the ability to generate a QR code from a provided link, you can dynamically incorporate relevant URLs into your images."

  4. Fine-tuning position, size, and mode:
    --anchor_x x_value or -x x_value (Requires anchor_y to be set)

    --anchor_y y_value or -y y_value (Requires anchor_x to be set)

    --dimensions side_length or -d side_length (Alters dimension of the QR code)

    --mode mode_value or -mode mode_value (No need for this if you have already set the anchor_x and anchor_y)

    "Adjusting the anchor position and mode allows for precise placement and alignment of the QR code within your image."

pic_hide_barcode's People

Contributors

abyss-seeker avatar 3150601355 avatar

Stargazers

 avatar  avatar

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.