Development of the ocr part of AOI