Really new to kinect. I am trying to read up material I find. I found technical spec and the .net API documentation, but could figure out if what I am trying to do is possible:
Can I instruct the kinect to physically move the cameras? (I want to view other people in the room for example).
Edited: I am using the MS Kinect SDK.
Thank you
You can use NuiCamera.ElevationAngle to set the elevation angle of kinect camera. Yea, as mentioned above answer, you can only move up and down.
This is the example in Visual C#
I create a slider to get the value. Kinect Mortor is limited to -27 to 27 degree of rotation only.
<Slider Value = "{Binding ElevationAngle, Mode =TwoWay}" Height="171" Interval="1" IsSnapToTickEnabled="True" Margin="914,536,284,45" Maximum="27" Minimum="-27" Name="slider_tilt" Orientation="Vertical" SmallChange="1" TickPlacement="TopLeft" Width="38" />
Create a button called btnSetTilt and under the button click event, feed the value of slider to Elevation angle. That's it.
private void btnSetTilt_Click(object sender, RoutedEventArgs e)
{
//Set angle to slider_tilt value
nui.NuiCamera.ElevationAngle = (int)slider_tilt.Value;
}
Using OpenKinect you can control it with
public setMotorPosition(float)
With the Microsoft Kinect SDK for Windows you can use
NuiCameraSetElevation
which is limited to 1 call per second and no more than 15 calls per 20 second period.
The motor and gear are not meant for frequent use.
You can but only up and down, it wont work moving side to side. And Roger Lindsjo has the same explanation as I do. But just wanted to clarify.
Related
Hi, I need to develop an WinRT app with XAML and I'm using Syncfusion's library for that. Whenever I click on a node the resizer appears along with the rotate icon. I removed all the QuickCommands but the rotate icon won't go away.
Please note that I am using the SfDiagram inside a custom control. Thanks
We are glad to announce that our Essential Studio 2015 Volume 1 is rolled out and is available for download under the following link:
http://www.syncfusion.com/forums/118723/essential-studio-2015-volume-1-final-release-v13-1-0-21-available-for-download
Feature Information:
Requirement: Remove the Rotate Icon from Node
We have provided support to achieve your requirement in our Essential Studio 2015 Volume 1.This requirement can be achieved by using SelectorConstraints property of ISelector. We have provided code snippet to represent this. Please refer to the following code snippet
Code Snippet:
(DiagramControl.SelectedItems as ISelector).SelectorConstraints = (DiagramControl.SelectedItems as ISelector).SelectorConstraints & ~SelectorConstraints.Rotator;
Here, DiagramControl is the instance of SfDiagram.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Syncfusion Support Team
Sorry if this is rather obvious, but how would I be able to access the position of the wrist joint for the Kinect in C#? Would it really be as simple as:
SkeletonPoint leftWrist = skeleton.Joints[JointType.WristLeft].Position;
SkeletonPoint rightWrist = skeleton.Joints[JointType.WristRight].Position;
And I would call
leftWrist.X.toString
To check the value, right?
But what would the for loop look like to continue tracking the joints in every frame? Thanks for your help!
Yes, you can track that wrist position of the active players. All the joints that are available for tracking exist within the Skeleton.Joints property (itself a 'JointCollection').
Microsoft provides a tutorial for tracking the skeleton here: http://msdn.microsoft.com/en-us/library/jj131025.aspx
The values returned are of type Joint.
I want to create controls that lets the user decide crop area of a bitmap, in the common way, having four corners on the image. I saw that there is a sample C# app in the Microsoft site for this - http://www.microsoft.com/en-us/showcase/details.aspx?uuid=bef08d57-fa4d-4d9c-9080-6ee55b8623c0
But I cannot figure out how to do this strictly WinJS. Do I need to create custom controls - if so how? Any sample code will help a great deal.
I have an example in my codeSHOW project. It's the demo called Rx Crop. It uses Reactive Extensions (which are awesome by the way), but if you didn't want that dependency you could probably just use the example to figure out how to do it without.
BTW, the codeSHOW project has a bug and a usability issue currently. I have an update in certification. For now, just make sure you select the Rx Crop demo on the home screen and then click See the Code. If you hit See the Code with no demo selected it will crash.
Do me a favor and rate the app. Thanks.
Can we have check box, radio button or any other buttons implementation in corona?If so ,how?I got a third party tool http://x-pressive.com/WidgetCandy_Corona/media.html which has these features that implements the functionality ,but it is not free and cant be tested?Basically I want to create a Business application where I can use these features.Can anybody let me know how do I implement this?
I don't think u can do it in corona. They have some widget API, you can find in the sample code > interface > widget demo. But check box not included.
I my apps, I build those check box by my own. I have to pay $20 for each image of those button or check box on stock image web.
In your case, If you want it looks good and you are not good at illustrator or photoshop, widgetCandy could be your best choice.
I paid for x-pressive's effectCandy and TextCandy. It worth the cost. This WidgetCandy is their new product, I don't have a chance to try it yet, but I would suggest you try it.
The downside is you have to learn some new API in order to use their function.
Is that possible to use this example and do the samething to hook a pen event on Windows 8? What do I have to change to make it work?
In Windows 8 you should generally not distinguish between Pen, Touch or Mouse. There is a unified input system called MSPointer and you can check out this sample on MSDN for processing input:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/JJ150606(v=win.10).aspx
Looking at the article you linked, it seems you might want to capture the pointer? This should be possible with the CapturePointer method:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.uielement.capturepointer.aspx