In order to enrich the human-computer interaction methods,this work realizes common mouse control through facial movements on PC based on the application of OpenCV and MediaPipe in facial recognition.The specific method is to capture the key points of user's face in the video frame transmitted by the camera,and perform corresponding operations ac-cording to the position changes of the key points.The actual test results show that this program can effectively achieve com-mon mouse operations such as moving the cursor,clicking the left and right mouse buttons,and dragging the scroll bar through simple facial movements,and has high recognition accuracy.It is a low-cost practical technology that can replace mouse operations for special users and specific environmental conditions.