Skip to content

Record video & get access to data #6

Description

@timschr

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?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions