在运行时获取面部区域的像素值 [英] Get Pixel value of face area at runtime

查看:105
本文介绍了在运行时获取面部区域的像素值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
我正在做一个带有人脸检测的项目.因为我检测到人脸并用矩形标记,但是我需要的是我想在运行时获取矩形边缘的像素值,尤其是矩形的底线边缘.我如何找到它请帮帮我.
谢谢

Hello friends
I am doing a project with face detection.In that i detected face and mark by rectangle,but what i need is i want to get pixel value of rectangular edges at runtime, particularly bottomline edges of rectangle.how can i find it please help me.
Thanks

推荐答案

你好

如果要获取像素的颜色,则需要具有像素的x和y.

那很容易.看一下: Bitmap.GetPixel方法

也许它也可以提供帮助:
获取位图图像中的原始像素值
Hello

If you want to get the colour of a Pixel you need to have x and y of the pixel.

Then it''s easy. Look at this: Bitmap.GetPixel Method

Maybe it can help too:
Get raw pixel value in bitmap image


这篇关于在运行时获取面部区域的像素值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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