MYNT-EYE-S-SDK/guide_tools.html

148 lines
6.8 KiB
HTML
Raw Normal View History

2018-06-10 10:49:12 +03:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MYNT EYE SDK: 工具</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MYNT EYE SDK
&#160;<span id="projectnumber">2.0.0-rc</span>
</div>
<div id="projectbrief">http://www.myntai.com/camera</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="搜索" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('guide_tools.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">工具 </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>工具在 <code>&lt;sdk&gt;/tools</code> 目录,其提供一些有用的脚本和程序。</p>
<h2>依赖</h2>
<ul>
<li><a href="https://opencv.org/">OpenCV</a>,部分工具需要。<ul>
<li>编译前可在系统终端Windows 命令提示符)里如下指定 OpenCV 路径,其为 <code>OpenCVConfig.cmake</code> 目录:</li>
</ul>
</li>
</ul>
<div class="fragment"><div class="line"># Linux, macOS</div><div class="line">export OpenCV_DIR=~/opencv</div><div class="line"></div><div class="line"># Windows</div><div class="line">set OpenCV_DIR=C:\opencv</div></div><!-- fragment --><ul>
<li>Python 第三方库,脚本需要。</li>
</ul>
<div class="fragment"><div class="line">cd tools/</div><div class="line">sudo pip install -r requirements.txt</div></div><!-- fragment --><h2>编译</h2>
<div class="fragment"><div class="line">make tools</div></div><!-- fragment --><h2>录制数据集</h2>
<div class="fragment"><div class="line">./tools/_output/bin/dataset/record</div><div class="line"></div><div class="line"># Windows</div><div class="line">.\tools\_output\bin\dataset\record.bat</div></div><!-- fragment --><p>默认录制进 <code>dataset</code> 目录,加参数可指定该目录。</p>
<h2>分析数据集</h2>
<p>分析 IMU 数据,</p>
<div class="fragment"><div class="line">python tools/analytics/imu_analytics.py -i dataset -c tools/config/mynteye/mynteye_config.yaml \</div><div class="line">-al=-1.2,1.2 -gl= -gdu=d -gsu=d -kl=</div></div><!-- fragment --><div class="image">
<img src="imu_analytics.png" alt="imu_analytics.png"/>
<div class="caption">
imu analytics</div></div>
<p>分析图像 &amp; IMU 时间戳,</p>
<div class="fragment"><div class="line">python tools/analytics/stamp_analytics.py -i dataset -c tools/config/mynteye/mynteye_config.yaml</div></div><!-- fragment --><div class="image">
<img src="stamp_analytics.png" alt="stamp_analytics.png"/>
<div class="caption">
stamp analytics</div></div>
<blockquote class="doxtable">
<p>如果用 ROS ,分析脚本也支持 ROS Bag 格式。 </p>
</blockquote>
<h2>结语</h2>
<p>设备信息读写、校验码等更多工具的说明,请见 <code>tools/README.md</code></p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">制作者
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>