Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Add preferred paths
Browse files Browse the repository at this point in the history
  • Loading branch information
WebCoder49 committed Feb 24, 2022
1 parent c6b02c8 commit 7bfd693
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
SECONDS_PER_ITERATION = 1

# Processing
PREFERRED_RESOLUTION = (640, 480)
PREFERRED_RES_NP = (480, 640) # Reverse - for creating NumPy arrays
# Resolution from phase 2 guide
PREFERRED_RESOLUTION = (1296, 972)
PREFERRED_RES_NP = (972, 1296) # Reverse - for creating NumPy arrays

MASK = True
CAN_DISCARD = True
Expand All @@ -21,12 +22,19 @@
# Discard, no PNG - 26M
# Discard, PNG - 23M
#
# 10 pictures take up 2.2M
# We are allowed to use 3G = 2600M (conservatively)
# Roughly 12000 pictures are allowed
# 3 hours = 10800 seconds, therefore 1 picture per second should work well
# With 480x640:
# 10 pictures take up around 2.2M
# We are allowed to use 3G = 2600M (conservatively)
# Roughly 12000 pictures are allowed
# 3 hours = 10800 seconds, therefore 1 picture per second should work well
# Now:
# 1 picture per 5 seconds
USE_PNG = True

# Output
OUT_DIR = os.path.join(".", "out")
OUT_FILE = os.path.join(OUT_DIR, "out.blob")
from pathlib import Path

BASE_DIR = Path(__file__).parent.resolve() # Get parent directory

OUT_DIR = BASE_DIR/"out"
OUT_FILE = OUT_DIR/"out.blob"

0 comments on commit 7bfd693

Please sign in to comment.