automatic-watermark-detection
automatic-watermark-detection copied to clipboard
Fix bugs on file integration and some code errors
I have created the "images" folder for the main file to access. And I also change "xrange" to "range", "map" to "list(map())" to make the code run
@ngoc199 can you run this repo successfully?
After I change some code, it ran successfully. Before that, I can't run the code because of syntax errors.
On Mon, Jul 13, 2020, 7:00 PM Yong [email protected] wrote:
@ngoc199 https://github.com/ngoc199 can you run this repo successfully?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rohitrango/automatic-watermark-detection/pull/9#issuecomment-657518615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMWGLOZAVN2C6C5E7P3BZGDR3LZNFANCNFSM4OCUP67A .
@rohitrango and @ngoc199 I didn't change anything, all the folders and files are in place, just used the code from the documentation
/content/automatic-watermark-detection/src/estimate_watermark.py:19: UserWarning: Folder does not exist.
warnings.warn("Folder does not exist.", UserWarning)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-fc55cc8dc01e> in <module>()
2 from src import *
3
----> 4 gx, gy, gxlist, gylist = estimate_watermark('final/fotolia_processed')
5
6 est, loss = poisson_reconstruct(gx, gy)
TypeError: 'NoneType' object is not iterable
I am unable to run the repo successfully I keep getting this error ValueError: operands could not be broadcast together with shapes (3456,5184,3) (2242,3992,3)
I'm getting
Exception has occurred: ValueError
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
File "/Users/user/repos/automatic-watermark-detection/src/estimate_watermark.py", line 44, in estimate_watermark
Wm_x = np.median(np.array(gradx), axis=0)
File "/Users/user/repos/automatic-watermark-detection/main.py", line 3, in <module>
gx, gy, gxlist, gylist = estimate_watermark('Resized')
How did you manage to get past that?
I have created the "images" folder for the main file to access. And I also change "xrange" to "range", "map" to "list(map())" to make the code run @ngoc199 您好,感谢您的debug思路,按照您的思路已经可以跑通代码了,但是有一个问题,就是我怎么利用这个代码处理水印图片呢?我看代码中imshow出来的都是裁减图片,且颜色也发生了改变,不能和原图片相对应,请问我应该怎么输入一张水印图,输出一张对应的去水印图片呢?就是作者在final中展示的那种,谢谢!