2019-01-28から1日間の記事一覧
これをリアルタイム処理できるようにする。 静止画でいいならものすごく簡単にできる。 # -*- coding: utf-8 -*- import cv2 import matplotlib.pyplot as plt def mosaic(src, ratio=0.1): #ratio=モザイクの強さ small = cv2.resize(src, None, fx=ratio, …
import math import matplotlib.pyplot as plt def fk(l1,l2,d1,d2): x1 = l1*math.cos(math.radians(d1)) y1 = l1*math.sin(math.radians(d1)) x2 = l1*math.cos(math.radians(d1)) + l2*math.cos(math.radians(d1+d2)) y2 = l1*math.sin(math.radians(d1))…
参考 OpenCV: Histograms - 1 : Find, Plot, Analyze !!! 前提 pythonによる画像処理 - あたりめ備忘録 plt.hist(img.ravel(),256,[0,256]) plt.show() >> from scipy import misc color = ("B", "G", "R") for channel, col in enumerate(color): histr = c…