Finding Red Circles in an Image

With the OpenCV setup done before, it is now possible to go and actually use OpenCV for something practical. This is ported to Clojure from the following post, so please refer to it for the original write up.

The goal is to highlight different intensity of red circles in a picture.

The java imports when working with OpenCV are quite consistent between examples, so let’s add them along with the namespace definition.

https://dev.to/mattferderer/what-is-csp-why--how-to-add-it-to-your-website-28df

https://content-security-policy.com/examples/nginx/ https://bobcares.com/blog/add-csp-header-nginx/ https://content-security-policy.com/ https://stackoverflow.com/questions/58652892/content-security-policy-refused-to-execute-inline-event-handler-error

 invalid number of arguments in "add_header" 

https://dev.to/mattferderer/what-is-csp-why--how-to-add-it-to-your-website-28df


add_header 'Content-Security-Policy' 'default-src self unsafe-inline *.akamai.net *.doubleclick.net; font-src self fonts.googleapis.com fonts.gstatic.com; style-src self; script-src self cdnjs.com; img-src self;'

Content-Security-Policy-Report-Only: default-src 'none'; form-action 'none'; frame-ancestors 'none';

Content-Security-Policy-Report-Only: default-src 'none'; form-action 'none'; frame-ancestors 'none'; style-src 'self';

Content-Security-Policy-Report-Only: default-src 'none'; form-action 'none'; frame-ancestors 'none'; style-src 'self'; script-src 'self'; img-src 'self';

Content-Security-Policy-Report-Only: default-src 'none'; form-action 'none'; frame-ancestors 'none'; style-src 'self'; script-src 'self' cdnjs.com; img-src 'self';


add_header Content-Security-Policy "default-src 'self' unsafe-inline *.akamai.net *.doubleclick.net; font-src 'self' fonts.googleapis.com fonts.gstatic.com; style-src 'self'; script-src 'self' cdn.jsdelivr.net cdnjs.com; img-src 'self';";

add_header Content-Security-Policy-Report-Only "default-src 'self'; font-src 'self' fonts.googleapis.com fonts.gstatic.com; style-src 'self' https://cdn.jsdelivr.net; script-src 'self' cdn.jsdelivr.net cdnjs.com; img-src 'self';";