鸽子 迷信

鸽子回避系统 (Pigeon Avoidance System)

Disclaimer: You are reading Part 1 that gives an overview of the project. Part 2 describes the technical setup and data collection. Part 3 is about how to train the Pigeon Recognition Model and run it on Raspberry Pi.

免责声明:您正在阅读第1部分,该部分概述了该项目。 第2部分 介绍了技术设置和数据收集。 第3部分 介绍如何训练Pigeon识别模型并在Raspberry Pi上运行它。

Imagine a beautiful summer morning. The sun is shining through the leaves, the birds are singing happy songs, and everything is full of cheerful colors. You make your first cup of coffee and step on the balcony to enjoy the peace and harmony that only Sunday mornings can provide. Suddenly something disrupts you from the contemplation of the beauty of terrestrial life. In my world, it is the pigeon poop that I find on my balcony almost every day. I am a busy woman. I like enjoying my morning coffee in peace, but what I do not like — to clean the balcony from pigeon’s feces.

想象一个美丽的夏日早晨。 阳光穿过树叶,鸟儿唱着快乐的歌,一切都充满了欢快的色彩。 您冲泡第一杯咖啡,踏上阳台,享受只有周日早晨才能提供的和平与和谐。 突然间,某些事情干扰了您对地球生命之美的沉思。 在我的世界中,几乎每天我都会在阳台上发现鸽子便便。 我是忙碌的女人。 我喜欢安宁地享受早晨的咖啡,但是我不喜欢这样-清洁鸽子粪便上的阳台。

This morning I decided to start a war against the pigeons and Artificial Intelligence is the right weapon for this.

今天早上,我决定发动一场与鸽子的战争,而人工智能是解决这一问题的正确武器。

Now I set the emotional part aside and jump straight to the business of engineering, wiring, modeling, and soldering.

现在,我将情感部分搁置一旁,直接进入工程,布线,建模和焊接业务。

问题陈述 (Problem statement)

Pigeons regularly visit my balcony and left certain traces there. I want to get rid of pigeons without harming them, but by delivering a clear message that they are not welcomed here.

鸽子定期拜访我的阳台,并在那留下一些痕迹。 我想摆脱鸽子而不伤害他们,但是要传达一个明确的信息,那就是这里不欢迎他们。

解决方法 (Solution approach)

I have built a Pigeon Avoidance System that detects pigeons and shoos them away. The initial hardware setup includes:

我建立了一个避免鸽子的系统,该系统可以检测并驱赶鸽子。 初始硬件设置包括:

  • Raspberry Pi. I used Raspberry Pi 4 Model B 8GB RAM

    Raspberry Pi 。 我使用了Raspberry Pi 4 Model B 8GB RAM

  • Camera module for Raspberry

    覆盆子相机模组

  • Two motion sensors

    两个运动传感器

  • Stepping motor

    步进马达

Software stack:

软件堆栈:

  • Python for the automation自动化的Python
  • Keras for the Deep Learning part深度学习部分的Keras
  • PHP, JavaScript, HTML for data labelling solutionPHP,JavaScript,HTML数据标签解决方案

架构概述 (Architecture overview)

The overall solution works in the following way. Whenever a pigeon lands on the balcony, the motion sensor detects a light change. It triggers the Main Pipeline, which in return activates the camera. The camera takes a picture and stores it on the Raspberry. The Main Pipeline sends the picture to the Pigeon Recognition Model that calculates the probability of a pigeon being on the picture and returns back the class. If a pigeon was detected, the Main Pipeline activates the stepping motor that shoos pigeon away by lifting up a stick with ribbons. Sounds pretty straightforward, though effective.

整体解决方案以以下方式工作。 每当鸽子降落在阳台上时,运动传感器就会检测到光线变化。 它触发了主管道,而主管道反过来又激活了摄像机。 相机拍摄照片并将其存储在Raspberry上。 主管道将图片发送到“鸽子识别模型”,该模型计算鸽子出现在图片上的概率,并返回该类。 如果检测到鸽子,则主管道会通过抬起带有色带的棍子来激活步进电机,以驱赶鸽子。 听起来很简单,虽然有效。

Pigeon Avoidance System Architecture Diagram
鸽子回避系统架构图

为什么您可能需要鸽子火种 (Why you might need a Pigeon Tinder)

There is one element on the architecture diagram that hasn’t been explained so far, the Pigeon Tinder. That is exactly the moment when people usually raising their eyebrows asking: “What the hell is the Pigeon Tinder?” Pigeon Tinder is an essential part of the overall solution. Apparently, in order to train the Pigeon Recognition Model, I need to feed labeled data into it. Pigeon Tinder is a web app hosted on the Raspberry that helps me to manually label the images. Initially, I wanted to implement a mobile app where the left swipe would label the picture as “Not a Pigeon” and the right swipe as “Pigeon”. However, shortly I realized that first, mobile app development is a bit of overkill for the Minimal Viable Product (MVP). Second, in reality, I need three classes, as whenever I drink coffee on the balcony I would produce a lot of motion and the Raspberry would go off by making hundreds of pictures and then trying to classify them. Therefore I introduced a class “Human” that causes a two minutes delay before the next picture is taken. My main hope is that pigeons are not impudent enough to get on the balcony while I am already there. Because of these reasons, I settled for a web app running on Apache HTTP Server installed on the Raspberry. That how the interface of the Pigeon Tinder looks like.

到目前为止,尚未解释的架构图上有一个要素。 这正是人们通常扬起眉毛问:“鸽子火种到底是什么?”的时刻。 Pigeon Tinder是整个解决方案的重要组成部分。 显然,为了训练Pigeon Recognition Model,我需要将标记的数据馈入其中。 Pigeon Tinder是Raspberry上托管的Web应用程序,可帮助我手动标记图像。 最初,我想实现一个移动应用程序,其中向左滑动将图片标记为“不是鸽子”,向右滑动将标签标记为“鸽子”。 但是,我很快意识到,首先,移动应用程序开发对于最小可行产品(MVP)有点过大。 其次,实际上,我需要三个课程,因为每当我在阳台上喝咖啡时,我都会产生很多动作,而Raspberry会通过制作数百张图片然后尝试对其进行分类而消失。 因此,我引入了“人类”类,该类在拍摄下一张照片之前会造成两分钟的延迟。 我的主要希望是,在我已经呆在阳台上的时候,鸽子还不够轻率。 由于这些原因,我决定在Raspberry上安装的Apache HTTP Server上运行一个Web应用程序。 鸽子火种的界面是什么样的。

Pigeon Tinder
鸽子火种

As I prefer to tinder pigeons on my phone, the web page is adapted for mobile usage. The app is very simple. Whenever I assign a label to the image, it moves the picture into one of the folders: “pigeon”, “human”, or “nothing”. That is also a proper directory structure for future training. The Delete button temporarily moves the picture into a “trash” folder that is regularly emptied by the clean_directories.py script that is run by a cron job every night.

由于我更喜欢​​在手机上打鸽子,因此该网页适合移动应用。 该应用程序非常简单。 每当我为图像分配标签时,它就会将图片移动到以下文件夹之一:“鸽子”,“人”或“无”。 这也是将来培训的合适目录结构。 “删除”按钮将图片临时移动到“垃圾箱”文件夹中,该文件夹定期由cron作业每晚运行的clean_directories.py脚本清空。

By the way, all code, including training routine, inference, Pigeon Tinder, and Raspberry automation is available on GitHub.

顺便说一下,所有代码,包括训练例程,推理,Pigeon Tinder和Raspberry自动化,都可以在GitHub上获得 。

Even though I didn’t go for the original idea of the mobile app, I still kept the original name of the labeling module. I hope Tinder will not sue me for this, otherwise you will hear about me in the news.

即使我没有使用移动应用程序的原始想法,但仍保留了标签模块的原始名称。 我希望Tinder不会为此起诉我,否则您会在新闻中听到关于我的消息。

接下来是什么? (What is next?)

I am documenting this project in a few articles under the name “Pigeon Avoidance System”. Part 2: “How to set up data collection for the pigeon avoidance system” will explain how to access external Raspberry components like camera, motion sensor, and stepping engine. It will also provide details about the data collection and how to set up the overall system on the balcony. The Deep Learning part is described in: “How to use Deep Learning to shoo the pigeons from the balcony”. However, I would recommend reading the article about the data collection first. So stay updated and in the meantime, a sneak peek for Part 2: me soldering cables in my kitchen. I indeed need a lot of cables for this project.

我正在以“ Pigeon躲避系统”的名义在几篇文章中记录该项目。 第2部分:“ 如何为鸽子回避系统设置数据收集 ”将说明如何访问外部Raspberry组件,例如摄像头,运动传感器和步进引擎。 它还将提供有关数据收集以及如何在阳台上设置整个系统的详细信息。 深度学习部分在“ 如何使用深度学习从阳台上射击鸽子 ”中进行了描述。 但是,我建议您先阅读有关数据收集的文章。 因此,请保持更新,与此同时, 第2部分 :我在厨房焊接电缆。 对于这个项目,我确实需要很多电缆。

Me soldering cables in my kitchen
我在厨房里焊接电缆

If you got any questions about this project, please feel free to reach me via LinkedIn.

如果您对此项目有任何疑问,请随时通过LinkedIn与我联系。

翻译自: https://towardsdatascience.com/how-artificial-intelligence-helped-me-to-win-the-war-against-the-pigeons-9458293983a1

鸽子 迷信


http://www.taodudu.cc/news/show-997565.html

相关文章:

  • scikit keras_Scikit学习,TensorFlow,PyTorch,Keras…但是天秤座呢?
  • 数据结构两个月学完_这是我作为数据科学家两年来所学到的
  • 迈向数据科学的第一步:在Python中支持向量回归
  • 使用Python和MetaTrader在5分钟内开始构建您的交易策略
  • ipywidgets_未来价值和Ipywidgets
  • 用folium模块画地理图_使用Folium表示您的地理空间数据
  • python创建类统计属性_轻松创建统计数据的Python包
  • knn分类 knn_关于KNN的快速小课程
  • 机器学习集群_机器学习中的多合一集群技术在无监督学习中应该了解
  • 政府公开数据可视化_公开演讲如何帮助您设计更好的数据可视化
  • 消费者行为分析_消费者行为分析-是否点击广告?
  • 魅族mx5游戏模式小熊猫_您不知道的5大熊猫技巧
  • 数据科学中的数据可视化
  • 多重线性回归 多元线性回归_了解多元线性回归
  • 如何使用Python处理丢失的数据
  • 为什么印度盛产码农_印度农产品价格的时间序列分析
  • tukey检测_回到数据分析的未来:Tukey真空度的整洁实现
  • 到2025年将保持不变的热门流行技术
  • 马尔科夫链蒙特卡洛_蒙特卡洛·马可夫链
  • 数据分布策略_有效数据项目的三种策略
  • 密度聚类dbscan_DBSCAN —基于密度的聚类方法的演练
  • 从完整的新手到通过TensorFlow开发人员证书考试
  • 移动平均线ma分析_使用动态移动平均线构建交互式库存量和价格分析图
  • 静态变数和非静态变数_统计资料:了解变数
  • 不知道输入何时停止_知道何时停止
  • 掌握大数据数据分析师吗?_要掌握您的数据吗? 这就是为什么您应该关心元数据的原因...
  • 微信支付商业版 结算周期_了解商业周期
  • mfcc中的fft操作_简化音频数据:FFT,STFT和MFCC
  • r语言怎么以第二列绘制线图_用卫星图像绘制世界海岸线图-第二部分
  • rcp rapido_Rapido使用数据改善乘车调度

鸽子 迷信_人工智能如何帮助我战胜鸽子相关推荐

  1. ai人工智能的本质和未来_人工智能的未来在于模型压缩

    ai人工智能的本质和未来 The future looks towards running deep learning algorithms on more compact devices as an ...

  2. 视频库:人工智能开发_人工智能工程师_AI人工智能

    人工智能Python语言入手→→机器学习核心技术→→深度学习核心技术→→NLP自然语言处理技术→→CV计算机视觉技术 视频库:人工智能开发_人工智能工程师_AI人工智能 01-人工智能开发入门 掌握P ...

  3. 决策树留一法python代码_从实例中归纳决策树_人工智能一

    从实例中归纳决策树_人工智能一 18.3.3 从实例中归纳决策树 布尔决策树的一个实例是由一个输入属性向量X以及一个唯一的布尔输出值y组成的.一个实例集合(X1,y1),-,(X12,y12)如图18 ...

  4. ai 计算机视觉_人工智能中的计算机视觉

    ai 计算机视觉 While a three-year-old child has a lot to learn about the world, one thing that he is alrea ...

  5. ai智能医疗产业_人工智能以减少医疗错误

    ai智能医疗产业 技术(Technology) Let's do a thought experiment together. You walk into a supermarket but are ...

  6. 德州python培训_人工智能在多人桌德州扑克比赛中战胜世界顶尖选手

    新华社华盛顿7月11日电(记者周舟)美国卡内基-梅隆大学11日宣布,该校和脸书公司合作开发的人工智能Pluribus在六人桌德州扑克比赛中击败多名世界顶尖选手,成为机器在多人游戏中战胜人类的一个里程碑 ...

  7. 人工智能对金融世界的改变_人工智能革命正在改变网络世界

    人工智能对金融世界的改变 The race of tech leaders for AI is so rude and competitive. Things are getting changed ...

  8. ai人工智能收入_人工智能促进收入增长:使用ML推动更有价值的定价

    ai人工智能收入 介绍 (Introduction) Pricing optimization is a powerful lever for revenue growth, yet it's too ...

  9. python人工智能_人工智能福利丨Python核心语法实战

    Python已正式跻身成熟语言行列,成为整个互联网的基础性语言之一,并以肉眼可见的速度,在全球攻城略地: --牢牢占据TIOBE世界编程语言排行榜第四名,且保持上升趋势 --国家级人工智能四大平台确立 ...

最新文章

  1. [NOI2007]货币兑换
  2. Android九点阵手势识别,能量黑科技模块八-九:两路按键颜色手势魔块
  3. linux C如何获取服务器节点上所有网口的ip地址
  4. Go语言语法学习:打印九九乘法表
  5. mysql取消外键限制_mysql怎么取消外键限制(约束)?
  6. HDU 4819 Mosaic(二维线段树)
  7. 人物结局 归德侯府_影视里的唐伯虎抱得美人归 历史上的他结局又是什么样呢?...
  8. 异构广告混排在美团到店业务的探索与实践
  9. java开发入职注意
  10. 【FPGA+BP神经网络】基于FPGA的简易BP神经网络verilog设计
  11. Testbed静态分析
  12. 微信网页授权 Vue
  13. 串口通信基础知识(UART)
  14. CME ERROR错误代码列表
  15. yyyy-MM-dd HH:mm:ss时间格式化,有的大写有的小写,大小写的含义说明
  16. 解决win7设置默认程序打开方式失效
  17. UIImageView裁剪成圆形的方法
  18. ipad如何找到.开头的隐藏文件夹
  19. Laya和TypeScript制作H5——开始
  20. 华为鸿蒙福利群抢红包,成就红包第一抢!华为Mate S拒绝手慢无

热门文章

  1. 远程拷贝代码 指定端口
  2. 二叉树删除节点,(查找二叉树最大值节点)
  3. 代码整洁之道,clean code
  4. 在UITouch事件中画圆圈-iOS8 Swift基础教程
  5. autoencoder自编码器原理以及在mnist数据集上的实现
  6. 加速业务交付,从 GKE 上使用 Kubernetes 和 Istio 开始
  7. java的垃圾回收机制包括:主流回收算法和收集器(jvm的一个主要优化方向)
  8. 《网络空间欺骗:构筑欺骗防御的科学基石》一1.1 主动网络空间防御中网络空间抵赖与欺骗的视图...
  9. 定位排查工作流的计算结果数据量不符合预期的方法
  10. dotnet若干说明图片