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

python hog 特征提取

于 2022-04-02 发布 文件大小:1.42 kB
0 55
下载积分: 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 个回复

  • Speaker_Verification-master.zip
    说明:  声纹识别,应用三层LSTM进行说话人识别,准确率很高(Speaker verification)
    2020-11-09 17:09:47下载
    积分:1
  • sklearn-SVM
    说明:  支持向量机(SVM)——分类预测,包括核函数调参,不平衡数据问题,特征降维,网格搜索,管道机制,学习曲线,混淆矩阵,AUC曲线等(Support vector machine (SVM) - classification prediction, including kernel function parameter adjustment, unbalanced data problem, feature dimensionality reduction, grid search, pipeline mechanism, learning curve, confusion matrix, AUC curve, etc)
    2019-11-28 15:05:24下载
    积分:1
  • GA-SVM-master 02
    说明:  基于python的gasvm程序,容易理解,适合初学者学习(Gasvm program based on python, easy to understand, suitable for beginners to learn)
    2019-02-17 02:37:37下载
    积分:1
  • dlib
    DLIB FOR PYTHON Development
    2019-06-10 04:10:24下载
    积分:1
  • MTGNN-923
    说明:  这是一个图神经网络的多元时间序列预测模型(GRAPH NEURAL NETWORK TS)
    2021-01-04 15:28:54下载
    积分:1
  • zdaefa aefaef aefaefce aegaef aegaeg
    #include void LED_Init(void);int main(){uint32_t i;//(1):配置LEDsHAL_Init();LED_Init();while(1){//(1):切换LEDsHAL_GPIO_TogglePin(GPIOD,GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15);//(2):等待1秒(i=0;i
    2022-01-25 16:18:46下载
    积分:1
  • crackprop_modeI_lefm_xfem_cpe4
    crackprop_modeI_lefm_xfem_cpe4,ABAQUS基于线弹性断裂力学的扩展有限元法实例。(crackprop_modeI_lefm_xfem_cpe4 ABAQUS based on linear elastic fracture mechanics extended finite element method instance.)
    2021-04-08 17:19:00下载
    积分:1
  • 6.cnn-lstm.py
    说明:  对金融时间序列的建模,第一列数据为预测项(For the modeling of financial time series, the first column of data is forecast item.)
    2021-04-06 21:59:02下载
    积分:1
  • GA-SVM-master 03
    这是一个基于python的gasvm程序,编写很规范,容易理解,适合初学者学习(This is a python-based gasvm program, written very standardized, easy to understand, suitable for beginners to learn)
    2021-04-20 20:18:50下载
    积分:1
  • tensorflow官方代码教程
    主要是tensorflow的所有源代码,包括一些基本的教程,可以下载下来,比较适合初学者学习!配合着网上的tensorflow的极客学院的教程进行学习即可。
    2022-03-07 13:14:00下载
    积分:1
  • 696518资源总数
  • 104313会员总数
  • 30今日下载