#ifndef __LOGO_H #define __LOGO_H #include // #include "template_match.h" extern void* init_template_match(void); extern int add_image_template(void* ptemplate_match, const char* template_img_path, const char* label, int x, int y , int width, int height); extern void* init_image_feature(void* ptemplate_match, const char* img_path); extern float match_image(void* ptemplate_match, void* pimage_feature, char* label); extern void release_image_feature(void* pimage_feature); extern void release_template_match(void* ptemplate_match); void* get_logo_ctx_ptr(VALUE self); static VALUE initialize(VALUE self); static VALUE rb_add_image_template(VALUE self, VALUE hash); static VALUE rb_init_image_feature(VALUE self, VALUE img_path); static VALUE rb_match_image(VALUE self, VALUE rb_feature, VALUE label); static VALUE rb_release_image_feature(VALUE self, VALUE rb_feature); static VALUE rb_release_template_match(VALUE self); #endif