From ef3d25c25b69453284f66551fea7bff370c9489d Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Mon, 5 Nov 2018 15:09:08 +0530 Subject: [PATCH] Indentocr. Some Space and Indentation --- src/lib_ccx/ocr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_ccx/ocr.c b/src/lib_ccx/ocr.c index 7e51fcc9..daea418d 100644 --- a/src/lib_ccx/ocr.c +++ b/src/lib_ccx/ocr.c @@ -192,7 +192,7 @@ BOX* ignore_alpha_at_edge(png_byte *alpha, unsigned char* indata, int w, int h, char* ocr_bitmap(void* arg, png_color *palette,png_byte *alpha, unsigned char* indata,int w, int h, struct image_copy *copy) { // uncomment the below lines to output raw image as debug.png iteratively - //save_spupng("debug.png", indata, w, h, palette, alpha, 16); + // save_spupng("debug.png", indata, w, h, palette, alpha, 16); PIX *pix = NULL; PIX *cpix = NULL; @@ -246,7 +246,7 @@ char* ocr_bitmap(void* arg, png_color *palette,png_byte *alpha, unsigned char* i } BOX *crop_points = ignore_alpha_at_edge(copy->alpha, copy->data, w, h, color_pix, &color_pix_out); - //Converting image to grayscale for OCR to avoid issues with transparency + // Converting image to grayscale for OCR to avoid issues with transparency cpix_gs = pixConvertRGBToGray(cpix, 0.0, 0.0, 0.0); #ifdef OCR_DEBUG {