Coder Social home page Coder Social logo

Comments (4)

chishaxie avatar chishaxie commented on August 16, 2024

我刚刚试了README里面的demo命令,在我的Mac i5下用了4秒多,然后粗略看了下代码(毕竟写了一年多了),应该是像素遍历没有优化导致的。 (PS:最近比较忙,短期不考虑优化)

from blindwatermark.

Zola avatar Zola commented on August 16, 2024

@chishaxie 我一直在測試盲水印方案
有clojure写的:
http://clojure-china.org/t/topic/545
源代码: https://github.com/lostpupil/hidden-watermark

有java写的:
http://blog.csdn.net/chenxiao_ji/article/details/52875199

有nodejs写的:
https://cnodejs.org/topic/5a28db198230827a18293529
源代码:https://github.com/zy445566/node-digital-watermarking

其中有人提到“遇到的坑,我把傅里叶变换看成了快速傅里叶变换,所以图片需要2的幂像素的 长和宽”,是不是有可能优化到1秒以内?
(PS:以上内容仅供参考,我再仔细看看代码,谢谢你)

from blindwatermark.

wzhvictor avatar wzhvictor commented on August 16, 2024

我测试了一下,也存在打水印时速度慢的问题,一张1080P的图片需要26秒,能不能提供一下优化的思路,感谢

from blindwatermark.

lazyphp avatar lazyphp commented on August 16, 2024

@wzhvictor @chishaxie @Zola 我测试发现,将118行到151行删除,可以提升需渲染的速度(示例图片)。而且并不影响还原和解析。

目前发现一个问题:对加水印后的图片进行裁剪。就无法解析出水印了。这个需要自行进行扩展了。
图片被裁剪后,手动将被裁剪的图片图布,调整为原图大小则可以正常还原了。:)

顺便补充,使用其他图片进行测试,水印还原并不清晰。若对加水印的图片进行二次编辑,还原出来的水印并没有示例图片清晰。感觉代码还有提升空间。

from blindwatermark.

Related Issues (17)

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.