class

EdgeAI::Monitor

Inherits EdgeAI::Base < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

Constants

DETECT_MUTEX = Mutex.new
DETECT_SOCKETS = Hash(String, Array(HTTP::WebSocket)).new do |hash, key| hash[key] = [] of HTTP::WebSocket end
PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json", "application/yaml"]
STREAM_MUTEX = Mutex.new
STREAM_PLAYBACK = Hash(String, ConfidenceMonitor).new
STREAM_SOCKETS = Hash(String, Array(HTTP::WebSocket)).new do |hash, key| hash[key] = [] of HTTP::WebSocket end

Class methods

base_route

Helper for obtaining base route

stream(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)

Helper methods for performing redirect_to calls

stream_to_sockets(monitor : ConfidenceMonitor)
Source

Instance methods

base_route(*args, **options)

Helper for obtaining base route

base_route(*args, **options, &)

Helper for obtaining base route

config
Source
config?
Source
detect(socket)

pushes detections found in the video stream in realtime to connected sockets

Source
detect_default(socket)

pushes detections found in the first video stream in realtime to connected sockets

Source
find_configuration_config(id : String)
Source
stream(socket)

pushes the video stream down the websocket

Source