It's not a project, but it's a repository containing important functions that I coded.
프로젝트는 아니지만, 중요한 기능을 코딩한 작업을 담은 Repository 입니다.
Python OpenCV - Calibration
.npy file creation
PyQt5
Python : Scan Serial Port (COMn)
-
- calibration() Class Method
open_camera(cam='ip0')
: It just open a camera image(video)
capture_camera(cam='ip0')
: If you press the keyboard c, capture it and save it in order. It is used to capture the checkerboard.
(If it's a laptop webcam, please put0
in thecam
parameter.)
find_corner()
: Checkerboard detection.
calibrate_image()
: Calibrate and display distorted images. And this method also performs numerical evaluations.
test_image()
: Test only the given image using the generated matrix.
calibrate_video(cam='ip0')
: Calibrate and display real-time images using the generated matrix.
If you want to start with a checkerboard capture and want all the calibration processes, you can refer to the
capture_camera(cam='ip0')
,find_corner()
,calibrate_image()
methods. - calibration() Class Method
- Code
이미지 데이터 셋을.npy
파일 형식으로 바꾸는 코드(.ipynb 파일)
- Installation with pip
pip install PyQt5
- Code
Basic Code
-
Code
Reference
(The code in the reference and my code are the same and the copyright belongs to the original author of the code.)- Download(or git clone)
com_port.py
import com_port.py
com_port.serial_ports()
returns list of COM Ports
import com_port result = com_port.serial_ports() print(result)
['COM5', 'COM9']
- Download(or git clone)