Lee-JaeWon / My-Code-Collection

It's not a project, but it's a repository containing important functions that have been coded.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My-Code-Collection

It's not a project, but it's a repository containing important functions that I coded.
프로젝트는 아니지만, 중요한 기능을 코딩한 작업을 담은 Repository 입니다.


Index

Python OpenCV - Calibration
.npy file creation
PyQt5
Python : Scan Serial Port (COMn)




🔎Python OpenCV - Calibration

  • Code

    • 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 put 0 in the cam 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.

🔎.npy file creation

  • Code
    이미지 데이터 셋을 .npy파일 형식으로 바꾸는 코드(.ipynb 파일)

🔎PyQt5

  • Installation with pip
    pip install PyQt5
    
  • Code
    Basic Code

🔎Python : Scan Serial Port (COMn)

  • Code
    Reference
    (The code in the reference and my code are the same and the copyright belongs to the original author of the code.)

    How to use

    1. Download(or git clone) com_port.py
    2. import com_port.py
    3. com_port.serial_ports() returns list of COM Ports

    import com_port
    
    result = com_port.serial_ports()
    print(result)

    Result

    ['COM5', 'COM9']
    

About

It's not a project, but it's a repository containing important functions that have been coded.

License:MIT License


Languages

Language:Jupyter Notebook 97.1%Language:Python 2.9%