基于linux下的krpano的使用
鉴于目前网络上关于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的使用的更多相关文章
- 基于Linux下catalog方式的 Oracle 备份策略(RMAN)
--********************************** -- 基于Linux下 Oracle 备份策略(RMAN) --******************************* ...
- 基于Linux下Iptables限制BT下载的研究
基于Linux下Iptables限制BT下载的研究 摘要: 当前BT下载技术和软件飞速发展,给人们网上冲浪获取资源带来了极大的便利, 但同时BT占用大量的网络带宽等资源也给网络和网络管理员 ...
- 基于linux下的NIST数字测试包安装过程
基于linux下的NIST数字测试包安装过程 1. 首先解决windows文件不能粘贴到Ubuntu的问题 选择利用VMware Tools进行解决 打开虚拟机VMware Workstation,启 ...
- 【转】基于Linux下的TCP编程
http://blog.csdn.net/tigerjibo/article/details/6775534 一.Linux下TCP编程框架 TCP网络编程的流程包含服务器和客户端两种模式.服务器模式 ...
- 基于Linux下的UDP编程
一. Linux下UDP编程框架 使用UDP进行程序设计可以分为客户端和服务器端两部分. 1.服务器端程序包括: Ø 建立套接字 Ø 将套接字地址结构进行绑定 Ø 读写数据 Ø 关闭套接字 2 ...
- 【转】基于linux下的dm9000网卡移植全分析
转自:http://blog.sina.com.cn/s/blog_6abf2c04010189ui.html DM9000可以直接与ISA总线相连,也可以与大多数CPU直接相连.Mini2440采用 ...
- 【转】基于linux下的变量声明declare的用法
转自:http://techcurtman.iteye.com/blog/1249512 declare 功能介绍:声明变量的属性,如果使用declare,后面没有任何参数,那么bash就会主动将所有 ...
- 基于LINUX下的进程管理问题
什么是进程? 程序(program)放置在存储媒体中(如硬盘,光盘,软盘,磁带等)为实体文件的形态存在 进程:程序被触发后,执行者的权限与属性,程序的程序码与所需数据等都会被载入内存中,操作系统并给予 ...
- 基于Linux下的C语言项目实战--本地账号管理系统
C语言开发项目实战: C语言是一门通用计算机编程语言,广泛应用于底层开发.C语言的设计目标是提供一种能以简易的方式编译.处理低级存储器.产生少量的机器码以及不需要任何运行环境支持便能运行的编程语言.尽 ...
随机推荐
- Hive之FAILED: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient异常
一.场景 Hive启动不报错,当使用show functions;或create table...时报:FAILED: SemanticException org.apache.hadoop.hive ...
- SQL中常用数学函数
--1 RAND() 返回0到1的随机值,若不指定随机种子,返回值不同;若指定的种子相同则随机值相同SELECT RAND()SELECT RAND()SELECT RAND(100)SELECT R ...
- java----自动类型转换
- JSF中run项目时候Tomcat8启动不了的一种方法
把另一个博客内容迁移到这 我的问题是Tomcat是可以启动的 但是run那个jsp的时候 七月 10, 2016 3:14:54 下午 org.apache.tomcat.util.digester. ...
- spring4笔记----spring4构造注入
与设值注入有以下不同,颜色标出 package com.ij34.web; import com.ij34.servce.people; import com.ij34.servce.root; pu ...
- HDFS客户端的权限错误:Permission denied
报错:Permission denied: user=root, access=WRITE, inode="hadoop":hadoop:supergroup:rwxr-xr-x ...
- [20181015]为什么是3秒.txt
[20181015]为什么是3秒.txt --//以前测试:连接http://blog.itpub.net/267265/viewspace-2144765/=>为什么是12秒.txt.--// ...
- mssql sql server上如何建一个只读视图–视图锁定的另类解决方案
转自:http://www.maomao365.com/?p=4508 <span style="color:red;font-weight:bold;">我们熟知一个 ...
- sql 语句-初级进阶(一)
以下所有的sql语句是根据个人资料进行操作,为方便大家操作联系,附上链接:: 链接:https://pan.baidu.com/s/14LmWyhJPQRzpjURQBKM4mA 提取码:wu1q ...
- windows下python2和python3共享
其实最好的解决方案使用 virtualenv http://pythonguidecn.readthedocs.io/zh/latest/dev/virtualenvs.html 不太好的方法,先安装 ...