Giter Club home page Giter Club logo

Comments (6)

mandria avatar mandria commented on September 16, 2024

hi i downloaded the code and i saw the video file option, i have a little problem with it, when i commented out the _USE_LIVE_VIDEO option i get some errors with the kinekt objects,
i commented out those little kineckt parts, and work fine, now i'm testing the use of reference movies to get live stream, without results until now, i'm trying with an h264 stream maybe i can test with a little openframework app to test the vidPlayer alone, if you have suggestions let me know

from opentsps.

mandria avatar mandria commented on September 16, 2024

i've implemented in opentsps ofx_ipcamera to get stream from axis cameras from the network,
if could be interesting, i can implement it in a fork so you can view if work fine for you

from opentsps.

robotconscience avatar robotconscience commented on September 16, 2024

that would be awesome, would love to look at it. can you add it as a separate app and submit a pull request?
e.g. openTSPS/standalone/IP_Camera

from opentsps.

robotconscience avatar robotconscience commented on September 16, 2024

Closing this as an issue. Will be adding a tutorial soon on the new openTSPS.com site about how to implement your open ofxTSPS::Source, which makes doing stuff like this (in TSPS 1.3+) much simpler!

from opentsps.

jmarsico avatar jmarsico commented on September 16, 2024

was this fork ever posted? i'm interested in doing the same thing, but if it's already been done i'd like to check it out. if not, what's the best place in the codebase to get started?

from opentsps.

robotconscience avatar robotconscience commented on September 16, 2024

Hello! It doesn't look like he posted that fork. What you'd need to do is extend ofxTSPS::Source and provide pixels for your source via getPixels() and getPixelsRef(). Check out he OpenNI2 source as a reference:
https://github.com/labatrockwell/openTSPS/blob/master/addons/ofxTSPS/libs/ofxTSPS/include/ofxTSPS/source/OpenNI2.h

If the class you're extending already wraps those, such as ofVideoGrabber, your class will look more like ofxTSPS::VideoFile:
https://github.com/labatrockwell/openTSPS/blob/master/addons/ofxTSPS/libs/ofxTSPS/include/ofxTSPS/source/VideoFile.h

From there, you just have to call "setSource" on your TSPS object and pass a pointer to your custom source:

    // call open on your custom source
    source.openSource(320,240 );

    // add your custom source, assuming "peopleTracker" is ofxTSPS::PeopleTracker
    peopleTracker.setSource(source);

In the TSPS standalone apps, your ofApp simple extends TSPS::Delegate, which sets up and includes peopleTracker like above.

Let me know if you have more questions! Hope the quick intro is helpful.

from opentsps.

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.