Skip to content

Instantly share code, notes, and snippets.

@redmond2742
redmond2742 / traffic_light_bbox.py
Created August 26, 2023 18:46
Traffic Light Bounding Box using Facebook Hugging Face Transformer
# source: https://github.com/christianversloot/machine-learning-articles/blob/main/easy-object-detection-with-python-huggingface-transformers-and-machine-learning.md
import os
from os import listdir
from transformers import pipeline
from PIL import Image, ImageDraw, ImageFont
import numpy as np
import cv2
@redmond2742
redmond2742 / gist:05f51ad50ab43ff8d669
Created June 14, 2015 21:58
Arduino Power Logger
#include <SPI.h>
#include <Wire.h>
#include <SD.h>
#include <Time.h>
File myFile;
long readVcc() {
long result;