Closed starnutoditopo closed 1 year ago
Maybe it should be image.Negate(Channels.RGB);
instead? And do you have a test image that I can use to reproduce this so I can add a unit test for this?
p.s. I hope you are aware that you need a commercial license when you use this in a commercial application.
Thank you. A sample image is in attachment (hope github doesn't process it once uploaded).
ps.: At the moment I'm just experimenting with this tool; if it suits the requirements for the project I'm working on, then some people of the commercial team will deal with licencing.
I have updated the script and added a unit test to make sure this stays fixed. Thanks for reporting this.
I'm trying to clean some page, but the TextCleanerScript outputs a blank page.
Debugging the source code, I noticed that the problem is in the
RemoveNoise
method, when callingNegate
.It seems that the problem is caused by the Alpha channel, so I added a line to fix it:
Maybe the
should be performed at the beginning of the method, BEFORE cloning the image?