Skip to content

Instantly share code, notes, and snippets.

View avi9700's full-sized avatar

kevin avi9700

View GitHub Profile
@avi9700
avi9700 / rotate_bounding_box.py
Created December 21, 2023 08:21 — forked from alxcnwy/rotate_bounding_box.py
Rotate bounding box and get new bounding coords
# answer to this reddit post:
# https://www.reddit.com/r/learnmachinelearning/comments/o6br1e/calculate_bounding_box_coordinates_from_contour/
import numpy as np
from numpy import sin, cos, sqrt, pi
import math
import matplotlib.pyplot as plt
center = (332, 209)
width = 56
import time
from datetime import date, timedelta
import datetime
import calendar
# test code by davidbuzz, sept 2019
#NOTES:
#GPS time was zero at 0h 6-Jan-1980 and since it is not perturbed by leap seconds GPS is now ahead of UTC by 18 seconds.
#TAI is currently ahead of UTC by 37 seconds, and like gps, does not have leap seconds. TAI is always ahead of GPS by 19 seconds.
commit 6fac225de0575b18550f9421196f90a2279c44af
Author: Tiago Koji Castro Shibata <[email protected]>
Date: Fri Dec 28 23:13:14 2018 -0200
Fix compilation with latest OpenCV
C APIs were removed and must be replaced with C++ calls
diff --git a/Makefile b/Makefile
index 63e15e6..c148d4b 100644
@avi9700
avi9700 / Install NVIDIA Driver and CUDA.md
Created April 27, 2022 03:19 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@avi9700
avi9700 / intel-nvidia.md
Created March 13, 2022 00:30 — forked from wangruohui/intel-nvidia.md
Intel for display, Nvidia for computing

Intel for display, NVIDIA for computing

This guide will show you how to use Intel graphics for rendering display and NVIDIA graphics for CUDA computing on Ubuntu 18.04 / 20.04 desktop.

I made this work on an ordinary gaming PC with two graphics devices, an Intel UHD Graphics 630 plus an NVIDIA GeForce GTX 1080 Ti. Both of them can be shown via lspci | grep VGA.

00:02.0 VGA compatible controller: Intel Corporation Device 3e92
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)