OAID / YSQfastfd

A fast binary library for face detection and face landmark detection in images. No float point operations, especially suit for low cost Arm CPUs, The highest accuracy on FDDB among non deep learning methods
Apache License 2.0
197 stars 54 forks source link

g++ or gcc #6

Open chezhqant opened 7 years ago

chezhqant commented 7 years ago

Hi, i just want to read a picture, but i can't understand you functions. so i use opencv2.4.9, unfortunately it can't be compiled gtk3.0, then i got the result which presents “Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported”. then i use opencv3.0, but it is no support for direct C compilation. and is you code no support for g++? i use g++ compile it and got "undefined reference to ...", which is some functions have no reference. if possible, i hope you can give me some advice. Thanks!

xhbdahai commented 7 years ago

@chezhai You can use API "vimage_from_file" in file "libfcv/fcvimage.c" to read pictures from jpg files. Do net recommend use opencv, and do not validate it with opencv.

chezhqant commented 7 years ago

yeah, thanks for you reply. it gives me more courage. i have used "vimage_from_file" to read image, but it seems only imread, after reading i can't tackle anything. for example, "greydata_from_frame" just accepts "captureCamera ", and you example code seems only accept "captureCamera ". is there some API to accept "fcvImage ", let me convert jpg to gray image, and do something just use "fcvImage "?