Im working on a script where i take a screenshot, and then change some colors in the image so that only the selected text stands out, which makes it possible to have a program OCR-read only that part.. like this..


But after two days i start giving up.. it should be so easy..

My main idea is something similar to :
"convert Capture.png -fill "#FFFFFF" +opaque "#000000" Capture2.png"
However.. This gives me this unexpected result :

Something i'm doing wrong/missing?
thx
Using : ImageMagick-7.0.5-5-Q16-x64-dll.exe for windows in commandline..