如何将捕获的图像保存到特定路径 [英] how to save captured image to particular path
本文介绍了如何将捕获的图像保存到特定路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将捕获的图像保存到特定路径。我正在进行车牌检测项目,我想存储捕获的图像以保存在特定文件夹中。
解决方案
< blockquote>试试这个代码
if (!System.IO.File.Exists(savePath))
{
pic.SaveAs(savePath);
}
在'savePath'变量中设置图像文件夹路径
'pic'包含图片数据
How to save the captured image to a particular path.i am doing number plate detection project,i want to store captured image to get save in particular folder.
解决方案
Try this code
if (!System.IO.File.Exists(savePath)) { pic.SaveAs(savePath); }
Set your image folder path in 'savePath' variable
'pic' contain the picture data
这篇关于如何将捕获的图像保存到特定路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文