Skip to content

Instantly share code, notes, and snippets.

View yunwoong7's full-sized avatar

Rogue yunwoong7

View GitHub Profile
@yunwoong7
yunwoong7 / markdown_emoji.md
Created February 21, 2022 01:22
Markdown Emoji

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@yunwoong7
yunwoong7 / Drawing_with_OpenCV.ipynb
Created January 10, 2022 08:32
OpenCV 기본 그리기 기능
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yunwoong7
yunwoong7 / Getting_and_Setting_Pixels.ipynb
Created January 10, 2022 08:16
Python과 OpenCV를 이용하여 Pixel값을 가져오고 설정하는 방법
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yunwoong7
yunwoong7 / Basic_Tesseract_OCR.ipynb
Last active December 23, 2021 11:36
Tesseract OCR 기본 사용법 (python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yunwoong7
yunwoong7 / Basic_FileDirectory.ipynb
Last active June 8, 2023 11:13
[ Python ] 파일명, 디렉토리 경로 추출
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yunwoong7
yunwoong7 / ipywidgets_widget_list.md
Last active December 15, 2021 11:58
ipywidgets widget 설명 / 사용방법

ipywidgets Widget List

위젯 형식 위젯
Numeric widgets IntSlider, FloatSlider, FloatLogSlider, IntRangeSlider, FloatRangeSlider, IntProgress, FloatProgress, BoundedIntText, BoundedFloatText, IntText, FloatText
Boolean widgets ToggleButton, Checkbox, Valid
Selection widgets Dropdown, RadioButtons, Select, SelectionSlider, SelectionRangeSlider, ToggleButtons, SelectMultiple
String widget Text, Textarea, Combobox, Password, Label, HTML, HTML Math
Image
Button
Play (Animation) widget
@yunwoong7
yunwoong7 / ipywidgets_concept.md
Last active December 15, 2021 02:05
Jupyter Notebook에 인터렉티브(interactive) 기능 추가 - ipywidgets

ipywidgets 이란?

Ipywidgets은 Jupyter Notebook에 인터렉티브(interactive) 기능을 추가하거나 시각화하는데 사용되는 패키지입니다.
간단히 Jupyter Notebook에서 입력값과 출력값을 상호작용하도록 만들 수 있습니다.

설치(Installation)

설치는 pip 또는 conda 명령어를 이용하여 설치 할 수 있습니다.

pip install ipywidgets
@yunwoong7
yunwoong7 / scikit_image_summary.md
Last active December 10, 2021 06:44
scikit-image 정리

scikit-image

scikit-image는 이미지처리에 특화된 Python 이미지 라이브러리이며 Numpy배열로 이미지 객체를 네이티브하게 다룹니다.

설치

pip 또는 Anaconda를 통해 설치를 진행합니다.

pip install scikit-image
conda install -c conda-forge scikit-image

기본적으로 이미지를 자른다던가 단순한 필터링 등의 이미지 조작이 가능하고 Numpy 배열로 동작하기때문에 Numpy를 활용한 연산이 쉽습니다.

@yunwoong7
yunwoong7 / pillow_summary.md
Last active June 9, 2024 16:34
Python Imaging Library(PIL) - Pillow 정리

Pillow

Python Imaging Library(PIL)은 파이썬 인터프리터에 다양한 이미지 파일 형식을 지원하고 강력한 이미지 처리와 그래픽 기능을 제공하는 Open Source Library 입니다.
줄여서 PIL 이라고 부릅니다. 2009년 9월 릴리즈 되었으며 파이썬 버전 1.5 ~ 2.7까지 지원합니다. PIL의 개발은 2011년에 중단되었으며 후속으로 Pillow라는 후속 프로젝트가
진행되어 파이서 3.x 버전을 지원하고 있습니다.

설치

pip를 통해 설치를 진행합니다.

pip install Pillow

@yunwoong7
yunwoong7 / opencv_summary.md
Last active December 10, 2021 06:44
OpenCV 정리

OpenCV

OpenCV는 Open Source Computer Vision Library의 약어로 오픈소스 컴퓨터 비전 라이브러리입니다. 실시간 영상 처리에 중점을 둔 영상 처리 라이브러리로서, Apache 2.0 라이선스하에 배포되어 학술적 용도 외에도 오픈소스 BSD 허가서 하에서 상업적 용도로도 사용할 수 있습니다. 라이브러리는 윈도, 리눅스 등에서 사용 가능한 크로스 플랫폼이며 OpenCV TensorFlow , Torch / PyTorch 및 Caffe의 딥러닝 프레임워크를 지원하기때문에 물체 인식, 얼굴 인식, 제스처 인식을 비롯해 자율주행 자동차, OCR 판독기, 불량 검사기 등에 활용할 수 있습니다.

설치

pip install opencv-python

BGR로 이미지를 읽어오고, Video capture와 같은 기능 지원이 잘되어 있습니다.
C++에서 OpenCV를 배우고 사용시 익숙해지기 쉽고(반대도 비슷함) numpy array 인덱싱을 이용해 이미지에 대한 전처리가 가능하기에 좀 더 자유롭게 이미지 전처리 가능합니다.
Pillow와 비교한다면 전체적으로 OpenCV 라이브러리의 성능이 더 좋고, 함수가 더 직관적입니다. (사용자 관점마다 다르겠지만..)
물론 Pillow-SIMD 라이브러리의 경우 OpenCV와 대등한 성능을 내거나 더 좋은 성능을 내는 함수도 많습니다.