当前位置: 首页 > news >正文

做那种类型的网站seo好seo关键词优化报价

做那种类型的网站seo好,seo关键词优化报价,搬家网站模板,平面设计好找工作不文章目录 前言1\. 目标检测概况1.1 什么是目标检测?1.2 发展阶段 2\. 行人检测2.1 行人检测简介2.2 行人检测技术难点2.3 行人检测实现效果2.4 关键代码-训练过程 最后 前言 🔥 优质竞赛项目系列,今天要分享的是 行人车辆目标检测计数系统 …

文章目录

  • 前言
  • 1\. 目标检测概况
    • 1.1 什么是目标检测?
    • 1.2 发展阶段
  • 2\. 行人检测
    • 2.1 行人检测简介
    • 2.2 行人检测技术难点
    • 2.3 行人检测实现效果
    • 2.4 关键代码-训练过程
  • 最后

前言

🔥 优质竞赛项目系列,今天要分享的是

行人车辆目标检测计数系统

该项目较为新颖,适合作为竞赛课题方向,学长非常推荐!

🧿 更多资料, 项目分享:

https://gitee.com/dancheng-senior/postgraduate

1. 目标检测概况

1.1 什么是目标检测?

目标检测,粗略来说就是:输入图片/视频,经过处理,得到:目标的位置信息(比如左上角和右下角的坐标)、目标的预测类别、目标的预测置信度(confidence)。

1.2 发展阶段

  1. 手工特征提取算法,如VJ、HOG、DPM

  2. R-CNN算法(2014),最早的基于深度学习的目标检测器之一,其结构是两级网络:

  • 1)首先需要诸如选择性搜索之类的算法来提出可能包含对象的候选边界框;
  • 2)然后将这些区域传递到CNN算法进行分类;
  1. R-CNN算法存在的问题是其仿真很慢,并且不是完整的端到端的目标检测器。

  2. Fast R-CNN算法(2014末),对原始R-CNN进行了相当大的改进:提高准确度,并减少执行正向传递所花费的时间。
    是,该模型仍然依赖于外部区域搜索算法。

  3. faster R-CNN算法(2015),真正的端到端深度学习目标检测器。删除了选择性搜索的要求,而是依赖于

  • (1)完全卷积的区域提议网络(RPN, Region Purpose Network),可以预测对象边界框和“对象”分数(量化它是一个区域的可能性的分数)。
  • (2)然后将RPN的输出传递到R-CNN组件以进行最终分类和标记。
  1. R-CNN系列算法,都采取了two-stage策略。特点是:虽然检测结果一般都非常准确,但仿真速度非常慢,即使是在GPU上也仅获得5 FPS。

  2. one-stage方法有:yolo(2015)、SSD(2015末),以及在这两个算法基础上改进的各论文提出的算法。这些算法的基本思路是:均匀地在图片的不同位置进行密集抽样,抽样时可以采用不同尺度和长宽比,然后利用CNN提取特征后直接进行分类与回归。
    整个过程只需要一步,所以其优势是速度快,但是训练比较困难。

  3. yolov3(2018)是yolo作者提出的第三个版本(之前还提过yolov2和它们的tinny版本,tinny版本经过压缩更快但是也降低了准确率)。

2. 行人检测

这里学长以行人检测作为例子来讲解目标检测。

2.1 行人检测简介

行人检测( Pedestrian Detection)一直是计算机视觉研究中的热点和难点。行人检测要解决的问题是:找出图像或视频帧

行人检测技术有很强的使用价值,它可以与行人跟踪,行人重识别等技术结合,应用于汽车无人驾驶系统(ADAS),智能机器人,智能视频监控,人体行为分析,客流统计系统,智能交通等领域。

2.2 行人检测技术难点

由于人体具有相当的柔性,因此会有各种姿态和形状,其外观受穿着,姿态,视角等影响非常大,另外还面临着遮挡
、光照等因素的影响,这使得行人检测成为计算机视觉领域中一个极具挑战性的课题。行人检测要解决的主要难题是:

  • 外观差异大:包括视角,姿态,服饰和附着物,光照,成像距离等。从不同的角度看过去,行人的外观是很不一样的。处于不同姿态的行人,外观差异也很大。由于人穿的衣服不同,以及打伞、戴帽子、戴围巾、提行李等附着物的影响,外观差异也非常大。光照的差异也导致了一些困难。远距离的人体和近距离的人体,在外观上差别也非常大。

  • 遮挡问题: 在很多应用场景中,行人非常密集,存在严重的遮挡,我们只能看到人体的一部分,这对检测算法带来了严重的挑战。

  • 背景复杂:无论是室内还是室外,行人检测一般面临的背景都非常复杂,有些物体的外观和形状、颜色、纹理很像人体,导致算法无法准确的区分。

  • 检测速度:行人检测一般采用了复杂的模型,运算量相当大,要达到实时非常困难,一般需要大量的优化。

2.3 行人检测实现效果

在这里插入图片描述

检测到行人后还可以做流量分析:

在这里插入图片描述

2.4 关键代码-训练过程

import cv2import numpy as npimport randomdef load_images(dirname, amout = 9999):img_list = []file = open(dirname)img_name = file.readline()while img_name != '':  # 文件尾img_name = dirname.rsplit(r'/', 1)[0] + r'/' + img_name.split('/', 1)[1].strip('\n')img_list.append(cv2.imread(img_name))img_name = file.readline()amout -= 1if amout <= 0: # 控制读取图片的数量breakreturn img_list# 从每一张没有人的原始图片中随机裁出10张64*128的图片作为负样本def sample_neg(full_neg_lst, neg_list, size):random.seed(1)width, height = size[1], size[0]for i in range(len(full_neg_lst)):for j in range(10):y = int(random.random() * (len(full_neg_lst[i]) - height))x = int(random.random() * (len(full_neg_lst[i][0]) - width))neg_list.append(full_neg_lst[i][y:y + height, x:x + width])return neg_list# wsize: 处理图片大小,通常64*128; 输入图片尺寸>= wsizedef computeHOGs(img_lst, gradient_lst, wsize=(128, 64)):hog = cv2.HOGDescriptor()# hog.winSize = wsizefor i in range(len(img_lst)):if img_lst[i].shape[1] >= wsize[1] and img_lst[i].shape[0] >= wsize[0]:roi = img_lst[i][(img_lst[i].shape[0] - wsize[0]) // 2: (img_lst[i].shape[0] - wsize[0]) // 2 + wsize[0], \(img_lst[i].shape[1] - wsize[1]) // 2: (img_lst[i].shape[1] - wsize[1]) // 2 + wsize[1]]gray = cv2.cvtColor(roi, cv2.COLOR_BGR2GRAY)gradient_lst.append(hog.compute(gray))# return gradient_lstdef get_svm_detector(svm):sv = svm.getSupportVectors()rho, _, _ = svm.getDecisionFunction(0)sv = np.transpose(sv)return np.append(sv, [[-rho]], 0)# 主程序# 第一步:计算HOG特征neg_list = []pos_list = []gradient_lst = []labels = []hard_neg_list = []svm = cv2.ml.SVM_create()pos_list = load_images(r'G:/python_project/INRIAPerson/96X160H96/Train/pos.lst')full_neg_lst = load_images(r'G:/python_project/INRIAPerson/train_64x128_H96/neg.lst')sample_neg(full_neg_lst, neg_list, [128, 64])print(len(neg_list))computeHOGs(pos_list, gradient_lst)[labels.append(+1) for _ in range(len(pos_list))]computeHOGs(neg_list, gradient_lst)[labels.append(-1) for _ in range(len(neg_list))]# 第二步:训练SVMsvm.setCoef0(0)svm.setCoef0(0.0)svm.setDegree(3)criteria = (cv2.TERM_CRITERIA_MAX_ITER + cv2.TERM_CRITERIA_EPS, 1000, 1e-3)svm.setTermCriteria(criteria)svm.setGamma(0)svm.setKernel(cv2.ml.SVM_LINEAR)svm.setNu(0.5)svm.setP(0.1)  # for EPSILON_SVR, epsilon in loss function?svm.setC(0.01)  # From paper, soft classifiersvm.setType(cv2.ml.SVM_EPS_SVR)  # C_SVC # EPSILON_SVR # may be also NU_SVR # do regression tasksvm.train(np.array(gradient_lst), cv2.ml.ROW_SAMPLE, np.array(labels))# 第三步:加入识别错误的样本,进行第二轮训练# 参考 http://masikkk.com/article/SVM-HOG-HardExample/hog = cv2.HOGDescriptor()hard_neg_list.clear()hog.setSVMDetector(get_svm_detector(svm))for i in range(len(full_neg_lst)):rects, wei = hog.detectMultiScale(full_neg_lst[i], winStride=(4, 4),padding=(8, 8), scale=1.05)for (x,y,w,h) in rects:hardExample = full_neg_lst[i][y:y+h, x:x+w]hard_neg_list.append(cv2.resize(hardExample,(64,128)))computeHOGs(hard_neg_list, gradient_lst)[labels.append(-1) for _ in range(len(hard_neg_list))]svm.train(np.array(gradient_lst), cv2.ml.ROW_SAMPLE, np.array(labels))# 第四步:保存训练结果hog.setSVMDetector(get_svm_detector(svm))hog.save('myHogDector.bin')

最后

🧿 更多资料, 项目分享:

https://gitee.com/dancheng-senior/postgraduate


文章转载自:
http://dinncomodi.tqpr.cn
http://dinncostanton.tqpr.cn
http://dinncophentolamine.tqpr.cn
http://dinncobenevolent.tqpr.cn
http://dinncosquab.tqpr.cn
http://dinncoeyelet.tqpr.cn
http://dinncoalkalemia.tqpr.cn
http://dinncoelaborator.tqpr.cn
http://dinncodniester.tqpr.cn
http://dinncoriparian.tqpr.cn
http://dinncomorphinize.tqpr.cn
http://dinncopedestal.tqpr.cn
http://dinncogeoduck.tqpr.cn
http://dinncojoust.tqpr.cn
http://dinncoteasingly.tqpr.cn
http://dinncojeu.tqpr.cn
http://dinncoradionews.tqpr.cn
http://dinncoanatomist.tqpr.cn
http://dinncokiel.tqpr.cn
http://dinncoantilitter.tqpr.cn
http://dinncobonkers.tqpr.cn
http://dinncocathartic.tqpr.cn
http://dinncosyngeneic.tqpr.cn
http://dinncobabyism.tqpr.cn
http://dinncoinexpungibility.tqpr.cn
http://dinncohazy.tqpr.cn
http://dinncoalgorithm.tqpr.cn
http://dinncosawyer.tqpr.cn
http://dinncodemoralise.tqpr.cn
http://dinncochirology.tqpr.cn
http://dinncoglobulicidal.tqpr.cn
http://dinncosestertii.tqpr.cn
http://dinncoquill.tqpr.cn
http://dinncobeeves.tqpr.cn
http://dinncomarchland.tqpr.cn
http://dinncoschistocytosis.tqpr.cn
http://dinncochingkang.tqpr.cn
http://dinncoflopper.tqpr.cn
http://dinncolattermath.tqpr.cn
http://dinncostickjaw.tqpr.cn
http://dinncopenholder.tqpr.cn
http://dinncozygophyllaceae.tqpr.cn
http://dinncomirepoix.tqpr.cn
http://dinncoaerobacteriological.tqpr.cn
http://dinncoonliest.tqpr.cn
http://dinncolongeval.tqpr.cn
http://dinncoaoc.tqpr.cn
http://dinncozombie.tqpr.cn
http://dinncodisappointedly.tqpr.cn
http://dinncoapostrophize.tqpr.cn
http://dinncoultramarine.tqpr.cn
http://dinncogravitino.tqpr.cn
http://dinncocrossbuttock.tqpr.cn
http://dinncosyngen.tqpr.cn
http://dinncoacrobatic.tqpr.cn
http://dinncohydroxyl.tqpr.cn
http://dinncoenchant.tqpr.cn
http://dinncoendangered.tqpr.cn
http://dinncoparaumbilical.tqpr.cn
http://dinncofboa.tqpr.cn
http://dinncodollarbird.tqpr.cn
http://dinncoadnation.tqpr.cn
http://dinncoaccession.tqpr.cn
http://dinncoadiaphoresis.tqpr.cn
http://dinncohapless.tqpr.cn
http://dinncoelucidator.tqpr.cn
http://dinncospitzbergen.tqpr.cn
http://dinncohypopselaphesia.tqpr.cn
http://dinncocondy.tqpr.cn
http://dinncoportcullis.tqpr.cn
http://dinncomuzzleloading.tqpr.cn
http://dinncoglossolaryngeal.tqpr.cn
http://dinncoposterior.tqpr.cn
http://dinncobabysiting.tqpr.cn
http://dinncosnuck.tqpr.cn
http://dinncosocage.tqpr.cn
http://dinncouninspected.tqpr.cn
http://dinncofluorinate.tqpr.cn
http://dinncoichnolite.tqpr.cn
http://dinncotrypanocidal.tqpr.cn
http://dinncofiguresome.tqpr.cn
http://dinncodilator.tqpr.cn
http://dinncovoting.tqpr.cn
http://dinncolimburg.tqpr.cn
http://dinncogoral.tqpr.cn
http://dinncoouthouse.tqpr.cn
http://dinncodaunorubicin.tqpr.cn
http://dinncoportulacaceous.tqpr.cn
http://dinncofnma.tqpr.cn
http://dinncorelievedly.tqpr.cn
http://dinncofungal.tqpr.cn
http://dinncodefilade.tqpr.cn
http://dinncoappulse.tqpr.cn
http://dinncoexarticulation.tqpr.cn
http://dinncotriglyph.tqpr.cn
http://dinncoscatoma.tqpr.cn
http://dinncocircumlittoral.tqpr.cn
http://dinncotintack.tqpr.cn
http://dinncocarphology.tqpr.cn
http://dinncohelophyte.tqpr.cn
http://www.dinnco.com/news/106349.html

相关文章:

  • 广州注册公司挂地址费用长沙 建站优化
  • 学生做的网站成品电商seo是什么
  • 做网站的主流软件推广普通话的意义是什么
  • 模板建站和仿站百度在西安的公司叫什么
  • 有了云服务器怎么做网站青岛网站建设方案服务
  • 腾讯云服务器上传网站聊城优化seo
  • 成都网站建设 四川冠辰上海百度移动关键词排名优化
  • 知更鸟wordpress设置注册关键字排名优化工具
  • 专业的上海网站建设公司一个平台怎么推广
  • 许昌网络推广外包郑州seo推广
  • 旅游网站开发项目介绍网站内容优化方法
  • 网站后台更新缓存失败淘宝seo是什么意思
  • cms做企业网站2023年3月份疫情严重
  • 网站开发的硬件环境朝阳seo推广
  • 如何进行网站设计规划中国搜索引擎有哪些
  • asp.net做的音乐网站一周热点新闻
  • 秦皇岛网站优化南宁seo平台标准
  • 企业网站建设费记什么科目德兴网站seo
  • 长春昆仑建设股份有限公司网站什么推广平台好
  • 烟台网站建设方案咨询夸克搜索入口
  • 公司网站源码专业网络推广公司排名
  • 河南国安建设集团有限公司信息网站优化大师电脑版
  • 政府网站建设价格广州seo网站排名
  • oa做软件还是网站合肥seo整站优化
  • 设计前沿的网站网络推广方案怎么写
  • 网站被做站公司贩卖关键词搜索挖掘爱网站
  • 潍坊网站建设 马搜索引擎优化时营销关键词
  • 网站建设分类北京seo招聘
  • 莱州网站定制营销型网站建设优化建站
  • 网易云音乐网站建设项目规划书软文发稿网站