Repository navigation
Add shared video schema: recordings, cameras and processed videos - #16
Open
deruyter92 wants to merge 3 commits into
Open
deruyter92 wants to merge 3 commits into
deruyter92 wants to merge 3 commits into
Conversation
The reader lives in ingestion/video/_transient until dlccore provides it.
VideoRecording (-> Session, -> Camera, take --- -> VideoFile, start_time) with FrameTimestamps; register_video_recording registers the video and the recording, and refuses a camera of another lab.
A lab's named processing recipe (steps as JSON) and the video it made from a recording; ensure_video_transform, register_processed_video.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shared video tables. A video only needs to be a registered file; linking it to a session is optional.
Changes
Tables
video.VideoFile(-> File): fps, size and frame count read with OpenCV.video.Camera(-> Lab,camera_code): a camera or view, named by the lab.video.VideoRecording(-> Session, -> Camera, take): one take of one camera in a session;-> VideoFile.video.VideoRecording.FrameTimestamps: frame times in seconds.video.VideoTransform(-> Lab,transform_code): a lab's processing recipe; the steps are stored as JSON that SCENE does not interpret.video.ProcessedVideo(-> VideoRecording, -> VideoTransform): the processed video;-> VideoFile.helpers
register_video,register_video_recording,ensure_video_transform,register_processed_video. Each is safe to run again and refuses conflicting content.Notes
VideoFile. Downstream tools (like dlc) can also use videos that come from no registered session.n_frames