일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 콘솔 가상환경 # 콘솔 #가상환경
- DB 데이터 저장
- OpenCV + Flask
- 명령어
- bootstrap4 패키지
- openweathermap
- 실시간 시계
- #if
- DB 데이터
- VS Code
- MySQL 세팅
- 튜토리얼
- #endif
- javascript
- #ifndef
- flask
- bootstrap
- heroku
- Django
- #ifdef
- OpenCV
- 성능지표
- Action
- #else
- PyQt5
- href
- 환경변수 설정
- #undef
- 사이트 도메인
- jinja2
- Today
- Total
목록OpenCV (35)
PROGRAMMING
1. PyQt5 기본 코드블럭 해석 ( QApplication(sys.argv), app.exec_() ) umnoni.com/3 동계산기 #2 | PyQt 실행코드 의미알기 1. 경로 정리 우선 강의 시작 전 경로부터 정리하겠습니다. 바탕화면에 PyQt5_study 폴더를 하나 생성 해 저번 강의 때 다운로드 받은 Form 폴더를 이동 시킵니다. 그리고 Form 폴더를 복사해서, FC(Floati umnoni.com 2. .ui → .py 변환 m.blog.naver.com/PostView.nhn?blogId=smilewhj&logNo=221065882859&proxyReferer=https:%2F%2Fwww.google.com%2F 「Python : PyQt5」 Qt Designer : .ui → ...

1. track.py from tracking import Tracker, Trackable import cv2 import numpy as np import time frame_size = 416 frame_count = 0 min_confidence = 0.5 min_directions = 10 height = 0 width = 0 count_limit = 0 up_count = 0 down_count = 0 direction = '' trackers = [] trackables = {} file_name = 'Object_tracking/Testvideo.mp4' output_name = 'Object_tracking/yolo_passenger_counting/Testvideo_out_01.avi'..

import cv2 import numpy as np bins = np.arange(256).reshape(256, 1) def draw_histogram(img): h = np.zeros((img.shape[0], 256), dtype = np.uint8) hist_item = cv2.calcHist([img], [0], None, [256], [0, 256]) cv2.normalize(hist_item, hist_item, 0, 255, cv2.NORM_MINMAX) hist = np.int32(np.around(hist_item)) for x, y in enumerate(hist): cv2.line(h, (x, 10), (x, int(y) + 10), (255, 255, 255)) cv2.line(..
In [ ]: #pip install selectivesearch In [2]: import selectivesearch import cv2 import matplotlib.pyplot as plt %matplotlib inline In [3]: img = cv2.imread('circle.jpg', cv2.IMREAD_ANYCOLOR) img_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) plt.figure(figsize = (8, 8)) plt.imshow(img_rgb) plt.show() In [4]: _, regions = selectivesearch.selective_search(img_rgb, scale = 100, min_size = 2000) ..

1. 3인 가위바위보 - TIE 케이스 2. 3인 가위바위보 - Win / Lose 케이스
In [ ]: 1. GPU Setup¶ 메뉴에서 '런타임' > '런타임 유형 변경' > 노트 설정 > 하드웨어 가속기 > 'GPU' 선택 2. Mount Google Drive¶ In [1]: from google.colab import drive drive.mount('/content/drive') Mounted at /content/drive In [ ]: !ls drive sample_data 3. Install CUDA related modules, cuDNN¶ Download cuDNN file https://developer.nvidia.com/rdp/cudnn-download Unzip the cuDNN from Google Drive to Colab /usr/local/cuda folder..
In [1]: from google.colab import drive drive.mount('/content/drive') Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True). In [2]: !ls -la "/content/drive/MyDrive/darknet" total 32 drwx------ 2 root root 4096 Dec 23 03:16 backup drwx------ 2 root root 4096 Dec 23 02:33 bin drwx------ 2 root root 4096 Dec 23 03:04 cfg drwx..

1. 웹카메라 연결 2. yolo_custom_test_video.py import numpy as np import cv2 import time min_confidence = 0.5 width = 1280 height = 0 show_ratio = 1.0 title_name = 'Custom Yolo' # Load Yolo net = cv2.dnn.readNet("./machineVision/yolo_custom_test_video/model/custom-train-yolo_final.weights", "./machineVision/yolo_custom_test_video/custom/custom-train-yolo.cfg") classes = [] with open("./machineVision/yo..