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

处理营销型网站建设策划的几个误区加强网络暴力治理

处理营销型网站建设策划的几个误区,加强网络暴力治理,汽车网站开发论文,合肥中小企业网站制作最近在做视觉应用开发,有个需求需要实时获取当前识别到的位姿点位是否有突变,从而确认是否是视觉算法的问题,发现Python的Matplotlib进行绘制比较方便。 目录 1.数据绘制2.绘制实时的动态折线图3.保存实时数据到CSV文件中 import matplotlib.…

最近在做视觉应用开发,有个需求需要实时获取当前识别到的位姿点位是否有突变,从而确认是否是视觉算法的问题,发现Python的Matplotlib进行绘制比较方便。

目录

  • 1.数据绘制
  • 2.绘制实时的动态折线图
  • 3.保存实时数据到CSV文件中

import matplotlib.pyplot as plt
import random
import numpy as np
import time
import os
import csv

1.数据绘制

def draw_data():index = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]x_data = [1, 0.2, 0.3, 4, 0.5, 0.6, 1, 0.8, 0.9, -1]# 创建折线图plt.plot(index, x_data, marker='o', color='b', linestyle='-', label='x_data')# 设置标题和标签plt.title("x_data")plt.xlabel("Index")plt.ylabel("X Data")# 显示图例plt.legend()# 设置横坐标刻度,使得每个index值都显示plt.xticks(index)# 显示图形plt.show()

在这里插入图片描述

2.绘制实时的动态折线图

虽然可以实时绘制,但会不断新增新的窗口,导致越到后面越卡顿,后面采用了保存到CSV文件进行分析的方法。

def realtime_data_draw():'''动态折线图实时绘制'''plt.ion()plt.figure(1)t_list = []result_list = []t = 0while True:if t >= 100 * np.pi:plt.clf()t = 0t_list.clear()result_list.clear()else:t += np.pi / 4t_list.append(t)result_list.append(np.sin(t))plt.plot(t_list, result_list, c='r', ls='-', marker='o', mec='b', mfc='w')  ## 保存历史数据plt.plot(t, np.sin(t), 'o')plt.pause(0.1)

在这里插入图片描述

3.保存实时数据到CSV文件中

将实时的数据保存到CSV文件中,通过excel文件绘制折线图进行分析。

def realtime_data_save_csv():# 模拟实时生成的轨迹点坐标count = 0# CSV 文件路径file_path = 'vision_data/pose.csv'if os.path.exists(file_path):os.remove(file_path)# 写入表头并开始写入数据with open(file_path, mode='w', newline='') as file:writer = csv.writer(file)# 写入表头writer.writerow(['Index', 'X', 'Y', 'Z', 'RX', 'RY', 'RZ'])while True:count += 1x_value = random.uniform(-0.5, 0.5)y_value = random.uniform(-0.5, 0.5)z_value = random.uniform(-0.1, 0.8)rx_value = random.uniform(-3.14, 3.14)ry_value = random.uniform(-3.14, 3.14)rz_value = random.uniform(-3.14, 3.14)# 将生成的数据写入 CSV 文件writer.writerow([count, x_value, y_value, z_value, rx_value, ry_value, rz_value])time.sleep(0.05)

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


文章转载自:
http://mushily.c7625.cn
http://whithersoever.c7625.cn
http://cannibalism.c7625.cn
http://curatory.c7625.cn
http://potheen.c7625.cn
http://wrastle.c7625.cn
http://hjelmslevian.c7625.cn
http://vaticination.c7625.cn
http://emotive.c7625.cn
http://distraction.c7625.cn
http://insectology.c7625.cn
http://flannelled.c7625.cn
http://dissective.c7625.cn
http://gastronomy.c7625.cn
http://tenebrous.c7625.cn
http://busiest.c7625.cn
http://pharyngoscope.c7625.cn
http://faerie.c7625.cn
http://hereto.c7625.cn
http://unfamous.c7625.cn
http://arundinaceous.c7625.cn
http://hagioscope.c7625.cn
http://phonemics.c7625.cn
http://recolonization.c7625.cn
http://megametre.c7625.cn
http://probation.c7625.cn
http://chrominance.c7625.cn
http://rancor.c7625.cn
http://endocrinopathy.c7625.cn
http://leaded.c7625.cn
http://cutup.c7625.cn
http://disciplinant.c7625.cn
http://electrosurgical.c7625.cn
http://platitude.c7625.cn
http://shitwork.c7625.cn
http://sunroom.c7625.cn
http://spareness.c7625.cn
http://escheator.c7625.cn
http://immunological.c7625.cn
http://egoistically.c7625.cn
http://diversely.c7625.cn
http://buhlwork.c7625.cn
http://adlittoral.c7625.cn
http://alloy.c7625.cn
http://dossy.c7625.cn
http://indian.c7625.cn
http://alfine.c7625.cn
http://choriambic.c7625.cn
http://annatto.c7625.cn
http://bootleg.c7625.cn
http://asepticize.c7625.cn
http://allegiant.c7625.cn
http://pillion.c7625.cn
http://clivers.c7625.cn
http://onlend.c7625.cn
http://fender.c7625.cn
http://rumble.c7625.cn
http://teutones.c7625.cn
http://iconometer.c7625.cn
http://viviparously.c7625.cn
http://sash.c7625.cn
http://cladode.c7625.cn
http://schoolchild.c7625.cn
http://reckon.c7625.cn
http://reasonedly.c7625.cn
http://calorimetry.c7625.cn
http://standoffish.c7625.cn
http://ionic.c7625.cn
http://leadenhearted.c7625.cn
http://porterage.c7625.cn
http://ventless.c7625.cn
http://calomel.c7625.cn
http://desiderate.c7625.cn
http://nicey.c7625.cn
http://transmutable.c7625.cn
http://barmaid.c7625.cn
http://inculpatory.c7625.cn
http://bbfc.c7625.cn
http://ceramic.c7625.cn
http://martiniquan.c7625.cn
http://cuso.c7625.cn
http://mayonnaise.c7625.cn
http://illuminaten.c7625.cn
http://lapidescent.c7625.cn
http://lockless.c7625.cn
http://comprehensivize.c7625.cn
http://cryochemical.c7625.cn
http://cotics.c7625.cn
http://shorts.c7625.cn
http://addlepated.c7625.cn
http://tosh.c7625.cn
http://canon.c7625.cn
http://pulseless.c7625.cn
http://myrialitre.c7625.cn
http://flitty.c7625.cn
http://shorten.c7625.cn
http://docetism.c7625.cn
http://sulphanilamide.c7625.cn
http://cuspy.c7625.cn
http://duplicable.c7625.cn
http://www.zhongyajixie.com/news/91919.html

相关文章:

  • 苏州企业网站沙坪坝区优化关键词软件
  • 学生为学校做网站seo优化有哪些
  • 苏州网站建设空间广州seo怎么做
  • php网站日历选择日期怎么做百度推广落地页
  • 广东河源网站建设百度搜索引擎盘搜搜
  • 专业的网站制作公司地址三生网络营销靠谱吗
  • 海口公司做网站网时代教育培训机构官网
  • 帝国和织梦哪个做网站好竞价托管服务公司
  • 桂林建设网站微信小程序
  • 做网站可以在哪儿接活合肥seo整站优化网站
  • php网站开发背景友情链接又称
  • 活动策划网站企业网络营销策划案例
  • 网上购物系统数据流图seo营销方案
  • 安康市建设局网站百度风云榜排行榜
  • 网站 防采集广州网站推广平台
  • 如何在网站上做跳转代码企业管理培训课程报名
  • 分类信息网站建设atp最新排名
  • 太原做网站哪家好湖南网站营销seo方案
  • 西宁做网站君博推荐百度网址安全检测中心
  • 国内做新闻比较好的网站软文广告例子
  • 长沙网站建设工作室bt磁力
  • 宿迁哪家做网站好seo标题优化
  • 建设网站公司联系方式怎么优化网站性能
  • 好看的网站界面设计网站seo关键词排名查询
  • 网站建设案例典型企业案例泰州百度seo公司
  • 太原网站建设百度搜索页面
  • 画册设计一般用什么软件成都高新seo
  • 腾讯建站模板广告推广代运营公司
  • 电商网站上信息资源的特点包括百度竞价排名又叫
  • 动漫电影做英语教学视频网站有哪些教育培训报名