Safari's worker limitations mean that detection threads in the worker barely function. Until Apple quits being whiny jerks about PWAs, this workaround is required to bypass the message calls to the workers and use the old single threaded system when Safari is detected.
Reviewed-on: #193
Shared workers seem to cause problems with iOS (and sharing wasn't really required anyway), so this PR changes the shared workers to non-shared workers. As a benefit, it preloads the full model and video models simultaneously which iproves performance when starting the video and running post video detection.
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
Reviewed-on: #191
Closes: #30
When the camera is being used to find an image to capture, the region mini model now runs in real time to give an estimate of where there are identifiable structures.
Reviewed-on: #143