Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Could not find a format to read the specified file in single-image mode #2

Open
Huimin-0000 opened this issue Mar 11, 2021 · 2 comments

Comments

@Huimin-0000
Copy link

I just learned Python, there are a lot of things I don't understand, I don't know how to change it.
please help me. Thank you!

runfile('C:/Users/admin/Desktop/Image-Rectification-master/rectification.py', wdir='C:/Users/admin/Desktop/Image-Rectification-master')
Traceback (most recent call last):

File "C:\Users\admin\Desktop\Image-Rectification-master\rectification.py", line 529, in
image = io.imread(image_name)

File "C:\Users\admin\Anaconda3\envs\python\lib\site-packages\skimage\io_io.py", line 48, in imread
img = call_plugin('imread', fname, plugin=plugin, **plugin_args)

File "C:\Users\admin\Anaconda3\envs\python\lib\site-packages\skimage\io\manage_plugins.py", line 210, in call_plugin
return func(*args, **kwargs)

File "C:\Users\admin\Anaconda3\envs\python\lib\site-packages\skimage\io_plugins\imageio_plugin.py", line 10, in imread
return np.asarray(imageio_imread(*args, **kwargs))

File "C:\Users\admin\Anaconda3\envs\python\lib\site-packages\imageio\core\functions.py", line 265, in imread
reader = read(uri, format, "i", **kwargs)

File "C:\Users\admin\Anaconda3\envs\python\lib\site-packages\imageio\core\functions.py", line 182, in get_reader
"Could not find a format to read the specified file in %s mode" % modename

ValueError: Could not find a format to read the specified file in single-image mode

@boisbb
Copy link

boisbb commented Mar 14, 2021

Have you included a path to image you want to rectify as a first argument of the program?

@Huimin-0000
Copy link
Author

Thank you for your answer,I already I already solve this problem.Your method is very good. It benefited me a lot.
But I have many pictures to process them now. For a green hand, I don't know how to add a code to batch processing.
Do you have any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants