Template Matching Algorithm using Raspicam