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