Browse Source

Dateien hochladen nach „“

master
Jonathan Frei 3 months ago
parent
commit
368d686e21
3 changed files with 138 additions and 0 deletions
  1. 19
    0
      README.md
  2. 112
    0
      author_contribution.md
  3. 7
    0
      requirements.txt

+ 19
- 0
README.md View File

@@ -0,0 +1,19 @@
# Driving Simulator Team Video
## Projektbeschreibung
Dieser Code ermittelt die Herzfrequenz einer Person anhand eines aufgenommenen Videos von deren Gesicht auf Basis des Eulerian Video Magnification (EVM) Verfahrens. Desweiteren ist ein Interface enthalten, das neben der Steuerung des Programms auch einen Testing-Modus zulässt.
## Installation
pip install -r requirements.txt
## Verwendung
Wenn ein fertiges feature in den Master Branch gemerged wird muss die code_version variable in der main.py inkrementiert werden. Für kleine features wird die nachkomma stelle inkrementiert, bei großen features wird die vorkomma stelle erhöht und die nachkomma stelle auf 0 gesetzt.
## Bedienungsanleitung
**Recording**: Aufösung und fps der verwendeten Kamera müssen eingetragen werden, ebenso der gewünschte Videoname. Videos beliebiger Länge können über "Aufnahme starten/stoppen" aufgezeichnet werden.
**Processing**: Über das Textfenster oder den Button "Video auswählen" kann das auszuwertende Video gewählt werden. Der Button "Verarbeiten" startet die Pulsberechnung, deren Ergebnis im Terminal ausgegeben wird.
**Create Testcase**: Solange das Programm noch nicht final ist, ist es mit einem Testing-Modus ausgestattet. Die eizustellenden Parameter entsprechen möglichen Einflüssen auf die Berechnung und sollten im Entwicklungsverlauf entsprechend der Testergebnisse angepasst werden. Der Button "Testcase aufnehmen" startet die Aufnahme, die nach der zuvor eingetragenen Zeit stoppt. Das Video wird gespeichert und in der Testcases-Excel-Datei wird ein entsprechender neuer Antrag angelegt.
**Testing**: Die Buttons "Open Testcase/-run Excel" öffnen die jeweiligen Excel-Tabellen. Der Button "Test durchführen" startet die Auswertung aller in der Testcases-Excel-Datei aufgelisteten Videos und trägt die Ergebnisse in die Testrun-Excel-Datei ein. Anschließend wird eine nach Genauigkeit der Auswertung sortierte Kopie der Testcases-Excel-Datei erstellt.
## Beiträge
Siehe author_contribution.md

+ 112
- 0
author_contribution.md View File

@@ -0,0 +1,112 @@
# Author Contribution Team Video
## Authors
### Roberto Gelsinger
- Contribution: Algorithm development, Python Code
- Email: gelsingerro81137@th-nuernberg.de
### Jonathan Frei
- Contribution: Algorithm Development, Python Code, Testing
- Email: freijo85382@th-nuernberg.de
## Contribution
### Roberto Gelsinger
#### General Contributen
- **Creating README.md structure**
- **Creating requiremenents.txt**
- **Creating author_contribution.md structure**
- **Added Docstrings to the code**
- **Creating the Trello Agile Kanban Board and updating Team Video Tasks**
#### Code Contribution
- **facedetection.py**
- Developed face and forehead detection using OpenCV.
- **heartrate.py**
- Implemented and optimized the heart rate calculation using SciPy
- **main.py**
- Created user interface using Tkinter for recording, processing and testing porpuses.
- Connected all functionalities of the code to create a effective testing environment
- **processing.py**
- Handled video data processing and applied image processing algorithms.
- Collaborated in the development of video manipulation techniques for analysis.
- **pyramids.py**
- Constructed image pyramids and performed image analysis.
- Employed computer vision techniques for feature extraction and manipulation.
- **recording.py**
- Implemented video recording functionalities.
- Developed modules for media file management and real-time video capture using threading.
- **constants.py**
- Established global constants and configuration parameters.
- Defined critical frequency and alpha value parameters for system-wide use.
- **eulerian.py**
- Applies the maginfication alpha to the signal
- **excel_processing.py**
- Is used to create test cases and prcoess the value for the test case
- Values and input is saved to a excel
- **excel_update.py**
- Creates entry in testrun excel file
- Calculates the deviation and colors the excel cells.
- Calculates the deviation for each test case and adds a overall deviation for the test run
#### Testing Contribution
- **Design and implement solution for test automation**
- **Create testcase sample for test automation**
- **Testing and optimizing the code**
### Jonathan Frei
#### General Contribution
- **Creating README.md**
- **Algorithm Designs on previous versions**
#### Code Contribution
- **general**
- Edited other Authors' codes for bugfixing
- **prozentuale_Abweichung.py**
- Calculates percentual deviation between our calculated and the external measured value
- Adds the percentual deviation to the testcases excel sheet
- **tabellen_umstrukturieren.py**
- Sorts the rows of the testcases excel sheet by percentual deviation
- **tabellen_zusammenführen.py**
- Merges the testruns excel sheet into the testcases excel sheet
#### Testing Contribution
- **Designed testing environments**
- **Created various testcases**
- **Ran rest runs in multiple code versions for code optimization**
---
<div style="display: flex; justify-content: space-around; align-items: center;">
<div>
<hr style="width: 200px;">
<p style="text-align: center;">Roberto Gelsinger</p>
</div>
<div>
<hr style="width: 200px;">
<p style="text-align: center;">Author 2</p>
</div>
<div>
<hr style="width: 200px;">
<p style="text-align: center;">Author 3</p>
</div>
</div>

+ 7
- 0
requirements.txt View File

@@ -0,0 +1,7 @@
tk
numpy
openpyxl
pandas
scipy
opencv-python
Pillow

Loading…
Cancel
Save