os_shiny_court_ref: A shiny app to define a court reference

Description Usage Arguments Value Examples

View source: R/shiny_courtref.R

Description

A shiny app to define a court reference

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
os_shiny_court_ref(
  image_file,
  video_file,
  t = 60,
  existing_ref = NULL,
  court = "tennis",
  include_net = FALSE,
  launch_browser = getOption("shiny.launch.browser", interactive()),
  ...
)

Arguments

image_file

string: path to an image file (jpg) containing the court image (not required if video_file is supplied)

video_file

string: path to a video file from which to extract the court image (not required if image_file is supplied)

t

numeric: the time of the video frame to use as the court image (not required if image_file is supplied)

existing_ref

list: (optional) the output from a previous call to ov_shiny_court_ref(), which can be edited

court

string: the type of court, currently only "tennis"

include_net

logical: if TRUE, include reference points for the net

launch_browser

logical: if TRUE, launch the app in the system browser

...

: additional parameters (currently ignored)

Value

A list containing the reference information

Examples

1
2
3
if (interactive()) {
  os_shiny_court_ref(image_file = os_example_image("tennis_court"))
}

openvolley/opensportml documentation built on Jan. 26, 2021, 1:34 a.m.