get_blackfly_timestamp_from_vidtime: Returns Blackfly Timestamp based on Video Number and Seconds...

View source: R/get_blackfly_timestamp_from_vidtime.R

get_blackfly_timestamp_from_vidtimeR Documentation

Returns Blackfly Timestamp based on Video Number and Seconds in

Description

Returns a vector of Blackfly Timestamps corresponding to video_col and video_sec by using those two parameters to approximate frame number (or can use Total Frame Number directly) and then matches that frame number to a table to see when that frame was recorded.

Usage

get_blackfly_timestamp_from_vidtime(
  video_col,
  seconds_col,
  Total_Frame = NULL,
  cam_timestamp,
  cam_filepath,
  test = FALSE,
  vid_length = 1,
  fps = NULL
)

Arguments

video_col

vector of video numbers (must be same length as seconds_col)

seconds_col

vector of seconds in video (must be same length as video_col)

Total_Frame

Total Frame Number can be used instead of video_col and seconds_col

cam_timestamp

vector of camera timestamps (must be same length as cam_filepath)

cam_filepath

vector of filepaths from balckfly camera (must be same length as cam_timestamp)

test

if TRUE output will be a tibble that can be used to check if the function is working correctly

vid_length

Length of each video in minutes

fps

Frames Per Second


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.