kylemcdonald / ofxEdsdk

Interfacing with Canon cameras from openFrameworks for OSX. An alternative to ofxCanon and CanonCameraWrapper.
Other
112 stars 51 forks source link

no known conversion from 'ofxEdsdk::Camera' to 'cv::Mat &' #53

Open Javingka opened 7 years ago

Javingka commented 7 years ago

Hi folks,

I'm stuck trying yo get a cv::Mat format from the camera Cannon Mark II image.

The basic example from ofxEdsdk works, but when I try to use it inside a project for FaceTracking I can't apply the toCv() method, throw the error 'No matching function for call to 'toCv'

void ofApp::update() {
    cam.update();
    if(cam.isFrameNew()) {

        cv::Mat imgMat = toCv( cam ) //<-
        camTracker.update(imgMat);
      .
      .
      .

This code works with a webcam, I think the key to solve this problem is in this sentence from Xcode: 'Candidate function not viable: no known conversion from 'ofxEdsdk::Camera' to 'cv::Mat &' for 1st argument

is kinda obvious the error is there but i just can't solve this! I'v been trying for weeks!. I hope some of you could help me.