Thread View: borland.public.delphi.graphics
8 messages
8 total messages
Started by Adem
Sat, 26 Jul 2008 03:48
Unwatermarking
Author: Adem
Date: Sat, 26 Jul 2008 03:48
Date: Sat, 26 Jul 2008 03:48
9 lines
1063 bytes
1063 bytes
I have access to jpg files of scanned documents. The documents themselves are public stuff (so, there's no copyright), but the jpg files contain watermarks. These documents are all typewriter documents, IOW black-white (or grayscale), and the watermark is color. Does anyone know of a way that can remove these watermarks.
Re: Unwatermarking
Author: Nils Haeck
Date: Sat, 26 Jul 2008 09:06
Date: Sat, 26 Jul 2008 09:06
19 lines
1701 bytes
1701 bytes
You can try to detect the colour pixels (if you look at the RGB values, colours are values where R,G,B is not close to equal). Once you've flagged these, you can use an inpainting algorithm to reconstruct the underlying gray values. I do have code for both, but not free. You can also google for "inpainting", and see what you get (this step is the hardest). Nils "Adem" <adem.meda@gmail.com> schreef in bericht news:488a9e8e@newsgroups.borland.com... >I have access to jpg files of scanned documents. > > The documents themselves are public stuff (so, there's no copyright), > but the jpg files contain watermarks. > > These documents are all typewriter documents, IOW black-white (or > grayscale), and the watermark is color. > > Does anyone know of a way that can remove these watermarks.
Re: Unwatermarking
Author: Adem
Date: Sat, 26 Jul 2008 10:03
Date: Sat, 26 Jul 2008 10:03
24 lines
1433 bytes
1433 bytes
Nils Haeck wrote: > You can try to detect the colour pixels (if you look at the RGB > values, colours are values where R,G,B is not close to equal). Once > you've flagged these, you can use an inpainting algorithm to > reconstruct the underlying gray values. I do have code for both, but > not free. You can also google for "inpainting", and see what you get > (this step is the hardest). Nils, Thank you. I have found the solution I was after --albeit through some sort of brute force.. Apparently other people have been annoyed by the same thing and they have removed those silly watermarks. I have located those copies. Thank you again, Cheers, Adem
Re: Unwatermarking
Author: David HAROUCHE
Date: Mon, 28 Jul 2008 00:42
Date: Mon, 28 Jul 2008 00:42
3 lines
932 bytes
932 bytes
That shouldnt be able to be done ! DH
Re: Unwatermarking
Author: Adem
Date: Mon, 28 Jul 2008 06:41
Date: Mon, 28 Jul 2008 06:41
31 lines
2003 bytes
2003 bytes
David HAROUCHE wrote: > That shouldnt be able to be done ! I have just this kind of in the back of my mind at the time I wrote that post: Someone would come up and imply that I was (or might be) --in some way-- aiming to act or perform something unethical(ly). I have seen such reactions in the past and I don't really blame them --I have, at times, reacted likewise too. But, life isn't always fair: I encountered a case where they watermarked scanned images just because they could --not because they had any right (copyright or otherwise). Here's the longer story: A public office releases some documents in PDF form. These PDFs (that contain purely scanned images of typewritten documenst) are not available on the Net. On those PDFs, the public office has no copyright claims whatsoever. Someone, who has/had access to those PDF files, extracts the scanned images and places them on the Net, but watermarks them for no reason --but, makes it impossible to OCR the thing. Now, would I, in your opinion, be doing anything unethical if I removed their watermark? [Luckily, as I said in the other thread, someone else released these images without the watermark mess, saving me a lot of headaches.]
Re: Unwatermarking
Author: John Herbster
Date: Mon, 28 Jul 2008 10:41
Date: Mon, 28 Jul 2008 10:41
14 lines
1736 bytes
1736 bytes
"Adem" <adem.meda@gmail.com> wrote > A public office releases some documents in PDF form. > On those PDFs, the public office has no copyright > claims whatsoever. > Someone, who has/had access to those PDF files, > extracts the scanned images and places them on the > Net, but watermarks them for no reason --but, makes > it impossible to OCR the thing. > Now, would I, in your opinion, be doing anything unethical > if I removed their watermark? Perhaps, that "someone" would like and should be compensated for their work for acquiring the documents, doing the conversion, and making the documents available on the net. --JohnH
Re: Unwatermarking
Author: David HAROUCHE
Date: Mon, 28 Jul 2008 15:05
Date: Mon, 28 Jul 2008 15:05
6 lines
1061 bytes
1061 bytes
I preffer to produce the documents by myself, doing file/import operation or pixels[x,y] Regards DH
Re: Unwatermarking
Author: Adem
Date: Fri, 01 Aug 2008 06:21
Date: Fri, 01 Aug 2008 06:21
8 lines
1177 bytes
1177 bytes
John Herbster wrote: > Perhaps, that "someone" would like and should be compensated > for their work for acquiring the documents, doing the conversion, and > making the documents available on the net. --JohnH Sure they are. They are getting plenty of hits whereby they make people watch ads and what not.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads