-
python hog 特征提取
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
- 2022-04-02 09:16:48下载
- 积分:1
-
ABCalgorithm
人工蜂群算法 算法 用户均衡模型 frankwolfe算法(Artificial Bee Colony Algorithms User Equilibrium Model Frankwolfe Algorithms)
- 2021-04-20 19:38:50下载
- 积分:1
-
FENICS中的相场断裂实现
【实例简介】
- 2021-07-30 00:31:00下载
- 积分:1
-
结构分析的有限元与matlab
关于有限元方面的程序,可以很好帮助理解有限元方法理论。
- 2022-04-20 06:10:30下载
- 积分:1
-
IE fuzz工具
IEfuzz,针对windows系统ie进行fuzz测试。修改python脚本文件里面的ie路径,运行脚本文件。自动化生产测试网页html。自动化打开测试网页进行fuzz测试。。
- 2023-06-19 18:25:02下载
- 积分:1
-
dlib
说明: DLIB FOR PYTHON Development
- 2019-06-10 04:10:24下载
- 积分:1
-
Expert_System
专家系统课程实验-疾病分类
简单的疾病分类-13种疾病
使用Python版的CLIPS - pyknow(EXPERIMENTAL EXPERIMENT OF EXPERT SYSTEM COURSE-DISEASE CLASSIFICATION
Simple Classification of Diseases - 20 Diseases
Using the Python version of CLIPS - pyknow)
- 2019-05-07 15:55:52下载
- 积分:1
-
python社交网络分析代码
利用python编程应用在社交网络算法在金融反欺诈中,在社区内使用最短路径算法来发现失联用户与一个正常还款用户的关系链 分析指标:degree、closeness centrality、betweenness centrality、cluster coefficient、triangle count、connected components算法:PageRank社区发现:GN、FastUnfolding、LPA、SLPA、WalkTrap
- 2022-07-24 13:59:46下载
- 积分:1
-
代码《Python 3反爬虫原理与绕过实战》
说明: 《Python3反爬虫原理与绕过实战》随书源码,不错的资源哦("Python 3 anti crawler principle and bypass the actual combat" with the book source code, a good resource Oh)
- 2021-03-25 09:42:45下载
- 积分:1
-
机器学习实战(高清 中文版)
说明: 机器学习实战(高清 中文版)
作者: Peter
本书通过精心排的实例切入日常工作任务摒弃学术化语言利用高效可复用的Python 代码阐释如何处理统计数据进行数据分析及可视化。读者可从中学到一些核心的机器学习算法并将其运用于某些策略性任务中如分类、预测及推荐等。本书适合机器学习相关研究人员及互联网从业人员学习参考。(Machine learning combat (HD Chinese version)
Author: Peter
This book cuts into everyday tasks through elaborate examples. Abandoning academic language uses efficient and reusable Python code to illustrate how to process statistics for data analysis and visualization. Readers can learn some core machine learning algorithms and apply them to certain strategic tasks such as classification, prediction, and recommendation. This book is suitable for machine learning related researchers and Internet practitioners to learn reference.)
- 2019-05-19 03:06:57下载
- 积分:1