# 树莓派设计 **Repository Path**: hardychenlong/raspberry-pie-design ## Basic Information - **Project Name**: 树莓派设计 - **Description**: 基于Flask - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-09-16 - **Last Updated**: 2021-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 关于树莓派远程远控LED的设计方案[![Fork me on Gitee](https://gitee.com/oschina/git-osc/widgets/widget_2.svg?color=3a61fc)](https://gitee.com/oschina/git-osc)[![star](https://gitee.com/oschina/git-osc/badge/star.svg?theme=white)](https://gitee.com/oschina/git-osc/stargazers) [![Assassin/树莓派设计](https://gitee.com/hardychenlong/raspberry-pie-design/widgets/widget_card.svg?colors=ffffff,1e252b,323d47,455059,d7deea,99a0ae)](https://gitee.com/hardychenlong/raspberry-pie-design) 方案摘要:树莓派开启Flask和视频监控后台,通过配置云服务器的Nginx提升访问速度,以及通过请求Flask构建的API(http的get请求)实现远程控制LED、摄像头以及返回相关数据。 关键词:Nginx反向代理、Flask(安装在云服务器上)、Picamera(控制树莓派摄像头)、screen(后台运行应用) > 反向代理服务器位于用户与目标服务器之间,但是对于用户而言,反向代理服务器就相当于目标服务器,即用户直接访问反向代理服务器就可以获得目标服务器的资源。同时,用户不需要知道目标服务器的地址,也无须在用户端作任何设定。反向代理服务器通常可用来作为Web加速,即使用反向代理作为Web服务器的前置机来降低网络和服务器的负载,提高访问效率。 编程语言:**python、C#、java/(html、JS)** 树莓派系统:**类Linux(Debian)** 服务器:**阿里云/onenet/腾讯云/华为云**【ubuntu/centos】 *** ## 开发工具: > 1.感知层(硬件):ssh连接工具(Putty/SecureCRT) > 2.上位机:vs2019、vscode、 > 3.云平台:内网穿透相关工具(花生壳) > 4.移动端:AS、vscode ## 分工: > 1.感知层(硬件):PCssh连接树莓派基本配置、连接LED和摄像头并调试 > 2.上位机:进行简易的flask后端框架搭建,设计简易API控制LED和视频流监控、win窗体开发 > 3.云平台:在服务器配置Nginx指向树莓派指定端口; > 4.移动端:调用API、前端界面 --- ## 参考文献: 1. [一种远程监控的LED照明系统设计研究](https://kreader.cnki.net/Kreader/CatalogViewPage.aspx?dbCode=cdmd&filename=1019890682.nh&tablename=CMFD202001&compose=&first=1&uid=WEEvREcwSlJHSldSdmVqMDh6aS9uaHJiaUgzcnZFUXhKTUlQV2RZUlZ0RT0=$9A4hF_YAuvQ5obgVAqNKPCYcEjKensW4IQMovwHtwkF4VYPoHbKxJw!!) 2. [API搭建视频参考](https://www.bilibili.com/video/BV1NA411t7gu) 3. [Flask官方文档](https://dormousehole.readthedocs.io/en/latest/) 4. [Nginx 安装配置](https://www.runoob.com/linux/nginx-install-setup.html) 5. [树莓派让程序在后台运行的两种方法_blog](https://blog.csdn.net/qq_40584960/article/details/85922885) 6. [树莓派4B摄像头使用_blog](https://blog.csdn.net/guoguo123a/article/details/103673835) 7. [树莓派摄像头安装使用_知乎](https://zhuanlan.zhihu.com/p/98523007) 8. [树莓派内网穿透方法大全_知乎](https://zhuanlan.zhihu.com/p/108624497) 9. [Nginx基于端口访问和域名绑定_知乎](https://zhuanlan.zhihu.com/p/70764971) 10. [树莓派烧写系统_视频](https://www.bilibili.com/video/BV1YJ411V7Xi) 11. [树莓派监控代码_py脚本](https://github.com/RuiSantosdotme/Random-Nerd-Tutorials/blob/master/Projects/rpi_camera_surveillance_system.py) 12. [树莓派监控解决方案_视频](https://www.bilibili.com/video/BV1RE411M7Bj) 13. [Flask框架+数据库+Vue前后端分离_视频教程](https://www.bilibili.com/video/BV17z4y1X7UZ) 14. [Picamera官方文档](https://picamera.readthedocs.io/en/release-1.13/) 15. [Linux screen命令_菜鸟教程](https://www.runoob.com/linux/linux-comm-screen.html) 16. [使用 Python 和 Flask 设计 RESTful API_文档](http://www.pythondoc.com/flask-restful/first.html#python-flask-restful-api) 17. [树莓派内网穿透实现外网访问教程_花生壳_视频]( https://www.bilibili.com/video/BV1MW41147Vt?from=search&seid=12997272817504963056 ) 18. [使用内网穿透的方式打通公网与校园网内服务器的连接_简书](https://www.jianshu.com/p/39f8b4b85eaa) 19. [树莓派资源下载](https://shumeipai.nxez.com/download) 20. [树莓派4win10安装教程[精简版]](https://www.bilibili.com/read/cv5131421/) 21. [ 树莓派安装Aarch64 可视化系统](https://www.cnblogs.com/bolingcavalry/p/11480661.html) 22. [在树莓派上安装 Ubuntu MATE](https://www.jianshu.com/p/4207d9c680ef) 23. [树莓派4B当PC有哪些好用的系统可以使用?_知乎](https://www.zhihu.com/question/409358504/answer/1371414199) 24. [Debian-Pi-Aarch64 ★ 全新树莓派64位系统_gitee](https://gitee.com/openfans-community/Debian-Pi-Aarch64) 25. [树莓派4开发板无屏幕WIFI连接配置_blog](https://blog.csdn.net/weixin_42550800/article/details/102798545) 26. [树莓派安装非官方系统没有raspi-config命令的解决方法](https://blog.csdn.net/no1xium/article/details/107477055) 27. [树莓派发现不了摄像头](https://www.cnblogs.com/bile/p/13214301.html) 28. [关于树莓派raspistill命令无法找到摄像头的原因_摄像头拍照_fswebcam调用](https://blog.csdn.net/qq_35768839/article/details/104719387) 29. [eznat_server 一款简单的内网穿透软件,部署简单,使用简单,传输稳定,支持树莓派](https://gitee.com/FYDEV/eznat_server) 30. [看完这篇文章,还不懂nginx,算我输_知乎快速理解Nginx](https://zhuanlan.zhihu.com/p/152526491) 31. [为Ubuntu Mate for ARM 更换中国软件源](https://blog.csdn.net/wr132/article/details/56700479) 32. [树莓派(Linux)安装python环境与pip换源](https://blog.csdn.net/m0_37872216/article/details/107170238) 33. [清华镜像源](https://mirrors.tuna.tsinghua.edu.cn/) 34. [万字长文带你玩转内外网互通_Ngrok、钉钉、花生壳、Frp——笔记](https://www.it235.com/%E5%AE%9E%E7%94%A8%E5%B7%A5%E5%85%B7/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/pierce.html#frp%E8%87%AA%E5%BB%BA%EF%BC%88%E6%9C%80%E5%BC%BA%EF%BC%8C%E4%BC%81%E4%B8%9A%E9%A6%96%E9%80%89%EF%BC%89) 35. [Sunny-Ngrok使用教程](http://ngrok.cc/_book/other/https.html) 36. [树莓派搭建网络视频实时监控系统_CSDN](https://blog.csdn.net/qq_29855577/article/details/105582207) 37. **** ## 参考仓库 1. https://github.com/miguelgrinberg/flask-video-streaming 2. https://github.com/RuiSantosdotme/Random-Nerd-Tutorials 3. https://github.com/robsmall/flask-raspi-video-streamer 4. https://blog.miguelgrinberg.com/post/video-streaming-with-flask 5. https://gitee.com/qiyuedeshizi/flask-video-streaming-usbcamera 6. # 上位机开发资料 1. [[冰封一夏](https://gitee.com/kwwwvagaa) / [HZHControls控件库_winform控件库](https://gitee.com/kwwwvagaa/net_winform_custom_control) 2. [HandyControl](https://gitee.com/handyorg/HandyControl) 3. # 前端设计资料 *** 为网站设计一个好看的单页作为初始页面 *** 1. [知乎参考](https://www.zhihu.com/question/26440456) 2.