툴랩
close
프로필 배경
프로필 로고

툴랩

  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
  • Home
  • Tags
  • Guest
  • NaverBlog
  • YouTube

이미지에서 특정 색상 범위 비율 검출

파이썬(Python)에서 이미지내 특정 색상의 비율 검출 하는 소스입니다. 이미지 처리 라이브러리인 OpenCV와 NumPy를 사용합니다. 먼저 필요한 라이브러리를 설치합니다. pip install opencv-python numpy 아래 소스는 초록색 영역의 비율을 구하는 예제입니다. import cv2 import numpy as np def calculate_wide_green_crop_percentage(image_path): # 이미지 불러오기 image = cv2.imread(image_path) # 이미지를 HSV 색 공간으로 변환 hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) # 넓은 초록색 범위 정의 lower_green = np.array([25, 20..

  • format_list_bulleted Programming/Python
  • · 2023. 6. 12.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
최근 글
인기 글
최근 댓글
태그
  • #ChatGPT
  • #Laravel10
  • #Python
  • #라라벨
  • #golang
  • #PHP
  • #rockylinux
  • #Flutter
  • #flask
  • #laravel
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바