Better args and gif
This commit is contained in:
parent
103d060781
commit
3e7cf043ff
@ -104,7 +104,7 @@ The default focal length is 5.7mm and this parameter can be modified using the a
|
|||||||
|
|
||||||
## Webcam
|
## Webcam
|
||||||
|
|
||||||
You can use the webcam as input by using the `--webcam` argument. By default the `--z_max` is set to 10 while using the webcam and the `--long_edge` is set to 144. If multiple webcams are plugged in you can choose between them using `--camera`, for instance to use the second camera you can add `--camera 1`.
|
You can use the webcam as input by using the `--webcam` argument. By default the `--z_max` is set to 10 while using the webcam and the `--long-edge` is set to 144. If multiple webcams are plugged in you can choose between them using `--camera`, for instance to use the second camera you can add `--camera 1`.
|
||||||
For example, the following command :
|
For example, the following command :
|
||||||
```
|
```
|
||||||
python -m monoloco.run predict \
|
python -m monoloco.run predict \
|
||||||
|
|||||||
BIN
docs/webcam.gif
BIN
docs/webcam.gif
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 MiB After Width: | Height: | Size: 19 MiB |
@ -27,7 +27,7 @@ def cli():
|
|||||||
predict_parser.add_argument('--hide_distance', help='to not show the absolute distance of people from the camera',
|
predict_parser.add_argument('--hide_distance', help='to not show the absolute distance of people from the camera',
|
||||||
default=False, action='store_true')
|
default=False, action='store_true')
|
||||||
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=150)
|
predict_parser.add_argument('--dpi', help='image resolution', type=int, default=150)
|
||||||
predict_parser.add_argument('--long_edge', default=None, type=int,
|
predict_parser.add_argument('--long-edge', default=None, type=int,
|
||||||
help='rescale the long side of the image (aspect ratio maintained)')
|
help='rescale the long side of the image (aspect ratio maintained)')
|
||||||
predict_parser.add_argument('--white-overlay',
|
predict_parser.add_argument('--white-overlay',
|
||||||
nargs='?', default=False, const=0.8, type=float,
|
nargs='?', default=False, const=0.8, type=float,
|
||||||
@ -50,7 +50,7 @@ def cli():
|
|||||||
visualizer.cli(parser)
|
visualizer.cli(parser)
|
||||||
|
|
||||||
# Monoloco
|
# Monoloco
|
||||||
predict_parser.add_argument('--activities', nargs='+',
|
predict_parser.add_argument('--activities', nargs='+', choices=['raise_hand', 'social_distance'],
|
||||||
help='Choose activities to show: social_distance, raise_hand')
|
help='Choose activities to show: social_distance, raise_hand')
|
||||||
predict_parser.add_argument('--mode', help='keypoints, mono, stereo', default='mono')
|
predict_parser.add_argument('--mode', help='keypoints, mono, stereo', default='mono')
|
||||||
predict_parser.add_argument('--model', help='path of MonoLoco/MonStereo model to load')
|
predict_parser.add_argument('--model', help='path of MonoLoco/MonStereo model to load')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user