20241225在ubuntu22.04.5下使用smartmontools命令查看ssd的寿命

news2024/12/26 11:33:24

20241225在ubuntu22.04.5下使用smartmontools命令查看ssd的寿命
2024/12/25 15:10


rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo apt install smartmontools
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo fdisk -l
Disk /dev/nvme0n1: 3.73 TiB, 4096805658624 bytes, 8001573552 sectors
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo smartctl -l devstat /dev/nvme0n1 -a
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ smartctl -version
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo hdparm -I /dev/nvme0n1


rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo apt install smartmontools
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libaacs0 libass9 libavformat58 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1 libflashrom1 libflite1 libftdi1-2 libgme0
  libgstreamer-plugins-bad1.0-0 liblilv-0-0 libllvm13 libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4 librubberband2 libserd-0-0 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls
  libssh-gcrypt-4 libswscale5 libudfread0 libva-wayland2 libvidstab1.1 libzimg2 libzmq5 pocketsphinx-en-us
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  gsmartcontrol smart-notifier mailx | mailutils
The following NEW packages will be installed:
  smartmontools
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 583 kB of archives.
After this operation, 1,980 kB of additional disk space will be used.
0% [Working]y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 smartmontools amd64 7.2-1ubuntu0.1 [583 kB]
Fetched 583 kB in 21s (27.3 kB/s)              
Selecting previously unselected package smartmontools.
(Reading database ... 218828 files and directories currently installed.)
Preparing to unpack .../smartmontools_7.2-1ubuntu0.1_amd64.deb ...
Unpacking smartmontools (7.2-1ubuntu0.1) ...
Setting up smartmontools (7.2-1ubuntu0.1) ...
Created symlink /etc/systemd/system/smartd.service → /lib/systemd/system/smartmontools.service.
Created symlink /etc/systemd/system/multi-user.target.wants/smartmontools.service → /lib/systemd/system/smartmontools.service.
Processing triggers for man-db (2.10.2-1) ...
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ cat /etc/issue
Ubuntu 22.04.5 LTS \n \l

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ uname -a
Linux rootroot-ThinkBook-16-G5-IRH 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 


参考资料:
百度:ubuntu查看ssd寿命


https://www.sysgeek.cn/check-ssd-health-in-linux/
5 种简单方法,在 Linux 中检查 SSD 健康状态
发布日期:2023-11-15 分类:Linux 阅读(12786) 评论(0) 赞(1)


https://blog.csdn.net/zhzgbf/article/details/128868847
linux 查看 SSD 固态硬盘 使用寿命

linux 下面只有 smartmontools 这一个工具,并且只对像三星和 intel 这样的大厂支持良好,其它品牌可能会出现无法获取数据的情况

安装 smartmontools

apt install smartmontools -y   # ubuntu 系统命令
yum install -y smartmontools   # centos 系统命令
使用以下命令查看SSD硬盘输出( /dev/sdb 是需要查看的SSD固态硬盘),其中最后一个最重要和直观 “ Percentage Used Endurance Indicator ” ,单位是百分比,新的是 0%,我现在的是 1%。

smartctl -l devstat /dev/sdb


详细的LOG:
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo apt install smartmontools
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libaacs0 libass9 libavformat58 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1 libflashrom1 libflite1 libftdi1-2 libgme0
  libgstreamer-plugins-bad1.0-0 liblilv-0-0 libllvm13 libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4 librubberband2 libserd-0-0 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls
  libssh-gcrypt-4 libswscale5 libudfread0 libva-wayland2 libvidstab1.1 libzimg2 libzmq5 pocketsphinx-en-us
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  gsmartcontrol smart-notifier mailx | mailutils
The following NEW packages will be installed:
  smartmontools
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 583 kB of archives.
After this operation, 1,980 kB of additional disk space will be used.
0% [Working]y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 smartmontools amd64 7.2-1ubuntu0.1 [583 kB]
Fetched 583 kB in 21s (27.3 kB/s)              
Selecting previously unselected package smartmontools.
(Reading database ... 218828 files and directories currently installed.)
Preparing to unpack .../smartmontools_7.2-1ubuntu0.1_amd64.deb ...
Unpacking smartmontools (7.2-1ubuntu0.1) ...
Setting up smartmontools (7.2-1ubuntu0.1) ...
Created symlink /etc/systemd/system/smartd.service → /lib/systemd/system/smartmontools.service.
Created symlink /etc/systemd/system/multi-user.target.wants/smartmontools.service → /lib/systemd/system/smartmontools.service.
Processing triggers for man-db (2.10.2-1) ...
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ cat /etc/issue
Ubuntu 22.04.5 LTS \n \l

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ uname -a
Linux rootroot-ThinkBook-16-G5-IRH 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo fdisk -l
Disk /dev/loop0: 61.89 MiB, 64901120 bytes, 126760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 63.7 MiB, 66789376 bytes, 130448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 73.87 MiB, 77459456 bytes, 151288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 155.63 MiB, 163188736 bytes, 318728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 349.7 MiB, 366682112 bytes, 716176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 248.76 MiB, 260841472 bytes, 509456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 505.09 MiB, 529625088 bytes, 1034424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 3.73 TiB, 4096805658624 bytes, 8001573552 sectors
Disk model: Lexar SSD ARES 4TB                      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B13A60C4-1CCC-4222-9F95-76DFC122ED97

Device              Start        End    Sectors   Size Type
/dev/nvme0n1p1       2048     206847     204800   100M EFI System
/dev/nvme0n1p2     206848     239615      32768    16M Microsoft reserved
/dev/nvme0n1p3     239616  875161852  874922237 417.2G Microsoft basic data
/dev/nvme0n1p4  875163648 2017761279 1142597632 544.8G Microsoft basic data
/dev/nvme0n1p5 8000360448 8001570815    1210368   591M Windows recovery environment
/dev/nvme0n1p6 2017761280 2018719743     958464   468M Linux filesystem
/dev/nvme0n1p7 2018719744 2049970175   31250432  14.9G Linux swap
/dev/nvme0n1p8 2049970176 7863642111 5813671936   2.7T Linux filesystem
/dev/nvme0n1p9 7863642112 8000360447  136718336  65.2G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/loop8: 81.26 MiB, 85209088 bytes, 166424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 91.69 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 45.86 MiB, 48087040 bytes, 93920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 44.3 MiB, 46448640 bytes, 90720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 284 KiB, 290816 bytes, 568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop13: 568 KiB, 581632 bytes, 1136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop14: 12.2 MiB, 12791808 bytes, 24984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ smartctl -l devstat /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-49-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/nvme0n1 failed: Permission denied
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo smartctl -l devstat /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-49-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo smartctl -l devstat /dev/nvme0n1 -a
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-49-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Lexar SSD ARES 4TB
Serial Number:                      PB1602R001379P2202
Firmware Version:                   12237
PCI Vendor/Subsystem ID:            0x1d97
IEEE OUI Identifier:                0xcaf25b
Total NVM Capacity:                 4,096,805,658,624 [4.09 TB]
Unallocated NVM Capacity:           0
Controller ID:                      0
NVMe Version:                       2.0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          4,096,805,658,624 [4.09 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            caf25b 035e0001a4
Local Time is:                      Wed Dec 25 15:14:23 2024 CST
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Log Page Attributes (0x0a):         Cmd_Eff_Lg Telmtry_Lg
Maximum Data Transfer Size:         128 Pages
Warning  Comp. Temp. Threshold:     90 Celsius
Critical Comp. Temp. Threshold:     95 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     6.50W       -        -    0  0  0  0        0       0
 1 +     5.80W       -        -    1  1  1  1        0       0
 2 +     3.60W       -        -    2  2  2  2        0       0
 3 -   0.0500W       -        -    3  3  3  3     5000   10000
 4 -   0.0025W       -        -    4  4  4  4     8000   41000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        34 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%

Percentage Used:                    0%
Data Units Read:                    3,045,211 [1.55 TB]
Data Units Written:                 3,637,083 [1.86 TB]

Host Read Commands:                 23,836,528
Host Write Commands:                19,141,439
Controller Busy Time:               19
Power Cycles:                       12
Power On Hours:                     12
Unsafe Shutdowns:                   3
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               34 Celsius
Temperature Sensor 2:               28 Celsius

Error Information (NVMe Log 0x01, 16 of 64 entries)
No Errors Logged

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ smartctl -version
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.8.0-49-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=======> INVALID ARGUMENT TO -v: ersion
=======> VALID ARGUMENTS ARE:
    help
    N,raw8[:012345rvwz][,ATTR_NAME]
    N,raw16[:012345rvwz][,ATTR_NAME]
    N,raw48[:012345rvwz][,ATTR_NAME]
    N,hex48[:012345rvwz][,ATTR_NAME]
    N,raw56[:012345rvwz][,ATTR_NAME]
    N,hex56[:012345rvwz][,ATTR_NAME]
    N,raw64[:012345rvwz][,ATTR_NAME]
    N,hex64[:012345rvwz][,ATTR_NAME]
    N,raw16(raw16)[:012345rvwz][,ATTR_NAME]
    N,raw16(avg16)[:012345rvwz][,ATTR_NAME]
    N,raw24(raw8)[:012345rvwz][,ATTR_NAME]
    N,raw24/raw24[:012345rvwz][,ATTR_NAME]
    N,raw24/raw32[:012345rvwz][,ATTR_NAME]
    N,sec2hour[:012345rvwz][,ATTR_NAME]
    N,min2hour[:012345rvwz][,ATTR_NAME]
    N,halfmin2hour[:012345rvwz][,ATTR_NAME]
    N,msec24hour32[:012345rvwz][,ATTR_NAME]
    N,tempminmax[:012345rvwz][,ATTR_NAME]
    N,temp10x[:012345rvwz][,ATTR_NAME]
    9,halfminutes
    9,minutes
    9,seconds
    9,temp
    192,emergencyretractcyclect
    193,loadunload
    194,10xCelsius
    194,unknown
    197,increasing
    198,offlinescanuncsectorct
    198,increasing
    200,writeerrorcount
    201,detectedtacount
    220,temp
<=======

Use smartctl -h to get a usage summary

rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ sudo hdparm -I /dev/nvme0n1
[sudo] password for rootroot: 

/dev/nvme0n1:
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ 


fdisk

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2265816.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

ASP.NET |日常开发中定时任务详解

ASP.NET &#xff5c;日常开发中定时任务详解 前言一、定时任务的概念与用途1.1 定义1.2 应用场景 二、在ASP.NET中实现定时任务的方式2.1 使用System.Timers.Timer2.2 使用Quartz.NET 三、定时任务的部署与管理3.1 部署考虑因素3.2 管理与监控 结束语优质源码分享 ASP.NET &am…

整车厂如何规划构建汽车集成安全团队的软件研发能力

&#xff08;一&#xff09;、汽车集成安全团队职责 汽车集成安全团队肩负着保障汽车整体安全性的重任&#xff0c;从多个维度守护驾乘人员安全与车辆稳定运行&#xff0c;其主要职责如下&#xff1a; 功能安全管理 标准遵循与流程制定&#xff1a;严格依据ISO 26262等功能安…

使用 Python 创建多栏 Word 文档 – 详解

目录 引言 一、工具与安装 二、Python 在 Word 中创建简单的多栏布局 三、Python 在 Word 文档的栏间添加分隔线 四、Python 从Word文档的指定位置开启多栏设置 五、Python 为多栏 Word 文档的各栏添加页码 引言 在文档设计中&#xff0c;排版不仅决定了内容的呈现方式&…

使用强化学习与遗传算法优化3D低空物流路径_版本2

在快速发展的物流与自主系统领域&#xff0c;优化无人机在三维空间中的飞行路径至关重要。无论是在城市环境中导航还是在复杂地形中穿行&#xff0c;确保高效、安全且节能的航线规划能够显著提升运营效率。本文将深入探讨一种创新方法&#xff0c;结合强化学习&#xff08;Rein…

[手机Linux] 七,NextCloud优化设置

安装完成后在个人设置里发现很多警告&#xff0c;一一消除。 只能一条一条解决了。 关于您的设置有一些错误。 1&#xff0c;PHP 内存限制低于建议值 512 MB。 设置php配置文件&#xff1a; /usr/local/php/etc/php.ini 把里面的&#xff1a; memory_limit 128M 根据你自…

【设备 磁盘】重要备份存放U盘的风险 + winhex 磁盘清零(清理windows无法格式化的磁盘)

简述 清理用设备管理器和DiskGenious无法打开的磁盘 winhex安装 官网https://www.x-ways.net/winhex/下载&#xff0c;解压后以管理员身份运行 注意&#xff1a;非完全版不能像磁盘写入编辑后的数据 使用 解压后直接点击打开即可 打开磁盘 “全选”后&#xff0c;选择…

从LockSupport开始带来的思考

LockSupport是什么 LockSupport是JUC下的一个线程同步工具类&#xff0c;实现了线程的阻塞和唤醒操作。相比其他同步机制&#xff0c;如Synchronized、ReentrantLock等&#xff0c;LockSupport的性能更高、更灵活&#xff0c;同时也可以避免线程操作不当引起的死锁问题。Java中…

树莓集团:以产教融合助力人才培养

在当今快速发展的数字时代&#xff0c;人才是推动产业进步和创新的核心驱动力。树莓集团作为数字产业生态链建设者&#xff0c;深刻认识到人才培养的关键意义&#xff0c;积极探索并大力践行产教融合模式&#xff0c;为数字产业源源不断地输送高素质专业人才&#xff0c;在助力…

基于ISO 21434的汽车网络安全实践

商业领域的IT系统和嵌入式产品的IT系统正在融合为一种多功能系统。相应地&#xff0c;关注汽车网络安全的ISO 21434标准应运而生。该标准的意义在于提供了一个指南&#xff0c;可用于降低产品、项目和组织中存在的安全风险。为了有效实施ISO 21434标准&#xff0c;本文介绍了遵…

3.银河麒麟V10 离线安装Nginx

1. 下载nginx离线安装包 前往官网下载离线压缩包 2. 下载3个依赖 openssl依赖&#xff0c;前往 官网下载 pcre2依赖下载&#xff0c;前往Git下载 zlib依赖下载&#xff0c;前往Git下载 下载完成后完整的包如下&#xff1a; 如果网速下载不到请使用网盘下载 通过网盘分享的文件…

视频监控平台:Liveweb视频汇聚融合平台智慧安防视频监控应用方案

Liveweb是一款功能强大、灵活部署的安防视频监控平台&#xff0c;支持多种主流标准协议&#xff0c;包括GB28181、RTSP/Onvif、RTMP等&#xff0c;同时兼容海康Ehome、海大宇等厂家的私有协议和SDK接入。该平台不仅提供传统安防监控功能&#xff0c;还支持接入AI智能分析&#…

【视觉惯性SLAM:对极几何】

对极几何&#xff08;Epipolar Geometry&#xff09;介绍 对极几何是立体视觉中的核心内容之一&#xff0c;它描述了两个相机在观察同一个三维场景时&#xff0c;成像平面之间的几何关系。对极几何能够约束图像中对应点的位置关系&#xff0c;是双目立体匹配、三维重建、以及位…

Scala_【2】变量和数据类型

第二章 注释标识符的命名规范命名规则关键字 变量字符串输出数据类型关系变量和数据类型整数类型&#xff08;Byte、Short、Int、Long&#xff09;浮点类型&#xff08;Float、Double&#xff09;字符类型&#xff08;Char&#xff09;布尔类型&#xff08;Boolean&#xff09;…

华为实训课笔记 2024 1223-1224

华为实训 12/2312/24 12/23 [Huawei]stp enable --开启STP display stp brief --查询STP MSTID Port Role STP State Protection 实例ID 端口 端口角色 端口状态 是否开启保护[Huawei]display stp vlan xxxx --查询制定vlan的生成树计算结…

HarmonyOS NEXT 实战之元服务:静态案例效果--航空出行

背景&#xff1a; 前几篇学习了元服务&#xff0c;后面几期就让我们开发简单的元服务吧&#xff0c;里面丰富的内容大家自己加&#xff0c;本期案例 仅供参考 先上本期效果图 &#xff0c;里面图片自行替换 效果图1完整代码案例如下&#xff1a; import { authentication } …

WebRTC搭建与应用(五)-Coturn踩坑记

WebRTC搭建与应用(五)-Coturn踩坑记 近期由于项目需要在研究前端WebGL渲染转为云渲染&#xff0c;借此机会对WebRTC等有了初步了解&#xff0c;在此记录一下&#xff0c;以防遗忘。 第五章 WebRTC搭建与应用(五)-Coturn踩坑记 文章目录 WebRTC搭建与应用(五)-Coturn踩坑记前…

STM32-笔记14-排队控制系统

一、项目需求 1. 红外传感器检测有人通过并计数&#xff1b; 2. 计数值显示在LCD1602 3. 允许通过时&#xff0c;LED1闪烁&#xff0c;蜂鸣器不响&#xff0c;继电器不闭合&#xff1b; 4. 不允许通过时&#xff0c;LED2闪烁&#xff0c;蜂鸣器响&#xff0c;继电器闭合&#…

【QT开发自制小工具】PDF/图片转excel---调用百度OCR API接口

前言 前几年WPS还可以免费处理5页以内的PDF转excel&#xff0c;现在必须付费了&#xff0c;而且百度其他在线的PDF转excel都是要收费的&#xff0c;刚好前几年调研过百度OCR的高精度含位置接口&#xff0c;依然是每天可以免费调用50次&#xff0c;本篇是基于此接口&#xff0c;…

【机器学习】机器学习的基本分类-半监督学习(Semi-supervised Learning)

半监督学习是一种介于监督学习和无监督学习之间的机器学习方法。它利用少量的标注数据&#xff08;有监督数据&#xff09;和大量的未标注数据&#xff08;无监督数据&#xff09;来进行模型训练&#xff0c;从而在标注数据不足的情况下&#xff0c;提升模型的性能。 半监督学习…