OpenCVã®ãªãã¸ã§ã¯ãæ¤åºå¨ä½ææ¹æ³ã«ã¤ãã¦ã®è§£èª¬ã§ãã å¦ç¿ãã¼ã¿ã®ä½æ ã¾ãæåã«ãªãã¸ã§ã¯ãæ¤åºå¨ã®å¦ç¿ã«ä½¿ãæ師ãã¼ã¿ãç¨æããå¿ è¦ãããã¾ãããã®ããã«ã¾ãGUIã§ãªãã¸ã§ã¯ãã®ä½ç½®ãæå®ããGUIãã¼ã«ãä½ãã¾ããã Pythonã®OpenCVã使ãã¾ãã #!/usr/bin/env python #! -*- coding: utf-8 -*- import cv2 import numpy as np import sys drawing = False sx, sy = 0, 0 gx, gy = 0, 0 rectangles = [] ok = False def draw_circle(event,x,y,flags,param): global sx, sy, gx, gy, drawing if event == cv2.EVENT_LBUTTONDOWN
{{#tags}}- {{label}}
{{/tags}}