I found on my system Automator has the ability to invert colors of an image with a Quartz filter.
So in the macro below I use the attached Automator workflow to invert the colors of the image which is screenshot.
Automator invert colors.workflow.zip (33.3 KB)
OCR inverted screenshot Automator Macro (v9.2)