-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (26 loc) · 794 Bytes
/
Copy pathmain.py
File metadata and controls
32 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import argparse
from holonerf.mapping import DepthMap
def load_args() -> argparse.Namespace:
"""Load the arguments from the command line.
Returns:
Namespace: AArgs data object
"""
parser = argparse.ArgumentParser()
parser.add_argument(
"--source",
"-s",
type=str,
default="samples/depthdata",
help="Path to dataset",
)
parser.add_argument(
"--frame-rate", "-r", type=int, default=15, help="Output video frame rate"
)
parser.add_argument(
"--color", "-c", type=str, default="hot", help="Colormap styling"
)
return parser.parse_args()
if __name__ == "__main__":
args = load_args()
depthmap = DepthMap(directory=args.source, color=args.color)
depthmap.display(scale=0.8)