Amazon Rekognition Video Analyzer 项目教程

Amazon Rekognition Video Analyzer 项目教程

amazon-rekognition-video-analyzer A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list. amazon-rekognition-video-analyzer 项目地址: https://gitcode.com/gh_mirrors/am/amazon-rekognition-video-analyzer

1. 项目目录结构及介绍

amazon-rekognition-video-analyzer/
├── aws-infra/
├── client/
├── config/
├── doc/
├── lambda/
├── third-party/
├── web-ui/
├── .gitignore
├── LICENSE.TXT
├── NOTICE.txt
├── README.md
├── build.py

目录结构介绍

  • aws-infra/: 包含与AWS基础设施相关的配置和脚本。
  • client/: 包含视频捕捉客户端的代码。
  • config/: 包含项目的配置文件。
  • doc/: 包含项目的文档文件。
  • lambda/: 包含AWS Lambda函数的代码。
  • third-party/: 包含第三方依赖库。
  • web-ui/: 包含Web用户界面的代码。
  • .gitignore: Git忽略文件。
  • LICENSE.TXT: 项目许可证文件。
  • NOTICE.txt: 项目通知文件。
  • README.md: 项目介绍和使用说明。
  • build.py: 项目构建脚本。

2. 项目启动文件介绍

build.py

build.py 是项目的构建脚本,用于自动化项目的构建和部署过程。它负责配置AWS资源、打包Lambda函数、部署Web UI等任务。

启动步骤

  1. 配置AWS CLI: 确保AWS CLI已安装并配置好。
  2. 激活虚拟环境: 使用virtualenv创建并激活Python虚拟环境。
  3. 运行构建脚本: 在项目根目录下运行python build.py

3. 项目配置文件介绍

config/global-params.json

{
  "StackName": "video-analyzer-stack"
}
参数介绍
  • StackName: 指定在AWS账户中创建的CloudFormation堆栈的名称。

config/cfn-params.json

{
  "SourceS3BucketParameter": "<NO-DEFAULT>",
  "ImageProcessorSourceS3KeyParameter": "src/lambda_imageprocessor.zip",
  "FrameFetcherSourceS3KeyParameter": "src/lambda_framefetcher.zip",
  "FrameS3BucketNameParameter": "<NO-DEFAULT>",
  "FrameFetcherApiResourcePathPart": "enrichedframe",
  "ApiGatewayRestApiNameParameter": "VidAnalyzerRestApi",
  "ApiGatewayStageNameParameter": "development",
  "ApiGatewayUsagePlanNameParameter": "development-plan"
}
参数介绍
  • SourceS3BucketParameter: 指定用于存储Lambda函数包的S3桶名称。
  • ImageProcessorSourceS3KeyParameter: 指定Image Processor Lambda函数包的S3键。
  • FrameFetcherSourceS3KeyParameter: 指定Frame Fetcher Lambda函数包的S3键。
  • FrameS3BucketNameParameter: 指定用于存储视频帧图像的S3桶名称。
  • FrameFetcherApiResourcePathPart: 指定Frame Fetcher API资源路径部分。
  • ApiGatewayRestApiNameParameter: 指定要创建的API Gateway REST API的名称。
  • ApiGatewayStageNameParameter: 指定API Gateway阶段名称。
  • ApiGatewayUsagePlanNameParameter: 指定API Gateway使用计划名称。

通过以上配置文件和启动文件的介绍,您可以更好地理解和使用Amazon Rekognition Video Analyzer项目。

amazon-rekognition-video-analyzer A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list. amazon-rekognition-video-analyzer 项目地址: https://gitcode.com/gh_mirrors/am/amazon-rekognition-video-analyzer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

庞锦宇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值