Kwabena W. Agyeman
454fab7448
modules/py_ml: Fix the size of the input bytearray.
2024-07-09 22:19:15 -07:00
Ibrahim Abdelkader
674cb76499
Merge pull request #2267 from openmv/usbdbg_state
...
misc/usbdbg: Implement USB debug GET_STATE command.
2024-07-09 19:26:28 +02:00
iabdalkader
6d372067a3
tools/pyopenmv.py: Implement the GET_STATE command.
2024-07-09 19:25:04 +03:00
iabdalkader
0cef6239e0
misc/usbdbg: Add GET_STATE command.
...
The GET_STATE command is a command that returns flags, frame width,
height, size, and the text buffer (up to 40 bytes), in a single 64
bytes packet to reduce the bandwidth/overhead of the protocol.
The packet format is:
word word word word 2 words 40 bytes
<flags> <width> <height> <size> <reserved> <null-terminated text>
The flags are mostly reserved, only the following bits are defined:
0x001 script running
0x010 text buffer valid.
0x100 JPEG frame buffer ready.
2024-07-09 19:18:51 +03:00
Ibrahim Abdelkader
c15bc9cdf4
Merge pull request #2260 from kwagyeman/kwabena/move_nms_to_utils
...
scripts/libraries: Moved nms class to ml/utils.
2024-07-08 22:37:04 +02:00
Kwabena W. Agyeman
6041c58294
scripts/libraries: Moved nms class to ml/utils.
2024-07-08 13:26:14 -07:00
Ibrahim Abdelkader
51cb15a24e
Merge pull request #2259 from openmv/ml_fix_jpeg
...
scripts/libraries: Fix Normalization image format.
2024-07-08 22:24:39 +02:00
iabdalkader
3b0e06587a
scripts/libraries: Fix Normalization image format.
2024-07-08 23:21:16 +03:00
Ibrahim Abdelkader
96af65fd14
Merge pull request #2257 from kwagyeman/kwabena/code_cleanup_2
...
lib/tflm: Code cleanup.
2024-07-08 09:09:58 +02:00
Ibrahim Abdelkader
580675820f
Merge pull request #2255 from kwagyeman/kwabena/move_nms_to_python
...
scripts/libraries: Move nms to python.
2024-07-08 09:04:21 +02:00
Kwabena W. Agyeman
94f260089f
lib/tflm: Code cleanup.
2024-07-07 23:38:17 -07:00
Kwabena W. Agyeman
3f8491cb0e
scripts/libraries: Move nms to python.
2024-07-07 23:02:15 -07:00
Kwabena W. Agyeman
068c7c11f3
scripts/libraries: Fix bug in ml model.py assignment.
2024-07-07 15:41:03 -07:00
Ibrahim Abdelkader
f3f6141894
Merge pull request #2252 from openmv/ml_input_update
...
modules/py_ml: Add support for multi-input models.
2024-07-07 21:26:46 +02:00
iabdalkader
eac75a75c6
scripts/examples: Update examples.
2024-07-07 21:55:07 +03:00
iabdalkader
93e17a3a8d
modules/py_ml: Remove input/output callbacks.
2024-07-07 21:48:42 +03:00
iabdalkader
70b89f4744
modules/py_ml: Update ML API to support multi-input models.
2024-07-07 21:48:42 +03:00
Kwabena W. Agyeman
de0d46fa68
modules/py_image: Add unpacking to bytearray support.
2024-07-07 21:48:42 +03:00
iabdalkader
9a186f4e27
libraries/ml: Convert ml to a package.
...
Add preprocessing, model wrapper and utils.
2024-07-07 21:48:38 +03:00
Ibrahim Abdelkader
badcee6f47
Merge pull request #2253 from openmv/update_tflm_submodule
...
lib/libtflm: Update submodule.
2024-07-07 19:12:18 +02:00
iabdalkader
d69c2c0a78
lib/libtflm: Update submodule.
2024-07-07 20:06:13 +03:00
Ibrahim Abdelkader
e014e48fe3
Merge pull request #2249 from openmv/py_image_type
...
modules/py_image: Add Image as a type instead of function.
2024-07-07 07:42:56 +02:00
iabdalkader
9ae3d0355c
modules/py_image: Add missing draw hint.
2024-07-06 22:54:40 +03:00
iabdalkader
f481c9df77
modules/py_image: Add Image as a type instead of function.
...
Otherwise something like isinstance(x, image.Image) does Not work.
2024-07-06 18:38:04 +03:00
Ibrahim Abdelkader
2922d6d1c6
Merge pull request #2209 from kwagyeman/kwabena/add_circle_aa
...
imlib/draw: Add AA support for draw_circle.
2024-07-04 21:21:35 +02:00
Ibrahim Abdelkader
6110629560
Merge pull request #2247 from kwagyeman/kwabena/add_mic_gain_to_py_audio
...
ports/stm32: Add mic gain support to py_audio when using dfsdm.
2024-07-04 08:47:19 +02:00
Kwabena W. Agyeman
2493c91e83
ports/stm32: Add mic gain support to py_audio when using dfsdm.
2024-07-03 17:30:43 -07:00
Ibrahim Abdelkader
e65c4ff711
Merge pull request #2245 from openmv/micropython_1_23
...
micropython: Update to Micropython v1.23.0.
2024-07-03 19:20:50 +02:00
iabdalkader
93f2d4c419
boards/ARDUINO_GIGA: Enable Open-AMP support.
2024-07-03 17:44:41 +02:00
iabdalkader
3cc57fea49
ports/stm32: Remove deprecated CM4 firmware support.
...
Now replaced with Open-AMP. Examples and docs will follow later.
2024-07-03 17:44:41 +02:00
iabdalkader
edc1a14e46
boards/All: Update Ulab config.
2024-07-03 17:44:41 +02:00
iabdalkader
17ee1838e4
ports/rp2: Use frozen _boot_fat.py to create the FS.
2024-07-03 17:44:41 +02:00
iabdalkader
fab5368329
scripts/libraries: Add a non-blocking mode to MicroSpeech.
2024-07-03 17:44:41 +02:00
iabdalkader
976aee80ae
misc/mp_utils: Add pystack initializer.
2024-07-03 17:44:41 +02:00
iabdalkader
eaeff63f34
ports/stm32: Deinit CYW43 on soft-reset.
2024-07-03 17:44:41 +02:00
iabdalkader
75d968051b
ports/mimxrt: Switch to the updated CYW43 driver v7_45_98_102.
2024-07-03 17:44:41 +02:00
iabdalkader
ec02218a1b
ports/mimxrt: Deinit CYW43 on soft-reset.
2024-07-03 17:44:38 +02:00
iabdalkader
e758a0f958
ports/All: Update USBDBG to use the VM abort feature.
...
Replaces the forced PendSV jump with the new VM abort feature.
2024-07-03 15:40:02 +02:00
iabdalkader
0c67aba2ea
boards/All: Freeze ssl module.
...
This module provides compatibility with CPython's SSL module.
2024-07-03 15:40:02 +02:00
iabdalkader
27be6e1f98
ports/All: Update Makefiles to support MicroPython 1.23.
2024-07-03 15:39:59 +02:00
iabdalkader
3a8f1bb540
modules: Switch to the new mp_obj_malloc_with_finaliser.
2024-07-03 14:42:18 +02:00
iabdalkader
f57c2f5e56
misc: Replace deprecated STATIC with static.
2024-07-03 14:42:18 +02:00
iabdalkader
4488f778f5
modules: Update ulab to 6.5.2.
2024-07-03 14:42:18 +02:00
iabdalkader
66a6177fbe
micropython: Update to MicroPython v1.23.0.
2024-07-03 14:42:15 +02:00
Ibrahim Abdelkader
57215d10e9
Merge pull request #2242 from openmv/gc_blocks
...
misc: Add common linker script, and misc board config updates.
2024-06-30 18:46:43 +02:00
iabdalkader
be03021258
boards/All: Update memory configs.
...
* DMA buffers regions are automatically rounded up to the next power of 2 via
the linker script. This ensures that these buffers, when rounded up, can actually
fit into their respective memories. It also ensures that when/if the MPU is used
to configure these regions, it will not round up the regions sizes, which may cause
the MPU to configure a region bigger than the DMA buffer.
* GC blocks can be rearranged in any order, including the main heap/first block.
This is very important for boards with limited RAM to avoid fragmenting the contiguous
large heap early before it's actually needed.
* Moved VOSPI memory to its own section. The offset is no longer required, and the
linker script can detect overlaps.
* Renamed GC heap memory to allow more than one heap to exist, and added support for
it in the common linker script. This change allows adding a second heap for malloc/libc
easily if needed.
* For STM32 boards, the domain-specific DMA buffers can now be located anywhere within
their memory regions, as their MPU regions' base addresses and sizes are all set via
linker script variables. Previously, this was defined in headers, and sections could
have easily overlapped without warning.
2024-06-30 17:58:59 +02:00
iabdalkader
c28aea9ea4
misc: Fix first additional GC block name.
2024-06-30 17:32:13 +02:00
iabdalkader
c9de724be0
misc: Rename JPEG buffer size.
2024-06-30 17:32:13 +02:00
iabdalkader
ab92e46edd
ports/nrf: Use the common linker script.
2024-06-30 17:32:13 +02:00
iabdalkader
c7a87bce8e
ports/stm32: Use the common linker script.
2024-06-30 17:32:13 +02:00