This file contains 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 | |
from picamera2 import Picamera2 | |
# Grab images as numpy arrays and leave everything else to OpenCV. | |
face_detector = cv2.CascadeClassifier("/usr/share/opencv4/haarcascades/haarcascade_frontalface_default.xml") | |
cv2.startWindowThread() | |
picam2 = Picamera2() |
This file contains 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 as cv2 | |
import numpy as np | |
import math as m | |
from picamera2 import Picamera2 | |
cap = Picamera2() | |
cap.configure(cap.create_preview_configuration(main={"format": 'XRGB8888', "size": (640, 480)})) | |
cap.start() | |
while True: | |
img = cap.capture_array() | |
detect=cv2.QRCodeDetector() |
This file contains 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 | |
# define a video capture object | |
vid = cv2.VideoCapture(0) | |
while(True): | |
# Capture the video frame | |
# by frame |
This file contains 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 NoTransition kivy.uix.screenmanager.NoTransition | |
<Login_Page>: | |
name : "Login_Page" | |
MDScreen: | |
MDToolbar: | |
title : "Courier Service System" | |
pos_hint : {"top":1} | |
Image : | |
source : "courier_design(256256).png" | |
pos_hint : {'center_x':0.5,'center_y':0.7} |
This file contains 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
from kivymd.app import MDApp | |
from kivy.uix.screenmanager import ScreenManager, Screen, NoTransition | |
from kivy.lang import Builder | |
from kivymd.uix.datatables import MDDataTable | |
from kivy.metrics import dp | |
from kivy.uix.anchorlayout import AnchorLayout | |
from kivy.properties import ObjectProperty | |
from kivymd.uix.screen import MDScreen | |
Builder.load_file("welcome.kv") |
This file contains 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
# Default ignored files | |
/shelf/ | |
/workspace.xml |
This file contains 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
"""Write a program that rotates the elements of a list so that the element at | |
the first index moves to the second index, the element in the second | |
index moves to the third index, etc., and the element at the last moves to | |
the first index.""" | |
"question 9" | |
# def lower_case(): | |
# ob = open("/Users/mahantsmith/Library/Application Support/JetBrains/PyCharmCE2020.3/scratches/file14fun.txt") | |
# fb = open("lower_file14fun.txt","w") | |
# j = ob.readlines() | |
# for x in j: |
This file contains 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 as c | |
import numpy as np | |
import time | |
import os | |
import math | |
import HandsTrackingModule as htm | |
folderpath = "/home/smith/Da Painter" | |
mylist = os.listdir(folderpath) | |
mylist = mylist[:-1] | |
#print(mylist) |
This file contains 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 numpy as np | |
import math | |
from random import randint as rn | |
import HandsTrackingModule as hdt | |
import cv2 as c | |
import time | |
from subprocess import call | |
#from ctypes import cast, POINTER | |
#rom comtypes import CLSCTX_ALL | |
#from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume |
This file contains 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 as c | |
import mediapipe as mp | |
import time | |
class HandDetect() : | |
def __init__(self, mode=False, maxhands=2, detectC=0.5, trackC=0.5): | |
self.mode = mode | |
self.maxhands = maxhands | |
self.detectC = detectC |
NewerOlder