Giter Club home page Giter Club logo

Comments (7)

linyacool avatar linyacool commented on September 20, 2024

Jpg format is lossy compression , you'd better use some lossless compression formats like bmp, png, gif.

from blind-watermark.

idonkeyliu avatar idonkeyliu commented on September 20, 2024

OK, thank. I'll have a try.

from blind-watermark.

pxpy avatar pxpy commented on September 20, 2024

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.

linyacool avatar linyacool commented on September 20, 2024

@pxpy Could you please show me your picture ? My email : [email protected]

from blind-watermark.

Zola avatar Zola commented on September 20, 2024

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.

linyacool avatar linyacool commented on September 20, 2024

@Zola Sorry for that, now I have fixed it.

from blind-watermark.

yejunlei2008 avatar yejunlei2008 commented on September 20, 2024

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 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.