Laboratory fire detection based on flame color and dynamic law