Skip to content

Instantly share code, notes, and snippets.

@a-rbsn
a-rbsn / tracking-yolo-v8-phone-optimised.py
Created February 11, 2024 14:23
Python YOLO Car Tracking
from collections import defaultdict
import os
import torch
import numpy as np
import cv2
import supervision as sv
import time
from ultralytics import YOLO
@a-rbsn
a-rbsn / 2023day3part1.js
Created December 5, 2023 10:29
[2023 Day 3 (Part 1)] [JS] I'm missing something but my head hurts.
var fs = require("fs");
try {
var data = fs.readFileSync("day3input.txt", "utf8");
} catch (e) {
console.log("Error:", e.stack);
}
const separatedLines = data.split(/\r?\n/);
separatedLines.pop();