x-ray
x-ray copied to clipboard
169 fix failing redactions
Cross Hatch [XXXX] style redactions always fail because we require redactions to be one solid color.
This PR replaces that check with a more nuanced check of a block. It uses adaptive thresholding to determine if a pixel is white or black and then determines if the redaction is a solid color.
Additionally, updates the readme around testing and adds a test for our Cross Hatch example
Looks like you forgot to include the PDF? Not sure how tests passed that way or what's up with the lint. 🤔
@mlissner thanks for the feedback ... I updated it.