# sample-videoanalysiscar **Repository Path**: ssddn/sample-videoanalysiscar ## Basic Information - **Project Name**: sample-videoanalysiscar - **Description**: 开发者将本Application部署至Atlas 200 DK或者AI加速云服务器上实现对本地mp4文件或者RTSP视频流进行解码,对视频帧中的车辆并对其属性进行预测,生成结构化信息发送至Server端进行保存、展示的功能 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-04-23 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 中文|[英文](README.md) # 车辆检测 开发者将本Application部署至Atlas 200 DK或者AI加速云服务器上实现对本地mp4文件或者RTSP视频流进行解码,对视频帧中的车辆并对其属性进行预测,生成结构化信息发送至Server端进行保存、展示的功能。 ## 前提条件 部署此Sample前,需要准备好以下环境: - 已完成Mind Studio的安装。 - 已完成Atlas 200 DK开发者板与Mind Studio的连接,交叉编译器的安装,SD卡的制作及基本信息的配置等。 ## 软件准备 运行此Sample前,需要按照此章节获取源码包,并进行相关的环境配置。 1. 获取源码包。 将[https://gitee.com/Atlas200DK/sample-videoanalysiscar](https://gitee.com/Atlas200DK/sample-videoanalysiscar)仓中的代码以Mind Studio安装用户下载至Mind Studio所在Ubuntu服务器的任意目录,例如代码存放路径为:$HOME/sample-videoanalysiscar。 2. 获取此应用中所需要的原始网络模型。 参考[表1](#zh-cn_topic_0182554635_table117203103464)获取此应用中所用到的原始网络模型及其对应的权重文件,并将其存放到Mind Studio所在Ubuntu服务器的任意目录,例如:$HOME/ascend/models/videoanalysiscar。 **表 1** 车辆检测应用中使用的模型
请参考https://gitee.com/HuaweiAscend/models/tree/master/computer_vision/classification/car_color目录中README.md下载原始网络模型文件及其对应的权重文件。 |
||
请参考https://gitee.com/HuaweiAscend/models/tree/master/computer_vision/classification/car_type目录中README.md下载原始网络模型文件及其对应的权重文件。 |
||
请参考https://gitee.com/HuaweiAscend/models/tree/master/computer_vision/object_detect/car_plate_detection目录中README.md下载原始网络模型文件及其对应的权重文件。 |
||
请参考https://gitee.com/HuaweiAscend/models/tree/master/computer_vision/classification/car_plate_recognition目录中README.md下载原始网络模型文件及其对应的权重文件。 |
||
请参考https://gitee.com/HuaweiAscend/models/tree/master/computer_vision/object_detect/vgg_ssd目录中README.md下载原始网络模型文件及其对应的权重文件。 |
ffmpeg 4.0代码下载地址:https://gitee.com/mirrors/ffmpeg/tree/release%2F4.0/。 |
||
可以在python官网https://pypi.org/上搜索相关包进行安装。 若使用pip3 install命令在线下载,可以使用如下命令指定相关版本进行下载,例如 pip3 install tornado==5.1.0 -i 指定库的安装源 --trusted-host 安装源的主机名 |