목록OpenCV (7)
박민혀기

OpenCV Lite 버전 설치를 포스팅하려한다.기본 구조는 https://forthe-future.tistory.com/2 와 거의 비슷하기 때문에 자세한 내용은 이전에 작성한 설치 가이드를 확인하면 된다.일반 OpenCV와 OpenCV Lite의 차이는 3D 보정이나 스티칭, 딥러닝 같은 기능의 차이이다.현재 내가 사용하고 있는 OpenCV의 기능으로는 순수 알고리즘? 만 사용하기 때문에 무겁고, 용량이 큰 OpenCV를 사용할 필요가 없다. 특히 임베디드 시스템에선 더욱이 말이다. 또한 imshow와 같은 GUI 함수 사용에 있어 필요한 라이브러리 들이 있는데(ex. GTK, Qt5) 이때도 많은 메모리가 필요하다. 아무튼 이번 포스팅에서는 OpenCV 설치를 해봤다는 가정하에 간단하게 명령어만 나..
현재 폴더에 있는 특정 동영상 포멧(mp4, avi, mkv)을 모두 가져와서 추출하고자 하는 이미지가 노출시 현재 동영상 재생 시간으로(시_분_초.jpg) 저장된다. 셋팅값 조정 필요 Proto type source code import os import glob import cv2 import numpy as np def create_folder(folder_path): try: os.makedirs(folder_path) #print(f"폴더 {folder_path}가 생성되었습니다.") except FileExistsError: print(f"폴더 {folder_path}는 이미 존재합니다.") def extract_info_from_filename(file_name): file_name_with..
import cv2 import numpy as np cap = cv2.VideoCapture('Watermelon_Rec.mp4') if not cap.isOpened(): print("Error: Could not open video file.") exit() template = cv2.imread('Watermelon_Score_ROI.PNG') if template is None: print("Error: Could not open or read the template image.") exit() template = cv2.resize(template, (0, 0), fx=0.5, fy=0.5) total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) sta..
#include #include using namespace std; using namespace cv; int main() { VideoCapture cap = VideoCapture(0); if (!cap.isOpened()) { cout frame; if (frame.empty()) { cout
#include #include using namespace std; using namespace cv; int main (int argc, char **arv) { Mat im = imread("image.jpg"); Rect2d r = selectROI(im); Mat imCrop = im(r); imshow("Image", imCrop); waitKey(0); return 0; }
opencv설치(리눅스) https://webnautes.tistory.com/1433 (Raspberry Good) https://m.blog.naver.com/erroring/221623344213 (Good) https://hl4rny.tistory.com/365 https://blog.xcoda.net/97 (라즈베리파이 OpenCV 설치(빌드 없이 설치파일로)) OpenCV 라즈베리파이 제로 설치 https://remnant24c.tistory.com/110?category=790786 파이썬 matplotlib, pytesseract 설치 https://ddolcat.tistory.com/698 (matplotlib) https://lapina.tistory.com/82 (pytesseract..