鉴于目前网络上关于krpano的使用和介绍少之又少,结合自己的学习和使用经历,做个总结和记录。

1.安装

下载地址:

linux

https://krpano.com/forum/wbb/index.php?page=Thread&threadID=15064

windows: 可自行百度,这块网上的资源比较多,建议下载,有些配置文件在linux里可以直接拿来用,作为学习入门还是不错的

直接下载即可

2.注册

下载完成后进入下载目录。如果没有通过注册,生成的图片是带有水印的,注册的命令是./krpanotools register ###  #处填写注册码。

3.生成全景图的命令

./krpanotools makepano -config=配置文件目录 filepath

4.配置文件

basicsettings.config

# Basic Settings
# Documentation: http://krpano.com/tools/kmakemultires/config?version=119
# krpano 1.19 # image filtering and compression settings
filter=LANCZOS
jpegquality=
jpegsubsamp=
jpegoptimize=true # load gps exif information from the input files and transfer them to the xml
parsegps=true # parse the input files for orientation / leveling information and either
# directly remap the images or add a prealign setting in the xml to level them
autolevel=remap # sort the input files alphabetically
sortinput=true # protection settings (nomb = no Flashplayer menubar for standalone swf)
kprotectclparameters=-nomb

normal.config

# Normal/Single-Resolution Panos
# Skin with Default Buttons
# Documentation: http://krpano.com/tools/kmakemultires/config?version=119
# krpano 1.19 # basic settings
include basicsettings.config
panotype=autodetect
hfov= # output
flash=true
html5=true # convert spherical/cylindrical to cubical
converttocube=true
converttocubelimit=360x45 # multiresolution settings
multires=false
maxsize=
maxcubesize= # output images path
tilepath=%INPUTPATH%/%BASENAME%/%BASENAME%.tiles/pano[_c].jpg # preview pano settings
preview=true
graypreview=false
previewsmooth=
previewpath=%INPUTPATH%/%BASENAME%/%BASENAME%.tiles/preview.jpg # generate smaller mobile images
#customimage[mobile].size=
#customimage[mobile].path=%INPUTPATH%/%BASENAME%/%BASENAME%.tiles/mobile_%s.jpg
#customimage[mobile].imagesettings=jpegquality= jpegsubsamp= jpegoptimize=true
#customimage[mobile].xml=<mobile>[NL][TAB]<cube url="[PATH]" />[NL]</mobile> # xml output
xml=true
xmlpath=%INPUTPATH%/%BASENAME%/pano.xml # skin / xml template
include defaultbuttons.skin # html output/template
html=true
htmlpath=%INPUTPATH%/%BASENAME%/index.html
htmltemplate=html/embedpano.html # include testing servers
htmltemplate_additional_file=html/tour_testingserver.exe
htmltemplate_additional_file=html/tour_testingserver_macos+x

基本上可以满足大多数需求,也可以通过windows安装包自带的一些配置。官网文档

使用过程中遇到的一些问题:

1.前期处理较小的图片文件没什么问题,当处理的图片文件较大时,脚本容易出现假死的情况,此时如果用到是node的exe或者shelljs 时,衍生shell时应该增加maxBuffer 配置。

2.前期使用了基于redis的订阅发布模式获取数据,只能一个进程处理,效率比较低,后来采用了redis队列的方式,使用PM2管理node进程,效率明显升高。

3.类似图形处理的程序对cpu的要求比较高,使用的时候应该注意。

基于linux下的krpano的使用的更多相关文章

  1. 基于Linux下catalog方式的 Oracle 备份策略(RMAN)

    --********************************** -- 基于Linux下 Oracle 备份策略(RMAN) --******************************* ...

  2. 基于Linux下Iptables限制BT下载的研究

    基于Linux下Iptables限制BT下载的研究   摘要:     当前BT下载技术和软件飞速发展,给人们网上冲浪获取资源带来了极大的便利, 但同时BT占用大量的网络带宽等资源也给网络和网络管理员 ...

  3. 基于linux下的NIST数字测试包安装过程

    基于linux下的NIST数字测试包安装过程 1. 首先解决windows文件不能粘贴到Ubuntu的问题 选择利用VMware Tools进行解决 打开虚拟机VMware Workstation,启 ...

  4. 【转】基于Linux下的TCP编程

    http://blog.csdn.net/tigerjibo/article/details/6775534 一.Linux下TCP编程框架 TCP网络编程的流程包含服务器和客户端两种模式.服务器模式 ...

  5. 基于Linux下的UDP编程

    一. Linux下UDP编程框架 使用UDP进行程序设计可以分为客户端和服务器端两部分. 1.服务器端程序包括: Ø  建立套接字 Ø  将套接字地址结构进行绑定 Ø  读写数据 Ø  关闭套接字 2 ...

  6. 【转】基于linux下的dm9000网卡移植全分析

    转自:http://blog.sina.com.cn/s/blog_6abf2c04010189ui.html DM9000可以直接与ISA总线相连,也可以与大多数CPU直接相连.Mini2440采用 ...

  7. 【转】基于linux下的变量声明declare的用法

    转自:http://techcurtman.iteye.com/blog/1249512 declare 功能介绍:声明变量的属性,如果使用declare,后面没有任何参数,那么bash就会主动将所有 ...

  8. 基于LINUX下的进程管理问题

    什么是进程? 程序(program)放置在存储媒体中(如硬盘,光盘,软盘,磁带等)为实体文件的形态存在 进程:程序被触发后,执行者的权限与属性,程序的程序码与所需数据等都会被载入内存中,操作系统并给予 ...

  9. 基于Linux下的C语言项目实战--本地账号管理系统

    C语言开发项目实战: C语言是一门通用计算机编程语言,广泛应用于底层开发.C语言的设计目标是提供一种能以简易的方式编译.处理低级存储器.产生少量的机器码以及不需要任何运行环境支持便能运行的编程语言.尽 ...

随机推荐

  1. 基于Python3的漏洞检测工具 ( Python3 插件式框架 )

    目录 Python3 漏洞检测工具 -- lance screenshot requirements 关键代码 usage documents Any advice or sugggestions P ...

  2. linux vbundle插件配置

    1.新建目录,clone源码 mkdir ~/.vim/bundle/ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vun ...

  3. [20170612]FOR ALL COLUMNS SIZE repeat(11g).txt

    [20170612]FOR ALL COLUMNS SIZE repeat(11g).txt --//昨天看了https://jonathanlewis.wordpress.com/2017/06/0 ...

  4. C#-结构体(十)

    结构体概念 在C#中,结构体是值类型,一般适用于表示类似Point.Rectangle.Color的对象 值类型能够降低对堆的管理.使用.降低垃圾回收,表现出更好的性能.可是值类型也有不好的一面.会涉 ...

  5. .net core系列之《.net core内置IOC容器ServiceCollection》

    一.IOC介绍 IOC:全名(Inversion of Control)-控制反转 IOC意味着我们将对象的创建控制权交给了外部容器,我们不管它是如何创建的,我们只需要知道,当我们想要某个实例时,我们 ...

  6. Oracle完全复制表结构的存储过程

    最近在处理一个分表的问题时,需要为程序创建一个自动分表的存储过程,需要保证所有表结构,约束,索引等等一致,此外视图,存储过程,权限等等问题暂不用考虑. 在Mysql中,创建分表的存储过程,相当简单:c ...

  7. spring boot +RabbitMQ +InfluxDB+Grafara监控实践

    本文需要有相关spring boot 或spring cloud 相关微服务框架的基础,如果您具备相关基础可以很容易的实现下述过程!!!!!!! 希望本文的所说对需要的您有所帮助 从这里我们开始进入闲 ...

  8. 【English】20190308

    hiring雇佣['haɪərɪŋ]   across跨越  field sales区域销售[fild]  [seɪlz] The Google Cloud team is growing and w ...

  9. 1.03-get_params2

    import urllib.request import urllib.parse import string def get_params(): url = "http://www.bai ...

  10. 文件IO模型

    In case of kernel-space network drivers, all three regions are mapped to kernel space, and any acces ...