server api code (opencv and tesseract)

pre-processing with opencv functionality