video

package
v0.0.0-...-e05d22d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoServer

type VideoServer struct {
	// contains filtered or unexported fields
}

func NewVideoServer

func NewVideoServer(log logs.Log, db *gorm.DB, storage storage.Storage, storageCache *storagecache.StorageCache) *VideoServer

func (*VideoServer) HttpGetLabels

func (s *VideoServer) HttpGetLabels(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

func (*VideoServer) HttpGetVideo

func (s *VideoServer) HttpGetVideo(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

func (*VideoServer) HttpListUnlabeledVideos

func (s *VideoServer) HttpListUnlabeledVideos(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

This API was created for the background labeler, which long-polls this API.

func (*VideoServer) HttpListVideos

func (s *VideoServer) HttpListVideos(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

func (*VideoServer) HttpPostLabels

func (s *VideoServer) HttpPostLabels(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

func (*VideoServer) HttpPutVideo

func (s *VideoServer) HttpPutVideo(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

Upload a video. A video is a zip file containing the following files: - lowRes.mp4 - highRes.mp4 The low res video should be from the low res stream of the camera, so that we can train on the exact same video that we are using for inference.

func (*VideoServer) HttpVideoThumbnail

func (s *VideoServer) HttpVideoThumbnail(w http.ResponseWriter, r *http.Request, params httprouter.Params, cred *auth.Credentials)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL