Skip to content

Adding a new device

rokka edited this page Nov 28, 2018 · 3 revisions

Project Structure

Introspection is used to make the devicespecific logic modularized. Each processing step uses getattr() to run the function corresponding to the device ID argument given. So in order to add a new device, you just have to provide a function for each processing step. The steps you have to care about are:

        ansprakon.preprocess_image() --> imagepreprocessor.py, basic preprocessing for the whole image
        ansprakon.cut_rois() --> roi_cutter.py, cut ocr_rois and feat_rois and if necessary do specific preprocessing
        ansprakon.run_ssocr() --> ssocr.py, run ssocr with the option defined
        ansprakon.detect_feat() --> 
        ansprakon.process_result()
Clone this wiki locally