Code Monkey home page Code Monkey logo

libfacedetection's People

Contributors

abhilb avatar arun179 avatar demirobin avatar dpmaycry avatar fengyuentau avatar harshithdwivedi avatar jubalh avatar kanglin avatar mistralol avatar monomagentaeggroll avatar mygityf avatar nemequ avatar np-csu avatar shiqiyu avatar solan8 avatar wwupup avatar xzou999 avatar zihaomu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libfacedetection's Issues

question about training samples

I read your article to know that you have 20GB+ negative samples.
But do you include the hard negative samples??
when I said hard negative samples, I mean a patch, that only part of the patch containing only part of the face, like this one.

1

运行库Setting

于老师的代码非常不错,带来方便,但是您的dll有依赖呀
s5 7rdt gn i ug ztzs_4
其他机器
1 6uj la9 5l 05ss3osoa

有的计算机没有此库就跑不起来,dll动态加载,会找不到函数接口;所以建议运行库设置为MT;

iOS无法使用

iOS x8_64和arm64都不支持,请问以后会支持吗?

License for Linux

HI,

it is a great work.
would you please help to describe the license fee if we want to use it on Linux system?
thanks a lot.

Linux?

It's working great!
You are so appreciated if provide us with source files of the binary library for Unix.
Thanks

Linux

as title says, could u provide a version of linux.

landmark sway

when use webcam and stop motion.
but landmark sway....

64bit

请问能提供64位下的文件吗?

多线程调用

您好,11 月 10 日更新的这个版本您说的是可以在多线程调用,但是我用 VS2015(以及 opencv 3.1)测试发现,还是没法多线程同时调用啊,必须要加锁。
另外,您提供的 dll 似乎是 VS2010 编译的,而新版的接口里面用到了 vector,编译器版本不匹配时在 vector 析构的时候就会出现问题,除非调用之前为 vector 预留足够的空间。

如何将代码封装成库

您好,我想把代码编译成库供他人使用,我的源代码中有二十个类,分别声明和定义在不同的20个头文件和源文件中,我要如何做才能将代码做成类似您的样子,只提供一个头文件和一个库文件,他人就能使用呢?谢谢您的指导。

Java JNA 调用失败

当使用 JNA 调用时,由于头文件 __declspec(dllexport) 时没有 extern "C" 而导致无法调用 dll 的函数。
当定义了之后,如果没有 #define FACEDETECTDLL_EXPORTS 也会导致无法调用。

Confused about the pointer pResults

Dear Mr Yu,
Hello,sir! You libfacedetection lib is so cool, thanks for your contribution.Now I have a quertion,that is about the poter pResults. In the code the face rectangular box together with the 68 key points neighbors and yaw angle can be get from the pResults. In fact I do not understand how to get all these just by short * p = ((short*)(pResults + 1)) + 142 * i. Look forward for your reply! Thank you!

Why is this library a binary?

This isn't very useful for non-Windows 32-bit users, and doesn't represent open source code since this is actually a binary release. Why would you not provide the code that you used to create the lib? For example, I don't use Windows and so I cannot use this library!

memory leak

你好, 这个检测方法真的非常好用,不过无意中我发现了一个内存泄漏的BUG。 当我用来在视频中检索人脸的时候,我测试的图像尺寸是352x192,没有问题。但是把原始图片截取小尺寸人脸目标(比如85x83)进行连续检测的时候,会发生内存泄漏的问题,而且比较明显。希望尽快看看

How can I get a commercial license for source code?

Doctor Yu.
I downloaded the library and binary file and it works well.
High speed and accuracy. Awesome.
Then I am going to build embedded arm(stm32 etc) project using this detector. (without linux).
Could you let me know how can I get a source code?
Thank you.

Can not alloc memory for data.

I use your library in java with jni. And this error happens if i'm run "facedetect_frontal" function about 350-400 times. Can you tell me what mean this error ? How i can resolve it ? Thank you.
`
#include "faceSwap_OurNativeLib.h"
#include "facedetect-dll.h"
#include <opencv2/opencv.hpp>
#include
#include
#include
using namespace std;
using namespace cv;
#define DETECT_BUFFER_SIZE 0x20000

JNIEXPORT jintArray JNICALL Java_faceswap_OurNativeLib_getPointsAndRec
(JNIEnv * env, jobject obj, jlong matAddr, jfloat scale, jint min_neighbors,jint minObjectWidth,jint maxObjectWidth,jint dolandmark)
{
jintArray rezult = nullptr;
Mat * inputMat = (Mat*)matAddr;
Mat gray;
cvtColor(*inputMat, gray, CV_BGR2GRAY);
int * pResults = NULL;
//pBuffer is used in the detection functions.
//If you call functions in multiple threads, please create one buffer for each thread!
unsigned char * pBuffer = (unsigned char *)malloc(DETECT_BUFFER_SIZE);
if (!pBuffer)
{
fprintf(stderr, "Can not alloc buffer.\n");
rezult = env->NewIntArray(1);
return rezult;
}

///////////////////////////////////////////
// frontal face detection / 68 landmark detection
// it's fast, but cannot detect side view faces
//////////////////////////////////////////
//!!! The input image must be a gray one (single-channel)
//!!! DO NOT RELEASE pResults !!!
pResults = facedetect_frontal(pBuffer, (unsigned char*)(gray.ptr(0)), gray.cols, gray.rows, (int)gray.step,
	scale, min_neighbors, minObjectWidth, maxObjectWidth, dolandmark);


if ((*pResults) <= 0)
{
	fprintf(stderr, "Nofaces.\n");
	rezult = env->NewIntArray(1);
	return rezult;
}

rezult = env->NewIntArray((*pResults) * 140);
if (rezult == nullptr)
{
	fprintf(stderr, "Can not alloc rezult memory.\n");
	rezult = env->NewIntArray(1);
	return rezult;
}
//jint bodyOfrezult[140];
//for (int i = 0; i < (pResults ? *pResults : 0); i++)
//{
//	short * p = ((short*)(pResults + 1)) + 142 * i;
//	for (int k = 0; k < 4; k++)
//	{
//		bodyOfrezult[k] = p[k];
//	}
//	if (dolandmark)
//	{
//		for (int j = 4; j < 140; j++)
//		{
//			bodyOfrezult[j] = ((int)p[2 + j]);
//		}
//		env->SetIntArrayRegion(rezult, i * 140, 140 , bodyOfrezult);
//	}
//}
free(pBuffer);
gray.release();
return rezult;

}

`

请问能否提供AVX指令集的版本?

您好,谢谢您提供的这个库,非常有效!不过libfacedetect-x64.dll在新版Intel i3上的执行速度还是不够理想(有时候慢到34甚至50ms),所以请问老师您能分享一套用AVX指令集编译的版本吗?我自己测试的是AVX和AVX2速度基本一样,但都比标准指令集快很多,比 #26 (comment) 中提到的 SSE2 应该也能快一些。

port to linux

Hi. Would you mind creating a library file for Linux? I need to use it on an embedded system.

This would be a very very tough question!

in your earlier issue, you admitted that you use multi-block LBP approach in face detection.
http://docs.opencv.org/3.2.0/dc/d88/tutorial_traincascade.html
In the bottom part of the website, it shows that the opencv Cascade Classifier Training LBP mode is using multi-block LBP as feature.
1
So here comes the tough question:
Did your group use opencv3.0 to train your face detection model and rewrite into C code?
if not, do you think the opencv3.0 LBP mode can train the performance-similar model with your database(20GB negative samples).

mingw: ld returned 1 exit status

I compiled the example code using mingw and got this error:
obj\Release\main.o:main.cpp:(.text.startup+0x20d)||undefined reference to `_imp___Z18facedetect_frontalPhS_iiifiiii'|
I also convert .lib to .a with reimp, but It doesn't work.
What should I do? Thanks a lot!

shape predicator model

Hi shiyu,
Thanks for sharing your excellent works, and I noticed that your dll file is just about 10M,whereas the shape predicator in dlib is about 95M,so my question is that don't you need a shape predicator in your code? If so,can you explain how to do that in your porject?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.