How to Apply Contrast Filter in Python

Prompt

Result