Closed frostfeng closed 4 years ago
加入 -O3
cppflag 开启INT NEON OPENMP 优化
@frostfeng did you find the solution for this? I know you already activated the openmp otherwise it should be over 1000ms/
@dpmaycry HI, I guess I already activated the openmp . Did you have a test on any ios?
@dpmaycry sry, I just misunderstood you. Without int neon openmp o3 int goes 1600ms , with neon and int -o3 goes 100ms but where to set the openmp? thx
@dpmaycry sry, I just misunderstood you. Without int neon openmp o3 int goes 1600ms , with neon and int -o3 goes 100ms but where to set the openmp? thx
can you tell me how to open int neon openmp? Thank you very much
you can change the header file facedetectcnn.h to enable NEON.
for gcc, flag -fopenmp can enable openmp during compiling.
我在iphone6s手机上运行 demo中的440*293图片检测landmark耗时600ms,这个速度太慢了。
还有我使用iphone6s,输入摄像头采集的1280*720的画面,检测不出人脸。请帮看看是什么问题,谢谢。代码如下:
CVPixelBufferLockBaseAddress(img, 0); void *data = CVPixelBufferGetBaseAddress(img); int width = (int)CVPixelBufferGetWidth(img); int height = (int)CVPixelBufferGetHeight(img); OSType type = CVPixelBufferGetPixelFormatType(img);