资源简介

某外国大牛写的kinect开源驱动。从外网上Download下来的

资源截图

代码片段和文件信息

#/***************************************************************************
#*                                                                          *
#*  PrimeSense Sensor 5.x Alpha                                             *
#*  Copyright (C) 2011 PrimeSense Ltd.                                      *
#*                                                                          *
#*  This file is part of PrimeSense Sensor.                                 *
#*                                                                          *
#*  PrimeSense Sensor is free software: you can redistribute it and/or modif*
#*  it under the terms of the GNU Lesser General Public License as published*
#*  by the Free Software Foundation either version 3 of the License or    *
#*  (at your option) any later version.                                     *
#*                                                                          *
#*  PrimeSense Sensor is distributed in the hope that it will be useful    *
#*  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
#*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
#*  GNU Lesser General Public License for more details.                     *
#*                                                                          *
#*  You should have received a copy of the GNU Lesser General Public License*
#*  along with PrimeSense Sensor. If not see *
#*                                                                          *
#***************************************************************************/
#

#
import os
import sys
import shutil
import win32con pywintypes win32api
import re
import subprocess
from xml.dom.minidom import parse parseString
import platform

def is_64_bit_platform():
    result = False
    import platform
    (bitslinkage) = platform.architecture()
    matchobject = re.search(‘64‘bits)
    result = matchobject is not None
    return result

is_64_bit_platform = is_64_bit_platform()



#------------Check args---------------------------------------------#

Make_Doxy=1
vc_build_bits = “32“
vc_build_type = “/Rebuild“
VC_version = 9

if len(sys.argv) in [45]:
    if sys.argv[1] == ‘n‘:
        Make_Doxy=0
    if sys.argv[2] == ‘64‘:
        vc_build_bits = “64“
    if sys.argv[3] == ‘n‘:
        vc_build_type = “/Build“
    if len(sys.argv) > 4:
        if sys.argv[4] == ‘10‘:
            VC_version = 10

CONFIG_xml = parse(“Engine_Config.xml“)
SDK_VER = str(CONFIG_xml.getElementsByTagName(“VERSION_NUMBER“)[0].firstChild.data)

output_dir__ = ‘Output‘+vc_build_bits
final_dir__ = ‘Final‘+vc_build_bits

ROOT_DIR = os.path.abspath(os.path.dirname(sys.argv[0]))
REDIST_DIR = os.path.join(ROOT_DIR “..“ “Redist“)
OUTPUT_DIR = os.path.join(ROOT_DIR output_dir__)
path2final = os.path.join(ROOT_DIRfinal_dir__)
script_DIR = os.getcwd()

print(‘wo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-05-24 11:35  avin2-SensorKinect-15f1975\
     目录           0  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\
     文件      522221  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\SensorKinect093-Bin-Linux-x64-v5.1.2.1.tar.bz2
     文件      521066  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\SensorKinect093-Bin-Linux-x86-v5.1.2.1.tar.bz2
     文件      817500  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\SensorKinect093-Bin-MacOSX-v5.1.2.1.tar.bz2
     文件     4345856  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\SensorKinect093-Bin-Win32-v5.1.2.1.msi
     文件     4390912  2012-05-24 11:35  avin2-SensorKinect-15f1975\Bin\SensorKinect093-Bin-Win64-v5.1.2.1.msi
     文件       12493  2012-05-24 11:35  avin2-SensorKinect-15f1975\CHANGES
     目录           0  2012-05-24 11:35  avin2-SensorKinect-15f1975\Data\
     文件        5421  2012-05-24 11:35  avin2-SensorKinect-15f1975\Data\GlobalDefaultsKinect.ini
     文件       35147  2012-05-24 11:35  avin2-SensorKinect-15f1975\GPL.txt
     目录           0  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\
     文件        2926  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnCommon.h
     文件        3969  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnCore.h
     文件        3244  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnDDK.h
     文件       13407  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnDDKStatus.h
     文件        5326  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnDevice.h
     文件       18135  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnDeviceProto.inl
     文件        5364  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnDeviceProxy.h
     文件        1989  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE.h
     目录           0  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\
     文件        2253  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEEAlgorithms.h
     文件        2166  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEECore.h
     文件        2091  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEEframework.h
     文件        1980  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEEGeometry.h
     文件        1972  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEEMath.h
     文件        2058  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnEEobjects.h
     文件        4006  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnV3DBox.h
     文件        2321  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnV3DGeometry.h
     文件       14757  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnV3DVector.h
     文件        3530  2012-05-24 11:35  avin2-SensorKinect-15f1975\Include\XnEE\XnVAudioBuffer.h
............此处省略510个文件信息

评论

共有 条评论