随笔分类 - 计算机视觉(CV)
摘要:import cv2 as cv import numpy as np def adaptive_threshold(gray: np.ndarray, whs: int = None, sub_threshold: float = 0.15): """ 基于积分图像的自适应阈值二值化算法 :par
阅读全文
摘要:video_test.py from utils.tag_video import VideoTag from nets.ssd_net import SSD300 if __name__ == '__main__': input_shape = (300, 300, 3) # 数据集的配置 cla
阅读全文
摘要:from queue import PriorityQueue import numpy as np class Pixel(object): """ 像素信息,包含像素的坐标和梯度 """ def __init__(self, gradient, location): self.gradient
阅读全文
摘要:形态学重建 测地膨胀 def dilate_geo(marker: np.ndarray, ksize: int, mask: np.ndarray) -> np.ndarray: """ 灰度级测地膨胀(膨胀形态学重建):$(f\oplus{B})\wedge{g}$ :param marker:
阅读全文