Controlando o Windows like a boss com o Intel RealSense SDK

Transcrição

Controlando o Windows like a boss com o Intel RealSense SDK
Controlando o Windows
like a boss com o Intel
RealSense SDK
André Carlucci
Controlando o Windows like
a boss com o Intel
Perceptual Computing SDK
André Carlucci
Intel 3d Camera
30fps 720p Camera
60fps IR 320x240
Dual-array Mic
Intel Software Day 2013…
WPF App
SignalR
Javascript
WPF App
SignalR
Javascript
WPF App
SignalR
Chrome
Plugin
Control Windows!
WPF App
One app to rule them all!
SharpPerceptual
https://github.com/andrecarlucci/SharpPerceptual
Install-Package SharpPerceptual
SharpPerceptual
var cam = new Camera();
cam.Start();
cam.LeftHand.Visible += () => {
Console.WriteLine("Hello");
}
cam.RightHand.Moved += m => {
Console.WriteLine("-> x:{0} y:{1}", m.X, m.Y);
}
SharpPerceptual
var gesture = new CustomGesture(camera.RightHand);
gesture.AddMovement(Movement.Forward(10, 500));
gesture.GestureDetected += () => {
Console.WriteLine("Punch!");
}
DEMO! 2048
Windows API
Base Services
kernel32.dll
Advanced
Services
advapi32.dll
Graphics
win32k.sys
User Interface
user32.dll
Common Dialog
comdlg32.dll
Common
Control
commctrl.dll
Windows Shell
shell32.dll
Network
Services
netapi32.dll
P/Invoke!
managed
Marshaling
service
unmanaged
P/Invoke!
1. Encontra a dll
2. Carrega na memória (caso não esteja)
3. Encontra o endereço da função e envia os
argumentos
4. Trasfere o controle para função
P/Invoke!
[DllImport("user32.dll")]
public static extern int SetCursorPos(int x, int y);
MrWindows
https://github.com/andrecarlucci/MrWindows
Install-Package MrWindows
MrWindows
var win = new Windows();
win.Keyboard.TypeTogether(VirtualKey.Control,
VirtualKey.Alt,
VirtualKey.Delete);
win.Mouse.MouseLeftClick();
DEMO!
The Lock Screen
Windows Credential Provider
• Customiza o logon no Windows
• Entrou no lugar do GINA (Graphical Identification
and Authentication)
• C++
pGina
http://pgina.org/
pGina Architecture
Mas e o Trello?
Perguntas?
André Carlucci
@andrecarlucci
www.andrecarlucci.com
Próximas palestras
• 14:05 - Intel RealSense SDK Felipe Pedroso
• 14:55 - Utilizando o padrão MVVM em Universal
Apps - Ricardo Dorta
• 16:10 - Tecnologia de Games 3D em
Windows Fabrício Catae
Obrigado!
André Carlucci
@andrecarlucci
www.andrecarlucci.com