Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record video & get access to data #6

Open
timschr opened this issue May 17, 2021 · 0 comments
Open

Record video & get access to data #6

timschr opened this issue May 17, 2021 · 0 comments

Comments

@timschr
Copy link

timschr commented May 17, 2021

I can connect to the camera (Phantom Veo410L) by camera.connect(), but in the get_single_frame.py I get

Traceback (most recent call last):
  File "get_single_frame.py", line 22, in <module>
    get_single_frame(take_number=0, frame_number=0)
  File "get_single_frame.py", line 15, in get_single_frame
    frame_index = int(camera.takes[take_number]["firstfr"]) + frame_number
  File "/home/tim/.local/lib/python3.8/site-packages/pyphantom/flex.py", line 458, in __getitem__
    raise IndexError
IndexError

since camera.takes is empty. How can I start a recording using the pyphantom framework?
I found the toggle() function in flex.py, which makes the cameras red led blink. When I now execute get_frames(), I get the error:
CameraError: Cinemag not ready
So how can I get frames from the camera?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant