Using computer vision techniques for dangerous situation detection in domotic applications