TypeError: segment() missing 1 required positional argument: 'out_dir' - Python Error Solution
The error message suggests that the segment() function in the book_detector module is missing a required argument called out_dir. This means that when calling the segment() function, you need to provide a value for the out_dir argument.\n\nHere's an example of how the segment() function should be called, assuming you have a valid out_dir value:\n\npython\nbook_detector.segment(image, results, image_path, out_dir="output_directory", all_at_once=True, show=True)\n\n\nMake sure to replace "output_directory" with the actual directory where you want the output to be saved.
原文地址: https://www.cveoy.top/t/topic/qasW 著作权归作者所有。请勿转载和采集!