如何在c#中裁剪文件夹中的所有人脸图像? [英] How to crop all the face images in a folder in c#?

查看:129
本文介绍了如何在c#中裁剪文件夹中的所有人脸图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何分别裁剪每个图像,但如何整体做到....

I know how to crop each images separately but how to do it as a whole....

推荐答案

如果您知道如何单独进行,那么所有你需要的是代码来遍历目录中的文件。网上有大量的样品。



您将需要使用 Directory.GetFiles() [ ^ ]获取所有文件,然后遍历每个文件并进行处理。
If you know how to do it individually then all you need is code to loop through the files in a directory. There are tons of samples online.

You will want to use Directory.GetFiles()[^] to get all the files and then loop through each one and process.


这篇关于如何在c#中裁剪文件夹中的所有人脸图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆