Samsung Smart TVs do not take screenshots as far as I know. They do audio and video fingerprinting. It would be way too costly and inificient to upload screenshots for content recognition (https://en.m.wikipedia.org/wiki/Automatic_content_recognitio...).
Disclaimer: I work for Samsung, but not directly in the TV software.
Open source: http://github.com/lpgauth