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
#to install dependencies: | |
# pip install opencv-python | |
# pip install mediapipe | |
import cv2 | |
import mediapipe as mp | |
from pathlib import Path | |
run_mediapipe = True |
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
""" | |
Connect to camera at port '0' and display in a loop - close with ESC | |
requires `opencv-python` or `opencv-contrib-python` | |
note - should run in any environment that can run `freemocap` stuff | |
""" | |
import time | |
import cv2 | |
import numpy as np |
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
# originally based on - https://docs.pinecone.io/docs/gen-qa-openai | |
# Do the QuickStart first to get set up with Pinecone - https://docs.pinecone.io/docs/quickstart | |
import subprocess | |
from pinecone import Index | |
try: | |
import os | |
from time import sleep | |
import openai |
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 os | |
from datetime import datetime | |
from pathlib import Path | |
from typing import List | |
class Quine: | |
""" | |
A class to represent a Quine. |