Pure Software code
 
www.puresoftwarecode.com

SOFTWARE Institute
Teach YourSelf
125 Software Programming Training Courses
For Free Download


CHRISTIANITY Institute
HUMANITIES Institute
Art Institute

All more the 500 Subjects, All for Free Download.
Lebanon  
Python Programming Courses
Software Institute / OpenCV  
 
  Home : Software Institute : Python Opencv Page 3 Home

Python Opencv Pages   -   1    2    3              

 
 
1-  Py-Opencv-HandTracking Python program, Building a Hand Tracking System Using Opencv
 
  1. Py-Opencv-HandTracking Python program, Building a Hand Tracking System Using Opencv
    • Hand Landmark Model

      .

    • Install the required modules of library
    • Define the main function:
      Check for the Working of the Webcam - (webcam = cv2.VideoCapture(0))
      Read the frames from the webcam and convert the image to RGB.
      Detect hands in the frame with the help of “hands.process()”  function.
      Once the hands get detected:
        1- locate the key points
        2- we highlight the dots in the keypoints using cv2.circle,
        3- and connect the key points using mpDraw.draw_landmarks.
     
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: Py-Opencv-HandTracking
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - Py-Opencv-HandTracking
      • Projct Folder: C:\Users\...\source\repos\Py-Opencv-HandTracking
      • Startup File: Py-Opencv-HandTracking.py
      • Project file: Py-Opencv-HandTracking.sln
    3. Download Python Project : Py-Opencv-HandTracking.zip - (11.1 KB zip file)   Download
    4. Project consist of:
       One Python Form - (Py_Opencv_HandTracking.py )

     

    Download Python Project : Py-Opencv-HandTracking.zip - (11.1 KB zip file)   Download    

     

     

  4. Install opencv, mediapipe and time in Python on Windows Operating System, Using Command Prompt
     
    1- Install  opencv  CV in Python on Windows Operating System, Using Command Prompt
             Note: cv2 the same as OpenCV
              In the Command prompt, use the following pip command to install the opencv library
                   
    pip install opencv-python 
     
     2- Install mediapipe in Python on Windows Operating System, Using Command Prompt
           pip install mediapipe
     
     3- Install time in Python on Windows Operating System, Using Command Prompt
           pip install lime
     
     
  5. Source Code of Python Project -Py-Opencv-HandTracking :

    Download this Source Code at python  file: Py_Opencv_HandTracking.py  - (1.70 KB Python file)   download   

       Py_Opencv_HandTracking.py Python Code, Building a Hand Tracking System Using Openc with  Webcam

     

     
  6. Debug Py-Opencv-HandTracking project, 0 Errors 
     
     
  7. Output of Python Project -Py-Opencv-HandTracking, is Using the Webcam of PC :
     
    1-  Output info,Info and Hand Ladmark Key Names
     
       
       
    2-  the Hands Tracking Images Models Output:
     
    2.1-

     the Right Hand Tracking Image

     
       
    2.2-

     the Left Hand Tracking Image

     
     

   
   
2-  Py-Opencv-BodyTracking Python program, Building a BodyTracking System Using Opencv
 
  1. Py-Opencv-BodyTracking Python program, Building a Body Tracking System Using Opencv
    • The pose landmarker model tracks 33 body landmark locations, representing the approximate location of the following body parts:

      The model output contains both normalized coordinates (Landmarks) and world coordinates (WorldLandmarks) for each landmark
    • Install the required modules of library
    • Define the main function:
      Check for the Working of the Webcam - (webcam = cv2.VideoCapture(0))
        1- locate the key points  of  Landmark Key numbers and names or Body/Pose Landmark
        2- Get the Position of image displayed, activate Print - (print(lmList))
        3- Show image Pose Landmark.
     
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: Py-Opencv-BodyTracking
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - Py-Opencv-BodyTracking
      • Projct Folder: C:\Users\...\source\repos\Py-Opencv-BodyTracking
      • Startup File: Py_Opencv_BodyTracking.py
      • Project file: Py-Opencv-BodyTracking.sln
    3. Download Python Project : Py-Opencv-BodyTracking.zip - (13.8 KB zip file)   Download
    4. Project consist of:
       One Python Form - (Py_Opencv_BodyTracking.py )

     

    Download Python Project : Py-Opencv-BodyTracking.zip - (13.8 KB zip file)   Download    

     

  4. Install opencv, mediapipe and time in Python on Windows Operating System, Using Command Prompt
     
    1- Install  opencv  CV in Python on Windows Operating System, Using Command Prompt
             Note: cv2 the same as OpenCV
              In the Command prompt, use the following pip command to install the opencv library
                   
    pip install opencv-python 
     
     2- Install mediapipe in Python on Windows Operating System, Using Command Prompt
           pip install mediapipe
     
     3- Install time in Python on Windows Operating System, Using Command Prompt
           pip install lime
     
     
  5. Source Code of Python Project -Py-Opencv-BodyTracking :

    Download this Source Code at python  file: Py_Opencv_BodyTracking.py  - (3.06 KB Python file)   download      

      Py_Opencv_BodyTracking.py Python Code, to Crea   

     

     
  6. Debug Py-Opencv-BodyTracking project, 0 Errors 
     
     
     
  7. Output of Python Project -Py-Opencv-BodyTracking, is Using the Webcam of PC :
     
    1-  Info, Pose Landmark Key numbers and names
     
       
    2-  Show of Output Data, is Using the Webcam of PC  - image
       
    Sample
     
     

     

     

   
 
Python Opencv Pages   -   1    2    3         
 
 www.puresoftwarecode.com  :  CHRISTIANITY Institute  HUMANITIES Institute  ART Institute & Others
 SOFTWARE Institute - "All Courses Free"    History of the MARONITES in Arabic  Basilica Architecture, in the Shape of a Cross

 Python, Teach yourSelf  Programs in 6 pages

 Holy BIBLE in 22 Languages and Studies ...  Le HANDICAP c'est quoi ?   (in French)  
 VISUAL STUDIO 2019, C# Programs, in English  220 Holy Christian ICONS  Drugs and Treatment in English, french, Arabic  Old Traditional Lebanese houses
 VISUAL STUDIO 2010 in English  Catholic Syrian MARONITE Church   Classification of Wastes from the Source in Arabic  5 DRAWING Courses & 3 Galleries
 VISUAL STUDIO .NET, Windows & ASP in En  HOLY MASS of  Maronite Church - Audio in Arabic  Christianity in the Arabian Peninsula in Arabic  Meteora, Christianity Monasteries - En, Ar, Fr
 VISUAL STUDIO 6.0 in English  VIRGIN MARY, Mother of JESUS CHRIST GOD  Summary of the Lebanese history in Arabic  Monasteries of Mount Athos & Pilgrimage
 Microsoft ACCESS in English  SAINTS of the Church  LEBANON EVENTS 1840 & 1860, in Arabic  Carved Rock Churches, Lalibela - Ethiopia
 PHP & MySQL in English  Saint SHARBEL - Sharbelogy in 10 languages, Books  Great FAMINE in LEBANON 1916,  in Arabic   4 Different STUDIES
 SOFTWARE GAMES in English  Catholic RADIO in Arabic, Sawt el Rab  Great FAMINE and Germny Role 1916,  in Arabic   SOLAR Energy & Gas Studies
 WEB DESIGN in English  Saint SHARBEL Family - Evangelization  Armenian Genocide 1915  in Arabic  Personal Protective Equipment
 JAVA SCRIPT in English  Читать - БИБЛИЯ и Шарбэль cвятой, in Russe  Sayfo or Assyrian Genocide 1915 in Arabic  WELCOME to LEBANON
 FLASH - ANIMATION in English  Apparitions of  Virgin Mary - Ar  Christianity in Turkey in Arabic  YAHCHOUCH, my Lebanese Village
 PLAY, 5 GAMES  Neocatechumenal Way   Prononce English and French and Arabic Letters  ZOUEIN, my Family - History & Trees
 Multi-Functional 4 Wheel Drive Robot Car          New  Holy BIBLE, for the Maronite Liturgical Year    About, my PRODUCTS, and Statistiques ...
   Holy BIBLE, according to Maronite Calendar, (2023)  Yahchouch Social Statistical Cultural Project  Traffic Statistics 2025 of PureSoftwareCode.com
   Holy BIBLE, Online Translation in 133 Languages    Site Map of  PureSoftwareCode.com
       REPORT, Cyber Attack Attacks the Current Site
   Andree Zouein Foundation  GIGI  L'AMOROSO Fashion and Jewellery  Josette Zoueïn. Psychanalyste Psychologue
   CARLOS SLIM HELU Site, New Design  Saadeh Bejjane Architecture  Hermez Steel, Steel  Decor Artwork
      Chucri Simon Zouein, Computer engineer
     
echkzouein@gmail.com
© pure software code - Since 2003