Automated safety control by video cameras