Class CANCEL_FUNC

  • All Implemented Interfaces:
    AutoCloseable

    @Properties(inherit=tesseract.class)
    public class CANCEL_FUNC
    extends FunctionPointer
    ETEXT_DESC Description of the output of the OCR engine. This structure is used as both a progress monitor and the final output header, since it needs to be a valid progress monitor while the OCR engine is storing its output to shared memory. During progress, all the buffer info is -1. Progress starts at 0 and increases to 100 during OCR. No other constraint. Additionally the progress callback contains the bounding box of the word that is currently being processed. Every progress callback, the OCR engine must set ocr_alive to 1. The HP side will set ocr_alive to 0. Repeated failure to reset to 1 indicates that the OCR engine is dead. If the cancel function is not null then it is called with the number of user words found. If it returns true then operation is cancelled.
    • Constructor Detail

      • CANCEL_FUNC

        protected CANCEL_FUNC()
    • Method Detail

      • call

        @Cast("bool")
        public boolean call​(Pointer arg0,
                            int arg1)