Skip to content

Instantly share code, notes, and snippets.

View ekreutz's full-sized avatar
📖
Reading; Donald Knuth, of course.

Emil Kreutzman ekreutz

📖
Reading; Donald Knuth, of course.
View GitHub Profile
@ekreutz
ekreutz / pixel_aspect_ratios.md
Last active May 27, 2022 05:47
Pixel aspect ratios - a potential issue in object detection?

Pixel aspect ratios - a potential issue in object detection?

Updated: Jan 25, 2021

Quick write-up about pixel aspect ratios in video files, and how they might affect performance in an object detection pipeline. I found very little good information about this online, so I decided to write this to summarize my findings.

Tl;dr: scroll down to the "final solution" code, for how to deal with this issue, using Python/OpenCV.


@ekreutz
ekreutz / update_conda.md
Last active August 20, 2021 07:52
How to update conda

Update conda

Or, how to update miniconda or Anaconda.

Simply run the following command:

conda update -n base conda
@ekreutz
ekreutz / resetXcode.sh
Last active February 28, 2018 20:00 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches
#!/bin/bash
#
# curl -O https://gist.githubusercontent.com/ekreutz/b245da335cc10b0d270136b35eb22d1f/raw/43c6d07b0b3d3165af9c10cef18e8709a07ce680/resetXcode.sh && bash ./resetXcode.sh ; rm ./resetXcode.sh
#
if [[ $(whoami) != jenkins ]]; then
echo "Run as jenkins"
exit 1
fi