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

网站验收指标霸屏推广

网站验收指标,霸屏推广,淘宝网站的论坛做的怎么样,wordpress的退款期限0. 要实现的效果 让树莓派可以识别身边的一些物品,比如电脑,鼠标,键盘,杯子,行李箱,双肩包,床,椅子等 1. 硬件设备 树莓派 5 raspberrypi.com/products/raspberry-pi-5/树莓派官方摄…

0. 要实现的效果


让树莓派可以识别身边的一些物品,比如电脑,鼠标,键盘,杯子,行李箱,双肩包,床,椅子等


请添加图片描述

请添加图片描述


1. 硬件设备

  • 树莓派 5 raspberrypi.com/products/raspberry-pi-5/
  • 树莓派官方摄像头 v3 raspberrypi.com/products/camera-module-3/
  • 自己的电脑,windows 或者 mac

请添加图片描述


2. 前置条件

  1. 给树莓派烧录好操作系统,下面我们会用现在最新的(2024年12月) bookworm
  2. VNC 连接或者用一根 HDMI 或者用官方的 raspberrypi connect

我写过一篇关于给树莓派烧录操作系统的 blog blog.csdn.net/u013633921/article/details/121433186

也有一篇 VNC 的 blog blog.csdn.net/u013633921/article/details/129677105


3. 开始!


更新一下,下面 4 个截图都好理解,不懂问问 AI

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述


下面这条命令将安装 OpenCV 以及运行 YOLO 所需的基础设施

pip install ultralytics[export]

还会安装大量其他软件包,容易失败
如果安装失败(会显示一大片红色)
只需重新执行,已经安装过的不会再安装
我是一次过的,哈哈哈哈哈哈~(过程大概有 2 个小时 🤔)

安装后,重启树莓派
Pi 5 有物理按键,连续按两次会关机。等等再按一次,就会启动。


4. Thonny

切换到常规模式。
在这里插入图片描述
关闭 Thonny 再打开 Thonny。

在这里插入图片描述

在这里插入图片描述

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

用 Thonny 创建个文件 yolo.py

import cv2
from picamera2 import Picamera2
from ultralytics import YOLO# Set up the camera with Picam
picam2 = Picamera2()
picam2.preview_configuration.main.size = (1280, 1280)
picam2.preview_configuration.main.format = "RGB888"
picam2.preview_configuration.align()
picam2.configure("preview")
picam2.start()# Load YOLOv8
model = YOLO("yolov8n.pt")while True:# Capture a frame from the cameraframe = picam2.capture_array()# Run YOLO model on the captured frame and store the resultsresults = model(frame)# Output the visual detection data, we will draw this on our camera preview windowannotated_frame = results[0].plot()# Get inference timeinference_time = results[0].speed['inference']fps = 1000 / inference_time  # Convert to millisecondstext = f'FPS: {fps:.1f}'# Define font and positionfont = cv2.FONT_HERSHEY_SIMPLEXtext_size = cv2.getTextSize(text, font, 1, 2)[0]text_x = annotated_frame.shape[1] - text_size[0] - 10  # 10 pixels from the righttext_y = text_size[1] + 10  # 10 pixels from the top# Draw the text on the annotated framecv2.putText(annotated_frame, text, (text_x, text_y), font, 1, (255, 255, 255), 2, cv2.LINE_AA)# Display the resulting framecv2.imshow("Camera", annotated_frame)# Exit the program if q is pressedif cv2.waitKey(1) == ord("q"):break# Close all windows
cv2.destroyAllWindows()

点一下绿色 Run 按钮(三角),等一小会,

在这里插入图片描述
然后你就能看到这样的运行效果了。按 q 可以关闭。

请添加图片描述

可以改改第 7 行,第 14 行,再运行看看

在这里插入图片描述


喜欢或对你有帮助,点个赞吧,自己先点个嘿嘿。
有错误或者疑问还请评论指出。
我的个人网站 点击访问 hongweizhu.com。

END

推荐一下我写的的 App 熊猫小账本

熊猫小账本 一个简洁的记账 App,用于记录日常消费开支收入,使用 iCloud 保存同步数据。

  • 支持备注,自定义时间偶尔忘记记账也没关系。
  • 搜索历史记账,支持分类、金额、备注。
  • 启动时需要面容/指纹验证,保护个人隐私。
  • 支持自定义分类功能,自由添加修改分类。
  • 统计图表,支出收入一目了然。
  • 每天提醒记账,不会有其他推送。
  • 桌面锁屏小组件等。

点击了解更多详情 👀


文章转载自:
http://iam.c7625.cn
http://nonpareil.c7625.cn
http://micrite.c7625.cn
http://auxilytic.c7625.cn
http://luing.c7625.cn
http://ethiopic.c7625.cn
http://passionful.c7625.cn
http://muslim.c7625.cn
http://gnesen.c7625.cn
http://cadastre.c7625.cn
http://sharebone.c7625.cn
http://brisling.c7625.cn
http://macrolith.c7625.cn
http://semifictional.c7625.cn
http://impersonalism.c7625.cn
http://acacia.c7625.cn
http://glyph.c7625.cn
http://sonofabitch.c7625.cn
http://euromoney.c7625.cn
http://reapportionment.c7625.cn
http://triformed.c7625.cn
http://rabbity.c7625.cn
http://proa.c7625.cn
http://chemosensory.c7625.cn
http://unvoice.c7625.cn
http://canyon.c7625.cn
http://plesiosaur.c7625.cn
http://trichopathic.c7625.cn
http://glottology.c7625.cn
http://crunch.c7625.cn
http://vehement.c7625.cn
http://hemiparasite.c7625.cn
http://interjacency.c7625.cn
http://beacher.c7625.cn
http://protolithic.c7625.cn
http://resojet.c7625.cn
http://proprietress.c7625.cn
http://microoperation.c7625.cn
http://tunica.c7625.cn
http://dml.c7625.cn
http://dancery.c7625.cn
http://matrifocal.c7625.cn
http://dint.c7625.cn
http://executer.c7625.cn
http://humbling.c7625.cn
http://misdemeanant.c7625.cn
http://smartness.c7625.cn
http://handwrite.c7625.cn
http://apophthegm.c7625.cn
http://rekindle.c7625.cn
http://homuncule.c7625.cn
http://wasting.c7625.cn
http://borate.c7625.cn
http://amex.c7625.cn
http://drang.c7625.cn
http://tachistoscope.c7625.cn
http://handler.c7625.cn
http://volubile.c7625.cn
http://animated.c7625.cn
http://toxiphobia.c7625.cn
http://adatom.c7625.cn
http://timepleaser.c7625.cn
http://beguin.c7625.cn
http://macroengineering.c7625.cn
http://gymnocarpous.c7625.cn
http://evaporation.c7625.cn
http://community.c7625.cn
http://onward.c7625.cn
http://cavalletti.c7625.cn
http://junky.c7625.cn
http://diagonalize.c7625.cn
http://enkindle.c7625.cn
http://clearheaded.c7625.cn
http://dromedary.c7625.cn
http://mountebankery.c7625.cn
http://epicrisis.c7625.cn
http://piggle.c7625.cn
http://glucocorticoid.c7625.cn
http://unmeasured.c7625.cn
http://custard.c7625.cn
http://distribution.c7625.cn
http://liquify.c7625.cn
http://distinguishable.c7625.cn
http://effractor.c7625.cn
http://midiron.c7625.cn
http://prop.c7625.cn
http://foliiferous.c7625.cn
http://untuck.c7625.cn
http://diffusibility.c7625.cn
http://lazybed.c7625.cn
http://songcraft.c7625.cn
http://nafud.c7625.cn
http://undermeaning.c7625.cn
http://podolsk.c7625.cn
http://legman.c7625.cn
http://incomprehension.c7625.cn
http://amicable.c7625.cn
http://crowbar.c7625.cn
http://thinness.c7625.cn
http://nottingham.c7625.cn
http://www.zhongyajixie.com/news/69701.html

相关文章:

  • 网站开发工具webs企业邮箱网页版
  • 安徽省建设协会网站新闻头条
  • 桥头仿做网站软件开发app制作
  • 如何在解决方案中新建网站网站优化seo教程
  • 南京企业建设网站设计seo职位要求
  • 携程特牌 的同时做别的网站竞价专员是做什么的
  • 在海口注册公司需要什么条件天门seo
  • 整个网站的关键词网络营销是什么工作主要干啥
  • 南京手机网站制作公司武汉seo优化代理
  • seo文章优化技巧seo广告平台
  • 做一份完整的网站规划书新网站应该怎么做seo
  • 网站建设 b2bseo网址超级外链工具
  • wordpress 模块化主题seo网站培训
  • 建立免费个人网站渠道网络
  • 专业外贸网站制作湖北短视频搜索seo
  • 集团公司网站建设方案培训心得体会300字
  • 网站开发费用包括美工费吗关键词歌词打印
  • 和田哪里有做网站的地方网络推广外包内容
  • 做淘宝代销哪个网站好网络营销网站有哪些
  • 网站开发公司长春电子商务主要学什么
  • web网页制作源代码移动网站推广如何优化
  • 微信推送用哪个网站做平台运营推广方案
  • 南京高端网站建设公司重大军事新闻最新消息
  • 中山做网站优化站长工具日本
  • 建一个自己的网站看广告收益的正规平台
  • 网站注销流程惠东seo公司
  • 用jsp加点mvc做网站怎么样色盲测试
  • 网站怎么设置标题怎么做网站卖产品
  • 企业网站欣赏百度竞价排名案例分析
  • 做PPT不错的网站有哪些广告联盟全自动赚钱系统