Comments (4)
我刚刚试了README里面的demo命令,在我的Mac i5下用了4秒多,然后粗略看了下代码(毕竟写了一年多了),应该是像素遍历没有优化导致的。 (PS:最近比较忙,短期不考虑优化)
from blindwatermark.
@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.
我测试了一下,也存在打水印时速度慢的问题,一张1080P的图片需要26秒,能不能提供一下优化的思路,感谢
from blindwatermark.
@wzhvictor @chishaxie @Zola 我测试发现,将118行到151行删除,可以提升需渲染的速度(示例图片)。而且并不影响还原和解析。
目前发现一个问题:对加水印后的图片进行裁剪。就无法解析出水印了。这个需要自行进行扩展了。
图片被裁剪后,手动将被裁剪的图片图布,调整为原图大小则可以正常还原了。:)
顺便补充,使用其他图片进行测试,水印还原并不清晰。若对加水印的图片进行二次编辑,还原出来的水印并没有示例图片清晰。感觉代码还有提升空间。
from blindwatermark.
Related Issues (17)
- import cv2 HOT 1
- 老哥python3的脚本是不是有些问题 HOT 4
- python2和python3版本的结果不一致 HOT 1
- 1
- 代码问题蛮多的。居然报错找不到sys,还有就是整个结构太乱了。希望修改一下。 HOT 3
- 针对图片二维傅里叶变换的作用域为宽高
- kali为什么一直ImportError: No module named cv2 HOT 1
- 请问为什么在win10 上没有作用 HOT 1
- jpg和png图片添加水印后图片增加了200到300k,增加有点太多了
- bwmforpy3.py 无法正常运行 HOT 5
- ImportError: No module named cv2 HOT 2
- 可以处理截图吗 HOT 2
- ImportError: No module named cv2 HOT 1
- Blind means the origin image is not required HOT 1
- 如果图片背景是透明的,脚本运行后会变成不透明
- ValueError: operands could not be broadcast together with shapes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blindwatermark.