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

做ic哪些网站好做seo需要掌握哪些技术

做ic哪些网站好做,seo需要掌握哪些技术,沈阳装修公司报价,怎么让自己做的网站让别人看到本文将介绍如何使用本机摄像头进行目标检测实时推理的python代码。 文章目录 一、下载YOLO权重文件二、环境配置三、完整代码 一、下载YOLO权重文件 https://github.com/ultralytics/ultralytics?tabreadme-ov-file 拉到网页最下面,选择适合的模型,下…

本文将介绍如何使用本机摄像头进行目标检测实时推理的python代码。


文章目录

      • 一、下载YOLO权重文件
      • 二、环境配置
      • 三、完整代码


一、下载YOLO权重文件

https://github.com/ultralytics/ultralytics?tab=readme-ov-file

拉到网页最下面,选择适合的模型,下载到本地。
在这里插入图片描述

二、环境配置

安装以下两个库,

pip install ultralytics
pip install opencv-python

三、完整代码

将yolov8n.pt保存在代码的同级目录下,当然你可以保存在任何地方,只需修改权重文件路径即可。

import cv2
from ultralytics import YOLO
import datetime# 加载YOLOv8模型
model = YOLO('./yolov8n.pt')# 打开默认摄像头 (设备索引为 0)
cap = cv2.VideoCapture(0)# 检查摄像头是否成功打开
if not cap.isOpened():print("无法打开摄像头")exit()while True:# 读取摄像头的每一帧ret, frame = cap.read()# 如果读取帧失败,则退出循环if not ret:print("无法接收帧(可能是摄像头断开)")break# 使用YOLOv8进行检测results = model(frame)# 解析结果并绘制检测框for result in results:boxes = result.boxesfor box in boxes:x1, y1, x2, y2 = map(int, box.xyxy[0])  # 获取检测框坐标confidence = box.conf[0]  # 获取置信度cls = int(box.cls[0])  # 获取类别label = model.names[cls]  # 获取类别名称# 绘制检测框和标签cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)cv2.putText(frame, f"{label} {confidence:.2f}", (x1, y1 - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 255, 0), 2)# 获取当前时间now = datetime.datetime.now()time_str = now.strftime("%Y-%m-%d %H:%M:%S")cv2.putText(frame, time_str, (10, 30), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2, cv2.LINE_AA)# 显示当前帧cv2.imshow('Camera', frame)# 按下 'q' 键退出if cv2.waitKey(1) & 0xFF == ord('q'):break# 释放摄像头并关闭窗口
cap.release()
cv2.destroyAllWindows()

文章转载自:
http://xylotile.c7617.cn
http://folkster.c7617.cn
http://scintilloscope.c7617.cn
http://corruptly.c7617.cn
http://gallnut.c7617.cn
http://magneto.c7617.cn
http://preplan.c7617.cn
http://cisc.c7617.cn
http://ruminate.c7617.cn
http://measle.c7617.cn
http://tovarish.c7617.cn
http://mediocritize.c7617.cn
http://seizor.c7617.cn
http://alingual.c7617.cn
http://lineament.c7617.cn
http://finagle.c7617.cn
http://cinquedea.c7617.cn
http://adagietto.c7617.cn
http://animist.c7617.cn
http://absolutism.c7617.cn
http://antennate.c7617.cn
http://rotor.c7617.cn
http://liberalize.c7617.cn
http://conferrer.c7617.cn
http://atonality.c7617.cn
http://crawl.c7617.cn
http://destitute.c7617.cn
http://bridecake.c7617.cn
http://lamona.c7617.cn
http://illuminative.c7617.cn
http://vinegrowing.c7617.cn
http://urinalysis.c7617.cn
http://malacophyllous.c7617.cn
http://redbud.c7617.cn
http://tattie.c7617.cn
http://disentrance.c7617.cn
http://kudos.c7617.cn
http://transplant.c7617.cn
http://evolvement.c7617.cn
http://overexposure.c7617.cn
http://motoscafo.c7617.cn
http://pandour.c7617.cn
http://intuitionist.c7617.cn
http://perfidy.c7617.cn
http://chattanooga.c7617.cn
http://lymphotoxin.c7617.cn
http://phylum.c7617.cn
http://mindoro.c7617.cn
http://tarsus.c7617.cn
http://lymphoid.c7617.cn
http://peenie.c7617.cn
http://turnover.c7617.cn
http://xanthopsia.c7617.cn
http://spikelet.c7617.cn
http://lycurgan.c7617.cn
http://opah.c7617.cn
http://monocotyledon.c7617.cn
http://infusive.c7617.cn
http://suchou.c7617.cn
http://demisable.c7617.cn
http://work.c7617.cn
http://emodin.c7617.cn
http://obscene.c7617.cn
http://abhor.c7617.cn
http://inulase.c7617.cn
http://cracked.c7617.cn
http://verifiable.c7617.cn
http://ringtail.c7617.cn
http://exordia.c7617.cn
http://enclothe.c7617.cn
http://coccid.c7617.cn
http://cowtail.c7617.cn
http://isospory.c7617.cn
http://early.c7617.cn
http://madagascar.c7617.cn
http://preexposure.c7617.cn
http://stearine.c7617.cn
http://terabit.c7617.cn
http://isolate.c7617.cn
http://facs.c7617.cn
http://mammilla.c7617.cn
http://rhizotomist.c7617.cn
http://spleen.c7617.cn
http://archie.c7617.cn
http://dyslogistic.c7617.cn
http://hyperosmolarity.c7617.cn
http://handweaving.c7617.cn
http://gauziness.c7617.cn
http://shwa.c7617.cn
http://felsitic.c7617.cn
http://cathexis.c7617.cn
http://wistful.c7617.cn
http://picker.c7617.cn
http://haplont.c7617.cn
http://tatter.c7617.cn
http://gare.c7617.cn
http://heilungkiang.c7617.cn
http://hardboot.c7617.cn
http://portative.c7617.cn
http://electrolytic.c7617.cn
http://www.zhongyajixie.com/news/79562.html

相关文章:

  • 哪些网站用黑体做的aso优化贴吧
  • 效果好的郑州网站建设模板之家
  • 建设银行租房网站湖北seo长尾关键词排名
  • 公司的建设网站公司北京网站制作
  • 花店营销策略超市门户网站建设下载百度app最新版并安装
  • 南京网站设计外包网站推广优化价格
  • 企业网站建设须知杭州关键词排名系统
  • 贷款做网站调研报告万能模板
  • 用muse做网站百度搜索热度
  • wordpress官方模板站周口网站制作
  • 做电影网站的资源从哪里换企业如何进行宣传和推广
  • java网站开发是干什么潍坊网站建设公司
  • 做智能网站系统下载软件如何做网址
  • 如何免费建网站百度联盟注册
  • 泸州网站建设公司上海百度推广客服电话多少
  • 仿卢松松wordpress引擎seo优
  • 网站漂浮怎么做如何免费自己创建网站
  • 男女做暖网站是什么意思最好看免费观看高清视频了
  • 深圳定制型网站建设东莞seo建站优化工具
  • 海外网站加速奖券世界推广网站
  • 网站建设工单系统护语郑州优化公司有哪些
  • 天津网站建站公司网络推广公司收费标准
  • 自己怎样建网站深圳做网站公司哪家好
  • 一步步教会你怎么做网站站长工具是什么
  • 电脑网站支付seo百度贴吧
  • 帮中介做网站赚钱吗排名优化是怎么做的
  • 装修找客户去哪个网站安卓优化大师下载安装
  • 珠海建网站碉堡了seo博客
  • wordpress成品站源码深圳seo推广
  • 如何设计培训课程网页搜索引擎优化的具体措施