GithubHelp home page GithubHelp logo

New version & Augmented Images about ofxarcore HOT 8 OPEN

halfdanj avatar halfdanj commented on June 5, 2024 1
New version & Augmented Images

from ofxarcore.

Comments (8)

boehm-e avatar boehm-e commented on June 5, 2024 1

I added HitPose API too :

void DrawApp::touchDown(int x, int y, int id) {

  ofHitPose *hitPose = arcore->getHitPose(x, y);

  if (pose != NULL) {
    ofMatrix4x4 pose = hitPose->pose;
    float distance   = hitPose->distance;
  }

}

from ofxarcore.

boehm-e avatar boehm-e commented on June 5, 2024 1

I added PlaneDetection API :

void ofApp::draw() {

    vector<ofARPlane*> planes = arcore->getPlanes();

    // for each plane
    for (int i = 0; i < planes.size(); i++) {

        // translate to it's center
        ofARPlane *plane= planes[i];
        ofPushMatrix();
        ofMultMatrix(plane->center);

        // draw a red box on it's center
        ofSetColor(255,0,0,100);
        ofDrawBox(0,0.025,0, 0.2, 0.05, 0.1);

        // draw the plane
        ofSetColor(0,255,0,100);
        plane->mesh.draw();

        // draw the path (contours)
        ofSetColor(0,0,255,100);
        plane->path.draw();

        ofPopMatrix();
    }

from ofxarcore.

johanjohan avatar johanjohan commented on June 5, 2024

thank you @boehm-e !

from ofxarcore.

HalfdanJ avatar HalfdanJ commented on June 5, 2024

Nice one, yeah I've unfortunately not had any projects that gave me an opportunity to update the library. Would you be interesting creating a PR with these changes to this repo?

from ofxarcore.

boehm-e avatar boehm-e commented on June 5, 2024

Yes of course :)

from ofxarcore.

johanjohan avatar johanjohan commented on June 5, 2024

so good to see this revitalizing

from ofxarcore.

boehm-e avatar boehm-e commented on June 5, 2024

I created a new repo on my GitHub (because fork has no visibility).
Happy you enjoy it.
If you want more functionalities tell me, I think there should be more projects that use arcore...
Here is a video of to the plane API test : https://youtu.be/t8fvPyDhPHA

from ofxarcore.

johanjohan avatar johanjohan commented on June 5, 2024

@boehm-e A great feature would be the integration of the camera api since i need to synchronize the cam with devices like video projectors. The wrong shutter speed kills the tracking and target recognition. This seems to be possible by now: https://developers.google.com/ar/develop/java/camera-sharing

from ofxarcore.

Related Issues (16)

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.