-
[Day38] 인물 사진 모드 처리AIFFEL Life 2020. 12. 15. 18:43
요즘 카메라에서 (특히 아래 1번 글처럼 아이폰에서) 인물 사진 모드로 사진을 찍으면, (혹은 다른 모드라고 하더라도) 배경을 날려(?)주는 아웃포커싱 기법으로 사진을 처리하게 됩니다. 이런 효과를 내주는 방법을 실습으로 배웠습니다. 인물 사진을 찍은 다음, 인물을 인식하는 기법으로 인물의 윤곽을 따라 인물과 배경을 분리합니다. 그런 다음, 배경에 블러 (blur) 효과를 주어 마치 아웃포커싱인 듯한 효과를 준 다음 인물 이미지를 그 위에 얹으면 인물 사진 모드로 찍은 사진과 같은 이미지가 만들어집니다. 다만, 인물을 제외한 부분을 검은색 (혹은 흰색이더라도) 블러 효과를 주는 과정에서 검은색이 경계면으로 번져 보이게 되어서 실제로 합성했을때 어색해 보이는 문제가 생길 수도 있습니다.
1. iPhone에서 인물 사진 모드 사용하기
support.apple.com/ko-kr/HT208118
iPhone에서 인물 사진 모드 사용하기
인물 사진 모드에서는 카메라에서 만들어 내는 피사계 심도 효과로 인해 피사체에만 선명하게 초점을 맞추고 배경은 흐리게 처리할 수 있습니다.
support.apple.com
2. 피사계 심도
ko.wikipedia.org/wiki/%ED%94%BC%EC%82%AC%EA%B3%84_%EC%8B%AC%EB%8F%84
피사계 심도 - 위키백과, 우리 모두의 백과사전
위키백과, 우리 모두의 백과사전. 피사계 심도(被寫界 深度, 영어: depth of field, DOF)는 사진술에서 한 사진의 초점이 맞은것으로 인식되는 범위이다. 렌즈의 초점은 단 하나의 면에 정해지게 되어
ko.wikipedia.org
3. COCO Explorer
COCO - Common Objects in Context
cocodataset.org
4. Watershed 알고리즘을 이용한 이미지 분할
opencv-python.readthedocs.io/en/latest/doc/27.imageWaterShed/imageWaterShed.html
Watershed 알고리즘을 이용한 이미지 분할 — gramman 0.1 documentation
Theory 이미지를 Grayscale로 변환하면 각 Pixel의 값(0 ~255)은 높고 낮음으로 구분할 수 있을 것입니다. 이것을 지형의 높낮이로 가정하고 높은 부분을 봉우리, 낮은 부분을 계곡이라고 표현할 수 있습
opencv-python.readthedocs.io
5. DeepLab V3+: Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation
DeepLab V3+: Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation
Semantic Segmentation 이미지 분석 task 중 semantic segmentation은 중요한 방법 중 하나입니다. Semantic segmentation은 입력 영상에 주어진 각각의 픽셀에 대해서 class label을 할당하는 것을 목표로 합니다. 주로
blog.lunit.io
6. DeepLab Demo github
github.com/tensorflow/models/blob/master/research/deeplab/deeplab_demo.ipynb
tensorflow/models
Models and examples built with TensorFlow. Contribute to tensorflow/models development by creating an account on GitHub.
github.com
7. TensorFlow DeepLab Model Zoo
github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md
tensorflow/models
Models and examples built with TensorFlow. Contribute to tensorflow/models development by creating an account on GitHub.
github.com
8. 이미지의 기하학적 변형
opencv-python.readthedocs.io/en/latest/doc/10.imageTransformation/imageTransformation.html
이미지의 기하학적 변형 — gramman 0.1 documentation
변환이란 수학적으로 표현하면 아래와 같습니다. 예로는 사이즈 변경(Scaling), 위치변경(Translation), 회전(Rotaion) 등이 있습니다. 변환의 종류에는 몇가지 분류가 있습니다. Scaling Scaling은 이미지의
opencv-python.readthedocs.io
9. explain arguments meaning in res = cv2.bitwise_and(img,img,mask = mask)
explain arguments meaning in res = cv2.bitwise_and(img,img,mask = mask)
I am trying to extract blue colour of an input image. For that I create a blue HSV colour boundary and threshold HSV image by using the command mask_img = cv2.inRange(hsv, lower_blue, upper_blue)
stackoverflow.com
10. numpy.where (numpy.org/doc/stable/reference/generated/numpy.where.html)
11. 아웃포커싱 방법 및 원리
아웃포커싱 방법 및 원리
많은 사람들이 DSLR을 사고 싶어 하는 이유중에 하나가 아웃포커싱이다. 아웃포커싱(Out focusing)이란 피사체를 제외한 주변을 흐리게 나오도록 찍는 기법이다. 이 기법은 피사체를 명확하게 표현
ggyul.tistory.com
12. 3D Depth Camera
m.blog.naver.com/panoptics/221336152952
3D 깊이 카메라 기술 (3D Depth camera)
3D 깊이 카메라 기술 (3D Depth camera) 3D Depth camera란?3D 깊이 카메라 모듈 기술은 Computat...
blog.naver.com
13. Recognizing Depth in Autonomous Driving
towardsdatascience.com/depth-prediction-autonomous-driving-18d05ff25dd6
Recognizing Depth in Autonomous Driving
Unsupervised deep learning depth prediction for image sequences
towardsdatascience.com
14. Unsupervised Learning of Depth and Ego-Motion: A Structured Approach
sites.google.com/view/struct2depth
struct2depth
Learning to predict scene depth from RGB inputs is a challenging task both for indoor and outdoor robot navigation. In this work we address unsupervised learning of scene depth and robot ego-motion where supervision is provided by monocular videos, as came
sites.google.com
'AIFFEL Life' 카테고리의 다른 글
[Day40] 하둡이냐 아파치냐 (0) 2020.12.16 [Day39] 역전파를 이해하자 (0) 2020.12.16 [Day37] 차원 축소 (0) 2020.12.15 [Day37] PCA (주성분 분석) (0) 2020.12.15 [Day36] 얼굴 표정 인식으로 이모티콘 보이는 웹 어플리케이션 만들기 (0) 2020.12.15