<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!
没有合适的资源?快使用搜索试试~ 我知道了~
使用英特尔3d相机的更简单方法。自定义姿势、手势等等_C#_PowerShell_下载.zip
共183个文件
cs:122个
png:15个
config:12个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 196 浏览量
2023-05-01
11:47:34
上传
评论
收藏 1.42MB ZIP 举报
温馨提示
使用英特尔3d相机的更简单方法。自定义姿势、手势等等_C#_PowerShell_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
使用英特尔3d相机的更简单方法。自定义姿势、手势等等_C#_PowerShell_下载.zip (183个子文件)
Package.appxmanifest 2KB
Package.appxmanifest 1KB
packages.config 972B
packages.config 883B
app.config 434B
repositories.config 388B
App.config 182B
App.config 182B
App.config 182B
App.config 182B
packages.config 170B
packages.config 142B
packages.config 142B
packages.config 129B
Program.cs 9KB
Movement.cs 5KB
FingerTrackingCapability.cs 5KB
App.xaml.cs 5KB
PoseBuilder.cs 5KB
RealSenseCamera.cs 5KB
FacialExpressionCapability.cs 4KB
GestureSlide.cs 4KB
Face.cs 4KB
SpeechRecognition.cs 4KB
HandTrackingCapability.cs 4KB
GestureSlideDownTests.cs 3KB
GestureSlideRightTests.cs 3KB
GestureSlideLeftTests.cs 3KB
GestureSlideUpTests.cs 3KB
Item.cs 3KB
FaceRecognitionCapability.cs 3KB
Pose.cs 3KB
Gesture.cs 3KB
Resources.Designer.cs 3KB
FaceCapability.cs 3KB
GestureStep.cs 3KB
PoseBuilderTests.cs 3KB
SpeechSynthesis.cs 2KB
AssemblyInfo.cs 2KB
RealSenseAudioPlayer.cs 2KB
SupportedLanguageMapper.cs 2KB
Point3d.cs 2KB
GestureTests.cs 2KB
Hand.cs 2KB
GesturesCapability.cs 2KB
FakeCamera.cs 2KB
MainWindow.xaml.cs 2KB
Camera.cs 2KB
ImageStreamCapability.cs 1KB
SpeechManager.cs 1KB
SegmentationStreamCapability.cs 1KB
BaseCamera.cs 1KB
AssemblyInfo.cs 1KB
FlexiblePart.cs 1KB
AssemblyInfo.cs 1KB
ItemTests.cs 1KB
AssemblyInfo.cs 1KB
UserIdRepository.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
GestureStepsTests.cs 1KB
MovementTests.cs 1KB
GestureSlideRight.cs 1KB
GestureSlideLeft.cs 1KB
GestureSlideDown.cs 1KB
GestureSlideUp.cs 1KB
Rotation.cs 1KB
GestureSensor.cs 1KB
Eye.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
FlexiblePartTests.cs 1KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
MainPage.xaml.cs 1KB
FaceTests.cs 1KB
ObservableObject.cs 1011B
ObservableObject.cs 951B
RealSenseAssembliesLoader.cs 903B
TopConverter.cs 880B
LeftConverter.cs 819B
SpeechClient.cs 808B
PosePeace.cs 778B
Direction.cs 777B
RotationablePart.cs 725B
Position.cs 715B
MovementLeft.cs 700B
MovementRight.cs 699B
MovementUp.cs 694B
MovementForward.cs 681B
ImageStream.cs 680B
MovementDown.cs 675B
Finger.cs 675B
LoopObjects.cs 656B
Camera.cs 647B
PositionHelper.cs 629B
Mouth.cs 599B
PoseSensor.cs 584B
MovementBackward.cs 542B
共 183 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- sql-lap注入靶场
- 803916326552715醒图v9.7.0解锁会员版.apk
- 使用SpringBoot2.x 简单实现Java高并发之秒杀系统
- 基于python+opencv实现的手指静脉识别源码+数据集+项目说明毕业设计.zip
- Android AIDL基础-利用AIDL实现客户端向服务端传递Listener接口
- Android AIDL基础-利用AIDL实现客户端向服务端传递基本类型
- GHKQ-12.ass
- Android图像介绍-Bitmap常用操作
- 基于matlab实现的量化因子选股模型示例,包含数据读取、因子筛选、因子分类和回测部分.rar
- 基于matlab实现的粒子群算法,也称粒子群优化算法(Particle Swarm Optimization),.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功