Forming and finding coded shapes (e.g. a quadrilateral) or patterns inside an image or a text paragraph. Real-world applications for authorization and authentication, encryption-decryption in real-time chats or image frames.
Install the requirements
pip install -r requirements.txt
To use 'lexi_quadrilateral.py', Run the following from command-line
python lexi_quadrilateral.py -p 'demo.txt'
(replace demo.txt with the path to your text file)
Similarly,
To use 'img_bright_quadrilateral.py', Run the following from command-line
python img_bright_quadrilateral.py -p 'input_im.jpg'
(replace input_im.jpg with the path to your JPEG or PNG image file)
PS: An exact submission if this implementation would be respectfully rejected :) An alternate implementation with optimized space and time complexity is expected and would be appreciated. Think about large datasets (> 1 million frames/sequences) to be processed with these functions and update them accordingly. (Hint: use parallel pooling, lossy compression etc.)