Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 225 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
d228f80
Setting up GitHub Classroom Feedback
github-classroom[bot] Feb 21, 2021
4cfc358
데이터셋 자동 다운로더
BeautterLife Mar 20, 2021
fb189e5
세션 문제 해결함(재접속), 모듈화 해야됨
BeautterLife Mar 21, 2021
ae3b1e4
Create a
BeautterLife Mar 21, 2021
94f2098
Merge pull request #1 from BeautterLife/gh
BeautterLife Mar 21, 2021
bcd5802
Delete dataset_downloader directory
BeautterLife Mar 21, 2021
1262a5b
Merge pull request #3 from BeautterLife/master
BeautterLife Mar 21, 2021
31f0cf4
다운로드 경로, 전처리 해야될 부분 주석 처리
BeautterLife Mar 21, 2021
5f03d94
Merge pull request #2 from BeautterLife/gh
BeautterLife Mar 21, 2021
6c63173
Merge pull request #6 from BeautterLife/master
taehyeon4 Mar 21, 2021
48c53a8
데이터셋 다운로드 코드 & 화질 줄이기
Mar 23, 2021
cd1637d
dataManageTools upload
yoonseokham Mar 27, 2021
58619bd
Merge pull request #16 from plmoknijb15/master
taehyeon4 Mar 28, 2021
284fdc9
Merge pull request #15 from ha-mulan/master
yoonseokham Mar 28, 2021
396ca69
directory construct
yoonseokham Mar 28, 2021
679fd7b
Merge pull request #17 from ha-mulan/master
yoonseokham Mar 28, 2021
889f4a9
Set theme jekyll-theme-cayman
BeautterLife Apr 2, 2021
6a6d7b9
Create README.md
Mangso Apr 2, 2021
d5a5202
Update README.md
Mangso Apr 2, 2021
704d45b
Update README.md
Mangso Apr 2, 2021
a07383a
Update README.md
Mangso Apr 3, 2021
cac37b5
Update README.md
Mangso Apr 3, 2021
967b906
Update README.md
Mangso Apr 4, 2021
08259ab
Add files via upload
BeautterLife Apr 5, 2021
bc5c88e
Delete 23조_중간발표자료.pdf
BeautterLife Apr 5, 2021
e2dcf03
중간 발표 자료 업로드
BeautterLife Apr 5, 2021
3812804
Merge branch 'master' of https://github.com/kookmin-sw/capstone-2021-23
BeautterLife Apr 5, 2021
99914f3
Merge pull request #24 from BeautterLife/master
BeautterLife Apr 5, 2021
4f3279d
Update README.md
BeautterLife Apr 5, 2021
17ea935
Update README.md
BeautterLife Apr 5, 2021
9b84c9c
중간발표자료 수정본(v2) 업로드
BeautterLife Apr 9, 2021
2d9e160
Flaskwebserver streaming test
Mangso Apr 13, 2021
b4c54c2
basic server
BeautterLife May 1, 2021
82f5ecc
basic_server
BeautterLife May 1, 2021
7f40743
[Add] send frame using CLI
Mangso May 11, 2021
ab3c1bf
Add receive frame using CLI
Mangso May 11, 2021
44db190
[Add] send frame using opencv
Mangso May 11, 2021
8dc60ee
[Add] receive frame using opencv
Mangso May 11, 2021
bbb3ddb
[Add] receive frame using opencv
Mangso May 11, 2021
e8e808e
[Add] open frame using python-gst module
Mangso May 11, 2021
7185882
[Add] basic camera test
Mangso May 11, 2021
82696d7
Merge pull request #33 from Mangso/gstreamer
taehyeon4 May 15, 2021
7f6ca40
serverfile
yoonseokham May 15, 2021
e0bd0cb
Merge pull request #38 from ha-mulan/ai_server
yoonseokham May 15, 2021
7afeee5
video name
yoonseokham May 15, 2021
e120fa1
kakao notification
May 15, 2021
f30e254
Merge pull request #40 from ha-mulan/ai_server
yoonseokham May 15, 2021
7df9e3f
Merge pull request #41 from plmoknijb15/notification
BeautterLife May 15, 2021
b694724
Update kakao_token.py
taehyeon4 May 15, 2021
0eb7f23
.
May 15, 2021
8096a7f
.
May 15, 2021
4b5566d
inference.py modify
yoonseokham May 15, 2021
a19985b
Merge pull request #42 from ha-mulan/ai_server
yoonseokham May 15, 2021
262c86b
create template folder
BeautterLife May 15, 2021
9fe8e35
Merge pull request #43 from BeautterLife/basic_server
BeautterLife May 16, 2021
d975ea8
mail notification using Gmail API
May 16, 2021
fdb2ecf
Merge pull request #45 from plmoknijb15/notification
taehyeon4 May 16, 2021
e36c8c5
encoding : jpg -> png
BeautterLife May 16, 2021
e9eb567
[Add] people detecting & tracking
Mangso May 16, 2021
e8560d1
[Add] test video
Mangso May 16, 2021
42f22ab
[Add] output detect video
Mangso May 16, 2021
1a310fe
[Add] yolov4_tiny weights
Mangso May 16, 2021
a3eb2e2
[Add] yolov4_tiny cfg
Mangso May 16, 2021
2397cac
video encoding jpg->png
BeautterLife May 16, 2021
df6a7c1
Merge pull request #49 from BeautterLife/basic_server
BeautterLife May 16, 2021
874afae
Merge branch 'basic_server' of https://github.com/kookmin-sw/capstone…
May 16, 2021
3421157
server/notification -> mysite/notification
May 16, 2021
a37318c
Merge pull request #50 from plmoknijb15/notification
taehyeon4 May 16, 2021
0dabca0
Merge pull request #48 from Mangso/peopleDetect
Mangso May 16, 2021
0be9c12
Merge pull request #51 from kookmin-sw/ai_server
BeautterLife May 16, 2021
23179b6
Merge pull request #52 from kookmin-sw/board
BeautterLife May 16, 2021
07e02ec
Merge pull request #53 from kookmin-sw/basic_server
BeautterLife May 16, 2021
b0de3f1
Delete server directory
BeautterLife May 17, 2021
a0969f0
Merge branch 'master' of https://github.com/kookmin-sw/capstone-2021-23
BeautterLife May 18, 2021
7cf4c9a
version1 small modify
BeautterLife May 18, 2021
18f56a0
Delete .views.py.swp
BeautterLife May 18, 2021
b48f36f
Update settings.py
BeautterLife May 18, 2021
6e0b781
settings for kakao login
BeautterLife May 18, 2021
b098d09
Merge pull request #58 from BeautterLife/kakao_login
BeautterLife May 18, 2021
e3ec4d5
view for kakao login
BeautterLife May 18, 2021
73fe37c
new app users for kakao login
BeautterLife May 18, 2021
c2113de
template for kakao login
BeautterLife May 18, 2021
4a2fada
add path for kakao login
BeautterLife May 18, 2021
1341e65
Merge pull request #59 from BeautterLife/kakao_login
BeautterLife May 18, 2021
9fc9fe8
Merge pull request #57 from BeautterLife/version1_improved
BeautterLife May 19, 2021
47b4273
kakao login & create user_id DB
BeautterLife May 19, 2021
1b14a6e
kakao login & create user DB
BeautterLife May 19, 2021
c7a28b2
kakao login and save user_id to user DB
BeautterLife May 19, 2021
00af26d
Merge pull request #61 from BeautterLife/kakao_login
BeautterLife May 19, 2021
bb628b5
error fixed
BeautterLife May 19, 2021
c95d512
Adapt new gstreamer pipeline
BeautterLife May 19, 2021
6ec4b5f
Merge branch 'kakao_login' into kakao_login
BeautterLife May 19, 2021
e159db0
Merge pull request #62 from BeautterLife/kakao_login
BeautterLife May 19, 2021
b85e299
setting for send email to user
BeautterLife May 19, 2021
cd06e76
django view for sending email to user
BeautterLife May 19, 2021
491e074
mail template
May 19, 2021
b836525
receive file
yoonseokham May 19, 2021
81e74b3
Merge pull request #63 from ha-mulan/ai_server
yoonseokham May 19, 2021
fa591f9
template
May 19, 2021
40acfeb
inference Threshold and mp3 play
yoonseokham May 19, 2021
82e4b4b
Merge pull request #64 from ha-mulan/ai_server
yoonseokham May 19, 2021
114fd14
Add buffer.py
Mangso May 19, 2021
47c2c8a
Add client.py
Mangso May 19, 2021
672e3b7
Add server.py
Mangso May 19, 2021
3221e92
Add Cut 5-second video from webcam
Mangso May 19, 2021
b2ca83a
Add receive video folder
Mangso May 19, 2021
4ae2718
Add writing video folder
Mangso May 19, 2021
5394aaa
notification test
May 19, 2021
90238e7
Add MobileNetSSD caffemodel
Mangso May 19, 2021
d0552b9
Add MobileNetSSD prototxt
Mangso May 19, 2021
e81a52c
Add Capture Webcam Using thread
Mangso May 19, 2021
72207f1
Add centroidtracker
Mangso May 19, 2021
ca7ac15
Add config about Detect
Mangso May 19, 2021
46f0628
Add send mail
Mangso May 19, 2021
3510678
Add test video
Mangso May 19, 2021
b8bf670
Add Run file
Mangso May 19, 2021
ecf32e2
Add requirements
Mangso May 19, 2021
e038fe0
About LICENSE
Mangso May 19, 2021
3b5aba6
About README
Mangso May 19, 2021
21d107b
Merge pull request #65 from Mangso/storensend
yoonseokham May 19, 2021
06f4a01
Merge pull request #66 from Mangso/peopleDetect_SSD
yoonseokham May 19, 2021
83c7e5a
user_id 필드 max_lenght=30으로 수정
BeautterLife May 20, 2021
2d85486
Cctv 테이블을 참조하기 위한 FK 설정
BeautterLife May 20, 2021
3b3654a
Cctv 테이블을 참조하기 위한 import 설정
BeautterLife May 20, 2021
d7ae80a
admin페이지에서 model 관리하기 위한 설정
BeautterLife May 20, 2021
fdadd23
Cctv 테이블 생성
BeautterLife May 20, 2021
b26a95e
감시할 cctv 선택 페이지 url경로
BeautterLife May 20, 2021
548a2b8
cctv 선택할 view 함수(select_cctv)
BeautterLife May 20, 2021
2850921
admin페이지에서 model 관리
BeautterLife May 20, 2021
69c37cb
Merge pull request #69 from BeautterLife/kakao_login
BeautterLife May 20, 2021
6976823
admin페이지에서 user 테이블 관리
BeautterLife May 21, 2021
c74514f
Merge pull request #73 from BeautterLife/cctv_db
BeautterLife May 21, 2021
e8ff977
Merge branch 'master' of https://github.com/kookmin-sw/capstone-2021-…
Mangso May 22, 2021
7c1d6b7
Update README
Mangso May 22, 2021
934c2cd
Update README
Mangso May 22, 2021
2035967
Update README
Mangso May 22, 2021
eccdd13
Update README
Mangso May 22, 2021
130b807
Update README
Mangso May 22, 2021
374824a
html에 변수 넣기
May 22, 2021
113649a
new
yoonseokham May 22, 2021
9f43d20
config
yoonseokham May 22, 2021
393a222
test video
May 22, 2021
e3b2cf4
sock added
yoonseokham May 22, 2021
118ca5c
thumbnail
May 23, 2021
ecf110f
recieve tool
yoonseokham May 24, 2021
b099a04
acc checker
yoonseokham May 24, 2021
bc19283
log for improve
yoonseokham May 24, 2021
591ba08
log
yoonseokham May 24, 2021
b788d66
acc drawer
yoonseokham May 24, 2021
8c21407
sound
yoonseokham May 24, 2021
5af4dd5
log
yoonseokham May 24, 2021
eac81f8
db for web
yoonseokham May 24, 2021
3256317
Update README
Mangso May 24, 2021
ac54b50
Update README
Mangso May 24, 2021
5a02123
Update 동영상 링크 추가
Mangso May 24, 2021
18a0d02
Merge pull request #81 from Mangso/README
Mangso May 24, 2021
772a2e3
Update 동영상 링크 수정
Mangso May 24, 2021
8623316
Merge pull request #82 from Mangso/README
Mangso May 24, 2021
1039bb6
Add check SSD_mobilenetV2 accuracy
Mangso May 24, 2021
abe1688
Add check yolov4-tiny accuracy
Mangso May 24, 2021
abd5ff6
Add two model's accuracy
Mangso May 24, 2021
1969128
Add About socket buffer
Mangso May 24, 2021
d972da0
Add Crop 5-10 second video & store
Mangso May 24, 2021
2178eca
Add Send video to AI server
Mangso May 24, 2021
be1d4f7
Add play stop sound When abnormal receive
Mangso May 24, 2021
4f0ad9c
Add stop.mp3
Mangso May 24, 2021
45a3a11
Merge pull request #83 from Mangso/final
Mangso May 24, 2021
c9c5922
bootstrap
May 24, 2021
f18dc0b
bootstrap_template
May 24, 2021
71d47b0
website_html
May 24, 2021
7cbf8eb
add thumbnail
May 24, 2021
b286742
html table
May 24, 2021
f24348c
etc
May 24, 2021
5dbdb7a
etc..
May 24, 2021
0c67d33
Merge pull request #85 from plmoknijb15/notification
taehyeon4 May 24, 2021
de83cb2
Record table 추가,등록
BeautterLife May 24, 2021
0d3422c
Record table 생성
BeautterLife May 24, 2021
6891d0d
메인페이지, cctv 선택 페이지 추가
BeautterLife May 24, 2021
ae5e8a9
setting.py 수정
BeautterLife May 24, 2021
e03da85
url 수정
BeautterLife May 24, 2021
59a59eb
main 페이지
BeautterLife May 24, 2021
7c0c078
cctv 선택 페이지
BeautterLife May 24, 2021
b022683
3개의 테이블
BeautterLife May 24, 2021
ec9aca8
Merge pull request #84 from ha-mulan/ai_server
BeautterLife May 24, 2021
80fe839
Merge pull request #87 from BeautterLife/send_email
BeautterLife May 24, 2021
1e6cce2
Merge pull request #88 from kookmin-sw/mysite_version1_improved
BeautterLife May 24, 2021
c127b7c
Merge pull request #90 from kookmin-sw/send_email
BeautterLife May 24, 2021
ab752d9
Merge pull request #89 from kookmin-sw/kakao_login
BeautterLife May 24, 2021
9eb3631
Merge pull request #91 from kookmin-sw/board
BeautterLife May 24, 2021
4fd3bb9
Merge pull request #92 from kookmin-sw/notification
BeautterLife May 24, 2021
854fde8
Merge pull request #93 from kookmin-sw/README
Mangso May 24, 2021
81279ff
Merge branch 'cctv_db' into cctv_db
BeautterLife May 24, 2021
1259df2
Merge pull request #94 from BeautterLife/cctv_db
BeautterLife May 24, 2021
93f02c3
Merge pull request #95 from kookmin-sw/cctv_db
BeautterLife May 24, 2021
64d0da6
주석 제거, api key 제거
BeautterLife May 24, 2021
c4c8496
Merge pull request #96 from kookmin-sw/ai_server
Mangso May 24, 2021
58b5ac3
Cctv table 참조할 FK 설정
BeautterLife May 24, 2021
327d3c4
Admin페이지에서 Account table 관리
BeautterLife May 24, 2021
15eaee7
Merge branch 'cctv_db' into cctv_db
BeautterLife May 24, 2021
a680f34
Merge pull request #97 from BeautterLife/cctv_db
BeautterLife May 24, 2021
ea73bd0
Merge branch 'master' into cctv_db
BeautterLife May 24, 2021
eb5f955
Merge pull request #98 from kookmin-sw/cctv_db
BeautterLife May 24, 2021
70b3cfe
gstreamer pipeline 수정
BeautterLife May 24, 2021
a1f75bc
Merge branch 'cctv_db' into cctv_db
BeautterLife May 24, 2021
69c5f34
Merge pull request #99 from BeautterLife/cctv_db
BeautterLife May 24, 2021
35cc992
Merge pull request #100 from kookmin-sw/cctv_db
BeautterLife May 24, 2021
3eb8f65
remove file that are no longer in use
May 24, 2021
efd8a1b
Merge pull request #101 from plmoknijb15/notification
taehyeon4 May 24, 2021
c370407
remove files
May 24, 2021
dbd2098
Merge pull request #102 from plmoknijb15/notification
taehyeon4 May 24, 2021
c612d58
Merge pull request #103 from kookmin-sw/notification
BeautterLife May 24, 2021
531cd55
구조도 업데이트
yoonseokham May 25, 2021
6b384d5
역할 추가
yoonseokham May 25, 2021
d3cfa23
Abstract, Role changed
BeautterLife May 26, 2021
989e7a9
구조도 수정
yoonseokham May 26, 2021
c19cfa2
role 추가
yoonseokham May 26, 2021
e669c4b
slowfast mp4 added
yoonseokham May 27, 2021
ef5c8eb
최종발표자료
BeautterLife May 27, 2021
0a8caa7
Update README.md
BeautterLife May 27, 2021
165f490
Update README.md
BeautterLife Sep 12, 2021
26f834a
Update README.md
yoonseokham Sep 25, 2021
cc25c41
Update README.md
yoonseokham Jan 9, 2022
d66d6a2
Update README.md
yoonseokham Jan 9, 2022
2803ce4
Update README.md
yoonseokham Jan 9, 2022
64dd126
Update README.md
yoonseokham Jan 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mysite/notification/gmail/client_secret.json
mysite/notification/kakao/kakao_token.json
113 changes: 70 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,104 @@
[![Work in Repl.it](https://classroom.github.com/assets/work-in-replit-14baed9a392b3a25080506f3b7b6d57f295ec2978f6f33ec97e36a161684cbe9.svg)](https://classroom.github.com/online_ide?assignment_repo_id=370246&assignment_repo_type=GroupAssignmentRepo)
# Welcome to GitHub
# 범죄, 멈춰!
## 0. 수상
* 캡스톤 1등
* 국민대 아이디어 경진대회 1등
* 2021 sw인재페스티벌 우수상

## 1. 프로젝트 소개

캡스톤 팀 생성을 축하합니다.

## 팀소개 및 페이지를 꾸며주세요.
본 프로젝트에서는 폭행 상황을 감지하면 현장에 경고음을 출력하고 관리자에게 메일을 전송하는 지능형 cctv 시스템을 구축하고자 한다. 행동 인식(action recognition)을 하는 AI 기술로 CCTV 영상을 분석하여 폭행 발생 여부를 판단한다. 폭행 상황으로 감지된 결과는 CCTV 관리자에게 전송하여 관리자가 위험 상황을 신속하게 대응하도록 보조 할 수 있다. 또한, CCTV의 스피커가 "범죄 멈춰" 음성을 출력함으로써, CCTV 설치 장소에서의 폭력 발생을 예방하는 효과도 기대된다.

- 프로젝트 소개
- 프로젝트 설치방법 및 데모, 사용방법, 프리뷰등을 readme.md에 작성.
- Api나 사용방법등 내용이 많을경우 wiki에 꾸미고 링크 추가.

- 팀페이지 꾸미기
- 프로젝트 소개 및 팀원 소개
- index.md 예시보고 수정.
<br/>

- GitHub Pages 리파지토리 Settings > Options > GitHub Pages
- Source를 marster branch
- Theme Chooser에서 태마선택
- 수정후 팀페이지 확인하여 점검.
## 2. Abstract

**팀페이지 주소** -> https://kookmin-sw.github.io/ '{{자신의 리파지토리 아이디}}'

**예시)** 2020년 0조 https://kookmin-sw.github.io/capstone-2020-0/
This project aims to implement a CCTV system that can detect assault immediately. If assault detected, it makes an audio-"Stop Crime!"- and sends an email to a CCTV manager. It determines whether there happened the situation by using an AI model, which recognizes several human actions. By sending the detected results to CCTV mangers, we hopefully expect the system to assist him or her to deal with the situation quickly and help to prevent attacks by making the audio.
<br/>


## 내용에 아래와 같은 내용들을 추가하세요.
## 3. 소개 영상

### 1. 프로잭트 소개

프로젝트
#### 중간 발표 영상

### 2. 소개 영상
[![23조 중간 발표 영상](http://img.youtube.com/vi/mTJcfbAd-b8/0.jpg)](https://youtu.be/mTJcfbAd-b8?t=0s)

프로젝트 소개하는 영상을 추가하세요
#### 시연 동영상

### 3. 팀 소개
[![23조 시연 영상](http://img.youtube.com/vi/Wo_nVTp51OM/0.jpg)](https://youtu.be/Wo_nVTp51OM?t=0s)
<br/>
#### Slowfast
##### abnormal

팀을 소개하세요.
https://user-images.githubusercontent.com/54228425/119828068-c76dd280-bf34-11eb-81d9-76145975be8e.mp4
##### normal

팀원정보 및 담당이나 사진 및 SNS를 이용하여 소개하세요.
https://user-images.githubusercontent.com/54228425/119828130-d8b6df00-bf34-11eb-824e-f5133405bac6.mp4

### 4. 사용법

소스코드제출시 설치법이나 사용법을 작성하세요.

### 5. 기타
## 4. 팀 소개

추가적인 내용은 자유롭게 작성하세요.

<img align=left src = "https://user-images.githubusercontent.com/21096675/112747542-12c93a80-8ff1-11eb-85e9-965e0c9e78d5.png" width="200px" height="180px">

## Markdown을 사용하여 내용꾸미기
```markdown
😁 Name : 박건희(팀장)
👨🏻‍💻 ID : 20163107
📧 Email: pgh9801@kookmin.ac.kr

🛠 Role:
- Web Application Server, Backend
- 데이터셋 자동 다운로더 구현

```

Markdown은 작문을 스타일링하기위한 가볍고 사용하기 쉬운 구문입니다. 여기에는 다음을위한 규칙이 포함됩니다.
<img align=left src = "https://user-images.githubusercontent.com/21096675/113386677-b5086a00-93c5-11eb-8388-1901400ac829.png" width="200px" height="180px">

```markdown
Syntax highlighted code block
😁 Name : 김소망
👨🏻‍💻 ID : 20163094
📧 Email: akfls745@kookmin.ac.kr

🛠 Role :
- 보드 총괄
- Object Detection

```
<img align=left src ="https://user-images.githubusercontent.com/21096675/112747550-178dee80-8ff1-11eb-9eb7-8059c506133e.png" width="200px" height="180px">

# Header 1
## Header 2
### Header 3
```markdown
😁 Name : 임태현
👨🏻‍💻 ID : 20163153
📧 Email: plmoknijb15@kookmin.ac.kr

- Bulleted
- List
🛠 Role :
- 데이터 셋 구축 & 모델 학습
- 알림 기능 & Action classification 모델(slowFast) 성능 향상

1. Numbered
2. List
```

<img align=left src = "https://user-images.githubusercontent.com/21096675/113386691-bafe4b00-93c5-11eb-98d9-9e3933ae8d1c.png" width="200px" height="180px">

**Bold** and _Italic_ and `Code` text
```markdown
😁 Name : 함윤석
👨🏻‍💻 ID : 20163175
📧 Email: ham5312@kookmin.ac.kr

🛠 Role :
- 데이터 셋 구축 & 모델 학습
- Ai Server 제작 & Action classification 모델(slowFast) 성능 향상

[Link](url) and ![Image](src)
```

자세한 내용은 [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
<br/>

## 5. 사용법

### Support or Contact
추후 pdf 파일 업로드 예정

readme 파일 생성에 추가적인 도움이 필요하면 [도움말](https://help.github.com/articles/about-readmes/) 이나 [contact support](https://github.com/contact) 을 이용하세요.
## 6. 기타 url
* https://www.joongang.co.kr/article/25030459
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
theme: jekyll-theme-slate
theme: jekyll-theme-cayman
File renamed without changes.
10 changes: 10 additions & 0 deletions board/VideoStreamingFlask/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Flask 웹서버 스트리밍

송신


'''
gst-launch-1.0 v4l2src device="/dev/video0" ! "video/x-raw, framerate=30/1" ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host={recevier ip 주소} port=10000 sync=false
'''


Binary file not shown.
21 changes: 21 additions & 0 deletions board/VideoStreamingFlask/camera.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import cv2
face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml")
ds_factor=0.6

class VideoCamera(object):
def __init__(self):
self.video = cv2.VideoCapture('udpsrc port=10000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtpjitterbuffer ! rtph264depay ! decodebin ! videoconvert ! appsink', cv2.CAP_GSTREAMER)

def __del__(self):
self.video.release()

def get_frame(self):
success, image = self.video.read()
image=cv2.resize(image,None,fx=ds_factor,fy=ds_factor,interpolation=cv2.INTER_AREA)
gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
face_rects=face_cascade.detectMultiScale(gray,1.3,5)
for (x,y,w,h) in face_rects:
cv2.rectangle(image,(x,y),(x+w,y+h),(0,255,0),2)
break
ret, jpeg = cv2.imencode('.jpg', image)
return jpeg.tobytes()
Binary file added board/VideoStreamingFlask/camera.pyc
Binary file not shown.
Loading