add TesseractAPI and Rectangle type
use `TesseractAPI` type
add some `TesseractAPI` type methods