This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import mediapipe as mp | |
| import numpy as np | |
| import random | |
| # Initialize MediaPipe Hands | |
| mp_hands = mp.solutions.hands | |
| hands = mp_hands.Hands(max_num_hands=2) | |
| mp_draw = mp.solutions.drawing_utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package threadinggo | |
| // This piece of code shows an unique way of implementation of threading in golang, | |
| // concurrent transaction processing and thread safety using mutex | |
| // Used Waitgroup and Mutex Locking for concurrent transaction and safety locking | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import json | |
| import os | |
| import subprocess | |
| import threading | |
| import time | |
| import queue | |
| import ttkbootstrap as ttk | |
| from ttkbootstrap.constants import * | |
| from tkinter import messagebox |