Ask Your Question

Amogh's profile - activity

2020-06-09 18:10:35 -0500 received badge  Enlightened (source)
2020-06-09 18:10:35 -0500 received badge  Good Answer (source)
2020-01-29 12:37:07 -0500 edited question Is there any limit on maximum number of faces detected using DNN face detector?

Is there any limit on maximum number of faces detected using DNN face detector? By using OpenCV version 4.2.0 in c++ (VS

2020-01-29 12:35:51 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Im sorry again. :(, I updated the question with code.

2020-01-29 12:35:11 -0500 edited question Is there any limit on maximum number of faces detected using DNN face detector?

Is there any limit on maximum number of faces detected using DNN face detector? By using OpenCV version 4.2.0 in c++ (VS

2020-01-29 11:55:12 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Im sorry again. :(

2020-01-29 11:22:22 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Sorry, actually it is posted on stackoverflow, link to SO question is alredy added in the question here.

2020-01-29 11:21:44 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Sorry, actually it is posted on stackoverflow, link to SO question is alredy added question here.

2020-01-29 11:16:45 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Sorry, actually it is posted on stackoverflow, link to SO question is alredy added question here.

2020-01-29 11:04:40 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

If you checked the code then, i m resizing the image to 300x300. Even when i cropped image then the resolution was 481x5

2020-01-29 10:49:06 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Then, I still have question why it cannot detect all faces even if I set threshold to .12 and when i crop image then it

2020-01-29 06:05:34 -0500 received badge  Supporter (source)
2020-01-29 06:01:36 -0500 commented answer Is there any limit on maximum number of faces detected using DNN face detector?

Okay. So, can we say that, as maximum of 200 possible detection is the limit. So when we pass an image having so many fa

2020-01-29 05:31:12 -0500 edited question Is there any limit on maximum number of faces detected using DNN face detector?

Is there any limit on maximum number of faces detected using DNN face detector? By using OpenCV version 4.2.0 in c++ (VS

2020-01-29 05:31:03 -0500 received badge  Student (source)
2020-01-29 05:29:19 -0500 received badge  Nice Answer (source)
2020-01-29 05:26:26 -0500 asked a question Is there any limit on maximum number of faces detected using DNN face detector?

Is there any limit on maximum number of faces detected using DNN face detector? By using OpenCV version 4.2.0 in c++ (VS

2020-01-29 05:13:01 -0500 edited answer cv::imread() fails when I use opencv and dlib in single c++ project

I could able to solve the issue with the guidance from Davis King (owner dlib), It's due to conflict between libjpeg lib

2020-01-29 05:13:01 -0500 received badge  Editor (source)
2020-01-29 02:19:19 -0500 received badge  Teacher (source)
2020-01-29 02:19:19 -0500 received badge  Self-Learner (source)
2020-01-29 02:19:09 -0500 marked best answer cv::imread() fails when I use opencv and dlib in single c++ project

I have a c++ project created in visual studio 2019. I compiled and build openCV version 4.2.0 and dlib version 19.19.0 and used in my c++ project. My motto using opencv and dlib in single project is I want to do face detection using opencv's DNN (caffe) and dlib's hog + svm based face detector (get_frontal_face_detector()).

My both functions are separate, i.e detectFaceByOpenCVDNN() for opencv based face detection and detectFaceBydlibHOG() for dlib based HOG + SVM based detector.

I added include directory of both projects, lib directories (additional library directories) and mentioned additional dependencies with .lib files.

Build of this project is successful and generates .lib file. By using this file another c++ console application calls for detectFaceByOpenCVDNN() (opencv face detector).

Code of detectFaceByOpenCVDNN():

#include <opencv2/imgcodecs.hpp>
#include <opencv2/dnn/dnn.hpp>

#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/gui_widgets.h>
#include <dlib/image_io.h>

using namespace dlib;
using namespace std;
using namespace cv::dnn;

void namespace_name::FaceDetection::detectFaceByOpenCVDNN(std::string filename)
{    

Net net;        
cv::Mat frame = cv::imread(filename);

if (frame.empty())
    throw std::exception("provided image file is not found or unable to open.");

int frameHeight = frame.rows;
int frameWidth = frame.cols;
    .... // code continues
}

When I this function, I receive exception as "provided image file is not found or unable to open." which is throw if frame.empty() return true. No other exception is displayed on console.

While just digging what makes this fail, I got to know that, If I remove dlib19.19.0_debug_32bit_msvc1924.lib entry from Properties->Linker->Input->Additional Dependencies then frame.empty() returns false and program continues.

One more observation, Even if I remove every code related to dlib (detectFaceBydlibHOG() function, #include entries, using statements) then also cv::imread() fails. But, as soon as I remove entry of dlib19.19.0_debug_32bit_msvc1924.lib from Additional Dependencies program reads image.

Why cv::imread() fails when I use opencv and dlib in single c++ project?

2020-01-28 11:49:32 -0500 commented question cv::imread() fails when I use opencv and dlib in single c++ project

I could able to solve the issue with the guidance from Davis King (owner dlib), It's due to conflict between libjpeg lib

2020-01-28 06:16:49 -0500 asked a question cv::imread() fails when I use opencv and dlib in single c++ project

cv::imread() fails when I use opencv and dlib in single c++ project I have a c++ project created in visual studio 2019.