Ask Your Question

danieln's profile - activity

2017-01-20 01:33:45 -0600 received badge  Editor (source)
2017-01-20 01:32:48 -0600 asked a question iOS development issue

Copied code from OpenCV iOS video processing tutorial: stackoverflow.com/questions/32491093/error-with-xcode-6-duplicate-interface-definition-for-class-viewcontroller/32491138#32491138 , and running into what I believe are 'linker' issues? But I have the whole iOS OpenCV framework included in the build phase.

What might be going wrong?

Undefined symbols for architecture x86_64:
  "_AVCaptureSessionPreset1280x720", referenced from:
      -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
  "_AVCaptureSessionPreset352x288", referenced from:
      -[ViewController viewDidLoad] in ViewController.o
      -[CvAbstractCamera init] in opencv2(cap_ios_abstract_camera.o)
      -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)
  "_AVCaptureSessionPreset640x480", referenced from:
      -[CvAbstractCamera initWithParentView:] in opencv2(cap_ios_abstract_camera.o)
      -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

... and 26 other related errors... Am I missing a certain header file? I thought including

#include <opencv2/opencv.hpp>

would be enough?

Also have

#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/video/video.hpp"
#include "opencv2/imgcodecs/imgcodecs.hpp"

included. Full src code is just copied from stackoverflow.com/questions/14274326/opencv-video-processing-tutorial-issue

2017-01-20 01:32:03 -0600 commented answer ReProjection function?

Sorry! Very new to this.. Just discovered could search recursively thru the project

2017-01-10 15:51:11 -0600 asked a question ReProjection function?

I pulled this project from here, (github : /freesouls/face-alignment-at-3000fps), and am trying to optimize the data loading of the program. I can't quite understand these few lines, however.

        // Face alignment
        cv::Mat_<uchar> tmp;
        gray.copyTo(tmp);
        cv::Mat_<double> current_shape = ReProjection(cas_load.params_.mean_shape_, bbox);
        // |current_shape| will be overwritten during the Predict call.
        cv::Mat_<double> res = cas_load.Predict(tmp, current_shape, bbox);
        for (int i = 0; i < res.rows; i++){
            cv::circle(frame, cv::Point2f(res(i, 0), res(i, 1)), 2, Scalar( 255, 255, 255 ));
        }

Nor could I find any reference to 'ReProjection' in the docuemntation, or CascadeRegressor... Other relevant lines:

        CascadeRegressor cas_load;
        Mat frame, gray;

Where might I find the appropriate documentation?