{"id":52,"date":"2023-09-21T14:47:09","date_gmt":"2023-09-21T07:47:09","guid":{"rendered":"http:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/?page_id=52"},"modified":"2023-09-21T14:47:09","modified_gmt":"2023-09-21T07:47:09","slug":"%e0%b8%a3%e0%b8%b2%e0%b8%a2%e0%b8%a5%e0%b8%b0%e0%b9%80%e0%b8%ad%e0%b8%b5%e0%b8%a2%e0%b8%94","status":"publish","type":"page","link":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/%e0%b8%a3%e0%b8%b2%e0%b8%a2%e0%b8%a5%e0%b8%b0%e0%b9%80%e0%b8%ad%e0%b8%b5%e0%b8%a2%e0%b8%94\/","title":{"rendered":"\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21<\/h2>\n\n\n\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e31\u0e27\u0e01\u0e25\u0e49\u0e2d\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e23\u0e27\u0e08\u0e08\u0e31\u0e1a\u0e21\u0e37\u0e2d\u0e1a\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27 \u0e08\u0e30\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e15\u0e32\u0e21\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e1a\u0e19\u0e21\u0e37\u0e2d \u0e41\u0e25\u0e30 \u0e19\u0e33\u0e44\u0e1b\u0e08\u0e14\u0e08\u0e33\u0e27\u0e48\u0e32 \u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e19\u0e31\u0e49\u0e19\u0e46 \u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e21\u0e32\u0e22\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e04\u0e33\u0e27\u0e48\u0e32\u0e2d\u0e30\u0e44\u0e23 \u0e41\u0e25\u0e30 \u0e08\u0e30\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 \u0e0b\u0e36\u0e48\u0e07\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e08\u0e33\u0e01\u0e31\u0e14\u0e27\u0e48\u0e32\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48 \u0e41\u0e2a\u0e14\u0e07\u0e1a\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e01\u0e32\u0e23\u0e40\u0e04\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e2b\u0e27\u0e19\u0e49\u0e2d\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e14\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e15\u0e31\u0e27\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49\u0e15\u0e32\u0e21\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e19\u0e31\u0e49\u0e19 \u0e46<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e41\u0e1b\u0e25\u0e20\u0e32\u0e29\u0e32\u0e21\u0e37\u0e2d<\/h2>\n\n\n\n<p>\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 \u0e21\u0e35\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e04\u0e37\u0e2d \u0e40\u0e23\u0e34\u0e48\u0e21\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 \u0e28\u0e36\u0e01\u0e29\u0e32\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32\u0e21\u0e37\u0e2d \u0e41\u0e25\u0e30 \u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e2d\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import cv2\r\nimport mediapipe as mp\r\nimport  pygame\r\n\r\nmp_drawing = mp.solutions.drawing_utils\r\nmp_drawing_styles = mp.solutions.drawing_styles\r\nmp_hands = mp.solutions.hands\r\n\r\n# For webcam input:\r\ncap = cv2.VideoCapture(0)\r\nwith mp_hands.Hands(\r\n    model_complexity=0,\r\n    min_detection_confidence=0.5,\r\n    min_tracking_confidence=0.5) as hands:\r\n  while cap.isOpened():\r\n    success, image = cap.read()\r\n    if not success:\r\n      print(\"Ignoring empty camera frame.\")\r\n      # If loading a video, use 'break' instead of 'continue'.\r\n      continue\r\n\r\n    # To improve performance, optionally mark the image as not writeable to\r\n    # pass by reference.\r\n    image.flags.writeable = False\r\n    image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)\r\n    results = hands.process(image)\r\n\r\n    # Draw the hand annotations on the image.\r\n    image.flags.writeable = True\r\n    image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)\r\n\r\n    # Initially set finger count to 0 for each cap\r\n    fingerCount = 0\r\n\r\n    if results.multi_hand_landmarks:\r\n\r\n      for hand_landmarks in results.multi_hand_landmarks:\r\n        # Get hand index to check label (left or right)\r\n        handIndex = results.multi_hand_landmarks.index(hand_landmarks)\r\n        handLabel = results.multi_handedness&#91;handIndex].classification&#91;0].label\r\n\r\n        # Set variable to keep landmarks positions (x and y)\r\n        handLandmarks = &#91;]\r\n\r\n        # Fill list with x and y positions of each landmark\r\n        for landmarks in hand_landmarks.landmark:\r\n          handLandmarks.append(&#91;landmarks.x, landmarks.y])\r\n\r\n        # Test conditions for each finger: Count is increased if finger is \r\n        #   considered raised.\r\n        # Thumb: TIP x position must be greater or lower than IP x position, \r\n        #   deppeding on hand label.\r\n        if handLabel == \"Left\" and handLandmarks&#91;4]&#91;0] > handLandmarks&#91;3]&#91;0]:\r\n          fingerCount = fingerCount+1\r\n        elif handLabel == \"Right\" and handLandmarks&#91;4]&#91;0] &lt; handLandmarks&#91;3]&#91;0]:\r\n          fingerCount = fingerCount+1\r\n\r\n        # Other fingers: TIP y position must be lower than PIP y position, \r\n        #   as image origin is in the upper left corner.\r\n        if handLandmarks&#91;8]&#91;1] &lt; handLandmarks&#91;6]&#91;1]:       #Index finger\r\n          fingerCount = fingerCount+1\r\n        if handLandmarks&#91;12]&#91;1] &lt; handLandmarks&#91;10]&#91;1]:     #Middle finger\r\n          fingerCount = fingerCount+1\r\n        if handLandmarks&#91;16]&#91;1] &lt; handLandmarks&#91;14]&#91;1]:     #Ring finger\r\n          fingerCount = fingerCount+1\r\n        if handLandmarks&#91;20]&#91;1] &lt; handLandmarks&#91;18]&#91;1]:     #Pinky\r\n          fingerCount = fingerCount+1\r\n\r\n\r\n        \r\n\r\n              \r\n        if fingerCount==1 :\r\n          def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"11.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n              \r\n\r\n        if fingerCount==2 :\r\n          def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"22.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n              \r\n       \r\n              \r\n          if fingerCount==3 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"33.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n              \r\n        if fingerCount==4 :\r\n          def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"44.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n\r\n              \r\n        if fingerCount==5 :\r\n          def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"55.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n          if fingerCount==6 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n            if __name__ == \"__main__\":\r\n              mp3_file_path = \"66.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n          if fingerCount==7 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n          if __name__ == \"__main__\":\r\n              mp3_file_path = \"77.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n          if fingerCount==8 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n            if __name__ == \"__main__\":\r\n              mp3_file_path = \"88.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n          if fingerCount==9 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n            if __name__ == \"__main__\":\r\n              mp3_file_path = \"99.mp3\"\r\n              play_mp3(mp3_file_path)\r\n\r\n          if fingerCount==10 :\r\n            def play_mp3(file_path):\r\n              pygame.mixer.init()\r\n              pygame.mixer.music.load(file_path)\r\n              pygame.mixer.music.play()\r\n\r\n            if __name__ == \"__main__\":\r\n              mp3_file_path = \"1010.mp3\"\r\n              play_mp3(mp3_file_path)\r\n        \r\n        # Draw hand landmarks \r\n        mp_drawing.draw_landmarks(\r\n            image,\r\n            hand_landmarks,\r\n            mp_hands.HAND_CONNECTIONS,\r\n            mp_drawing_styles.get_default_hand_landmarks_style(),\r\n            mp_drawing_styles.get_default_hand_connections_style())\r\n\r\n    # Display finger count\r\n    cv2.putText(image, str(fingerCount), (50, 450), cv2.FONT_HERSHEY_SIMPLEX, 3, (255, 0, 0), 10)\r\n\r\n    # Display image\r\n    cv2.imshow('MediaPipe Hands', image)\r\n    if cv2.waitKey(5) &amp; 0xFF == 27:\r\n      break\r\ncap.release()\n\n<\/code><\/pre>\n\n\n\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e08\u0e23\u0e34\u0e07 \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e17\u0e33\u0e17\u0e48\u0e32\u0e17\u0e32\u0e07\u0e20\u0e32\u0e29\u0e32\u0e21\u0e37\u0e2d\u0e43\u0e2b\u0e49\u0e15\u0e31\u0e27\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e41\u0e1b\u0e25 \u0e41\u0e25\u0e30 \u0e43\u0e2b\u0e49\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e48\u0e07\u0e2d\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e21\u0e32\u0e22\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e20\u0e32\u0e29\u0e32\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e44\u0e1b \u0e2b\u0e32\u0e01\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14 \u0e43\u0e2b\u0e49\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e44\u0e02 \u0e41\u0e25\u0e49\u0e27\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e08\u0e23\u0e34\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6-1024x576.png\" alt=\"\" class=\"wp-image-53\" width=\"605\" height=\"340\" srcset=\"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6-1024x576.png 1024w, https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6-300x169.png 300w, https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6-768x432.png 768w, https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6-500x281.png 500w, https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-content\/uploads\/2023\/09\/6.png 1207w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e31\u0e27\u0e01\u0e25\u0e49\u0e2d\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e23\u0e27\u0e08\u0e08\u0e31\u0e1a\u0e21\u0e37\u0e2d\u0e1a\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e08 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-52","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/pages\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":2,"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/pages\/52\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/pages\/52\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/www.kruchat-learning.com\/www\/66_67\/smte1\/wp-json\/wp\/v2\/media?parent=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}