Commit Graph

2758 Commits

Author SHA1 Message Date
Ibrahim Abdelkader
4d22163733
Merge pull request #2082 from kwagyeman/kwabena/pure_termal_example_update
scripts/examples: Add working Pure Thermal OpenMV example.
2024-02-04 11:38:13 +02:00
Ibrahim Abdelkader
bd3aa0494e
Merge pull request #2089 from kwagyeman/kwabena/fix_yuv_shift
ports: Add yuv shift to match bayer shift.
2024-02-04 11:37:29 +02:00
iabdalkader
e7087367e3 misc: Add custom board reset function. 2024-02-04 11:07:24 +02:00
Kwabena W. Agyeman
b57864ea11 scripts/examples: Add working Pure Thermal OpenMV example. 2024-02-03 12:06:04 -08:00
iabdalkader
725dcdd5cf boards/all: Enable OMA_ENABLE_DMA_MEMCPY for boards that support it. 2024-02-03 09:07:06 +02:00
iabdalkader
345b80358d ports/all: Refactor frame buffer line copying code. 2024-02-03 09:07:02 +02:00
Ibrahim Abdelkader
27161405b4
Merge pull request #2129 from openmv/nrf_sensor_format
misc: Code formatting.
2024-02-03 09:03:47 +02:00
iabdalkader
ae54a50663 misc: Code formatting. 2024-02-03 09:01:04 +02:00
iabdalkader
db65ab81d8 ports/all: Refactor frame rate control. 2024-02-03 08:59:52 +02:00
Kwabena W. Agyeman
9b0dc3458a common/sensor: Add comments about bayer patterns. 2024-02-01 18:12:17 -08:00
Kwabena W. Agyeman
b5d9bbca30 ports: Move first_line and drop_frame to sensor.c. 2024-02-01 17:57:25 -08:00
Kwabena W. Agyeman
018f2eaed1 ports: Move copy_transposed_line to sensor.h. 2024-02-01 17:40:23 -08:00
iabdalkader
cec66374fb ports/stm32: Scan devices once per scan.
This saves boot time and also fixes an issue with some image
sensors.
2024-01-31 22:15:24 +02:00
iabdalkader
d04209e083 hal/omv_i2c: Update I2C flags. 2024-01-31 17:25:14 +02:00
Kwabena W. Agyeman
7a33d891b2 modules/py_fir: Fix mlx data root pointer. 2024-01-30 22:30:32 -08:00
Ibrahim Abdelkader
fce8e44989
Merge pull request #2098 from xue-singtown/master
imlib/draw: Add anti aliasing in draw_line.
2024-01-30 20:49:44 +02:00
xue-singtown
25f760991e imlib/draw: Add anti aliasing in draw_line. 2024-01-30 17:39:42 +08:00
Ibrahim Abdelkader
a3be7d6fa8
Merge pull request #2088 from kwagyeman/kwabena/fix_bayer
ports: Fix sensor bayer image with cropping and transpose.
2024-01-27 11:16:59 +02:00
Ibrahim Abdelkader
b792c592b2
Merge pull request #2117 from bitbank2/master
imlib/jpegd: Fix jpeg decode for non-multiple of 8.
2024-01-26 20:16:49 +02:00
Laurence Bank
19d1b11eef imlib/jpegd: Fix jpeg decode for non-multiple of 8. 2024-01-26 18:08:47 +00:00
iabdalkader
d478f19326 ports/all: Allow sensor_abort() to be called from different contexts.
This patch removes the duplicated `sensor_abort()` logic in the stm32 and mimxrt ports.
This is done by adding a `flush_fifo` argument, which controls the flush operation, and
a `in_irq` argument , which indicates whether `sensor_abort()` is called from within an
IRQ context or not.
2024-01-26 19:42:48 +02:00
iabdalkader
9999e0a9ea imlib: Combine framebuffer reset and flush.
To simplify the API, a single function is now used to flush old
frames only, or reset and drop all frames.
2024-01-26 09:05:45 +02:00
Ibrahim Abdelkader
609a882c68
Merge pull request #2114 from kwagyeman/kwabena/fix_comment
ports: Fix sensor abstraction layer comment.
2024-01-26 08:40:19 +02:00
Kwabena W. Agyeman
91250fba30 ports: Fix sensor abstraction layer comment. 2024-01-25 12:56:15 -08:00
Kwabena W. Agyeman
78a0d03ab3 port/mimxrt: Add sensor.JPEG support. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
01c2a8417c boards/OPENMV_RT1060: Update line buffer size to handle max image resolution. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
1f4bbd32a1 boards/OPENMV_RT1060: Update framebuffer size to maximum. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
6d640d8a9a ports/mimxrt: Fix mimxrt sensor.set_windowing(). 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
391c1752f6 ports/mimxrt: Add frame_callback support. 2024-01-24 16:58:11 -08:00
Kwabena W. Agyeman
b4a57ffca2 ports/mimxrt: Add set_framerate support. 2024-01-24 16:58:11 -08:00
Kwabena W. Agyeman
8540d44aa2 modules/py_image: Fix bug with gamma arguments. 2024-01-24 10:11:33 -08:00
Kwabena W. Agyeman
ab7f4323fa sensors/paj6100: Fix driver for RT1062. 2024-01-23 17:20:34 -08:00
Kwabena W. Agyeman
29076f597e board/OPENMV_RT1060: Enable ISP Ops. 2024-01-23 12:31:03 -08:00
Kwabena W. Agyeman
49dc731344 boards/OPENMV_RT1060: Enable ulab. 2024-01-22 21:48:33 -08:00
iabdalkader
f42fa85873 ports/all: Remove custom pendsv prototypes. 2024-01-20 10:18:47 +02:00
iabdalkader
8da2436c05 ports/all: Refactor PendSV code.
All ports use common PendSV code now, with port-specific
PendSV entries defined in pendsv.h files.
2024-01-20 10:02:56 +02:00
Kwabena W. Agyeman
3b263c3a68 boards: Enable OV5640 Autofocus firmware and add example. 2024-01-19 16:21:04 -08:00
iabdalkader
eec8640d7e misc: Use LD wrap for redirecting serial data to TinyUSB debug code.
Prior to this update, each port had to be patched to call TinyUSB
debugging function. Now these wrappers will call the port's functions
if debugging is not enabled.
2024-01-19 18:09:49 +02:00
Kwabena W. Agyeman
1f15790cb1 imlib/fmath: Fix compiling fast_expf. 2024-01-17 09:46:36 +02:00
Kwabena W. Agyeman
b3ce9d6302 imlib/qrcode: Fix new GCC compile issues. 2024-01-17 09:29:18 +02:00
Kwabena W. Agyeman
b09dbbdd47 imlib/filter: Fix offset argument being truncated. 2024-01-17 09:29:18 +02:00
iabdalkader
1601f8f029 misc: Fix errors triggered by disabling specific features. 2024-01-17 09:17:15 +02:00
Ibrahim Abdelkader
d0d234568d
Merge pull request #2094 from openmv/cmsis_update
ports/all: Update to CMSIS version 5.9.0.
2024-01-16 19:56:26 +02:00
iabdalkader
78b9daf2d6 boards/all: Add CMSIS_MCU_H board config option. 2024-01-16 19:20:14 +02:00
iabdalkader
9ac8540ed3 ports/all: Update code to support new CMSIS. 2024-01-16 19:20:09 +02:00
Ibrahim Abdelkader
5c6b34becb
Merge pull request #2093 from kwagyeman/kwabena/error_jpg_size
ports/stm32: Error on jpeg geometry mismatch.
2024-01-15 20:31:34 +02:00
Kwabena W. Agyeman
333fb2b5fe ports/stm32: Error on jpeg geometry mismatch. 2024-01-14 23:30:22 -08:00
Kwabena W. Agyeman
b101c58811 hal/cmsis: Move cmsis gcc extensions to new file. 2024-01-14 11:41:01 -08:00
Kwabena W. Agyeman
00500ccdef modules/sensor: Disable transpose for YUV422 images. 2024-01-12 18:51:27 -08:00
Kwabena W. Agyeman
c1eeaefd6a ports: Add yuv shift to match bayer shift. 2024-01-12 18:45:49 -08:00
Kwabena W. Agyeman
48d2f210ee ports: Fix sensor bayer image with cropping and transpose. 2024-01-12 18:09:48 -08:00
Ibrahim Abdelkader
87d2da4640
Merge pull request #1604 from kwagyeman/kwabena/hardware_jpeg_decoder
imlib: Enable hardware JPEG decoder.
2024-01-12 22:52:20 +02:00
Kwabena W. Agyeman
d459e604eb imlib: Rename jpeg encoder file. 2024-01-12 12:40:18 -08:00
Kwabena W. Agyeman
469519bad2 imlib: Mainline hardware jpeg decoder. 2024-01-12 12:40:17 -08:00
Ibrahim Abdelkader
b530b48651
Merge pull request #2077 from kwagyeman/kwabena/upgrade_cmm
modules/py_image: Upgrade ccm to work well with ulab.
2024-01-12 20:39:14 +02:00
Ibrahim Abdelkader
96e9caf586
Merge pull request #2057 from kwagyeman/kwabena/refactor_py_tf
modules/py_tf: Cleanup segment, detect, and callback data.
2024-01-08 16:15:47 +02:00
Kwabena W. Agyeman
dcecfaf91e modules/py_tf: Cleanup segment, detect, and callback data. 2024-01-07 12:50:44 -05:00
Ibrahim Abdelkader
c0a16c41a7
Merge pull request #2074 from kwagyeman/kwabena/get_threshold_fix
imlib/stats: Fix get_threshold A/B values.
2024-01-07 09:15:53 +02:00
Kwabena W Agyeman
36d5cecbd2
modules/py_image: Refactor isp ops to use mp_arg_parse. (#2076)
- modules/py_image: Refactor awb to use mp_arg_parse_all.
- modules/py_image: Refactor gamma to use mp_arg_parse.
2024-01-07 08:43:10 +02:00
Ibrahim Abdelkader
03dd8a423e
Merge pull request #2075 from kwagyeman/kwabena/fix_find_rects_roi
imlib/apriltag: Fix find_rects() roi parameter.
2024-01-06 12:44:01 +02:00
Kwabena W. Agyeman
b4821d890a boards/OPENMV_RT1060: Update UMM Heap Size to match H7 Plus. 2024-01-04 13:54:43 -05:00
Kwabena W. Agyeman
a99d9e09ea modules/py_image: Upgrade ccm to work well with ulab. 2024-01-03 22:27:08 -05:00
Kwabena W. Agyeman
dfabc5f816 imlib/apriltag: Fix find_rects() roi parameter. 2024-01-03 13:37:57 -05:00
Kwabena W. Agyeman
a2e15ae07b imlib/stats: Fix get_threshold A/B values. 2024-01-03 13:00:31 -05:00
iabdalkader
1c1cd5856c micropython: Update to MicroPython v1.22. 2024-01-03 11:09:33 +01:00
iabdalkader
c20b71f3b9 boards/ARDUINO_NANO_33_BLE_SENSE: Rename board to match upstream. 2024-01-03 11:09:33 +01:00
iabdalkader
7df6694c3d modules/py_display: Update module definition macro. 2024-01-03 11:09:33 +01:00
iabdalkader
bf9d3e555d modules/py_tv: Use micropy atomic instead of irq functions. 2024-01-03 11:09:33 +01:00
iabdalkader
b64e3d625a boards/all: Update manifests. 2024-01-03 11:09:33 +01:00
Ibrahim Abdelkader
61501d2580
Merge pull request #2055 from kwagyeman/kwabena/fix_cs_issue
ports: Don't deinit the SSEL pin on stm32 and mimxrt.
2023-12-26 19:22:28 +02:00
Kwabena W. Agyeman
e8c38d4fa7 ports/stm32: Move SSEL pin deinit to omv_spi.c module. 2023-12-24 12:21:02 -08:00
iabdalkader
4e148000be misc: Bump firmware version. 2023-12-24 21:19:56 +01:00
Ibrahim Abdelkader
e4c0846c55
Merge pull request #2052 from kwagyeman/kwabena/fix_servicing_tiny_usb
ports/mimxrt: Service TinyUSB while waiting for sensor frames.
2023-12-24 15:21:09 +02:00
Kwabena W. Agyeman
4b37c0c82e ports/mimxrt: Service TinyUSB while waiting for sensor frames. 2023-12-23 09:04:33 -08:00
iabdalkader
ba754186f7 misc: Fix TinyUSB polling. 2023-12-23 15:38:39 +01:00
Ibrahim Abdelkader
9dd6e47e06
Merge pull request #2053 from kwagyeman/kwabena/fix_led_name
boards/OPENMV_RT1060: Fix default script LED pin name.
2023-12-23 12:02:38 +02:00
Kwabena W. Agyeman
03f45f7206 boards/OPENMV_RT1060: Fix default script LED pin name. 2023-12-22 13:41:39 -08:00
Kwabena W. Agyeman
6d5703f524 boards/OPENMV_RT1060: Enable high res apriltags. 2023-12-10 21:19:03 -08:00
Kwabena W. Agyeman
da42c9b540 modules/py_tv: Fix argument parsing. 2023-12-08 12:09:11 -08:00
Ibrahim Abdelkader
0d00e62b03
Merge pull request #2043 from kwagyeman/kwabena/mjpeg_fps_internal
modules/py_mjpeg: Calculate MJPEG FPS internally.
2023-12-05 21:29:08 +02:00
Ibrahim Abdelkader
90b33598e9
Merge pull request #2037 from Bexin3/master
boards/ARDUINO_GIGA: Enable OV5640.
2023-12-05 21:15:34 +02:00
Kwabena W. Agyeman
83229dcdfe modules/py_mjpeg: Calculate MJPEG FPS internally. 2023-12-05 11:03:31 -05:00
Ibrahim Abdelkader
96ffa1ffeb
Merge pull request #2031 from kwagyeman/kwabena/py_tf_fix_segment
modules/py_tf: Fix non-square image support.
2023-12-04 21:02:53 +02:00
Kwabena W. Agyeman
70b2db2bf4 modules/py_tf: Fix non-square image support. 2023-12-04 13:57:09 -05:00
iabdalkader
1ae4d24882 ports/All: Add support for passing variables to manifest files.
- Pulled from upstream.
2023-12-03 10:22:26 +01:00
iabdalkader
c20ee4c272 ports/mimxrt: Add CAN support. 2023-12-03 09:47:24 +01:00
Benjamin
b6aa0f653b boards/ARDUINO_GIGA: Enable OV5640.
Add support for OV5640 on GIGA R1 with AF enabled and highest stable clock.
2023-12-03 08:41:23 +00:00
lxowalle
3cdb67b0a2 imlib: Fix imlib_midpoint_pool cannot select the centered area. 2023-12-01 09:49:06 +08:00
iabdalkader
eb488a1922 misc: Bump firmware version. 2023-11-29 18:24:20 +01:00
iabdalkader
e5f1705315 ports/all: Remove support for self-tests. 2023-11-29 17:42:16 +01:00
Ibrahim Abdelkader
1e454f4022
Merge pull request #2029 from openmv/refactor_boot_script_code
ports/all: Refactor common boot code.
2023-11-29 18:34:22 +02:00
iabdalkader
7094a69401 ports/nrf: Refactor common boot code. 2023-11-29 16:04:16 +01:00
iabdalkader
d57086e1b7 ports/stm32: Refactor common boot code. 2023-11-29 16:04:16 +01:00
iabdalkader
c7457f11ed ports/rp2: Refactor common boot code. 2023-11-29 16:04:13 +01:00
Kwabena W. Agyeman
8bd25d6cd7 modules: Make int/floating image scaling behavior the same. 2023-11-26 19:20:45 -05:00
iabdalkader
861ee0b9b2 ports/mimxrt: Refactor common boot code. 2023-11-26 17:33:22 +01:00
iabdalkader
2fe47234b3 misc: Refactor common boot code. 2023-11-26 17:33:22 +01:00
Ibrahim Abdelkader
d1cb045de6
Merge pull request #2025 from openmv/py_tf_fix_arg
modules/py_tf: Revert `load_to_fb` arg name.
2023-11-25 16:37:55 +02:00
Ibrahim Abdelkader
64f5249610
Merge pull request #2022 from kwagyeman/kwabena/fix_imx_openmv_disk
ports/mimxrt: Add .openmv_disk file.
2023-11-25 16:36:52 +02:00
iabdalkader
687c53ec16 modules/py_tf: Fix arg name. 2023-11-25 15:26:10 +01:00
iabdalkader
88845c573e ports/nrf: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
22c6c1a74a ports/stm32/modules: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
d25337b340 modules/py_tf: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
9e6e03eca4 modules/py_sensor: Refactor arg parsing. 2023-11-25 15:13:51 +01:00
iabdalkader
555e67ecd6 modules/py_gif: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
d15fc6b8d9 modules/py_imageio: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
3d679f5a6c modules/py_mjpeg: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
9b411a66da modules/py_tv: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
a4c0f20bfd modules/py_tof: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
08bf62a32f modules/py_fir: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
4773126560 modules/py_helper: Update helper functions.
- Add arg_to_float_array helper function.
- Add arg_to_minmax helper function.
- Add arg_to_float helper function.
- Remove py_helper_keyword_iterable.
2023-11-25 15:02:40 +01:00
Kwabena W. Agyeman
9cbf6057b5 ports/mimxrt: Add .openmv_disk file. 2023-11-23 10:37:19 -05:00
Ibrahim Abdelkader
25359054e7
Merge pull request #2015 from kwagyeman/kwabena/add_ioctl_for_fov_over_fps
sensors/gc2145: Add support for a wider FoV.
2023-11-17 19:52:09 +02:00
Kwabena W. Agyeman
55e12f2499 sensors/gc2145: Add support for a wider FoV. 2023-11-17 08:16:22 -05:00
Kwabena W. Agyeman
a925178ecb modules/py_image: Cleanup MP_DEFINES for helper functions. 2023-11-13 15:03:43 -08:00
Kwabena W. Agyeman
88274c88fe boards/ARDUINO_PORTENTA_H7: Disable unused camera modules. 2023-11-07 12:29:59 -08:00
Kwabena W. Agyeman
66567958c3 imlib: Add scaling and centering hints to draw_image. 2023-11-07 12:29:57 -08:00
Ibrahim Abdelkader
5f4c6763f2
Merge pull request #2008 from kwagyeman/kwabena/add_file_path_image_loading
modules: Allow arg_to_image to load images from paths.
2023-11-01 21:42:52 +02:00
Kwabena W. Agyeman
a6e8030724 modules: Add image file loading to screen drawing methods. 2023-11-01 12:33:22 -07:00
Kwabena W. Agyeman
3a9a51fa1b modules: Allow arg_to_image to load images from paths. 2023-11-01 12:31:00 -07:00
Kwabena W. Agyeman
1d52a9f759 modules: Refactor keyword_to_image helper function. 2023-10-30 18:08:22 -07:00
Ibrahim Abdelkader
a388b0711d
Merge pull request #1993 from kwagyeman/kwabena/add_hmirror_vflip_transpose_to_draw_image
imlib: Add hmirror, vflip, and transpose support to draw_image.
2023-10-30 18:21:32 +02:00
Kwabena W. Agyeman
3fc2480126 modules: Move palette constants to the image module. 2023-10-29 23:30:16 -07:00
Kwabena W. Agyeman
30ed69b306 imlib: Add hmirror, vflip, and transpose support to draw_image. 2023-10-29 23:08:11 -07:00
Kwabena W. Agyeman
fee9b435fa modules: Remove the static spi_display pointer. 2023-10-29 15:40:03 -07:00
Kwabena W. Agyeman
230fa1ca32 imlib: Add callback argument to draw_image. 2023-10-29 15:35:58 -07:00
Kwabena W. Agyeman
8ea9c98e00 imlib: Fix potential mjpeg bounds calculation bug. 2023-10-29 15:29:51 -07:00
Kwabena W. Agyeman
15c98c0762 imlib: Refactor imlib_draw_image_rect. 2023-10-29 15:28:22 -07:00
iabdalkader
8178c237cc modules/display: Refactor scale arg parsing. 2023-10-29 19:42:18 +01:00
iabdalkader
ca184b6d07 modules/helper: Add arg_to_scale helper. 2023-10-29 19:42:00 +01:00
iabdalkader
dc73c0e298 modules: Refactor py_helper_arg_to_image functions. 2023-10-29 18:39:15 +01:00
iabdalkader
161737092d modules/display: Switch to mp_arg_parse. 2023-10-29 17:17:50 +01:00
iabdalkader
f19f8918d2 modules/py_helper: Add helper functions to support mp_arg_parse.
Those new helper functions will be used later to refactor other functions.
2023-10-29 17:17:26 +01:00
Ibrahim Abdelkader
fb9379e1e1
Merge pull request #1976 from openmv/ff_refactor
misc: Refactor file management code.
2023-10-29 11:57:26 +02:00
Ibrahim Abdelkader
a99a8fad95
Merge pull request #1996 from kwagyeman/kwabena/fix_tv_bug
modules/tv: Fix image corruption when specifying image rect.
2023-10-27 22:32:35 +02:00
iabdalkader
6d4c4224a2 drivers/winc: Fix AP mode.
The `WEP` security mode has been deprecated since firmware 19.7.6
the only two supported modes now are open and WPA.
2023-10-27 22:18:45 +02:00
Kwabena W. Agyeman
d05c7a67c8 modules/tv: Fix image corruption when specifying image rect. 2023-10-27 12:37:03 -07:00
iabdalkader
b6cdf8de15 modules/py_winc: Make module more compatible with other WiFi modules. 2023-10-27 21:10:23 +02:00
Ibrahim Abdelkader
b65f639f82
Merge pull request #1994 from openmv/display_backlight
modules/display: Add support for Python backlight controllers.
2023-10-27 15:24:39 +02:00
iabdalkader
7bcdca8241 scripts/libraries: Refactor display module. 2023-10-27 12:14:47 +02:00
iabdalkader
ad44d4533f scripts/libraries: Add Python DAC and PWM backlight controllers. 2023-10-27 12:14:47 +02:00
iabdalkader
391ec443f6 modules/display: Add support for Python backlight controllers. 2023-10-27 12:14:46 +02:00
iabdalkader
274b4e915c boards/arduino_nano_33_ble_sense: Update board manifest.py. 2023-10-26 15:55:23 +02:00
iabdalkader
c4511338a2 micropython: Add MICROPY_NLR_RAISE_HOOK.
- This can be set from a custom mpconfigport.h file to call
fb_alloc_free or any other needed cleanup before an exception.
- The omvdummy stuff is no longer needed since a default empty
hook is defined.
2023-10-24 22:04:32 +02:00
iabdalkader
ec40364ed4 ports/all: Add custom mpconfigport file. 2023-10-24 22:03:38 +02:00
iabdalkader
1cd9a8ae68 modules/spi_display: Fix display args.
Arguments were parsed/used in the wrong order.
2023-10-23 16:36:40 +02:00
iabdalkader
364cbce1d7 misc: Fix build when debugging is enabled. 2023-10-17 15:49:17 +02:00
iabdalkader
03f4dd75c6 imlib: Fix corner detection bug. 2023-10-17 15:01:43 +02:00
iabdalkader
0a04368528 misc: Refactor file management code. 2023-10-15 17:51:35 +02:00
Ibrahim Abdelkader
e9ef4cda2d
Merge pull request #1975 from kwagyeman/kwabena/support_loading_bytearrays
imlib: Support creating images from bytearrays.
2023-10-15 10:07:34 +03:00