Comments (7)
Jpg format is lossy compression , you'd better use some lossless compression formats like bmp, png, gif.
from blind-watermark.
OK, thank. I'll have a try.
from blind-watermark.
PS C:\Users\panxin\Desktop> python encode.py --image 3d.tif --watermark wm.png --result jm.tif
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
File "encode.py", line 54, in
main()
File "encode.py", line 30, in main
encode(img, wm, res, alpha)
File "encode.py", line 39, in encode
x, y = range(height / 2), range(width)
TypeError: 'float' object cannot be interpreted as an integer
from blind-watermark.
@pxpy Could you please show me your picture ? My email : [email protected]
from blind-watermark.
I was verified that jpeg format supported.
something wrong when I add argument -- alpha
$python encode.py --image ori.jpg --watermark watermark.jpg --result res.jpg --alpha 5
Traceback (most recent call last):
File "encode.py", line 55, in <module>
main()
File "encode.py", line 31, in main
encode(img, wm, res, alpha)
File "encode.py", line 50, in encode
res_f = img_f + alpha * tmp
TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32')
from blind-watermark.
@Zola Sorry for that, now I have fixed it.
from blind-watermark.
The Python3 version of the blind watermark can be used, but it has no effect. It is not the image range is wrong or the watermark cannot be loaded. I hope I can fix it, or I need to know which libraries need to be installed.
from blind-watermark.
Related Issues (8)
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 blind-watermark.