原API如下
int * facedetect_frontal( unsigned char * gray_image_data, int width, int height, int step,
float scale,
int min_neighbors,
int min_size,
int max_size=0);
int * facedetect_multiview( unsigned char * gray_image_data, int width, int height, int step,
float scale,
int min_neighbors,
int min_size,
int max_size=0);
使用JNA写接口函数应该怎么写,int* 和 unsigned char * 数据类型怎么转换,int max_size=0怎么办
我写成这样:
public int facedetect_multiview( String gray_image_data, int width, int height, int step,
float scale,
int min_neighbors,
int min_size,int max_size);
运行出错:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'facedetect_multiview': 找不到指定的程序。
我估计是数据类型不匹配的原因,求给一个对应的完整的java函数