Skip to content

Instantly share code, notes, and snippets.

View jangsoopark's full-sized avatar
:octocat:
asdf

jangsoo park jangsoopark

:octocat:
asdf
View GitHub Profile
@jangsoopark
jangsoopark / torch-mnist-pull-3498.ipynb
Created March 4, 2021 08:00
torch-mnist-pull-3498.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from PIL import Image
import glob
import os
original_label_dir = '{YOLO DATASET PATH}'
image_dir = '{PNG IMAGE DIR}'
label_dir = '{KITTI TYPE LABEL PATH}'
2.5 2.4
0.5 0.7
2.2 2.9
1.9 2.2
3.1 3.0
2.3 2.7
2 1.6
1 1.1
1.5 1.6
1.1 0.9
import scipy.ndimage as ndimage
import cv2
import numpy as np
def generate_dct(n):
m = np.zeros((n, n))
for i in range(n):
for j in range(n):
m[i, j] = np.sqrt(2 / n) * np.cos((np.pi / n) * (i + 0.5) * (j + 0.5))
#include <iostream>
#include "pipeline/manager.h"
#include "video/analyze.h"
#include "probes.h"
int main(int argc, char** argv)
cmake_minimum_required(VERSION 3.5)
project(live555 C CXX)
include_directories(
BasicUsageEnvironment/include
groupsock/include
liveMedia/include
UsageEnvironment/include
)
#!/bin/bash
function build_ffmpeg
{
echo "Configuration"
./configure \
--prefix=$prefix \
--enable-neon \
--enable-hwaccels \
#include <windows.h>
#include <shellapi.h>
#include <ShObjIdl_core.h>
#include <ShlObj.h>
#include <IntShCut.h>
#include <iostream>
#include <chrono>
#include <ctime>
#!/bin/bash
sudo apt install build-essential zip unzip python3-pip python3-dev
sudo apt install python3-numpy
sudo apt install python3-opencv
sudo apt install python3-scipy
mkdir thirdparty
import threading
import random
import time
import sys
import os
class ASDFException(BaseException):