Today, unfortunately, everyone is familiar with the term “social distance”. It’s something we will have to live with for a while until everything returns to normal. At Immune Technology Institute we have tried to develop an application using the TensorFlow Object Detection API for identifying and measuring the social distance between pedestrians.

不幸的是,今天,每个人都对“社会距离”一词很熟悉。 我们将不得不忍受一段时间,直到一切恢复正常。 在免疫技术学院,我们尝试使用TensorFlow对象检测API开发应用程序,以识别和测量行人之间的社交距离。

等待…什么是TensorFlow对象检测API? (Wait… What is the TensorFlow Object Detection API?)

The TensorFlow Object Detection API is the framework for creating a deep learning network that solves object detection problems. It contains some pre-trained models trained on different datasets which can be used for inference.

TensorFlow对象检测API是用于创建解决对象检测问题的深度学习网络的框架。 它包含一些在不同数据集上训练的预训练模型,可用于推理。

Additionally, we can use this framework for applying transfer learning in pre-trained models that were previously trained on large datasets which enables us to customize these models for a certain task. For instance, we can apply transfer learning to train a model for identifying if a person is wearing a mask or not.

此外,我们可以使用此框架在预先训练的模型中应用迁移学习 ,这些模型以前是在大型数据集上进行训练的,这使我们能够针对特定任务自定义这些模型。 例如,我们可以应用转移学习来训练一个模型,以识别一个人是否戴着口罩。

The intuition behind transfer learning for image classification is that if a model is trained on a large and general enough dataset, this model will effectively serve as a generic model of the visual world. You can then take advantage of these learned feature maps without having to start from scratch by training a large model on a large dataset.

转移学习进行图像分类的直觉是,如果在足够大且足够通用的数据集上训练模型,则该模型将有效地充当视觉世界的通用模型。 然后,您可以利用这些学习的功能图,而不必通过在大型数据集上训练大型模型而从头开始。

In this case, we did not need to apply transfer learning since we want to identify pedestrians, and there are already some models trained to inference this. We have used the model ssd_mobilenet_v2_coco_2018_03_29 which has been trained on these objects:

在这种情况下,我们不需要应用转移学习,因为我们想识别行人,并且已经有一些模型经过训练可以推断出这一点。 我们使用了模型ssd_mobilenet_v2_coco_2018_03_29 ,该模型已针对以下对象进行了训练:

Categories for model ssd_mobilenet_v2_coco_2018_03_29
型号ssd_mobilenet_v2_coco_2018_03_29的类别

For this use case, we only need to identify and display pedestrians, therefore we will create a function for filtering predictions by label and we are only going to display the person (id=1) labels.

对于此用例,我们只需要标识并显示行人 ,因此我们将创建一个用于按标签过滤预测的函数,并且仅显示person (id=1)标签。

我们去吧…一些代码! (Let’s go… Some Code!)

When I developed this code the TensorFlow Object Detection API had not full support for TensorFlow 2 but on July 10th Google released a new version, developing support for some new functionalities. In this case, I have used TensorFlow 1 with the release r1.13.0 of TF Object Detection API and all the capacity of Google Colab for this experiment.

当我开发此代码时, TensorFlow对象检测API并不完全支持TensorFlow 2,但Google在7月10日发布了新版本,开发了对某些新功能的支持。 在这种情况下,我已将TensorFlow 1TF Object Detection API的 r1.13.0版本以及Google Colab的所有功能结合使用。

You can find the code in my GitHub.

您可以在我的GitHub中找到代码。

First of all, we need to create our working directory, called Projects/Pedestrian_Detection in our Drive, where we will clone the TensorFlow Object Detection API repository. Then, we will able to start a notebook with Google Colab.

首先,我们需要在云端硬盘中创建名为Projects/Pedestrian_Detection工作目录,在该目录中,我们将克隆TensorFlow对象检测API存储库。 然后,我们将能够使用Google Colab启动笔记本。

Creating a Google Colab inside of Projects/Pedestrian_Detection
在Projects / Pedestrian_Detection内部创建Google Colab

First of all, we need to mount our drive inside our notebook, we just need to follow the instructions.

首先,我们需要将驱动器安装在笔记本电脑中,我们只需要遵循说明即可。

Mount Drive Image in Google Colab
在Google Colab中挂载驱动器映像

Then, we’ll be able to change thepath to our root folder Projects/Pedestrian_Detection.

然后,我们将能够更改到根文件夹Projects/Pedestrian_Detectionpath

Changing path to our root folder
更改我们的根文件夹的路径

Now, we can clone the repository of TF Object Detection, in this case the release r1.13.0.

现在,我们可以克隆TF Object Detection的存储库,在本例中为r1.13.0版本

Why did I use this release?

在Covid-19期间测量社交距离相关推荐

  1. 7-14保持安全社交距离的重要性 最小生成树板子题

    在新冠疫情期间保持社交距离非常有必要,疾控专家普遍认为保持1米以上的距离可以有效减缓疫情传播.现在给定一些人的坐标,请你计算一下他们是否都安全,如果不安全,那么新冠病毒最快多久能感染所有人.为了方便计 ...

  2. [智慧防疫]Python基于YOLO的新冠社交距离检测系统[完整源码&部署教程]

    1.图片演示 2.视频演示 3.背景 美国和欧洲的许多城市现在都在谨慎地重新开放.人们被要求在外出时保持安全距离.但是人们照着做吗?城市对人们的安全距离是否符合规则进行评估并采取相应的行动是很重要的. ...

  3. 使用Python+OpenCV+detectorn2实现社交距离检测

    点击上方"小白学视觉",选择加"星标"或"置顶" 重磅干货,第一时间送达 介绍 美国和欧洲的许多城市现在都在谨慎地重新开放.人们被要求在外出 ...

  4. tensorflow图形检测_社交距离检测器——Tensorflow检测模型设计

    在隔离期间,我花时间在github上探索Tensorflow的大量预训练模型.这样做时,我偶然发现了一个包含25 个带有性能和速度指标的预训练对象检测模型的存储库.拥有一些计算机视觉知识并给出了实际的 ...

  5. covid 19如何重塑美国科技公司的工作文化

    未来 , 技术 , 观点 (Future, Technology, Opinion) Who would have thought that a single virus would take dow ...

  6. 吴恩达的公司,发布了一款社交距离警告工具

    点击上方"AI遇见机器学习",选择"星标"公众号 重磅干货,第一时间送达 内容概要:提醒大家在公共场所保持距离,可以有效的防止交叉感染.近日吴恩达创立的公司 L ...

  7. stata中心化处理_带有stata第2部分自定义配色方案的covid 19可视化

    stata中心化处理 This guide will cover an important, yet, under-explored part of Stata: the use of custom ...

  8. 面对疫情防控的多摄像头社交距离检测方案

    一.用例介绍 我们知道,保持必要的社交距离和戴口罩可以有效降低疫情传播的风险.多摄像头社交距离检测用例可以检测人员并根据多个输入源计算人员之间的社交距离,并对违规人员进行标记和计数,且在浏览器中实时可 ...

  9. python opencv卡尺测量边缘距离

    opencv 卡尺法 测量边缘距离 参考来源 :https://github.com/crackwitz/metrology-demo 前言 一.测量方法 二.测量步骤 1.获取直线的像素 2.高斯滤 ...

  10. 欧几里得距离网络_使用Tensorflow对象检测模型和OpenCV的社交距离和遮罩检测器...

    将深度学习和计算机视觉相结合的隔离项目社会距离化 这个术语已席卷全球,正在改变着我们的生活方式.社交距离也称为"物理距离",是指在您自己与其他并非来自家庭的人之间保持安全的空间.随 ...

最新文章

  1. 9行Python代码搭建神经网络
  2. 找不到redis得pid文件_电脑提示Windows找不到文件?试试这两个技巧,轻松解决!...
  3. centos7下安装低版本mysql_centos7下使用yum安装制定版本mysql
  4. art-template入门(四)之调试
  5. pandas绘图_pandas与seaborn可视化对比小案例
  6. python词云图_Python生成一篇文章的词云图
  7. php 课程节次周次提取,用PHP写一个最简单的解释器Part5(计算器最后一节,下节开始如何写个脚本语言)...
  8. 安装IIS8.0,ASP以及相关配置,网站搭建
  9. Oracle、plsql安装以及使用教程
  10. 设计c语言程序,输出形状为直角三角形的九九乘法表,c语言题库(全国c语言二级考试题库)...
  11. C语言52单片机串口中断,52单片机的中断及其使用方法
  12. Gos —— 掌控硬盘
  13. python中shelf对象_shelve -- 用来持久化任意的Python对象
  14. 下载Windows ARM版本记录
  15. 服务器ahci模式安装系统,u盘装系统硬盘模式怎么设置|u盘装系统BIOS设置ide/ahci方法...
  16. 2022稳定学习年度研究进展系列报告丨精华观点总结
  17. 徐志果:创业就是遇见更好的自己(我的成长之路)
  18. webpack构建中tree shaking、scope Hoisting(面试题)
  19. Sublime Text 中文版安装和插件安装
  20. DOA定位算法源码程序

热门文章

  1. 在WPF控件上添加Windows窗口式调整大小行为
  2. Codeforces Round #322 (Div. 2) D. Three Logos 暴力
  3. [转载]HTML5 Audio/Video 标签,属性,方法,事件汇总
  4. htc tracker avatar
  5. Atitit 编程范式总结 目录 1.1.1. IP(Imperative Programming)指令式编程 1 1.1.2. SP(Structured Programming)结构化编程 2 1
  6. Atitit web 之道 艾龙著 Atitit web 之道 艾龙艾提拉著v2 saa.docx 1. 第1章 Web编程基础知识 (1) 3 1.1. 1.1 什么是Web (1) 3 1.2.
  7. Atitit java支持php运行环境 Quercus jar 1.1. Quercus 1 1.2. Web.xml 增加php servlet拦截 1 1.3. Phpinfo。php测试 1
  8. Atitit ceo之道 艾龙 著 atitit 各分部ceo cao行政经理职责.docx 1.1. “重大执行权”和“日常执行权”两块分离 ,重大事件如大政方针、重大人事任命和重大投资方面
  9. Atitit.跨语言数据库db  api兼容性 jdbc odbc ado oledb 增强方案
  10. Atitit.收银系统pos 以及打印功能的行业标准