The Kinect resolution is 640 X 480 and the depth of each pixel is stored in an array of size 307200 for every bitmap frame created. To avoid crashing the program by trying to do too much, I create a smaller array of every nth pixel. Then, during every frame iteration, I use the C# array function ".Min()" to return the smallest value of the subset array. This effectively reports the closest object on screen (assuming it is detected by the subset of hotspot pixels), which is crucial information to the person backing up the vehicle.
*Note: This ignores partitioning the screen to evaluating different, possibly more important, areas of view on the screen differently. This is something that can be tweaked to customize and improve the software.
I receive the distance of the closest object in terms of millimeters and I convert this value to inches for the sake of convenience. I intend on making my alerting based on comparisons and checks on this value.
*Note: This ignores partitioning the screen to evaluating different, possibly more important, areas of view on the screen differently. This is something that can be tweaked to customize and improve the software.
I receive the distance of the closest object in terms of millimeters and I convert this value to inches for the sake of convenience. I intend on making my alerting based on comparisons and checks on this value.