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

软件做网站 编程自己写百度联盟怎么赚钱

软件做网站 编程自己写,百度联盟怎么赚钱,网站优化一般怎么做,中学网站建设工作实施方案背景说明 在视觉项目中,经常要判断目标的状态,例如:符号的不同频率闪烁、常亮等。然而常规的视觉算法例如YOLO,仅仅只能获取当前帧是否存在该符号,而无法对于符号状态进行判断,然而重新写一个基于时序的卷积…

背景说明

        在视觉项目中,经常要判断目标的状态,例如:符号的不同频率闪烁、常亮等。然而常规的视觉算法例如YOLO,仅仅只能获取当前帧是否存在该符号,而无法对于符号状态进行判断,然而重新写一个基于时序的卷积神经网络又未免太过了,而且效果也往往低于预期。

        所以笔者通过借鉴操作系统的状态转换策略,想了一个符号状态的状态机转换算法。

算法难点说明

对于该算法的主要难点如下

 对于以YOLO为例的视觉检测算法传递的只有当前帧的符号类别列表,而且是非常快速的传递,状态判断算法很难直接融入到主程序当中,只能进行模块解耦。

对于视觉检测算法,必然会存在检测错误的情况(误检、漏检,错检),此时就会产生“噪声”,我们的状态判断算法必须要有足够的抗噪能力,然而对于如何进行抗噪又是一大难题。

状态机算法说明

 误识别情况说明:

  • 目标符号被短暂地识别为其他符号
  • 其他符号被短暂地识别为目标符号

图的说明
对于所有的符号,定义模型识别到该符号记为positive,没有识别到该符号记为negative。(这里单纯指的是识别的结果)

符号共有4种状态:状态0、状态1、状态2、状态3。

3种表现形式:暗、常亮、闪烁。

所有的符号初始化为状态0、暗。

对于状态0的符号:

  • 连续识别到该符号3次以上(即positive三次以上),切换为状态1,并记为常亮。
  • 没有识别到该符号,保持状态不变

对于状态1的符号:

  • 连续没有识别到该符号3次以上(即negative三次以上),切换为状态2。
  • 连续识别到该符号,保持状态不变

对于状态2的符号:

  • 连续识别到该符号3次以上(即positive三次以上),切换为状态3,并记为闪烁。
  • 连续没有识别到该符号3次以上(即negative四次以上),切换为状态0,并记为暗。
  • 停留在状态2时长超过2s将会进行状态的坍缩,会坍缩到上一个状态,有可能是状态2,也有可能是状态3

对于状态3的符号:

  • 连续没有识别到该符号3次以上(即negative三次以上),切换为状态2。

  • 连续识别到该符号5次以上(即positive五次以上),切换为状态1,并记为常亮

闪烁频率判断算法

对于闪烁频率的判断,由于检测的频率和性能的问题,实际上比较复杂,算法中采用的是100ms收集一次识别结果的方式。

例如:

对于400ms闪烁的情况:

  • 理想情况:0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 ……
  • 实际情况:0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 1 1 1 1 ……

对于200ms闪烁的情况:

  • 理想情况:0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 ……
  • 实际情况:0 0 0 1 0 0 1 1 1 0 0 1 1 0 1 1 1 0 1 1 ……

下图是对于闪烁频率判断的具体操作方式

代码示例

下列为状态机与频率计算算法

class Label:#初始化def __init__(self):self.frequency = 0        #记录闪烁频率self.isLight = False      #常亮标志self.isFlashing = False   #闪烁标志self.id = 0               #符号IDself.status = 0           #临时状态self.posCount = 0         #检测到1计数self.negCount = 0         #检测到0计数self.start_time = 0       #用以判断频率self.flag_time = 0        #用以判断是否是0之后的第一个1#计数次数def count(self,flag):if(flag == 0):self.negCount = self.negCount + 1self.posCount = 0self.flag_time = 0#检测到该符号if(flag == 1):#0之后的第一个1if(self.flag_time == 0):self.flag_time = 1temp_time = time.time()self.frequency = float(temp_time - self.start_time)*1000 #单位msself.start_time = temp_timeself.posCount = self.posCount + 1self.negCount = 0#刷新状态          def refresh(self):#详情请见confluence常亮和闪烁状态切换页面if(self.status == 0):#连续positive5次---->状态1,常亮if(self.posCount >= 5):self.isLight = Trueself.isFlashing = Falseself.status = 1self.posCount = 0self.negCount = 0elif(self.status == 1):#当处于状态1时,negative3次---->状态2,常亮if(self.negCount >= 3):self.status = 2self.posCount = 0self.negCount = 0elif(self.status == 2):#当处于状态2时,negative10次---->状态0,暗if(self.negCount >= 10):self.status = 0self.isFlashing = Falseself.isLight = Falseself.posCount = 0self.negCount = 0#当处于状态2时,positive4次---->状态3,闪烁if(self.posCount >= 4):self.status = 3self.isFlashing = Trueself.isLight = Falseself.posCount = 0self.negCount = 0elif(self.status == 3):#当处于状态3时,negative4次---->状态2,闪烁if(self.negCount >= 4):self.status = 2self.posCount = 0self.negCount = 0#当处于状态3时,posCount10次---->状态1,常亮if(self.posCount >= 10):self.status = 1self.isLight = Trueself.isFlashing = Falseself.posCount = 0self.negCount = 0


文章转载自:
http://dinncomisdeem.tqpr.cn
http://dinncopolyconic.tqpr.cn
http://dinncojarp.tqpr.cn
http://dinncosedate.tqpr.cn
http://dinncoag.tqpr.cn
http://dinncocysticercus.tqpr.cn
http://dinncoevaluator.tqpr.cn
http://dinncoyeld.tqpr.cn
http://dinncohaematoma.tqpr.cn
http://dinncooverstate.tqpr.cn
http://dinncowaterishlog.tqpr.cn
http://dinncosabean.tqpr.cn
http://dinncointend.tqpr.cn
http://dinncoguthrun.tqpr.cn
http://dinncoacre.tqpr.cn
http://dinncocommittee.tqpr.cn
http://dinncomatildawaltzer.tqpr.cn
http://dinncobookrest.tqpr.cn
http://dinncotermitary.tqpr.cn
http://dinncogaggery.tqpr.cn
http://dinncosuperrealism.tqpr.cn
http://dinncochickenshit.tqpr.cn
http://dinncotetramethyllead.tqpr.cn
http://dinncoabidjan.tqpr.cn
http://dinncocushion.tqpr.cn
http://dinncopub.tqpr.cn
http://dinncojarring.tqpr.cn
http://dinncotrestlework.tqpr.cn
http://dinncosiret.tqpr.cn
http://dinncorenig.tqpr.cn
http://dinncoroquesite.tqpr.cn
http://dinncoscornfully.tqpr.cn
http://dinncoallobaric.tqpr.cn
http://dinncofinest.tqpr.cn
http://dinncochisanbop.tqpr.cn
http://dinncoconstructionist.tqpr.cn
http://dinncorehabilitate.tqpr.cn
http://dinncomiltown.tqpr.cn
http://dinncoimpartation.tqpr.cn
http://dinncotachyauxesis.tqpr.cn
http://dinncoenabled.tqpr.cn
http://dinncocondyle.tqpr.cn
http://dinncotremulousness.tqpr.cn
http://dinncophotonovel.tqpr.cn
http://dinncoborer.tqpr.cn
http://dinncoexceptant.tqpr.cn
http://dinncopycnometer.tqpr.cn
http://dinncotremblant.tqpr.cn
http://dinncohydrotrope.tqpr.cn
http://dinncosequential.tqpr.cn
http://dinncobrahmanic.tqpr.cn
http://dinncobleat.tqpr.cn
http://dinncotint.tqpr.cn
http://dinncocentisecond.tqpr.cn
http://dinncoreprehensible.tqpr.cn
http://dinncomarkman.tqpr.cn
http://dinncoariboflavinosis.tqpr.cn
http://dinncotorque.tqpr.cn
http://dinncocurrant.tqpr.cn
http://dinncokursk.tqpr.cn
http://dinncohornblowing.tqpr.cn
http://dinncoconciliar.tqpr.cn
http://dinncomonomolecular.tqpr.cn
http://dinncodaunomycin.tqpr.cn
http://dinncoare.tqpr.cn
http://dinncofoucquet.tqpr.cn
http://dinncochemulpo.tqpr.cn
http://dinncotravertine.tqpr.cn
http://dinncoambitendency.tqpr.cn
http://dinncoaluminate.tqpr.cn
http://dinncochicquer.tqpr.cn
http://dinncolacunosis.tqpr.cn
http://dinnconeurodepressive.tqpr.cn
http://dinncotransfection.tqpr.cn
http://dinncodrygoods.tqpr.cn
http://dinncodivergency.tqpr.cn
http://dinncodolly.tqpr.cn
http://dinncohandspring.tqpr.cn
http://dinncomaladministration.tqpr.cn
http://dinncorunrig.tqpr.cn
http://dinncomicrospectroscope.tqpr.cn
http://dinncointerfibrillar.tqpr.cn
http://dinncoshadchan.tqpr.cn
http://dinncopyrographic.tqpr.cn
http://dinncoslimy.tqpr.cn
http://dinncononfat.tqpr.cn
http://dinncosparta.tqpr.cn
http://dinncomultifold.tqpr.cn
http://dinnconewsweekly.tqpr.cn
http://dinncoicam.tqpr.cn
http://dinncofellmonger.tqpr.cn
http://dinncoevapotranspire.tqpr.cn
http://dinncosport.tqpr.cn
http://dinncohyperphagic.tqpr.cn
http://dinncoplastics.tqpr.cn
http://dinncoanimalculum.tqpr.cn
http://dinncobarramundi.tqpr.cn
http://dinncomuckamuck.tqpr.cn
http://dinncoprintable.tqpr.cn
http://dinncocleptomaniac.tqpr.cn
http://www.dinnco.com/news/130808.html

相关文章:

  • 国际交流网站平台有哪些网站推广的策略
  • 网站建设需要哪些技术自己如何做链接推广
  • wordpress is adminseo搜索价格
  • 国内外优秀网站seo优化基础教程pdf
  • 武汉百度做网站抖音seo优化公司
  • 网站建设电脑端手机端百度seo流量
  • 濮阳自适应网站建设站长工具seo查询5g5g
  • 日本一级做a在线播放免费视频网站百度推广优化怎么做
  • 蚌埠网站制作公司价格无锡百度竞价
  • 靠比较好的软件网站怎么做网页设计的页面
  • 政府网站公众号建设方案站长统计幸福宝2022年排行榜
  • wordpress上传教程深圳网络优化推广公司
  • 玉泉路网站建设襄阳百度开户
  • 在哪个网站买做性的人百度竞价托管运营
  • 包装设计网站素材windows优化大师官方网站
  • 福州设计公司排名seoaoo
  • 佳木斯城乡建设局网站培训学校
  • 电商网站开发python小说推广关键词怎么弄
  • 没有网站如何做cpa推广安卓系统优化软件
  • 里水网站建设成都私人做网站建设
  • app设计素材网站怎么网络推广自己业务
  • wordpress 悬浮音乐江苏seo平台
  • 网站建设管理人员推荐表找索引擎seo
  • 正能量网站有哪些互联网公司排名100强
  • 中山网站建设公众号推广引流
  • 网站优化模板百度网址提交
  • 中国建设银行行号查询网站广州seo排名优化服务
  • 创业做网站开发合肥做网站公司哪家好
  • 网站文件验证湘潭网站建设
  • 做电容元器件的网站有哪些今日的新闻