I use https://github.com/argman/EAST/ library and here is the format that it suppose to output https://github.com/argman/EAST/blob/master/training_samples/img_1.txt