forked from grioool/human-age-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Test scenarios for image directory | ||
This file describes the manual test scenarios for uploading images from a directory to the app. | ||
## Pre-requisites | ||
Run the app using manual provided in README.md file in root directory. | ||
## Test scenarios | ||
To perform this test, upload the directory `tests/image_processing/test_images/manual_test` to the app using | ||
`Upload Image Directory` button. | ||
The result should be a zip file `images.zip` containing processed images from given directory. These | ||
images should be in the directory with the same name as the original directory. | ||
### Test scenario 1 | ||
- Given: The app is running | ||
- When: The user uploads the directory with valid image `valid.jpg` | ||
- Then: The app should return a zip file with processed image `valid_image.jpg` | ||
with bounding box and age label ... | ||
### Test scenario 2 | ||
- Given: The app is running | ||
- When: The user uploads the directory with invalid image `no_faces.jpg` | ||
that does not contain any faces | ||
- Then: The app should return a zip file with processed image `no_faces.jpg` | ||
without bounding box and age label ... | ||
### Test scenario 3 | ||
- Given: The app is running | ||
- When: The user uploads the directory with image `many_faces.jpg` that | ||
contains more than one face | ||
- Then: The app should return a zip file with processed image `many_faces.jpg` | ||
with bounding box for each face and with following age labels: `age_1`, `age_2`, `age_3` | ||
### Test scenario 4 | ||
- Given: The app is running | ||
- When: The user uploads the directory with upside down image `upside_down.jpg` | ||
- Then: The app should return a zip file with processed image `upside_down.jpg` | ||
with bounding box and age label ... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Tests for real time processing | ||
This file describes the manual tests for real time processing. | ||
## Pre-requisites | ||
Run the app using manual provided in README.md file in root directory. | ||
## Test scenarios | ||
### Test scenario 1 | ||
- Given: The app is running and camera is connected | ||
- When: There is a face in front of the camera | ||
- Then: The app should show one camera feed from original stream and one from processed stream containing | ||
bounding box and age label. The delay between original and processed stream should not be noticeable. | ||
### Test scenario 2 | ||
- Given: The app is running and camera is connected | ||
- When: There are many faces in front of the camera | ||
- Then: The app should show one camera feed from original stream and one from processed stream with | ||
bounding box and age label for each face. Additionally, processed stream might show slight delay because | ||
of processing time. | ||
### Test scenario 3 | ||
- Given: The app is running and camera is connected | ||
- When: There is a face in front of the camera with head tilted to the side by 90 degrees | ||
- Then: The app should show one camera feed from original stream and one from processed stream without | ||
bounding box and age label. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Test for video processing | ||
This file describes the manual test for uploading videos to the app. | ||
## Pre-requisites | ||
Run the app using manual provided in README.md file in root directory. | ||
## Testing video processing | ||
To perform this test, upload the video from `tests/video_processing/test_videos/valid_videos/valid_video.mp4` | ||
directory to the app using `Upload Video` button. The result should be a video file `processed_video.mp4`. | ||
### Test scenario | ||
- Given: The app is running | ||
- When: The user uploads the video with valid file extension `valid_video.mp4` | ||
- Then: The app should stop showing camera feed and show waiting screen until the video is processed. | ||
After processing is finished, the app should download the processed video and return to the camera feed. | ||
For given video, the time of processing should take about 30 seconds. |