Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/i/simple-ocr-opencv-HEAD/feature_extraction.py   simple-ocr-opencv(Download)
import numpy
import cv2
from segmentation import region_from_segment
from opencv_utils import background_color
 
        regions=numpy.ndarray( shape=(0,fs), dtype=FEATURE_DATATYPE )
        for segment in segments:
            region= region_from_segment( image, segment )
            if self.stretch:
                region = cv2.resize(region, (fs,fs) )