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

Refactor of the code #6

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7e15783
style: :recycle: Improved .gitignore to accept new files and new stru…
nos86 Mar 22, 2023
f3972d5
refactor: :recycle: moved SleepyBaby as package
nos86 Mar 22, 2023
50b3000
refactor: :construction: Refactoring code in smaller and consistent c…
nos86 Mar 22, 2023
31b0777
perf: :zap: helper has been refactored and optimized
nos86 Mar 23, 2023
ccece2a
chore: :bug: Ignore supporting file of jupyter
nos86 Mar 23, 2023
fd56431
refactor: :art: Refactoring
nos86 Mar 23, 2023
4771913
refactor: :art: WIP: first draft of Decision logic
nos86 Mar 23, 2023
f5749d2
refactor: :art: Created Frame class
Mar 24, 2023
5623d52
refactor: :technologist: Threshold for recognition has been moved as …
nos86 Mar 24, 2023
f113419
refactor: :art: media_analysis moved directly inside __init__
nos86 Mar 24, 2023
2d1ec03
refactor: :art: Add possibility to show additional parameters on screen
nos86 Mar 24, 2023
5f6a274
refactor: :art: implementation of decision logic
nos86 Mar 24, 2023
46ca184
added example for main.py
nos86 Mar 28, 2023
1e273ff
feat(cli): :sparkles: Add command line configuration for script execu…
Mar 30, 2023
a9d0ac1
feat: Refactor logging setup and options
Mar 30, 2023
734d533
refactor: Refactor video processing for multithreading.
Mar 30, 2023
40257d6
refactor: Refactor progress bar function signature and style.
Apr 3, 2023
5c82154
refactor: Refactor progress bar functionality in frame.py
Apr 3, 2023
7fa817b
Merge branch 'feature/text_n_bar' into dev
Apr 3, 2023
0085a27
fix: :bug: Add `argparse` import and remove debug `print` statement i…
Apr 3, 2023
727aa3e
refactor: Move attributes in function signature
Apr 3, 2023
c9dd314
refactor: Refactor main.py into class and add CLI support via Fire.
Apr 4, 2023
4a4329e
Merge branch 'feature/arguments' into dev
Apr 4, 2023
5438aaa
refactor: Refactor source parameter in app.live() method
Apr 4, 2023
4964d5c
refactor: Improve constructor functionality and readability in main.py.
Apr 5, 2023
ab43dc4
feat: Add face detection and tracking confidence to SleepyBaby initia…
Apr 5, 2023
0673da9
feat: implement new `photo` method for image processing
Apr 5, 2023
fab7cd6
feat: Add working area configuration
nos86 Apr 11, 2023
59a1a61
feat(frame): ✨ add gamma correction to the augmented frame generation
nos86 Apr 11, 2023
711bb8c
refactor: 🚀 code to simplify get_height calculation
nos86 Apr 11, 2023
a040c9e
style: Remove unused dependencies
nos86 Apr 11, 2023
cc1949d
refactor: 🔮 Refactored app.photo() and app._process_streaming() to ma…
nos86 Apr 11, 2023
b666027
feat: 🚀 Add debug variable to show baby status
nos86 Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env_sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ SLEEP_DATA_PATH=/path/to/sleep/data
DEBUG=False
OWL=False
VIDEO_PATH=/path/to/video
HATCH_IP=192.168.HATCH.IP
HATCH_IP=192.168.HATCH.IP
AREA_X=
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, when we eventually get around to updating the README I want to mention that users should play around with this. The smaller the area, the less demanding it is on client cpu/gpu. Can be computationally expensive & pointless to pass the entire image through the models

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as we freeze the modification, I'll comment the code and update all related file (including README) to be aligned with new structure

AREA_Y=
AREA_WIDTH=1920
AREA_HEIGHT=1080
22 changes: 10 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
*
!.gitignore
!LICENSE
!README.md
!main.py
!helpers.py
!webapp
!webapp/**
__pycache__
node_modules
build
!sleep_logs.csv
!*.ipynb
!requirements.txt
!.env_sample
*.log
.env
.ipynb_checkpoints
baby
*.jpg
*.jpeg
*.png
*.avi
*.mp4
164 changes: 0 additions & 164 deletions helpers.py

This file was deleted.

Loading