<p align="center">
<img src="https://raw.githubusercontent.com/SharpSenses/logos/master/sharp_senses.png" width="350px" alt="SharpSenses" />
</p>
<p>
An easier way to use the **RealSense** SDK! Custom poses, gestures and much more.
<sub>***Warning:*** *Make sure you have the RealSense SDK version 10 installed before using SharpSenses. This is not ready for production, I'm changing the SDK (breaking changes sometimes) while I add new features, so stay tuned for version 1.0.*</sub>
## SharpSenses.RealSense
> Nuget: Install-Package SharpSenses.RealSense
## Sample:
```
var cam = Camera.Create(Capability.HandTracking);
cam.LeftHand.Visible += (s,a) => Console.WriteLine("Hi left hand!");
cam.RightHand.Closed += (s,a) => Console.WriteLine("Hand Closed");
cam.RightHand.Moved += (s,a) => {
Console.WriteLine("-> x:{0} y:{1}", a.Position.Image.X, a.Position.Image.Y);
}
cam.Start();
````
## Enabling Capabilities
For performance reasons, you have to tell the camera which modules will be loaded for use.
The available modules are:
- HandTracking,
- FingersTracking,
- GestureTracking,
- FaceTracking,
- FaceRecognition,
- FacialExpressionTracking,
- ImageStreamTracking,
- SegmentationStreamTracking
You can enable the modules when creating the Camera object or calling the method "AddCapability", always before calling "Start".
```
var cam = Camera.Create(Capability.HandTracking, Capability.FingersTracking);
or
cam.AddCapability(Capability.FaceTracking);
```
# Examples:
##Gestures
```
cam.Gestures.SlideLeft += (s, a) => Console.WriteLine("Swipe Left");
cam.Gestures.SlideRight += (s, a) => Console.WriteLine("Swipe Right");
cam.Gestures.SlideUp += (s, a) => Console.WriteLine("Swipe Up");
cam.Gestures.SlideDown += (s, a) => Console.WriteLine("Swipe Down");
```
##Poses
```
cam.Poses.PeaceBegin += (s, a) => Console.WriteLine("Make love, not war");
cam.Poses.PeaceEnd += (s, a) => Console.WriteLine("Bye!");
```
##Eyes
```
cam.Face.LeftEye.Blink += (sender, eventArgs) => {
Console.WriteLine("Blink");
};
cam.Face.LeftEye.DoubleBlink += (sender, eventArgs) => {
Console.WriteLine("Double Blink");
};
cam.Face.WinkedLeft += (sender, eventArgs) => {
Console.WriteLine("WinkedLeft");
};
cam.Face.WinkedRight += (sender, eventArgs) => {
Console.WriteLine("WinkedRight");
};
```
##Mouth
```
cam.Face.Mouth.Opened += (s, a) => {
Console.WriteLine("-> Mouth opened");
};
cam.Face.Mouth.Closed += (s, a) => {
Console.WriteLine("-> Mouth closed");
};
cam.Face.Mouth.Smiled += (s, a) => {
Console.WriteLine("-> Mouth smiled");
};
```
##Custom Poses
```
var pose = PoseBuilder.Create().ShouldBeNear(_cam.LeftHand, _cam.RightHand, 100).Build();
pose.Begin += (s, a) => {
Console.WriteLine("Super pose!");
};
pose.Begin += (s, a) => DoSomething();
```
##Facial Expressions
- Anger
- Contempt
- Disgust
- Fear
- Joy
- Sadness
- Surprise
OBS: Unfortunately this feature was deprecated by Intel
##Face Recognition
Anytime you want to recognite a new face, call:
```
cam.Face.RecognizeFace();
```
You can always get a notification when a new or pre-recognized face is recognized:
```
_cam.Face.PersonRecognized += (s, a) => {
Console.WriteLine("Hello " + a.UserId);
};
```
##Voice/Speech Synthesis
Oh yeah, we speak!
```
cam.Speech.Say("Isn't that cool?");
```
##Voice/Speech Recognition
I can hear you, man!
```
cam.Speech.SpeechRecognized += (s, a) => {
Console.WriteLine("-> " + a.Sentence);
};
cam.Speech.EnableRecognition();
```
Don't forget that you have to have the Intel RealSense SDK v10 (and the 3d camera, of course) for this library to work!
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论























收起资源包目录





































































































共 183 条
- 1
- 2
资源评论


快撑死的鱼
- 粉丝: 2w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 智慧城市-未来科技社会的生存智慧.docx
- 【精华】环保倡议书锦集10篇.doc
- 造价员竣工结算常识.doc
- 周围环境中微生物观察及分离实验.pdf
- ISO9001EN-CN.pdf
- 下半软件设计师下午试题以及答案.doc
- 企业薪酬激励策略研究.doc
- 云计算对现代教育的影响.docx
- 大数据时代下的人力资源管理.docx
- 教你看懂建筑施工图及费用签证的填写技巧.docx
- 智能家居控制系统的设计与实现.docx
- 第10章--混凝土结构设计的一般原则和方法.ppt
- 安全检查专项培训.ppt
- 转让技术秘密和补偿贸易合作生产合同.doc
- 《一页纸项目管理》读后感.doc
- 多媒体技术在技工院校计算机教学中的问题及其对策探析.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
