Skip to content

Commit eeccd0f

Browse files
authored
Merge pull request #40 from kwagyeman/openmv
Openmv
2 parents 5f79f0f + df5ae60 commit eeccd0f

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
'downloads':[
5353
('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)),
5454
],
55+
'all_languages':[
56+
('English', 'http://docs.openmv.io'),
57+
(u'中文', 'http://doc.singtown.cc/openmv_zh')
58+
]
5559
}
5660

5761

@@ -332,14 +336,16 @@
332336
'pyboard': ['pyb'],
333337
'wipy': ['wipy'],
334338
'esp8266': ['esp'],
335-
'openmvcam': ['pyb', 'sensor', 'image', 'time', 'mjpeg', 'gif', 'fir', 'lcd', 'cpufreq']
339+
'openmvcam': ['pyb']
336340
}
337341

338342
modindex_exclude = []
339343

340344
for p, l in modules_port_specific.items():
341345
if p != micropy_port:
342346
modindex_exclude += l
347+
for module in modules_port_specific[micropy_port]:
348+
modindex_exclude.remove(module)
343349

344350
# Exclude extra modules per port
345351
modindex_exclude += {

docs/library/omv.image.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ Methods
19151915
``roi``, ``bin_count``, and etc. are keyword arguments which must be
19161916
explicitly invoked in the function call by writing ``roi=``, etc.
19171917

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

19201920
Computes a linear regression on all the thresholded pixels in the image. The
19211921
linear regression is computed using least-squares normally which is fast but

docs/templates/versions.html

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!--p>
21
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
32
<span class="rst-current-version" data-toggle="rst-current-version">
43
<span class="fa fa-book"> Ports and Versions</span>
54
{{ port }} ({{ port_version }})
65
<span class="fa fa-caret-down"></span>
76
</span>
87
<div class="rst-other-versions">
8+
<!--p>
99
<dl>
1010
<dt>Ports</dt>
1111
{% for slug, url in all_ports %}
@@ -24,16 +24,34 @@
2424
<dd><a href="{{ url }}">{{ type }}</a></dd>
2525
{% endfor %}
2626
</dl>
27+
</p-->
28+
<dl>
29+
<dt>Language</dt>
30+
{% for slug, url in all_languages %}
31+
<dd><a href="{{ url }}">{{ slug }}</a></dd>
32+
{% endfor %}
33+
</dl>
2734
<hr/>
2835
<dl>
2936
<dt>External links</dt>
3037
<dd>
31-
<a href="http://www.micropython.org">micropython.org</a>
38+
<a href="https://openmv.io">openmv.io</a>
39+
</dd>
40+
<dd>
41+
<a href="http://forums.openmv.io">forums.openmv.io</a>
42+
</dd>
43+
<dd>
44+
<a href="https://github.com/openmv/openmv">github.com/openmv/openmv</a>
45+
</dd>
46+
<dd>
47+
<a href="http://micropython.org">micropython.org</a>
48+
</dd>
49+
<dd>
50+
<a href="http://forum.micropython.org">forum.micropython.org</a>
3251
</dd>
3352
<dd>
34-
<a href="https://github.com/micropython/micropython">GitHub</a>
53+
<a href="https://github.com/micropython/micropython">github.com/micropython/micropython</a>
3554
</dd>
3655
</dl>
3756
</div>
3857
</div>
39-
</p-->

0 commit comments

Comments
 (0)