mirror of
https://github.com/libretro/RetroArch
synced 2025-01-01 12:11:47 +00:00
28 lines
522 B
C
28 lines
522 B
C
|
#ifndef __OCR_DRIVER__H
|
||
|
#define __OCR_DRIVER__H
|
||
|
|
||
|
struct ocr_image_info
|
||
|
{
|
||
|
int game_character_set;
|
||
|
unsigned image_width;
|
||
|
unsigned image_height;
|
||
|
unsigned pixel_format;
|
||
|
void* image_data;
|
||
|
};
|
||
|
|
||
|
typedef struct ocr_driver
|
||
|
{
|
||
|
void* (*init)();
|
||
|
void (*free)(void* data);
|
||
|
|
||
|
char* (*get_text)(struct ocr_image_info image);
|
||
|
|
||
|
const char *ident;
|
||
|
} ocr_driver_t;
|
||
|
|
||
|
extern const ocr_driver_t ocr_tesseract;
|
||
|
extern const ocr_driver_t ocr_null;
|
||
|
|
||
|
char* ocr_get_text(struct ocr_image_info image);
|
||
|
|
||
|
#endif
|