(parser)
| 11 | # script and as a subcommand in sai-cli. |
| 12 | |
| 13 | def define_args(parser): |
| 14 | parser.add_argument("input", help="Path to folder with session to process") |
| 15 | parser.add_argument("output", help="Output folder, or filename with [.ply, .pcd] or [.obj] extension for exporting pointcloud or mesh") |
| 16 | parser.add_argument('--format', choices=['taichi', 'nerfstudio'], default='nerfstudio', help='Output format.') |
| 17 | parser.add_argument("--cell_size", help="Dense point cloud decimation cell size (meters)", type=float, default=0.1) |
| 18 | parser.add_argument("--distance_quantile", help="Max point distance filter quantile (0 = disabled)", type=float, default=0.99) |
| 19 | parser.add_argument("--key_frame_distance", help="Minimum distance between keyframes (meters)", type=float, default=0.05) |
| 20 | parser.add_argument('--no_icp', action='store_true') |
| 21 | parser.add_argument('--device_preset', choices=['none', 'oak-d', 'k4a', 'realsense', 'android', 'android-tof', 'ios-tof', 'orbbec-astra2', 'orbbec-femto'], help="Automatically detected in most cases") |
| 22 | parser.add_argument('--fast', action='store_true', help='Fast but lower quality settings') |
| 23 | parser.add_argument('--mono', action='store_true', help='Monocular mode: disable ToF and stereo data') |
| 24 | parser.add_argument('--internal', action='append', type=str, help='Internal override parameters in the form --internal=name:value') |
| 25 | parser.add_argument('--blur_filter_range', type=int, default=4, help='Remove key frames that are the blurriest in a neighborhood of this size (0=disabled)') |
| 26 | parser.add_argument('--no_undistort', action='store_true', help='Do not undistort output images (only supported with certain devices)') |
| 27 | parser.add_argument('--image_format', type=str, default='jpg', help="Color image format (use 'png' for top quality)") |
| 28 | parser.add_argument("--texturize", help="Add textures to mesh export (BETA)", action="store_true") |
| 29 | parser.add_argument("--preview", help="Show latest primary image as a preview", action="store_true") |
| 30 | parser.add_argument("--preview3d", help="Show 3D visualization", action="store_true") |
| 31 | return parser |
| 32 | |
| 33 | def define_subparser(subparsers): |
| 34 | sub = subparsers.add_parser('process', help=__doc__.strip()) |
no outgoing calls
no test coverage detected