I guessed with my limited knowledge: parser.add_argument("--output", type=str, default=str(parser.parse_args()), help="output image name")
But it gives error:
line 45, in main
cv2.imwrite(args.output, image)
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:730: error: (-2:Unspecified error) could not find a writer for the specified extension in function 'cv::imwrite_'
I guessed with my limited knowledge:
parser.add_argument("--output", type=str, default=str(parser.parse_args()), help="output image name")
But it gives error: