# La ángulo
A solution to [TI 杯2021年全国大学生电子设计竞赛赛题D-基于互联网的摄像测量系统](https://www.nuedc-training.com.cn/index/news/details/new_id/257) from HQU013.
## Structure
```text
.
├── docs # Report
├── README.md
├── src # Source code
│ ├── alt.py # Alternate camera
│ ├── app.py # Main program
│ ├── cam.py # Main camera
│ ├── mog.py # A test program using OpenCV MOG2
│ ├── requirements.txt
│ ├── static # Website stuff
│ │ ├── css
│ │ ├── deg # Audio files for degree
│ │ ├── favicon.ico
│ │ ├── js
│ │ └── length # Audio files for length
│ └── templates # HTML templates
│ ├── index.html
│ └── local.html
└── utils
├── iflytek # A tool to download audio files from iflytek TTS API
└── services # Systemd services
```
## What is missing
I don't want to upload the audio files to the repository since they are too big, but you can
generate them by running `utils/iflytek`.
The audio files should be in the `src/static/deg` and `src/static/length` folders as follows.
```text
src/static
├── deg
│ ├── 0deg.mp3
│ ├── 1deg.mp3
│ ├── 2deg.mp3
│ │ ...
│ └── 90deg.mp3
└── length
├── 40cm.mp3
├── 41cm.mp3
├── 42cm.mp3
│ ...
└── 160cm.mp3
```
### JavaScript Library Used
Maybe you also want to running it without Internet connection, for which you should change the libraries URL in `src/templates`.
I don't want to include these JavsScript libraries in the repository since they are redundant.
I know I should have used NPM as package manager but I'm lazy.
- [math.js | an extensive math library for JavaScript and Node.js](https://mathjs.org/)
- [Papa Parse - Powerful CSV Parser for JavaScript](https://www.papaparse.com/)
- [Bootstrap · The most popular HTML, CSS, and JS library in the world.](https://getbootstrap.com/)
## Usage
Grab two or three Raspberry Pi and connect them to the same network with router/switch/WIFI.
Change the hostname of one Raspberry Pi to `main-cam` and the other to `alt-cam`. The domain is resolved by the [avahi](https://www.avahi.org/) with mDNS,
so you can use `main-cam.local` or `alt-cam.local` to access them.
In the Raspberry-Pi with hostname `main-cam` run:
```bash
python3 src/app.py
```
In `alt-cam` run:
```bash
python3 src/alt.py
```
You can access the Web interface by `http://main-cam.local:5001/`.
## Useful Links
### Flask Capture
- [GitHub - akmamun/multiple-camera-stream: Multiple Camera CCTV/RTSP/Video Streaming with Flask and OpenCV](https://github.com/akmamun/multiple-camera-stream)
- [GitHub - NakulLakhotia/Live-Streaming-using-OpenCV-Flask: A Flask Web-App to stream live from local webcam or CCTV (rtsp link)](https://github.com/NakulLakhotia/Live-Streaming-using-OpenCV-Flask)
- [GitHub - wenyuanw/facemask-detection-RaspberryPi: mask detection, Raspberry Pi, MLX90614, Python, Flask, OpenCV, video stream,树莓派,口罩佩戴检测,人工智能、温度检测](https://github.com/wenyuanw/facemask-detection-RaspberryPi)
- [GitHub - EbenKouao/pi-camera-stream-flask: Create your own live camera stream using a Raspberry Pi 4](https://github.com/EbenKouao/pi-camera-stream-flask)
- [GitHub - burningion/poor-mans-deep-learning-camera: Build a thin client deep learning camera with the Raspberry Pi, Flask, and YOLO](https://github.com/burningion/poor-mans-deep-learning-camera)
- [OpenCV视频分析-Meanshift、Camshift&运动轨迹绘制 - 知乎](https://zhuanlan.zhihu.com/p/71840019)
### pendulum
- [Python x OpenCV x math pendulum = gravitational acceleration - YouTube](https://www.youtube.com/watch?v=HlnGRJhO-9I)
- [GitHub - bartekpacia/pendulum](https://github.com/bartekpacia/pendulum)
- [Angle Finder using OpenCV Python (2020) p.1 - YouTube](https://www.youtube.com/watch?v=NmRt9kdUefk)
- [GitHub - arantxax/pendulumtracker: Script to indentify a simple pendulum's movement (velocity, acceleration and so on).](https://github.com/arantxax/pendulumtracker)
- [AINT308 Task 2 - Open CV pendulum tracker - YouTube](https://www.youtube.com/watch?v=sqGeK1Bl9FA)
### OpenCV Guide
- [OpenCV: OpenCV modules](https://docs.opencv.org/4.4.0/)
- [OpenCV 101: A practical guide to the Open Computer Vision Library](https://casis.llnl.gov/seminars/opencv)
- [一小时学习python和opencv #python #opencv - YouTube](https://www.youtube.com/watch?v=HHVPK1GqV54)
- [Object Tracking using OpenCV (C++/Python)](https://learnopencv.com/object-tracking-using-opencv-cpp-python/)
- [OpenCV Object Tracking - PyImageSearch](https://www.pyimagesearch.com/2018/07/30/opencv-object-tracking/)
- [OpenCV Track Object Movement - PyImageSearch](https://www.pyimagesearch.com/2015/09/21/opencv-track-object-movement/)
- [Object Tracking with Opencv and Python - YouTube](https://www.youtube.com/watch?v=O3b8lVF93jU)
- [Tracking Objects | OpenCV Python Tutorials for Beginners 2020 - YouTube](https://www.youtube.com/watch?v=1FJWXOO1SRI)
- [OpenCV Vehicle Detection, Tracking, and Speed Estimation - PyImageSearch](https://www.pyimagesearch.com/2019/12/02/opencv-vehicle-detection-tracking-and-speed-estimation/)
- [How do I detect the speed of a car with opencv and python?](https://www.researchgate.net/post/How_do_I_detect_the_speed_of_a_car_with_opencv_and_python)
- [Real-time object detection with deep learning and OpenCV - PyImageSearch](https://www.pyimagesearch.com/2017/09/18/real-time-object-detection-with-deep-learning-and-opencv/)
- [Speed and Distance Estimation using Opencv python - YouTube](https://www.youtube.com/watch?v=DIxcLghsQ4Q)
- [Basic motion detection and tracking with Python and OpenCV - PyImageSearch](https://www.pyimagesearch.com/2015/05/25/basic-motion-detection-and-tracking-with-python-and-opencv/)
- [Detect Speed with With Raspberry Pi and a Camera - OpenCV - YouTube](https://www.youtube.com/watch?v=n2WT3Qb0SIU)
### Pre-compiled OpenCV
- [prepkg/opencv-raspberrypi: Precompiled OpenCV 4.5.4 binaries for Raspberry Pi 3 & 4](https://github.com/prepkg/opencv-raspberrypi)
- [dlime/Faster_OpenCV_4_Raspberry_Pi: A pre-compiled version of OpenCV 4 for Raspberry Pi optimized for deep learning / computer vision..](https://github.com/dlime/Faster_OpenCV_4_Raspberry_Pi)
### Dlib
- [Install Precompiled Dlib on Raspberry Pi | Lindevs](https://lindevs.com/install-precompiled-dlib-on-raspberry-pi/)
- [charlielito/install-dlib-python-windows: Easy installation of dlib python bindings in windows](https://github.com/charlielito/install-dlib-python-windows)
### Web Camera
- [misterjtc/raspberrypi_security: RaspberryPi Configuration to use v4l2rtspserver and Shinobi](https://github.com/misterjtc/raspberrypi_security)
- [mpromonet/v4l2rtspserver: RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9](https://github.com/mpromonet/v4l2rtspserver)
- [How To Add Raspberry Pi RTSP Camera Stream To Home Assistant – Siytek](https://siytek.com/raspberry-pi-rtsp-to-home-assistant/)
```bash
v4l2rtspserver -W 640 -H 480 -F 24 -P 8554 /dev/video0
```
### UV4L
- [UV4L – (advanced) Projects](https://www.linux-projects.org/uv4l/)
- [Raspberry Pi h264 RTSP Low Latency Camera Instructions — Ben Software Forum](https://www.bensoftware.com/forum/discussion/3254/raspberry-pi-h264-rtsp-low-latency-camera-instructions)
- [Installation for ARM (Raspberry Pi) – (advanced) Projects](https://www.linux-projects.org/uv4l/installation/)
### Rasp
1. wpa_supplicant
2. ssh
3. [raspbian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror](https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/)
4. raspi-config
```bas
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
教育部认可的大学生竞赛备赛资料代码,源码,竞赛总结,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通 全国电子设计大赛、全国大学生智能汽车竞赛、蓝桥杯、集成电路创新创业大赛、光电设计竞赛、挑战杯、大创项目、互联网+、三创赛、计算机设计竞赛、创新创业大赛、ACM-ICPC国际大学生程序设计竞赛、全国大学生数学建模竞赛、全国大学生电子商务“创新、创意及创业”挑战赛、全国大学生节能减排社会实践与科技竞赛、全国大学生工程训练综合能力竞赛、全国大学生机器人大赛-RoboMaster、RoboCon、“西门子杯”中国智能制造挑战赛、中国大学生计算机设计大赛、世界技能大赛、中国高校计算机大赛-大数据挑战赛、团体程序设计天梯赛、移动应用创新赛、网络技术挑战赛、全国大学生信息安全竞赛、“中国软件杯”大学生软件设计大赛、全国大学生光电设计竞赛、中国机器人及人工智能大赛、“大唐杯”全国大学生移动通信5G技术大赛、华为ICT大赛、全国大学生嵌入式芯片与系统设计竞赛、中国高校智能机器人创意大赛
资源推荐
资源详情
资源评论
收起资源包目录
A solution to TI 杯2021年全国大学生电子设计竞赛赛题D.zip (38个子文件)
cm
.vscode
sftp.json 180B
settings.json 93B
src
app.py 2KB
cam.py 7KB
mog.py 2KB
templates
local.html 2KB
index.html 5KB
alt.py 1KB
requirements.txt 80B
static
js
myscript.js 15KB
favicon.ico 4KB
LICENSE 484B
utils
services
py_alt_cam.service 343B
py_main_cam.service 341B
iflytek
gen_audio.js 4KB
package.json 249B
package-lock.json 2KB
docs
figure
sys.png 18KB
9.png 9KB
3.png 84KB
ADS1292R心电产生模块.png 115KB
c.png 9KB
1.png 87KB
6.png 7KB
a.png 4KB
5.png 128KB
4.png 10KB
8.png 24KB
interface.png 451KB
figure.png 37KB
b.png 7KB
7.png 12KB
algritom.drawio 6KB
2.png 22KB
algritom.png 38KB
HQ013+A.tex 17KB
.gitignore 145B
README.md 12KB
共 38 条
- 1
资源评论
妄北y
- 粉丝: 9724
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 二叉树7-1-1.cpp
- android 9.0 原生模拟器 签名文件
- 技术面试最后反问面试官的话 校招面试非技术问题有哪些 非技术问题如何回答.png
- NB-IOT-BC26全网通模块Altium+ CADENCE +PADS三种格式(原理图SCH+PCB封装库)文件.zip
- 基于微信小程序开发的校园失物招领系统源码毕业设计(优质项目源码).zip
- 词向量是一种将自然语言中的单词转换为数值向量的技术,它能够捕捉词义和上下文信息
- nmap与masscan的简单使用
- MyBatis动态SQL.pdf
- 基于stm32单片机protues仿真的温湿度控制系统设计(仿真图、源代码)
- 词向量:自然语言处理的基石
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功