Giter VIP home page Giter VIP logo

Comments (8)

kylemcdonald avatar kylemcdonald commented on August 15, 2024

Unfortunately I don't have any iOS experience so I can't help with this one. Sorry! Let me know if you figure it out.

On Dec 12, 2012, at 3:36 AM, mayankchouhan1089 [email protected] wrote:

Hi Kyle,

I am getting an exception error while trying to run a sample application for faceTracking.

I have made OfxCv to work in iOS and ofxCv is working fine.

exception arises in :

tracker.update(toCv(cam));

I am not able to figure out why this arises an exception for iOS while the same statement works fine for Window OS.

Awaiting your reply :)


Reply to this email directly or view it on GitHub.

from ofxfacetracker.

danoli3 avatar danoli3 commented on August 15, 2024

This seems to happen when the cam image is not set / initialised.
I noticed this same error crop up when I was running a face tracker app in the iOS Simulator with the camera code defined out and using a un-initialised ofImage instead of the cam (fixed by initialising that image but yeah, was the same error)

Same kind of problem I noticed happening on a iOS device when using the threaded face tracker and not passing any image to it for a considerable amount of time. I am still trying to track this one down.

from ofxfacetracker.

rishipandey avatar rishipandey commented on August 15, 2024

@danoli3 any solution for above issue yet?

from ofxfacetracker.

danoli3 avatar danoli3 commented on August 15, 2024

Just always pass the tracker a initialised ofImage (either from the cam feed or just a loaded image). Seems to do the job :)

from ofxfacetracker.

rishipandey avatar rishipandey commented on August 15, 2024

@danoli3 I am doing something like this, but still giving me exception -

void testApp::update() {
    cam.initGrabber(480, 360);
    cam.update();

    if(cam.isFrameNew()) {
        Mat camMat = toCv(cam);
        tracker.update(camMat);
        **************
}

Can you please provide me any hint, what i am doing wrong in it.

from ofxfacetracker.

danoli3 avatar danoli3 commented on August 15, 2024

This is what I am doing:
members:

ofxCvColorImage colorCv;
ofxFaceTrackerThreaded tracker;

init:

colorCv.allocate(cam.getWidth(),cam.getHeight());

update:

cam.update();
colorCv = cam.getPixels();
tracker.update(toCv(colorCv))

from ofxfacetracker.

rishipandey avatar rishipandey commented on August 15, 2024

@danoli3 Thanks for quick reply, it started working, i think use of "ofxFaceTrackerThreaded" fixed the issue.

But still I am getting some warning "ofGLRenderer::draw(): texture is not allocated", will try to resolve those on my own.

from ofxfacetracker.

rishipandey avatar rishipandey commented on August 15, 2024

I tried couple of things, still getting these in logs. Attached the screen shot of iPad as well.

2013-07-04 15:19:52.015 iFaceRecognizer[2239:907] ofxiPhoneAppDelegate
2013-07-04 15:19:52.266 iFaceRecognizer[2239:907] Creating OpenGL ES2 Renderer
2013-07-04 15:19:52.270 iFaceRecognizer[2239:907] Failed to load vertex shader
2013-07-04 15:19:52.271 iFaceRecognizer[2239:907] Failed to compile vertex shader
2013-07-04 15:19:52.272 iFaceRecognizer[2239:907] OpenGL ES2 failed

2013-07-04 15:19:52.293 iFaceRecognizer[2239:907] Creating OpenGL ES1 Renderer
2013-07-04 15:19:52.317 iFaceRecognizer[2239:907] WARNING: -[<AVCaptureVideoDataOutput: 0x20b8c80> setMinFrameDuration:] is deprecated. Please use AVCaptureConnection's -setVideoMinFrameDuration:
2013-07-04 15:19:54.121 iFaceRecognizer[2239:907] layoutSubviews
[notice] Device orientation changed to 1
Device 0: Back Camera
Device 1: Front Camera
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated
[warning] ofGLRenderer::draw(): texture is not allocated

Any idea on this?
img_0134

from ofxfacetracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.