-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
303 lines (294 loc) · 16.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!--
* @Author: GoogTech
* @Date: 2020-12-23 13:08:08
* @LastEditTime: 2021-01-15 17:59:51
* @Website: https://raspi.website
* @Description: Display all projects of RaspberryPi Org
-->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>RasPi Family</title>
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/white.css" id="theme">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css" id="highlight-theme">
<!-- Element UI and the docs( can't use why? (lll¬ω¬) ) : https://element.eleme.cn/#/zh-CN/component/installation -->
<!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Hello Index -->
<section>
<img style="-webkit-user-select: none;margin: auto;cursor: zoom-in;" src="https://raspi.website/img/raspi/raspberry-pi-4-labelled.webp">
<p style="padding-top: 15px; text-align: center; width: 1000px;">
<span style="color:black; font-weight: 150; font-size: 45px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
🔌 Let's Create Some Interesting Things By RasPi !
</span>
</p>
</section>
<!-- Raspberry Pi Book : https://magpi.raspberrypi.org/books/handbook-2021 -->
<section>
<img style="-webkit-user-select: none;margin: auto;cursor: zoom-in;" src="https://raspi.website/img/book/Handbook-2021_cover_Mockup.png">
<p style="padding-top: 15px; text-align: center; width: 1000px;">
<p style="color:black; font-weight: 150; font-size: 25px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
<a href="https://magpi.raspberrypi.org/books/handbook-2021" target="_blank">📖《The Official Raspberry Pi Handbook 2021》</a> : To help you get the most of out of your Raspberry Pi computer,
this official Handbook features 200 pages of essential information, inspiring projects, practical tutorials, and definitive reviews.
</p>
</p>
</section>
<!-- face-recognition : https://github.com/raspberry-pi-org/face-recognition -->
<section>
<span>
<!-- code -->
<pre><code data-trim data-noescape data-line-numbers>
# 摄像头
cap = cv2.VideoCapture(0)
# 人脸分类级联
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
# 人眼分类级联
eye_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_eye.xml')
# 获取摄像头拍摄到的画面
ret, frame = cap.read()
faces = face_cascade.detectMultiScale(frame, 1.3, 5)
img = frame
# 用人脸级联分类器引擎在人脸区域进行脸部识别
for (x, y, w, h) in faces:
# 画出人脸框, 蓝色, 画笔宽度为 2
img = cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2)
# 框选出人脸区域, 在人脸区域而不是全图中进行人眼检测, 节省计算资源
face_area = img[y:y + h, x:x + w]
eyes = eye_cascade.detectMultiScale(face_area, 1.3, 15)
# 用人眼级联分类器引擎在人脸区域进行人眼识别, 返回的 eyes 为眼睛坐标列表
for (ex, ey, ew, eh) in eyes:
# 画出人眼框, 绿色, 画笔宽度为 1
cv2.rectangle(face_area, (ex, ey), (ex + ew, ey + eh), (0, 255, 0), 1)
# 实时展示效果画面
cv2.imshow('Camera Frame', img)
</code></pre>
<p>
<a href="https://www.codacy.com/gh/raspberry-pi-org/face-recognition/dashboard?utm_source=github.com&utm_medium=referral&utm_content=raspberry-pi-org/face-recognition&utm_campaign=Badge_Grade">
<img src="https://app.codacy.com/project/badge/Grade/b59144ff3038476fad5007089bcce6db"/>
</a>
<img src="https://img.shields.io/github/commit-activity/m/raspberry-pi-org/face-recognition?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/raspberry-pi-org/face-recognition"></img>
<img src="https://img.shields.io/github/license/raspberry-pi-org/face-recognition.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
📷 A simple face recognition program which base on Baidu AIP and output the voice prompt by Pyttsx3.
<a href="https://github.com/raspberry-pi-org/face-recognition" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- weather : https://github.com/raspberry-pi-org/weather -->
<section>
<span>
<!-- code -->
<pre><code data-trim data-noescape data-line-numbers>
# 百度语音播报今天天气状况
def Voice_broadcast(weather_forcast_txt):
weather_info = weather_forcast_txt
# 将天气信息推送到微信
if SendToWeChat(weather_forcast_txt):
weather_info = weather_info + \
'最后, 以上天气预报内容已通过「Server 酱」推送到了你的微信~'
else:
weather_info = weather_info + \
'注意: 以上天气预报内容无法通过「Server 酱」推送到你的微信!'
client = AipSpeech(APP_ID, API_KEY, SECRET_KEY)
result = client.synthesis(weather_info, 'zh', 1, {'vol': 5, 'per': 0})
if not isinstance(result, dict):
with open(BAIDU_TTS_MP3, 'wb') as f:
f.write(result)
f.close()
# 播放语音
subprocess.getoutput('mplayer .tts.mp3')
# 将获取的天气信息推送到微信
def SendToWeChat(weather_forecast_txt):
# text 为推送的 title, desp 为推送的 description
title = "天气预报来咯~"
content = weather_forecast_txt
data = {"text": title, "desp": content}
# 发送
return True if requests.post(SERVER_API, data=data).status_code == 200 else False
</code></pre>
<p>
<a href="https://www.codacy.com/gh/raspberry-pi-org/weather/dashboard?utm_source=github.com&utm_medium=referral&utm_content=raspberry-pi-org/weather&utm_campaign=Badge_Grade">
<img src="https://app.codacy.com/project/badge/Grade/13138560e7de43de83e955f6f23d527f"/>
</a>
<img src="https://img.shields.io/github/commit-activity/m/raspberry-pi-org/weather?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/raspberry-pi-org/weather"></img>
<img src="https://img.shields.io/github/license/raspberry-pi-org/weather.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
🌈 Get the weather information then ouput voice prompt and send it to your WeChat on the specified time.
<a href="https://github.com/raspberry-pi-org/weather" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- sysinfo : https://github.com/raspberry-pi-org/sysinfo -->
<section>
<span>
<!-- code -->
<pre><code data-trim data-noescape data-line-numbers>
# Return ip address
def getIpAddress():
p = os.popen("hostname -I")
return p.readline().strip()
# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
return (res.replace("temp=", "").replace("'C\n", ""))
# Return % of CPU used by user as a character string
def getCPUuse():
return (str(os.popen("top -n1 | awk '/Cpu\(s\):/ {print $2}'").readline().strip()))
</code></pre>
<p>
<a href="https://www.codacy.com/gh/raspberry-pi-org/sysinfo/dashboard?utm_source=github.com&utm_medium=referral&utm_content=raspberry-pi-org/sysinfo&utm_campaign=Badge_Grade">
<img src="https://app.codacy.com/project/badge/Grade/0a553b01919f4f53814e1f3cf33396fb"/>
</a>
<img src="https://img.shields.io/github/commit-activity/m/raspberry-pi-org/sysinfo?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/raspberry-pi-org/sysinfo"></img>
<img src="https://img.shields.io/github/license/raspberry-pi-org/sysinfo.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
👀 Get the system information of RasPi then ouput voice prompt and send it to your WeChat on the specified time.
<a href="https://github.com/raspberry-pi-org/sysinfo" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- voiceAssistant : https://github.com/raspberry-pi-org/voiceAssistant -->
<section>
<span>
<!-- code -->
<pre><code data-trim data-noescape data-line-numbers>
print('enter main')
while endSnow == False:
interrupted = False
detector = snowboydecoder.HotwordDetector('resources/snowboy.umdl', sensitivity=0.5)
print('等待唤醒')
detector.start(detected_callback=detected,
interrupt_check=interrupt_callback,
sleep_time=0.03)
my_record()
TOKEN = fetch_token()
speech = get_audio(FILEPATH)
result = speech2text(speech, TOKEN, int(80001))
if type(result) == str:
identifyComplete(result)
</code></pre>
<p>
<a href="https://www.codacy.com/gh/raspberry-pi-org/voiceAssistant/dashboard?utm_source=github.com&utm_medium=referral&utm_content=raspberry-pi-org/voiceAssistant&utm_campaign=Badge_Grade">
<img src="https://app.codacy.com/project/badge/Grade/1bb91a630b16462fb433b6faac5e8594"/>
</a>
<img src="https://img.shields.io/github/commit-activity/m/raspberry-pi-org/voiceAssistant?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/raspberry-pi-org/voiceAssistant"></img>
<img src="https://img.shields.io/github/license/raspberry-pi-org/voiceAssistant.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
🔊 It's a simple voice assistant which base on RasPi、Snowboy and Baidu ASR~
<a href="https://github.com/raspberry-pi-org/voiceAssistant" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- vsblog : https://github.com/raspberry-pi-org/vsblog -->
<section>
<span>
<a href=""><img src="https://raspi.website/img/java-project/vsblog/screenshot/vsblog-screenshot-screely.com.png" width="800"></a>
<p>
<a href="https://www.codacy.com/gh/YUbuntu0109/vsblog/dashboard?utm_source=github.com&utm_medium=referral&utm_content=YUbuntu0109/vsblog&utm_campaign=Badge_Grade">
<img src="https://app.codacy.com/project/badge/Grade/02e473424ae64646b7f24ec11455bc42"/>
</a>
<img src="https://img.shields.io/github/commit-activity/m/YUbuntu0109/vsblog?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/YUbuntu0109/vsblog"></img>
<img src="https://img.shields.io/github/license/YUbuntu0109/vsblog.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
✍ A simple personal blog system which base on vue, springboot framework and mysql8 database.
<a href="https://github.com/raspberry-pi-org/vsblog" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- taskGo : https://github.com/raspberry-pi-org/task -->
<section>
<span>
<a href=""><img src="https://project.golanger.org/img/golang-project/task/screenshot/taskGo-screenshot-screely.com.png" width="600"></a>
<p>
<img src="https://github.com/YUbuntu0109/task/workflows/Go/badge.svg?branch=master"></img>
<img src="https://goreportcard.com/badge/github.com/YUbuntu0109/task"></img>
<img src="https://img.shields.io/github/commit-activity/m/google-golang/task?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/google-golang/task"></img>
<img src="https://img.shields.io/github/license/google-golang/task.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
✅ Let's the taks.go : it's a todo management which base on vue, gin framework and sqlite3 database.
<a href="https://github.com/raspberry-pi-org/task" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- fileGo : https://github.com/raspberry-pi-org/fileGo -->
<section>
<span>
<a href=""><img src="https://project.golanger.org/img/golang-project/fileGo/screenshot/fileGo-screenshot-screely.com.png"></a>
<p>
<img src="https://github.com/YUbuntu0109/fileGo/workflows/Go/badge.svg"></img>
<img src="https://goreportcard.com/badge/github.com/YUbuntu0109/fileGo"></img>
<img src="https://img.shields.io/github/commit-activity/m/google-golang/fileGo?color=ff69b4"></img>
<img src="https://img.shields.io/github/repo-size/google-golang/fileGo"></img>
<img src="https://img.shields.io/github/license/google-golang/fileGo.svg"></img>
</p>
</span>
<span align="center">
<p style="color:black; font-weight: 150; font-size: 30px; font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
📁 A bijou file management tool and nothing framework be used on it so run it only by one command !
<a href="https://github.com/raspberry-pi-org/fileGo" target="_blank">[ github repo ]</a>
</p>
</span>
</section>
<!-- End And See You Again -->
<section>
<img style="-webkit-user-select: none;margin: auto;cursor: zoom-in;" src="https://raspi.website/img/raspi/lg.webp" width="666">
<span>
<p style="width: 1000px;">Welcome To Join RasPi Family And Share Your Project</p>
<p style="font-size: x-large; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
hey guy if you want to join <a href="https://github.com/raspberry-pi-org" target="_blank"><strong><u>us</u></strong></a> please concat me via email or <a href="https://raspi.website/img/qq/qq-group.jpg" target="_blank"><strong><u>qq group</u></strong></a>
</p>
</span>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ],
// Auto-Slide
autoSlide: 5000,
loop: true
});
</script>
</body>
</html>