It has been answered many times before... next time please use the search button.
Basic reason: difference between world coordinates and the tablet coordinates combined with openCV coordinate system. This means you need to do a basic flip operation on your image before processing.