def add_input_args(parser):
    """Add parser arguments for input options."""
    parser.add_argument('--image', metavar='<image>', type=str, required=False, default='./doc/valid_test.png', help='Path of input image.')
    parser.add_argument('--video', metavar='<video>', type=str, required=False, default='./doc/valid_test.mp4', help='Path of input video.')
    parser.add_argument('--test-type', metavar='<test-type>', type=str, required=False, choices=['x86_64', 'xavier', 'nano', None], default=None, help='Input type for inference ["x86_64", "xavier", "nano"].')
    parser.add_argument('--input-type', metavar='<input-type>', type=str, required=False, choices=['image', 'video', 'camera', 'arducam'], default='camera', help='Input type for inference ["image", "video", "camera", "arducam"].')
    parser.add_argument('--thread', metavar='<thread>', type=str, required=False, choices=['both', 'get', 'show', 'none', 'old'], default='show', help='Threading type ["both", "get", "show", "none", "old"].')
    parser.add_argument('--width', type=int, default=640, help='Image width [640].')
    parser.add_argument('--height', type=int, default=480, help='Image height [480].')
    parser.add_argument('--udp-port', type=int, default=1337, help='Port to use for UDP.')
    parser.add_argument('--is-rpi-cam', action='store_true', help='Is Raspberry Pi camera v2.')
    parser.add_argument('--flip-vertically', action='store_true', help='Flip image vertically.')
    parser.add_argument('--flip-horizontally', action='store_true', help='Flip image horizontally.')
    parser.add_argument('--udp', action='store_true', help='Are we using UDP?')
    return parser