mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-14 06:00:59 +00:00
Indentocr.
Some Space and Indentation
This commit is contained in:
parent
d22ab6f9a1
commit
ef3d25c25b
@ -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)
|
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
|
// 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 *pix = NULL;
|
||||||
PIX *cpix = 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);
|
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);
|
cpix_gs = pixConvertRGBToGray(cpix, 0.0, 0.0, 0.0);
|
||||||
#ifdef OCR_DEBUG
|
#ifdef OCR_DEBUG
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user