simplified version of textDetection function
simple makefile