Skip to content

Commit 093b0c9

Browse files
committed
docs: Add changes for v4.7.0.
1 parent d92d2f7 commit 093b0c9

15 files changed

+102
-116
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#
8080
# We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags"
8181
# breakdown, so use the same version identifier for both to avoid confusion.
82-
version = release = '1.24'
82+
version = release = '1.25'
8383

8484
# The language for content autogenerated by Sphinx. Refer to documentation
8585
# for a list of supported languages.
@@ -153,6 +153,7 @@
153153
"rp2/quickref.rst",
154154
"rp2/tutorial/intro.rst",
155155
"rp2/tutorial/pio.rst",
156+
"rp2/tutorial/reset.rst",
156157
"samd/general.rst",
157158
"samd/quickref.rst",
158159
"samd/pinout.rst",

docs/library/network.LAN.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ Constructors
3737
or ``True``, the clock is driven by the Ethernet controller, if set to ``LAN.IN``
3838
or ``Pin.IN`` or ``False``, the clock is driven by the PHY interface.
3939

40-
For example, with the Seeed Arch Mix board you can use::
41-
42-
nic = LAN(0, phy_type=LAN.PHY_LAN8720, phy_addr=1, ref_clk_mode=Pin.IN)
43-
44-
.. note:: On esp32 port the constructor requires different arguments. See
45-
:ref:`esp32 port reference <esp32_network_lan>`.
46-
4740
Methods
4841
-------
4942

docs/library/omv.ml.postprocessing.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@ Constructors
2828
E.g. ``[[((x, y, w, h), score)]]``. Note that empty class list are included in the output to ensure the position
2929
of each class list in the output matches the position of the class index in the model output.
3030

31+
class yolo_lc_postprocess -- YOLO LC
32+
------------------------------------
33+
34+
Used to post-process YOLO LC model output.
35+
36+
Constructors
37+
~~~~~~~~~~~~
38+
39+
.. class:: yolo_lc_postprocess(threshold:float=0.6, anchors:List[Tuple[float, float]]=None, nms_threshold:float=0.1, nms_sigma:float=0.1) -> yolo_lc_postprocess
40+
41+
Create a YOLO LC postprocessor.
42+
43+
``threshold`` The threshold to use for postprocessing.
44+
45+
``anchors`` A list of anchor points ``(x, y)`` the model was trained on to use for postprocessing.
46+
47+
This post-processor returns a list of rect ``[x, y, w, h]`` and score tuples for each class in the model output.
48+
E.g. ``[[((x, y, w, h), score)]]``. Note that empty class list are included in the output to ensure the position
49+
of each class list in the output matches the position of the class index in the model output.
50+
3151
class yolo_v2_postprocess -- YOLO V2
3252
------------------------------------
3353

@@ -65,3 +85,21 @@ Constructors
6585
This post-processor returns a list of rect ``[x, y, w, h]`` and score tuples for each class in the model output.
6686
E.g. ``[[((x, y, w, h), score)]]``. Note that empty class list are included in the output to ensure the position
6787
of each class list in the output matches the position of the class index in the model output.
88+
89+
class yolo_v8_postprocess -- YOLO V8
90+
------------------------------------
91+
92+
Used to post-process YOLO V8 model output.
93+
94+
Constructors
95+
~~~~~~~~~~~~
96+
97+
.. class:: yolo_v8_postprocess(threshold:float=0.6, nms_threshold:float=0.1, nms_sigma:float=0.1) -> yolo_v8_postprocess
98+
99+
Create a YOLO V8 postprocessor.
100+
101+
``threshold`` The threshold to use for postprocessing.
102+
103+
This post-processor returns a list of rect ``[x, y, w, h]`` and score tuples for each class in the model output.
104+
E.g. ``[[((x, y, w, h), score)]]``. Note that empty class list are included in the output to ensure the position
105+
of each class list in the output matches the position of the class index in the model output.

docs/library/omv.rpc.rst

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -392,45 +392,3 @@ Be controlled by another ``rpc`` device over Async Serial (UART).
392392

393393
NOTE: Master and slave baud rates must match. Connect master tx to slave rx and master rx to
394394
slave tx. Finally, both devices must share a common ground.
395-
396-
class rpc_usb_vcp_master - USB VCP Master Interface
397-
---------------------------------------------------
398-
399-
Control another ``rpc`` device over a USB Virtual COM Port.
400-
401-
.. class:: rpc_usb_vcp_master()
402-
403-
Creates a USB VCP ``rpc`` master. This interface can move data at the USB speed.
404-
405-
class rpc_usb_vcp_slave - USB VCP Slave Interface
406-
-------------------------------------------------
407-
408-
Be controlled by another ``rpc`` device over a USB Virtual COM Port.
409-
410-
.. class:: rpc_usb_vcp_slave()
411-
412-
Creates a USB VCP ``rpc`` slave. This interface can move data at the USB speed.
413-
414-
class rpc_network_master - Network Master Interface
415-
---------------------------------------------------
416-
417-
Control another ``rpc`` device over a network.
418-
419-
.. class:: rpc_network_master(network_if, port=0x1DBA)
420-
421-
Creates a Network ``rpc`` master.
422-
423-
* network_if - Network interface created from ``network.LAN()``, ``network.WLAN()``, or etc.
424-
* port - Port to route traffic to.
425-
426-
class rpc_network_slave - Network Slave Interface
427-
---------------------------------------------------
428-
429-
Be controlled by another ``rpc`` device a network.
430-
431-
.. class:: rpc_network_slave(network_if, port=0x1DBA)
432-
433-
Creates a Network ``rpc`` slave.
434-
435-
* network_if - Network interface created from ``network.LAN()``, ``network.WLAN()``, or etc.
436-
* port - Port to route traffic to.

docs/library/omv.sensor.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ Functions
573573
* `sensor.IOCTL_RGB_STATS` - Pass this enum to get the RGB statistics from the camera sensor. Returns a tuple of (r, gb, gr, b) values.
574574
* `sensor.IOCTL_GENX320_SET_BIASES` - Pass this enum followed by a bias enum to set the GENX320 sensor biases.
575575
* `sensor.IOCTL_GENX320_SET_BIAS` - Pass this enum followed by a bias enum and a bias value to set the GENX320 sensor bias.
576+
* `sensor.IOCTL_GENX320_SET_AFK` - Pass this enum followed by ``enable``, ``freq_low_in_hz``, ``freq_high_in_hz`` to change the GENX320 anti-flickering-filter settings.
576577

577578
.. function:: set_color_palette(palette:int) -> None
578579

@@ -1118,6 +1119,11 @@ Constants
11181119

11191120
Lets you set the GENX320 camera sensor biases. See `sensor.ioctl()` for more information.
11201121

1122+
.. data:: IOCTL_GENX320_SET_AFK
1123+
:type: int
1124+
1125+
Lets you set the GENX320 camera sensor anti-flickering-filter. See `sensor.ioctl()` for more information.
1126+
11211127
.. data:: GENX320_BIASES_DEFAULT
11221128
:type: int
11231129

docs/library/omv.tof.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Functions
3636
``type`` indicates the type of thermopile shield:
3737

3838
* `tof.TOF_NONE`: 0 pixels.
39-
* `tof.TOF_VL53L5CX`: 8x8 pixels.
39+
* `tof.TOF_VL53LX`: 8x8 pixels.
4040

4141
By default type is ``-1`` which will cause `tof.init()` to automatically scan and initialize an
4242
attached thermal sensor based on the I2C address.
@@ -48,7 +48,7 @@ Functions
4848
``type`` indicates the type of thermopile shield:
4949

5050
* `tof.TOF_NONE`: 0 pixels.
51-
* `tof.TOF_VL53L5CX`: 8x8 pixels.
51+
* `tof.TOF_VL53LX`: 8x8 pixels.
5252

5353
By default type is ``-1`` which will cause `tof.init()` to automatically scan and initialize an
5454
attached thermal sensor based on the I2C address.
@@ -62,28 +62,28 @@ Functions
6262
Returns the width (horizontal resolution) of the depth sensor in-use:
6363

6464
* `tof.TOF_NONE`: 0 pixels.
65-
* `tof.TOF_VL53L5CX`: 8 pixels.
65+
* `tof.TOF_VL53LX`: 8 pixels.
6666

6767
.. function:: height() -> int
6868

6969
Returns the height (vertical resolution) of the depth sensor in-use:
7070

7171
* `tof.TOF_NONE`: 0 pixels.
72-
* `tof.TOF_VL53L5CX`: 8 pixels.
72+
* `tof.TOF_VL53LX`: 8 pixels.
7373

7474
.. function:: type() -> int
7575

7676
Returns the type of the depth sensor in-use:
7777

7878
* `tof.TOF_NONE`
79-
* `tof.TOF_VL53L5CX`
79+
* `tof.TOF_VL53LX`
8080

8181
.. function:: refresh() -> int
8282

8383
Returns the refresh rate of the depth sensor in-use:
8484

8585
* `tof.TOF_NONE`: 0 Hz.
86-
* `tof.TOF_VL53L5CX`: 15 Hz.
86+
* `tof.TOF_VL53LX`: 15 Hz.
8787

8888
.. function:: read_depth(hmirror:bool=False, vflip:bool=False, transpose:bool=False, timeout:int=-1)
8989

@@ -266,7 +266,7 @@ Constants
266266

267267
No TOF sensor type.
268268

269-
.. data:: TOF_VL53L5CX
269+
.. data:: TOF_VL53LX
270270
:type: int
271271

272-
VL53L5CX TOF sensor.
272+
VL53L5CX or VL53L8CX TOF sensor.

docs/openmvcam/general.rst

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ General information about the openmvcam
66
Local filesystem and SD card
77
----------------------------
88

9-
There is a small internal filesystem (a drive) on the openmvcam which is stored
10-
within the microcontroller's flash memory.
9+
There is a small internal filesystem (a drive) on the openmvcam, called ``/flash``,
10+
which is stored within the microcontroller's flash memory. If a micro SD card
11+
is inserted into the slot, it is available as ``/sdcard``.
1112

1213
When the openmvcam boots up, it needs to choose a filesystem to boot from. If
13-
there is no SD card, then it uses the internal filesystem as the boot
14-
filesystem, otherwise, it uses the SD card. After the boot, the current
15-
directory is set to ``/``.
14+
there is no SD card, then it uses the internal filesystem ``/flash`` as the boot
15+
filesystem, otherwise, it uses the SD card ``/sdcard``. After the boot, the current
16+
directory is set to one of the directories above.
17+
18+
If needed, you can prevent the use of the SD card by creating an empty file
19+
called ``/flash/SKIPSD``. If this file exists when the openmvcam boots
20+
up then the SD card will be skipped and the openmvcam will always boot from the
21+
internal filesystem (in this case the SD card won't be mounted but you can still
22+
mount and use it later in your program using ``vfs.mount``).
1623

1724
The boot filesystem is used for 2 things: it is the filesystem from which
18-
``boot.py`` and ``main.py`` files are searched for, and it is the filesystem
25+
the ``boot.py`` and ``main.py`` files are searched for, and it is the filesystem
1926
which is made available on your PC over the USB cable.
2027

2128
The filesystem will be available as a USB flash drive on your PC. You can
@@ -26,18 +33,7 @@ pyboard.*
2633

2734
.. note::
2835

29-
The above behavior is different from the pyboard which allows access to the
30-
internal file system and SD card at the same time within a script by creating
31-
a virtual file system with multiple drives for the internal flash and SD
32-
card. The OpenMV Cam's behavior is different because modern operating systems
33-
do not mount the OpenMV Cam's internal flash drive and/or SD Card as a
34-
virtual file system but instead as a block device... meaning that modern
35-
operating systems do not see a pyboard's file system the same way as the
36-
pyboard sees it. To avoid this situation we only allow one file system at a
37-
time to keep the operating system the OpenMV Cam is attached to and what the
38-
OpenMV Cam thinks its file system looks like in sync.
39-
40-
That said, there is another complication. Because modern operating systems
36+
Because modern operating systems
4137
mount the OpenMV Cam's internal flash drive or SD card as a block device they
4238
treat it as if it cannot create files itself. Because of this if you create
4339
a file onboard your OpenMV Cam in code you must remount the OpenMV Cam after
Loading
1.54 MB
Loading

docs/openmvcam/quickref.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ the OpenMV Cam please consider reading the following sections first:
1212
general.rst
1313
tutorial/index.rst
1414

15+
.. image:: pinout-openmv-n6-pag7936.png
16+
:alt: OpenMV N6 PAG7936 Pinout
17+
:width: 700px
18+
19+
.. image:: pinout-openmv-ae3-pag7936.png
20+
:alt: OpenMV AE3 PAG7936 Pinout
21+
:width: 700px
22+
1523
.. image:: pinout-openmv-cam-rt1062-ov5640.png
1624
:alt: OpenMV Cam RT1062 OV5640 Pinout
1725
:width: 700px

0 commit comments

Comments
 (0)