Coder Social home page Coder Social logo

blindwatermark's Introduction

BlindWaterMark

Java 盲水印 在图片上加肉眼无法识别的水印

  • 原理

    • Encode: 原图 --- 傅立叶变换 ---> 频域图 + 水印 --- 逆变换 ---> 带水印图
    • Decode: 带水印图 --- 傅立叶变换 ---> 频域图
  • 文件介绍
    ├── gakki-img-dc.png * 反解水印图(图片水印)
    ├── gakki-text-dc.png * 反解水印图(文字水印)
    ├── gakki-wm-img.png * 带图片盲水印的图
    ├── gakki-wm-text.png * 带文字盲水印的图
    ├── gakki.png * 原图
    └── wm.png * 图片水印

Usage:

* 打包成jar
gradle build

Usage: java -jar BlindWaterMark.jar <commands> [args...]
    commands:
            encode <option> <image-src>  <watermark-text>       <image-encoded(text)>
            encode <option> <image-src>  <watermark-image>      <image-encoded(image)>
            decode <image-encode(text)>  <image-decode>
            decode <image-src>           <image-encoded(image)> <image-decode>
    options:
            -i add image watermark
            -t add text  watermark

Demo:

java -jar BlindWaterMark.jar encode -t gakki.png mywife gakki-wm-text.png

image + "mywife" ->
image

java -jar BlindWaterMark.jar encode -i gakki.png wm.png gakki-wm-img.png

image
+
image
->
image

java -jar BlindWaterMark.jar decode gakki-wm-text.png gakki-text-dc.png

image

java -jar BlindWaterMark.jar decode gakki.png gakki-wm-img.png gakki-img-dc.png

image

blindwatermark's People

Contributors

ww23 avatar

Watchers

 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.