Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
'downloads':[
('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)),
],
'all_languages':[
('English', 'http://docs.openmv.io'),
(u'中文', 'http://doc.singtown.cc/openmv_zh')
]
}


Expand Down Expand Up @@ -332,14 +336,16 @@
'pyboard': ['pyb'],
'wipy': ['wipy'],
'esp8266': ['esp'],
'openmvcam': ['pyb', 'sensor', 'image', 'time', 'mjpeg', 'gif', 'fir', 'lcd', 'cpufreq']
'openmvcam': ['pyb']
}

modindex_exclude = []

for p, l in modules_port_specific.items():
if p != micropy_port:
modindex_exclude += l
for module in modules_port_specific[micropy_port]:
modindex_exclude.remove(module)

# Exclude extra modules per port
modindex_exclude += {
Expand Down
2 changes: 1 addition & 1 deletion docs/library/omv.image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ Methods
``roi``, ``bin_count``, and etc. are keyword arguments which must be
explicitly invoked in the function call by writing ``roi=``, etc.

.. method:: image.get_linear_regression(thresholds, [roi=Auto, x_stride=2, y_stride=1, invert=False, robust=False])
.. method:: image.get_regression(thresholds, [roi=Auto, x_stride=2, y_stride=1, invert=False, robust=False])

Computes a linear regression on all the thresholded pixels in the image. The
linear regression is computed using least-squares normally which is fast but
Expand Down
26 changes: 22 additions & 4 deletions docs/templates/versions.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--p>
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Ports and Versions</span>
{{ port }} ({{ port_version }})
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<!--p>
<dl>
<dt>Ports</dt>
{% for slug, url in all_ports %}
Expand All @@ -24,16 +24,34 @@
<dd><a href="{{ url }}">{{ type }}</a></dd>
{% endfor %}
</dl>
</p-->
<dl>
<dt>Language</dt>
{% for slug, url in all_languages %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
{% endfor %}
</dl>
<hr/>
<dl>
<dt>External links</dt>
<dd>
<a href="http://www.micropython.org">micropython.org</a>
<a href="https://openmv.io">openmv.io</a>
</dd>
<dd>
<a href="http://forums.openmv.io">forums.openmv.io</a>
</dd>
<dd>
<a href="https://github.com/openmv/openmv">github.com/openmv/openmv</a>
</dd>
<dd>
<a href="http://micropython.org">micropython.org</a>
</dd>
<dd>
<a href="http://forum.micropython.org">forum.micropython.org</a>
</dd>
<dd>
<a href="https://github.com/micropython/micropython">GitHub</a>
<a href="https://github.com/micropython/micropython">github.com/micropython/micropython</a>
</dd>
</dl>
</div>
</div>
</p-->