A novel algorithm for mask detection and recognizing actions of human