100일 챌린지/컴퓨터비전 3

Day 3 - PIL, pytorch-torchvision, logging-wandb

PIL(Python Imaging Library): 이미지 처리에 중점을 둔 라이브러리- 픽셀 단위의 이미지 조작이나, 마스킹, 투명도 제어, 윤곽 보정 밒 검출 등의 다양한 이미지 조작을 할 수 있다.pip install pillowImage read and Visualizefrom PIL import Imageimport matplotlib.pyplot as plt# image readimg=Image.open('../data/image.jpeg')# image visualizeplt.imshow(img)plt.show()imgImage resizew,h=img.sizeimg_resize=img.resize((w///2,h//2))plt.imshow(img_resize)plt.show()img_res..

Day 2 - Probability, OpenCV_matplotlib

Probabilitysample(오메가) : 실험에서 나올 수 있는 모든 결과random variable : 어떤 사건에 대해 나올 수 있는 값을 결정하는 함수(function)Event Space: 샘플 셋이 나올 수 있는 power setBayes' Theoremposterior ∝ linklihood × priorGaussian Distribution (정규 분포)평균과 분산을 가지고 estimate을 할 수 있다.OpenCV_matplotlibOpenCV컴퓨터 비전을 목적으로 하는 오픈 소스 라이브러리pip install opencv-pythonhttps://docs.opencv.org/4.x/index.html[OpenCV: OpenCV modulesOpenCV 4.10.0-dev Open So..

Day 1 - linear algebra

Linear Algebra in Computer VisionImage Understanding을 할 때 Image Description을 Vector로서 사용, Decision Making에서는 Fuction을 사용한다.Vector크기와 방향성을 가진 기하학적 object.Vector OperationsInner product (a.k.a. dot product): 두 개의 벡터 사이의 각도를 구함 $x^Ty$Outer product: $R^{m*n}$NormVector의 lengthp-norm: optimization 시, starcity를 보장해준다. Linear Dependency BasisOrthogonalNormalized: 본인과 본인을 곱할때 1이 나온다. -> Basis SetMatrixs..