Time races with two phones.
To detect motion, we take the z score of the z score of the sum of the rgb components of each pixel in the camera stream. If the magnitude of the z score of z scores is greater than 2, it is highly likely that there was movement. The two devices will then share the times at which they detected movement with each other. The time taken to complete the course is the difference between the timestamps of the devices.
A flow chart of the motion detection algorithm is below.
yarn
yarn build # build app in production
yarn dev:livereload # start a dev server that reloads the app whenever a change is made
yarn dev:nollup # start a dev server that uses hmr to only reload changed portions of app
yarn dev:lan # start a livereload server and make it accessible on local network (useful for running on phone)
yarn dev # alias for yarn dev:nollup
yarn type:check # type-check your app
yarn type:check:watch # type-check your app whenever there is a change to source code
yarn start # serve your app locally
yarn format # format your app
yarn format:check # check your app's formatting
Stareye is developed by Ronak Badhe (r2dev2).