chishaxie / blindwatermark Goto Github PK
View Code? Open in Web Editor NEW盲水印 by python
License: GNU General Public License v3.0
盲水印 by python
License: GNU General Public License v3.0
Ťgit:(master) python bwm.py encode hui.png wm.png hui_with_wm1.png [/usr/sbin/zavic/BlindWaterMark][19:17:45]
Traceback (most recent call last):
File "bwm.py", line 55, in <module>
import cv2
ImportError: No module named cv2
使用pip安装requirements.txt里的库时,出现Could not find a version that satisfies the requirement opencv-python==4.2.0.34 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for opencv-python==4.2.0.34 (from -r requirements.txt (line 1))
有没有可代替的opencv库。
Traceback (most recent call last):
File "bwm.py", line 55, in
import cv2
ImportError: No module named cv2
demo是python2生成的结果,无法用python3版本解密,同理,python3生成的结果无法用python2解密。
Traceback (most recent call last):
File "bwm.py", line 49, in
import cv2
ImportError: No module named cv2
代码:
python3 bwmforpy3.py decode hui.png targ.png flag.png
用py2能跑,但py3不行,py3好像连demo都跑不出来
报错
image<hui.png> + image(encoded)<1.png> -> watermark<2.png>
Traceback (most recent call last):
File "bwm.py", line 180, in
rwm = (f2 - f1) / alpha
ValueError: operands could not be broadcast together with shapes (744,794,3) (626,400,3)
感谢你的代码。
我的电脑是3.4G的CPU,12G内存,SSD硬盘,通常处理视频都很快。但刚才测试多次,压缩800×600的图片的所用时间都超过10秒。
我体验了另一个盲水印代码,发现他的水印处理速度很快,但水印不是对称的。
https://github.com/linyacool/blind-watermark
我想知道哪部分会导致计算量上升?是否可以提升压缩速度?
我用800x800尺寸,54k 的 jpg图片测试,添加水印后变成了225k,
用800x800尺寸,117k的png图片测试,添加水印后变成了403k,增加有点太多了,这么大图很难放到生产环境去使用
好像不能处理是透明背景的图,所有A值会变成255,请问这个能解决吗?
numpy.fft.fft2(a, s=None, axes=(-2, -1), norm=None)
我的观点:np.fft.fft2(a, axes=(0, 1))
Wose
Traceback (most recent call last):
File "bwm.py", line 180, in
rwm = (f2 - f1) / alpha
ValueError: operands could not be broadcast together with shapes (38,401,3) (1444,1080,3)
i don't knon how to imort it in kali
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.