def convert_to_jpeg(self, nparray):

        cvmat = cv.fromarray(nparray)
        cvmat = cv.EncodeImage(JPEG_EXTENSION, cvmat)
        return cvmat
Overrides mousePressEvent to emits mouse_pressed signal
dataset/ETHPy150Open GoogleCloudPlatform/appengine-opencv-sudoku-python/sudoku_image_parser.py/SudokuImageParser.convert_to_jpeg--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/api/code_edit.py/CodeEdit.mousePressEvent