Closed patriciastar closed 8 years ago
Why would you want to run this inside Eclipse when you can simply use cmake and run it from the executable?
Because this is only a part of a huge project I created using eclipse. I'm not used to cmake and I don't like cmake. Anyway I solved the problem by myself -> because of earlier tests, the flag ENABLE_ASSERTS had been set, removed it and speed is fine.
Hey, I'm using your code in my eclipse project (Ubuntu 64-bit) and I'm having two problems: 1) a delay of 3 seconds using the VideoCapture 2) an average speed of 500ms per frame instead of about 1ms (I added the flags -mavx and -msse4 under Project > Properties > C/C++ Build > Settings then on the Tool Settings tab GCC C++ Compiler > Miscellaneous and under Window > Preferences > C/C++ > Build > Settings on the Discovery tab chose CDT GCC Built-in Compiler Settings and add the flags to Command to get compiler specs) I also built in Release mode.
Do you have any idea how I can fix this? Here's the main part of my code (there is of cause a "<" in the includes in my code):
include dlib/image_processing/render_face_detections.h>
include dlib/gui_widgets.h>
include iostream>
include string>
include cmath>
include "head-pose-estimation/headposeestimation.h"
using namespace std;
int main(int argc, char\ argv) {
}`
Thanks in advance. Patricia