Commit Graph

2296 Commits

Author SHA1 Message Date
iabdalkader
c0e3a17919 boards: Remove raw FB size macro.
* This old macro is very easy to miss when updating OMV_FB_SIZE.
* Use a linker script variable to get the raw framebuffer size.
2022-03-04 01:55:30 +02:00
iabdalkader
5c96d9004b OPENMV2: Update memory config to fix self-test issues. 2022-03-03 14:58:10 +02:00
iabdalkader
248e15b3a7 stm32: Fix RTC clock source for 4P and PT. 2022-03-03 14:20:59 +02:00
iabdalkader
44a2216de7 OPENMVPT: Set RTC clock source back to LSE on startup. 2022-03-02 16:00:42 +02:00
iabdalkader
82e7acb979 OPENMVPT: Disable RTC LSE clock source.
* Due to an issue with the crystal oscillator, the LSE can't be
enabled without reworking the board, otherwise it will never start.
2022-02-28 16:13:52 +02:00
iabdalkader
ad55071c5f stm32: Add LSE driver strength config option. 2022-02-28 03:06:52 +02:00
iabdalkader
38c26cec92 imlib: Add hardware JPEG decoder support. 2022-02-27 20:23:16 +02:00
iabdalkader
b5b26ff390 imlib: Fix JPEG decompress buffers cache alignment. 2022-02-27 17:34:40 +02:00
iabdalkader
421a685370 imlib: Update JPEG decoder and fix memory issues.
* Fix MemManage fault on decoding odd images.
* Support decoding YCBCR to Grayscale.
* Support decoding Grayscale to RGB565.
* Minor formatting fixes.
* Use a single decompress function for all formats.
* Fixes #1550
2022-02-27 16:14:49 +02:00
Ibrahim Abdelkader
d895e169fd
Merge pull request #1555 from openmv/pt_lse_mode
OPENMVPT: Fixe LSE oscillator mode.
2022-02-26 03:16:40 +02:00
Ibrahim Abdelkader
3551d6d280
Merge pull request #1554 from openmv/jpeg_callbacks
imlib: Enable hardware JPEG callbacks.
2022-02-26 03:04:48 +02:00
iabdalkader
275db7facc OPENMVPT: Fixe LSE oscillator mode. 2022-02-26 03:04:23 +02:00
iabdalkader
490ce48b54 imlib: Enable hardware JPEG callbacks. 2022-02-26 02:58:55 +02:00
dianjixz
aa614370df
imlib: Fix imlib_rgb565_to_l output.
It should not be negative when the imlib_rgb565_to_l function input is zero, e.g. y=0.137931f, fast_floorf(116 * 0.137931f) = 15.999996,  15.999996 - 16 < 0.
2022-02-24 13:57:36 +08:00
iabdalkader
8df4b647d0 OPENMVPT: Fix H7 RTC clock source. 2022-02-22 03:47:25 +02:00
Lincoln Lorenz
bc07e01312 Lepton: Fix default temperature range. 2022-02-18 12:43:55 -05:00
Lincoln Lorenz
6b2cd10088 Lepton: Add high temperature measurement mode support. 2022-02-18 01:49:09 +02:00
iabdalkader
383cf75704 Bump firmware version. 2022-02-17 21:59:42 +02:00
iabdalkader
18b50a2f2e py_tf.c: Fix output scaling for uint8/int8. 2022-02-17 21:35:52 +02:00
iabdalkader
f3384f9942 Bump firmware version. 2022-02-14 22:00:52 +02:00
iabdalkader
0cb8a9eb69 ulab: Update to v4.0.0
* Fixes #1521
2022-02-12 18:34:32 +02:00
iabdalkader
9de1f50a65 Libtf: Add support for replacing/adding built-in models. 2022-02-08 02:10:16 +02:00
Kwabena W. Agyeman
acb3ceb45d Make space for object detection networks 2022-02-07 20:42:27 +02:00
iabdalkader
66860540d2 NICLAV: Add readme txt. 2022-01-27 18:07:34 +02:00
iabdalkader
7cdc974c2e Nicla: Rename board files. 2022-01-27 17:28:36 +02:00
Ibrahim Abdelkader
36b7e57bf5
Merge pull request #1510 from openmv/add_png_support
Add png support
2022-01-27 03:16:49 +02:00
Kwabena W. Agyeman
f12a4659c8 Add PNG Support 2022-01-27 03:04:59 +02:00
iabdalkader
4dac638338 Lodepng updates.
* Configure the library for OpenMV.
* Reverse bit format endianness.
* Add a custom color conversion callback.
* Make RGB to GS conversion use channels average.
2022-01-27 03:04:41 +02:00
iabdalkader
f6ea2d4deb Add lodepng PND decoder/encoder. 2022-01-27 03:02:23 +02:00
Ibrahim Abdelkader
9d8dcf8d5c
Merge pull request #1512 from kwagyeman/kwabena/fix_strncpy
Fix strncpy issue with new GCC
2022-01-26 15:49:12 +02:00
Kwabena W. Agyeman
927854257c Fix strncpy issue with new GCC 2022-01-25 22:11:34 -08:00
iabdalkader
3af6a95793 RP2: Add UART init/deinit and softreboot message. 2022-01-25 15:54:37 +02:00
Ibrahim Abdelkader
69fd21acd2
Merge pull request #1195 from kwagyeman/kwabena/portena_poe_shield_fixes
Add support for the OV5640 to the Arduino Portenta
2022-01-22 22:57:56 +02:00
iabdalkader
c2b6e2a1f5 NANO-RP2040: Fix raw buffer size.
* Fixes #1505
2022-01-19 22:19:08 +02:00
iabdalkader
9981a29e8b NANO-RP2040: Update memory config. 2022-01-17 23:37:41 +02:00
Kwabena W. Agyeman
b57db1d8e8 Add support for the Portenta for the OV5640 2022-01-16 15:37:08 -08:00
iabdalkader
1379b173dd NANO-RP2040: Add fresh filesystem custom templates. 2022-01-15 23:27:57 +02:00
iabdalkader
2ae2465d6a Bump firmware version. 2022-01-09 22:20:21 +02:00
Ibrahim Abd Elkader
d0dcadb4d8
Merge pull request #1498 from openmv/fb_cache_fix
Make sure cached CPU writes are flushed before returning the buffer
2022-01-09 22:01:21 +02:00
iabdalkader
e6cc4223d4 Make MDMA fully offload image transfer by default. 2022-01-09 21:15:54 +02:00
iabdalkader
1c6b452bba * Invalidate framebuffer cache before using.
* Fixes #1407
2022-01-09 21:06:29 +02:00
Kwabena W. Agyeman
9f980c8148 Fix all issues with ImageIO to support all modes and older files 2022-01-09 10:43:40 -08:00
Kwabena W. Agyeman
6689dcde4e Fix copy_to_fb when targetting an image 2022-01-09 09:48:48 -08:00
Kwabena W. Agyeman
2e8b6cf2ab Comment out distance sensor initially 2022-01-08 14:21:05 -08:00
Kwabena W. Agyeman
0dafebddb5 Fix flag spec on timer 2022-01-06 22:54:08 -08:00
iabdalkader
3eef51b229 Nina WiFi driver fixes.
* Return -1 on timeout error from recv(), recvfrom(), send() and sendto().
* Disable active connections before connecting/reconnecting.
* Fix manual DNS bug.
* Set secondary DNS server
2022-01-05 18:45:57 +02:00
Ibrahim Abd Elkader
0933da0d12
Merge pull request #1486 from kwagyeman/kwabena/update_mt
Update MT driver to support the 22/24/32/34
2022-01-03 22:23:13 +02:00
iabdalkader
a0504eda90 Create fresh filesystem contents for Nano RP2040. 2022-01-03 19:30:47 +02:00
iabdalkader
165d3ac712 Move fresh filesystem code to factoryreset.c 2022-01-03 19:30:47 +02:00
iabdalkader
486a25d85e ff_wrapper: Add f_touch_helper. 2022-01-03 19:30:41 +02:00
iabdalkader
6f4f4844fb Portenta: Add custom readme file. 2022-01-03 15:05:40 +02:00
Kwabena W. Agyeman
84f53d01bb Update MT driver to support the 22/24/32/34 2022-01-02 13:54:17 -08:00
iabdalkader
b1cc0aae98 NANO-RP2040: Add support for DHT11 and DHT22 sensors. 2022-01-02 15:47:46 +02:00
iabdalkader
bb1b5948e0 Bump firmware version. 2022-01-01 18:15:49 +02:00
iabdalkader
8cb4b8fea4 Bump firmware version. 2022-01-01 17:54:36 +02:00
iabdalkader
a6f026ba81 Move fresh filesystem contents to template files. 2022-01-01 00:36:20 +02:00
Ibrahim Abd Elkader
40372df6ce
Merge pull request #1482 from openmv/pyexec_frozen_modules
Execute frozen boot scripts first before filesystem.
2021-12-31 20:31:15 +02:00
iabdalkader
b0c7a32721 Rework boot scripts and pyexec.
* Run frozen _boot.py if it exists (for early boot stuff).
* Allow freezing main.py and boot.py boot scripts.
* Give frozen boot scripts priority over filesystem boot scripts.
2021-12-31 20:17:42 +02:00
Kwabena W. Agyeman
c86f01741f
Add Objection Detection Support (#1462)
Support for segmentation networks has been added. You can now segment images using tensorflow into grayscale images that show a heatmap per class you are looking for. The segment() method will return a list of images of these grayscale heat maps.

detect() will then do all the above but internally run find_blobs() on the heat maps to return instead a list of lists, where each sub list is the blobs detected per class.

EdgeImpulse will have support for running segmentation networks thus enabling object detection and localization on Cortex-M processors.

* PYTF now uses the optimal amount of memory for buffers versus all - buffers are placed in SRAM if they fit producing a massive speed boost.
* Custom scaled/offset outputs now work.
* Updated to the latest tensorflow library.
* You have access to all input/output model parameters.
* Person detection is now int8 and blazing fast - 20 FPS on the Arduino Portena.
* Added m55 libs (m0plus libs coming soon once EdgeImpulse adds support for them in the tensorflow make file)
* Classify/Segment/Detect work on all image types directly (JPG/BAYER/YUV/RGB565/GRAYSCALE/BINARY)
2021-12-30 18:30:28 +02:00
iabdalkader
804b510ac7 Fix ULPI DIR pin definition. 2021-12-29 16:20:28 +02:00
Kwabena W. Agyeman
165408f3c8 Fix jpeg loading 2021-12-28 19:04:38 -08:00
iabdalkader
0a82b20911 Bump firmware version. 2021-12-18 23:50:04 +02:00
iabdalkader
508419f6d5 Bump firmware version. 2021-12-13 20:08:26 +02:00
Kwabena W. Agyeman
c05e945016 Unsigned var in count down loop fixed 2021-12-11 18:38:28 -08:00
iabdalkader
70830281bd Add missing MT9M114 ID. 2021-12-11 23:03:39 +02:00
iabdalkader
708f7fe1ac Update to MicroPython 1.17 2021-12-10 19:01:54 +02:00
iabdalkader
5c127078ca Nina driver updates, bug fixes. 2021-11-17 18:29:23 +02:00
iabdalkader
df6f77bd06 Bump firmware version. 2021-11-09 16:55:44 +02:00
iabdalkader
a86369477b Portenta: Set default sensor clock to 12MHz.
* Support detecting MT9V034.
* Add Himax specific clock.
2021-10-28 20:38:03 +02:00
Ibrahim Abd Elkader
d322bcf0de
Merge pull request #1460 from kwagyeman/kwabena/fix_network_usage_in_scripts
Kwabena/fix network usage in scripts
2021-10-18 21:05:04 +02:00
Kwabena W. Agyeman
2603c12854 Fix IS_JPEG 2021-10-16 21:49:36 -07:00
Ibrahim Abd Elkader
58e89f124a
Merge pull request #1455 from kwagyeman/kwabena/frog_eye
Add basic frogeye2020 driver
2021-10-16 22:47:14 +02:00
Kwabena W. Agyeman
899f80759f Fix errode/dilate to work on non-white pixels 2021-10-16 12:10:24 -07:00
Kwabena W. Agyeman
7f84ce5010 Add frogeye sensor driver 2021-10-16 12:10:00 -07:00
Ibrahim Abd Elkader
d412e9e017
Add DFSDM support to audio module. (#1459)
* Add DFSDM support to audio module.
2021-10-15 16:05:12 +02:00
Kwabena W. Agyeman
b32aa4597e
Make IMU orientation configurable (#1457)
* Make IMU orientation configurable.
2021-10-08 21:01:09 +02:00
Ibrahim Abd Elkader
853d48f377
Merge pull request #1458 from kwagyeman/kwabena/draw_image_for_lsd
Move find_line_segments to draw image
2021-10-08 18:22:58 +02:00
iabdalkader
5cc7d32895 Init IMU if enabled.
* This disables IMU for OpenMV4, since it doesn't have one.
* If/when a board with IMU is supported, new board files should be added.
2021-10-05 19:00:22 +02:00
iabdalkader
e4696a4106 Add py_imu support for lsm6dsox. 2021-10-04 20:02:35 +02:00
iabdalkader
176d4131ab Add lsm6dsox driver. 2021-10-04 20:02:26 +02:00
Kwabena W. Agyeman
7c684670ca Move find_line_segments to draw image 2021-09-25 12:57:33 -07:00
Kwabena W. Agyeman
ddac42a8d0 Fix compress 2021-09-22 15:50:04 -07:00
Kwabena W. Agyeman
cfa0748a05 Fix memory allocation order 2021-09-22 15:26:44 -07:00
Kwabena W. Agyeman
db43f98b77 Update TensorFlow to use draw image 2021-09-22 15:26:03 -07:00
Kwabena W. Agyeman
66bfdd3854 find tags now use draw_image 2021-09-21 21:20:35 -07:00
Ibrahim Abd Elkader
fb51ee685a
Merge pull request #1451 from openmv/bormio_support
Bormio support
2021-09-20 14:35:17 +02:00
iabdalkader
16fd340e10 Add ULPI pin configuration. 2021-09-20 14:20:28 +02:00
Kwabena W. Agyeman
bf447e5599 Add yuv image processing support 2021-09-19 09:42:28 -07:00
iabdalkader
4e82dcecc1 Update bormio/nicla pinout. 2021-09-18 00:20:20 +02:00
iabdalkader
59b59c394f Support different ports for cambus pins. 2021-09-17 22:42:43 +02:00
Kwabena W. Agyeman
3ed668ab5b Add full debayering support 2021-09-09 14:18:57 -07:00
Ibrahim Abd Elkader
d5ad043c30
Advanced pixel formats. (#1448)
* Advanced pixel formats.

* Use a new pixel format that encodes flags, id and bpp in the pixel format itself.

* Fixes for review comments.
2021-09-09 13:34:31 +02:00
iabdalkader
c28958e04e Replace sensor flags with bit fields.
* Much easier to manipulate and saves some memory.
2021-09-04 22:04:31 +02:00
Ibrahim Abd Elkader
7fa4712504
Merge pull request #1432 from bitbank2/master
speed up software JPEG encoding by about 10% with improved bit handling
2021-09-04 14:26:46 +02:00
Laurence Bank
be80eb442a fixed overflow situation for jpeg encoding 2021-09-04 11:36:55 +01:00
Laurence Bank
2bc29c766b Fixed overflow situation 2021-08-31 16:24:27 +01:00
iabdalkader
2bce479868 Bump firmware version. 2021-08-27 15:12:52 +02:00
iabdalkader
b5692231e2 Fix WINC make_new arg. 2021-08-26 16:55:24 +02:00
iabdalkader
f5391a3884 Make WINC API compatible with other WiFi modules. 2021-08-26 16:25:15 +02:00
iabdalkader
43e66047f9 NANO33: Update flash size. 2021-08-26 14:44:46 +02:00