Coder Social home page Coder Social logo

slcapture.py from terminal about sltk HOT 10 CLOSED

prahjister avatar prahjister commented on September 27, 2024
slcapture.py from terminal

from sltk.

Comments (10)

prahjister avatar prahjister commented on September 27, 2024 1

Ok great that is why no captures yet. And I think beneficial to run slcapture and sldisp on the same box

from sltk.

prahjister avatar prahjister commented on September 27, 2024

One interesting thing is if i run from gui as i attempt to close the file i get some files generated each time i press the x to close

np,urlib,sys,cv2.os,time,optparse

They have a header with color info then a bunch of codes at

from sltk.

jhdewitt avatar jhdewitt commented on September 27, 2024

Got so focused on C++ dependencies, python deps totally slipped my mind.

slcapture.py has two only external dependencies: opencv (you have, i think) and pyOSC https://github.com/ptone/pyosc

I have updated the Compilation Guide with details on how to install pyOSC https://github.com/jhdewitt/sltk/wiki/Software-Setup-Guide

Next up, python dependency for slcapture.py:

  1. git clone https://github.com/ptone/pyosc

  2. cd pyosc

  3. sudo ./setup.py install

from sltk.

jhdewitt avatar jhdewitt commented on September 27, 2024

One interesting thing is if i run from gui as i attempt to close the file i get some files generated each time i press the x to close
np,urlib,sys,cv2.os,time,optparse
They have a header with color info then a bunch of codes at

Now this one, has me stumped! More details needed.

from sltk.

prahjister avatar prahjister commented on September 27, 2024

after install pyosc

prahjister@amlogic:~/sltk-master$ python slcapture.py
Traceback (most recent call last):
File "slcapture.py", line 827, in
client_display.connect( (display_server_addr, display_server_port) )
NameError: name 'display_server_addr' is not defined

from sltk.

prahjister avatar prahjister commented on September 27, 2024

What version of python should i be running slcapture.py?

from sltk.

jhdewitt avatar jhdewitt commented on September 27, 2024

Python 2

I'm running it on 2.7.14

from sltk.

prahjister avatar prahjister commented on September 27, 2024

I threw in an ip address and port...(not exactly sure which one) and it seems to be working

image

from sltk.

prahjister avatar prahjister commented on September 27, 2024

once those r defined looks like this one is good

from sltk.

jhdewitt avatar jhdewitt commented on September 27, 2024

yay !! small steps

slcapture continuously streams the images from mjpg-streamer and discards all images except for the ones "known" to have been taken just after sldisp reports the pattern was shown during a capture sequence

slcapture asks sldisp for pattern X. some time passes, and then sldisp has generated the pattern and VSYNC it out to display device, after which it sends back a packet to slcapture saying "pattern X is live as of time T". some time passes, and slcapture then saves the first image it gets with a timestamp after time T.

The program naively trusts timestamps, so if slcapture and sldisp are run on two computers with system clock offsets, it will act poorly and potentially be waiting many seconds before saving an image after a pattern has been shown.

from sltk.

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.