Skip to content

Asmaathabet/computer-vision-OpenCV-projects

Repository files navigation

Computer Vision Projects using OpenCV :

Projects :

1- Face Detection.

2- Hand gesture Volume Control.

3- Send Whatsapp Messages Automatically in Python

4- Transform Your Eyes into a Mouse

5- Security camera for house

6- Capturing Smiling Face

Installations

Virtual environment to run the packages:

To run the virtual environment for packages
1- open powershell
2- navigate to the project routes
3- type: cv_env\Scripts\activate
if the script didn't work :

  • open powershell as adminstrator
  • type : Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  • type Y for yes
  • close powershell & repeat the steps again.

4- it should show something like this :
alt text
5- install pip install opencv-python mediapipe==0.10.9 pyautogui protobuf==3.20.3

6- type python -c "import mediapipe as mp; print(mp.__version__)" to check if its installed correctly
it should shows: 0.10.9

7- force VS CODE to use the venv

  • Open VS Code
  • Press Ctrl + Shift + P
  • Select Python: Select Interpreter
  • Choose THIS EXACT PATH:
    {your_project_route}\cv_env\Scripts\python.exe
  • Restart VS Code completely

Issue: Losing the virtual environment

Solution: Recreate the virtual environment

1 - Delete the broken folder From:

PS D:\2026\Developing\computer_vision\cv_projects>

Run:

Remove-Item -Recurse -Force .\cv_env

If it says the folder doesn’t exist, that’s fine.

2 - Recreate the virtual environment (CRITICAL COMMAND) Run this exact command:

C:\Users\HP\AppData\Local\Programs\Python\Python310\python.exe -m venv cv_env

Wait until it finishes. It should return you to the prompt with no errors.

3 - Verify it was created correctly Run:

dir .\cv_env\Scripts

You must now see files like:

Activate.ps1
activate.bat
python.exe
pip.exe

If you see these, the environment is valid.

4 - Activate (PowerShell) ``.\cv_env\Scripts\Activate.ps1`

Your prompt must change to:

(cv_env) PS D:\2026\Developing\computer_vision\cv_projects>

5 - Install your packages (inside the venv) With (cv_env) visible:

pip install opencv-python mediapipe==0.10.9 pyautogui protobuf==3.20.3

6 - Tell VS Code to use the venv (important)

Open VS Code

Ctrl + Shift + P

Python: Select Interpreter

Choose:

D:\2026\Developing\computer_vision\cv_projects\cv_env\Scripts\python.exe

Restart VS Code

specific installations for projects:

you should install these packages inside your environment or virtual environment

  • Whatsapp automated message

pip install pywhatkit

About

Implemented multiple real-time computer vision applications using OpenCV and Python. These projects demonstrate real-time video processing, facial landmark detection, gesture recognition, and human-computer interaction techniques and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages