C# - Detect face and crop image

前端 未结 4 2013
时光取名叫无心
时光取名叫无心 2020-12-30 13:06

I\'m writing a HttpHandler in C# which serves resized images and blah blah blah... No troubles, we have millions of handlers to use as reference.

The pr

4条回答
  •  無奈伤痛
    2020-12-30 13:47

    If you are looking for cropping your image, you could use the Microsoft Cognitive Service named Face API which delimiters the face of all persons on your photo, it gives you back a JSON which has the elements to return you a Rectangle struct, then you can Crop and Resize your image as you want.

    Here you can see more informationa about it: FaceAPI

提交回复
热议问题