Documentation ¶
Index ¶
- type VideoServer
- func (s *VideoServer) HttpGetLabels(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpGetVideo(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpListUnlabeledVideos(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpListVideos(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpPostLabels(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpPutVideo(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
- func (s *VideoServer) HttpVideoThumbnail(w http.ResponseWriter, r *http.Request, params httprouter.Params, ...)
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)
Click to show internal directories.
Click to hide internal directories.