最新2017版本photoscan_python_API

所需积分/C币:11 2017-10-20 00:59:19 287KB PDF
9
收藏 收藏
举报

这是最新的photoscan api,python语言,仅供学习,谢谢大家!
CONTENTS 1 Overview 1. 1 Introduction to Python scripting in PhotoScan 2 Application Modt 5 3 Python API Change Log 45 Photo scan version 1.lo build 2004 3.2 PhotoScan version 1.1.0 build 1976 3.3 Photo Scan version 1. 0.0 build 1795 46 3.4 Photo scan version 1.0.0 build 1742 3.5 Photo Scan version 0.9.1 build 17 47 3.6 Photo Scan version 0.9.0 build 1586 47 3.7 PhotoScan version 0.8.5 build 1423 48 3.8 Photo Scan version 0.8.4 build 1289 48 3.9 Photo Scan version 0.8.3 build 12 12 3.10 PhotoScan version 0.8. 3 build 1154 48 Python Module Index Photoscan Python Reference, Release 1.1.0 Copyright(c)2014 Agisoft LLC CONTENTS Photo scan Python Reference, Release 1.1.0 CONTENTS CHAPTER ONE OVERVIEW 1.1 Introduction to Python scripting in PhotoScan This API is in development and will be extended in the future Photo Scan releases Note: Python scripting is supported only in PhotoScan Professional edition Photo Scan uses Python 3.3 as a scripting engine Python commands and scripts can be executed in photoscan in one of the following ways: From Photo Scan"" pane using it as standard Python console ° from the Tools” menu using"“ Run script.∵ command The following Photoscan funtionality can be accessed from Python scripts Open/save/create Photo Scan projects Add/remove chunks cameras. markers Add/modify camera calibrations, ground control data, assign geographic projections and coor dinates Perform processing steps(align photos, build dense cloud, build mesh, texture, decimate model, etc…) Export processing results(models, textures, orthophotos, DEMs) Access data of generated models, point clouds, images 3 Photo scan Python Reference, Release 1.1.0 Chapter 1. Overview CHAPTER TWO APPLICATION MODULES Photo Scan module provides access to the core processing functionality, including support for inspection and manipu- lation with project data The main component of the module is a Document class which represents a Photo Scan project. Multiple document instances can be created simultaneously if needed. Besides that a currently opened project in the application can be accessed using Photo Scan. app. document property The following example performs main processing steps on existing project and saves back the results >>> import Photoscan >> doc= Photoscan. app. document >> doc cpen("project. psz") unk doc, chunk >>>chunk. matchPhotos(accuracy=photoscan HighAccuracy, preselection=Photoscan. GenericPreselection) >>>chunk. alignCameras( >>> chunk. buildDenseCloud(quality==PhotoScan MediumQuality >> chunk buildModel(surface-PhotoScan Arbitrary iaterpolaticn-PhotoScan EnabledInterpolation >> chunk buildUv(mapping-PhotoScan. GenericMapping) >>>chunk. buildTexture(blending-PhotoScan MosaicBleding, size=4096) >> doc save() class PhotoScan Accuracy Alignment accuracy in [HighAccuracy, MediumAccuracy, LOWAccuracy class PhotoScan Application Application class provides access to several global application attributes, such as document currently loaded in the user interface, software version and OpenCl device configuration. It also contains helper routines to prompt the user to input various types of parameters, like displaying a file selection dialog or coordinate system selection dialog among others An instance of Application object can be accessed using Photo Scan app attribute, so there is usually no need to create additional instances in the user code The following example prompts the user to select a new coordinate system, applies it to the ative chunk and saves the project under the user selected file name >> import Photoscan >> doc- Photoscan. app. document >> rs= Photoscan. app. get Coordi natesystem("Select Coordinate System", doc. chunk.crs chunk. crs >> path= PhotoScan. app. getsaveFlleNare("Save Project As") >> if not doc. save(path): Photoscan. app. messageBox(Cant save project addMenuItem(label, funcL, shortcut ] Create a new menu entry Photo scan Python Reference, Release 1.1.0 Parameters label (string )-Menu item label func(function)- Function to be called shortcut(string)-Keyboard shortcut addMenuSeparator(label) Parameters label(string)-Menu label Conso⊥e Console pane Type ConsoleD cpu cores Inactive Number of CPu cores to reserve for GPU tasks during processing. It is recommended to deactivate one CPU core for each GPU in use for optimal performance Type int d。 cument Main application document object Type Document. enumopenCLDevices Enumerate installed OpenCl devices Returns a list of devices Return type list getCoordinate System(l label l, value Prompt user for coordinate system Parameters label(string)-Optional text label for the dialog value(CoordinateSystem)- Default value Returns Selected coordinate system. If the dialog was cancelled, None is returned Return type Coordinatesystem getExistingDirectory hint y Prompt user for the existing folder. Parameters hint(string)-Optional text label for the dialog Returns Path to the folder selected. If the input was cancelled, empty string is returned Return ty ng getFloat (label=', value=o) Prompt user for the floating point value P label(string)-Optional text label for the dialog value (oat)-Default value Returns Floating point value entered by the user Chapter 2. Application Modules

...展开详情
试读 53P 最新2017版本photoscan_python_API
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
上传资源赚积分or赚钱
    最新推荐
    最新2017版本photoscan_python_API 11积分/C币 立即下载
    1/53
    最新2017版本photoscan_python_API第1页
    最新2017版本photoscan_python_API第2页
    最新2017版本photoscan_python_API第3页
    最新2017版本photoscan_python_API第4页
    最新2017版本photoscan_python_API第5页
    最新2017版本photoscan_python_API第6页
    最新2017版本photoscan_python_API第7页
    最新2017版本photoscan_python_API第8页
    最新2017版本photoscan_python_API第9页
    最新2017版本photoscan_python_API第10页
    最新2017版本photoscan_python_API第11页

    试读结束, 可继续读5页

    11积分/C币 立即下载 >