Ask Your Question

Juandisims's profile - activity

2015-11-06 02:13:36 -0600 commented question cvLatentSvmDetectObjects returns empty sequence

Hello! First of all thanks for reply :), I've tryed your solution but the problem is still there, I've realized that the sequence given by the method is maybe bad constructed, for example, if I have this code:

CvSeq* detections = cvCreateSeq(0, sizeof(CvSeq), sizeof(CvPoint)*2, memStorage);
int i = 0;
int64 start = 0, finish = 0;
cv::setNumThreads(numThreads);
try{printf("detections %f\n", (float)detections->total);}catch(Exception e){}
start = cvGetTickCount();
detections = cvLatentSvmDetectObjects(image, detector, storage, 0.1f, numThreads);

I've got that detections size is 0 before LatentSVM call, but if I try to count the size of detection after that the program crashes without log any information... What is happening?

Thanks again :).

2015-11-05 05:34:40 -0600 asked a question cvLatentSvmDetectObjects returns empty sequence

Hello everyone!

I'm trying to execute the example code of LatentSVM included in 'samples/c/latentsvmp.cpp' of openCV 2.4.11 version, but when the function cvLatentSvmDetectObjects is called always return an empty sequence. I'm using the default configuration and files given, do you have the same problem?

detections = cvLatentSvmDetectObjects(image, detector, storage, 0.1f, numThreads);

Thanks for all!