登录
首页 » python » python hog 特征提取

python hog 特征提取

于 2022-04-02 发布 文件大小:1.42 kB
0 124
下载积分: 2 下载次数: 1

代码说明:

import cv2 import numpy as np import math import matplotlib.pyplot as plt class Hog_descriptor(): def __init__(self, img, cell_size=16, bin_size=8): self.img = img self.img = np.sqrt(img / np.max(img)) self.img = img * 255 self.cell_size = cell_size self.bin_size = bin_size self.angle_unit = 360 / self.bin_size # assert type(self.bin_size) == int, "bin_size should be integer," # assert type(self.cell_size) == int, "cell_size should be integer," # assert type(self.angle_unit) == int, "bin_size should be divisible by 360" def extract(self): height, width = self.img.shape gradient_magnitude, gradient_angle = self.global_gradient() gradient_magnitude = abs(gradient_magnitude) cell_gradient_vector = np.zeros((int(height / self.cell_size), int(width / self.cell_size), self.bin_size)) for i in rang

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • emgucv人脸识别源码
    人脸识别算法,非常有助于对人脸识别算法的理解
    2022-11-04 04:45:03下载
    积分:1
  • Python
    用Python实现了网页数据的抓取,网页动态图的浮现,字体颜色大小的改变,网页数据爬取,制作相关网页,用表格体现,并改变了表格的风格,(Python is used to capture web page data, the emergence of dynamic graph, the change of font size, the crawl of web page data, the production of relevant web pages, which are represented by tables, and the style of tables is changed.)
    2020-06-24 10:20:02下载
    积分:1
  • DnCNN-keras-master
    说明:  DNCNN 网络实现,对DNCNN网络进行实现,并有一些可用功能(DNCNN NETWORK WITH SOME FUNCTIONS)
    2020-12-28 11:19:01下载
    积分:1
  • Python
    使用python语言编程实现生成voronoi的二维图像(Using python programming language to generate two-dimensional images of Voronoi)
    2017-09-22 10:10:48下载
    积分:1
  • Python灰帽子-黑客与逆向工程师的Python编程之道
    想学习黑客技术,进行逆向编程,同时提高编程技术的可以下载学习(Want to learn hacker technology, reverse programming, while improving the programming technology can be downloaded to learn)
    2019-05-20 10:32:21下载
    积分:1
  • webQQ
    webQQ 的Python实现,亲测可以使用(webQQ Python implementation, pro-test can be used)
    2013-09-18 10:42:12下载
    积分:1
  • Speech and Language Processing.pdf
    说明:  Speech and Language Processing.pdf
    2020-06-24 16:20:02下载
    积分:1
  • 新闻
    说明: 新闻系统分类,能够对新闻进行十个种类的分类,财经,体育等模块(News system classification)!注意,文件有密码,不知道密码
    2021-04-17 17:18:52下载
    积分:1
  • Multi-Label-Text-Classification-master
    说明:  基于深度学习的多标签文本分类 包括ann、cnn、rnn、fasttext、han模型,基于tensoflow(multi label text classfication)
    2021-03-09 17:29:27下载
    积分:1
  • deformation_transfer_python_for_same_face
    说明:  对三角网格进行驱动形变,使用Deformation transfer of Triangular Mesh算法(Driving Deformation of Triangular Mesh)
    2020-06-16 15:20:02下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载