Deformable part model implementation

asked 2016-11-09 00:02:24 -0500

has anyone implemented DPM in opencv? I found one implementation:

http://www.cnblogs.com/louyihang-love...

but that only detects the entire person, ie the root filter. I wanted to know how to detect the different parts. tried going through the dpm detector class in opencv but the opencv documents don't elucidate the concept well.

So, appreciate any help!

edit retag flag offensive close merge delete

Comments

1

short correction: it returns the boundingbox of all part filters, not the box of the root filter.

(but admittedly, you''ll have a hard time, accessing the parts, the interface was not made for that.)

berak gravatar imageberak ( 2016-11-09 01:09:45 -0500 )edit

But if you decide to break it open, keep us posted, I would love to have access to the different part filters.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-11-09 04:14:38 -0500 )edit

okay i did break open the code and found where the parts are being stored, but I'm facing another problem. That link uses the classes already in opencv(the dpm_cascade_detector.cpp, dpm_cascade.cpp,dpm_cascade.hpp, etc) and when I change the code in those .cpp files to get the parts, it is not getting reflected in the output. When I run it in debug mode, it shows a message with the location of the source file (dpm_cascade_detector.cpp which I modified to get the part locations), the location of the module(the .dll file) and at the bottom says: "source file is different from when the module was built. Would you like the debugger to use it anyway?" and i have an option of yes or no. When I say no it lets me choose a source file and for both options I only get detection around each person

abhijith gravatar imageabhijith ( 2016-11-11 04:44:06 -0500 )edit

I hope I did an okay job of explaining what im facing! I think whats happening is that its using the existing dll file present in opencv and those changes that im making to those source files aren't getting compiled? Appreciate any help! @StevenPuttemans

abhijith gravatar imageabhijith ( 2016-11-11 04:47:43 -0500 )edit
1

you have to rebuilld the dpm module, if you change code there (meaning - rebuild opencv)

berak gravatar imageberak ( 2016-11-11 04:51:11 -0500 )edit

cmake only , if you added or rremoved a file. but make && make install, for sure ! (or build the INSTALL project, if using VS)

berak gravatar imageberak ( 2016-11-11 05:55:13 -0500 )edit