Skip to content

Uses the Kinect for Windows v2 API and camera to detect if an object is placed in view of the camera(Only detects large pixel clusters to eliminate noise fault detections) and once the object is placed in view, a black and white image of the object's shape is saved plus, it's width/height dimension estimations are calculated and displayed using …

Notifications You must be signed in to change notification settings

JessNah/Shape-and-Size-Estimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kinect---Shape-and-Size-Detection

Uses the Kinect for Windows v2 API and camera to detect if an object is placed in view of the camera(Only detects large pixel clusters to eliminate noise fault detections) and once the object is placed in view, a black and white image of the object's shape is saved plus, it's width/height dimension estimations are calculated and displayed using a formula I created. The code also finds the edges of the object marked by grey lines, and the center of mass of the object marked by a grey cross.

I ran the code for the above images on the same box, while keeping it horizontally and vertically for each test. As can be seen by the height and width dimensions in the images, the program I've written seems to give relatively precise size estimations for the object as the height and widths match up.

The output size information can be seen printed on the console as well as the image that the program prints. The grey lines display the average straight edge that was used when the program calculated the dimensions.

Below are more images showing examples of the code's ability to detect a new object in front of it, and extract only that object's shape whilsty neglecting the surroundings along with its capabilities to detect and approximate the object's horizontal and vertical edges which was used for the purposes of size estimation.

This code was built upon a generic kinect template provided by microsoft. Copyright of the template is of Microsoft's.

About

Uses the Kinect for Windows v2 API and camera to detect if an object is placed in view of the camera(Only detects large pixel clusters to eliminate noise fault detections) and once the object is placed in view, a black and white image of the object's shape is saved plus, it's width/height dimension estimations are calculated and displayed using …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages