Commit Graph

2113 Commits

Author SHA1 Message Date
Ibrahim Abd Elkader
d6ad0c845f
Merge pull request #778 from kwagyeman/kwabena/update_documentation
Kwabena/update documentation
2020-05-05 22:01:20 +02:00
Kwabena W. Agyeman
406babbf23 Moved firmware documentation 2020-05-04 21:08:22 -07:00
iabdalkader
496a3b6279 Bump firmware version. 2020-05-04 22:10:18 +02:00
Ibrahim Abd Elkader
d586f7166a
Merge pull request #773 from kwagyeman/kwabena/compress_ok_with_jpegs
Modify compression methods to allow jpeg images
2020-05-04 21:25:52 +02:00
Matt Dawson
a94b16a49d draw_image_bilinear_interp_alpha_palletes_and_center_image 2020-05-03 21:24:51 -07:00
Kwabena W. Agyeman
18b27e11c3 Fix disable FB 2020-05-03 17:33:32 -07:00
Kwabena W. Agyeman
cdb8b4ec46 Modify compression methods to allow jpeg images 2020-05-03 17:19:52 -07:00
Ibrahim Abd Elkader
431755c453
Merge pull request #774 from kwagyeman/kwabena/close_tcp_socket_on_error
Close sockets that have errors.
2020-05-04 00:53:44 +02:00
iabdalkader
ea2ef40fbe Increase soft I2C spin delay for H7P. 2020-05-01 21:25:14 +02:00
iabdalkader
9a025b60b9 Rename fb functions for consistency. 2020-05-01 14:43:13 +02:00
Ibrahim Abd Elkader
28296408c3
Merge pull request #771 from kwagyeman/kwabena/disable_fb
Add disable_fb.
2020-05-01 14:35:21 +02:00
Kwabena W. Agyeman
98e1a1e51d Add disable_fb.
Allow user control to disable the frame buffer.

Necessary for high speed frame streaming.
2020-04-30 13:40:07 -07:00
Kwabena W. Agyeman
f4b0df2ad0 Close sockets that have errors.
Tested and works.
2020-04-30 13:11:19 -07:00
iabdalkader
778ac59950 Update docs. 2020-04-30 01:12:24 +02:00
Ibrahim Abd Elkader
6061b6d2ba
Merge pull request #768 from bitbank2/master
Optimized datamatrix ops
2020-04-29 20:29:40 +02:00
Ibrahim Abd Elkader
bdc5888b69
Merge pull request #772 from kwagyeman/kwabena/fix_is_connected
Fix ip_obtained bug for static IPs
2020-04-29 19:03:21 +02:00
Ibrahim Abd Elkader
ff54696163
Merge pull request #763 from matsondawson/add_custom_palettes_to_draw_image
Add custom palettes to draw image with demo
2020-04-29 18:57:22 +02:00
Kwabena W. Agyeman
b5dee12bf1 Fix ip_obtained bug for static IPs 2020-04-28 22:26:11 -07:00
Kwabena W. Agyeman
f9dc525011 Improve WiFi performance by 20X
Polling for the async response was ruinning WiFi and UDP performance.
This fix removes that polling while not breaking anything. It has been
stress tested while streaming over an hour of wifi video data using the
new RPC scripts.
2020-04-28 17:05:46 -07:00
Kwabena W. Agyeman
7488988128 Fix winc send/sendto/recv/recvfrom 2020-04-25 11:08:53 -07:00
Larry Bank
dff1a63f15 Optimized datamatrix ops 2020-04-24 23:40:30 +02:00
iabdalkader
a7318b8489 Fix I2C DMA deinit again. 2020-04-24 21:18:15 +02:00
Ibrahim Abd Elkader
b9dc456b50
Merge pull request #766 from matsondawson/#764-Image.mean-corrupts-memory
Fix bug in filters corrupting memory if y size less than k_size.
* closes #764
2020-04-24 21:12:41 +02:00
iabdalkader
5f8dcc17c5 Fix I2C deinit. 2020-04-24 21:04:55 +02:00
Ibrahim Abd Elkader
238b3e6749
Merge pull request #767 from kwagyeman/kwabena/fix_spi_i2c_dma
Fix SPI I2C DMA Deinit
2020-04-24 18:04:40 +02:00
Kwabena W. Agyeman
8b66c39ae2 Fix SPI I2C DMA Deinit 2020-04-24 09:03:18 -07:00
Ibrahim Abd Elkader
17b278153d
Merge pull request #762 from bitbank2/master
optimize negate and difference
2020-04-24 14:44:33 +02:00
mattdawson
6411663a2d #764 fix cleanup at end of filters that corrupts memory if y size is less than k_size 2020-04-24 18:13:47 +12:00
mattdawson
eb94f153dd Fix formatting. Remove un-needed error check for image format with color palette. 2020-04-24 13:42:05 +12:00
mattdawson
30383d32b6 Fixed not checking that image is grayscale image for custom palette. Made demo simpler. 2020-04-23 21:58:37 +12:00
mattdawson
91efa307e0 Add custom palettes to draw image with demo 2020-04-23 21:33:01 +12:00
iabdalkader
cb2d279bda FDCAN Fixes.
* Fix FIFO flags.
* Add receive timeout.
2020-04-22 22:42:00 +02:00
Larry Bank
d5a19980cc optimize negate and difference 2020-04-22 21:44:02 +02:00
Matt Dawson
414c6e1a51
draw_image performance and negative scaling. (#758)
Improve draw_image performance and negative scaling.
2020-04-22 17:43:14 +02:00
Larry Bank
c6f727e4fa
×ptimized erode/dilate (#760)
* optimized erode/dilate
Co-authored-by: Larry Bank <laurencebank@gmail.com>
2020-04-22 17:21:26 +02:00
Kwabena W. Agyeman
012bef5966 First image is invalid on sensor init0. 2020-04-18 23:09:26 -07:00
Larry Bank
86760e9851
Faster Bayer to YCBCR (#755)
* speed up jpeg encoder by adding a direct bayer-to-ycbcr path

* implemented faster bayer_to_ycbcr for SW JPEG and moved Y/BINARY to imlib.c

* changed names of new bayer_to_xx functions and added prototypes to imlib.h

Authored-by: Larry Bank <laurencebank@gmail.com>
2020-04-17 23:03:32 +02:00
Ibrahim Abd Elkader
86e01445fd
Merge pull request #748 from bitbank2/master
Optimized bayer to RGB565
2020-04-15 13:50:43 +02:00
Ibrahim Abd Elkader
37bb532562
Merge pull request #754 from kwagyeman/kwabena/update_tf_4_14_2020
Updated tensorflow library to support int8
2020-04-15 13:49:48 +02:00
Kwabena W. Agyeman
c325f81034 Updated tensorflow library to support int8 2020-04-14 20:47:26 -07:00
mattdawson
e1c667fbc1 Fixes as per P.R. #753 comments 2020-04-14 17:34:53 +12:00
mattdawson
a71c3f9beb Fix DrawImage with alpha and add color palettes for grayscale 2020-04-13 21:18:38 +12:00
iabdalkader
63a0827483 Lower I2C reset timeout. 2020-04-11 02:24:09 +02:00
iabdalkader
aa10c79f6c Fix SPI DMA issues on the H7 2020-04-10 20:29:07 +02:00
Kwabena W. Agyeman
2c3358bc41 Add raw data RD/WR access to the image object.
Do .bytearray() to get an object pointing to the image bytes which
allows you to maninpulate the RAW data of an image.
2020-04-07 19:58:38 -07:00
Larry Bank
d7b6ed55bc Added detailed comments to Bayer code 2020-04-03 18:47:00 +02:00
Larry Bank
e4fcfa1553 optimized bayer to rgb565 2020-04-02 21:58:05 +02:00
Larry Bank
b07ea88875
Optimize sensor copy (#747)
* Optimize line copy to allow full res capture
* Change all pixel types to use the 40/80Mhz clock

Authored-by: Larry Bank <laurencebank@gmail.com>
2020-04-02 21:38:51 +02:00
Larry Bank
5222495dae moved line for readability 2020-04-02 21:25:40 +02:00
Larry Bank
701d7dfb80 changed all pixel types to use the 40/80Mhz clock 2020-04-01 18:26:09 +02:00
Larry Bank
e154c9b8a6 optimied sensor copy to allow ful res capture 2020-04-01 03:46:45 +02:00
iabdalkader
e1686b50de Bump firmware version. 2020-03-31 00:49:18 +02:00
Larry Bank
f6136477fd optimized more image filters 2020-03-30 02:18:43 +02:00
Larry Bank
083139fcda optimized median and mode filters 2020-03-15 00:47:52 +01:00
Larry Bank
2aa391cfa9 Fixed boundary check 2020-03-14 01:12:43 +01:00
Larry Bank
18b2d915a3 Speed up of mean filter 2020-03-12 22:53:48 +01:00
Kwabena W. Agyeman
2b26ca17b0 Improved the speed of logpolar and linpolar transforms.
* Fixed image quality issues too.
2020-03-08 16:13:25 -07:00
iabdalkader
2ae875077b Disable TF for OMV3. 2020-03-06 13:03:34 +02:00
iabdalkader
61b3216f6e Increase the stack for H7 boards.
* The TF library allocates big buffers on the stack, causing a SoF when running
the person detection network. Increase the stack to at least 12KBs.
2020-03-06 13:02:00 +02:00
Kwabena W. Agyeman
c5c9770d3a Improve rotation_correction()
* Optimized code to make it run slightly faster.
* Added fov argument to control the zoom effect better.
* Added perspective correction through 4 point correspondence.
2020-03-04 23:00:59 -08:00
iabdalkader
194b068eea Fix hardfault on disable D cache.
* Disable and clean caches only if they're enabled.
2020-03-04 19:16:45 +02:00
Ibrahim Abd Elkader
64253a6c28
Merge pull request #736 from kwagyeman/kwabena/lens_correction_cleanup
Lens correction cleanup
2020-03-02 19:50:11 +02:00
Kwabena W. Agyeman
b36460a36a Lens correction cleanup 2020-03-02 09:37:11 -08:00
Kwabena W. Agyeman
d5dd843dc7 Add avg pool 2d op version 2 2020-02-29 15:01:42 -08:00
iabdalkader
ed09c77f06 QSPI fixes. 2020-02-28 19:54:41 +02:00
iabdalkader
8e3c18bc39 Rename soft I2C macros. 2020-02-27 21:16:17 +02:00
iabdalkader
82d9ce1feb HM01B0: Fix SYNC polarities. 2020-02-26 18:02:25 +02:00
iabdalkader
83b8a1309b Set Portenta core vbat to 3.0v 2020-02-26 18:02:25 +02:00
iabdalkader
6a50656d5a Add core vbat to board config file. 2020-02-26 18:02:25 +02:00
iabdalkader
b73576baeb Add HIMAX FSIN pin. 2020-02-26 18:02:25 +02:00
iabdalkader
c5a884ff3a Fix I2C scanning for HIMAX sensor.
* The HIMAX sensors seems to reply at two address, 0x10 and 048. The right
address is 0x48 so we start scanning the I2C bus after 0x10 to as a workaround.
2020-02-26 18:02:25 +02:00
iabdalkader
e4cb1c122d Fix Portenta sensor power down GPIO. 2020-02-26 18:02:25 +02:00
iabdalkader
b098c78a2b Fix HIMAX sensor address. 2020-02-26 18:02:25 +02:00
iabdalkader
af7bccbfbb Disable, clean and invalidate before enabling the cache. 2020-02-26 18:02:25 +02:00
iabdalkader
35b4e34253 Use HSE/HSI/CSI state defined in board config file. 2020-02-26 18:02:25 +02:00
iabdalkader
c7bb9fb6ad Remove RESET and FSIN from Portenta config. 2020-02-26 18:02:25 +02:00
iabdalkader
a12ab145e5 Check if PWDN and RESET are defined before configuring I/Os. 2020-02-26 18:02:25 +02:00
iabdalkader
2a8be10ca0 Call early init before HAL init.
* To configure and enable the external OSC before HAL_Init.
2020-02-26 18:02:25 +02:00
iabdalkader
a90174cfca Enable GPIOJ for portenta board. 2020-02-26 18:02:25 +02:00
iabdalkader
8b178d5ade Fix Portenta sensor reset pin. 2020-02-26 18:02:25 +02:00
iabdalkader
8c3eb0fb38 Move OSC state to board config files. 2020-02-26 18:02:25 +02:00
iabdalkader
bd2fd5a69a Define HSE_VALUE in board config files. 2020-02-26 18:02:25 +02:00
iabdalkader
0b69171a41 Add portenta clock config. 2020-02-26 18:02:25 +02:00
iabdalkader
b90d01337c Enable clock config for H747. 2020-02-26 18:02:25 +02:00
iabdalkader
c8d5448484 Add OMV board files. 2020-02-26 18:02:25 +02:00
iabdalkader
496a7669b8 Enable H747 clock config. 2020-02-26 18:02:25 +02:00
iabdalkader
f6f030e2b7 Rename sensor ifdef check. 2020-02-26 18:02:25 +02:00
iabdalkader
8a7236b6d3 Check if LED4 and CAN are enabled in main. 2020-02-26 18:02:25 +02:00
iabdalkader
84bcade13b Add OMV board extra CFLAGS. 2020-02-26 18:02:25 +02:00
iabdalkader
a1d241ae4d Call MicroPython board early init. 2020-02-26 18:02:25 +02:00
iabdalkader
57ff7cf973 Add STM32H747 CMSIS headers and startup file. 2020-02-26 18:02:25 +02:00
iabdalkader
40434c6be7 PORTENTA: Use Arduino's PID 2020-02-26 17:27:32 +02:00
Ibrahim Abd Elkader
e039f8e9d6
Merge pull request #731 from bitbank2/lens_corr_fix
Lens correction speedup
2020-02-26 00:23:23 +02:00
Larry Bank
de98dfd373 Lens correction speedup 2020-02-25 23:11:41 +01:00
iabdalkader
563ffb4e55 PORTENTA: Update SDRAM settings. 2020-02-25 22:05:00 +02:00
Larry Bank
3d17929801
Faster find_circles (#728)
* Faster find_circles
2020-02-23 20:38:38 +02:00
iabdalkader
185b9d8cec Enable deque. 2020-02-23 19:39:04 +02:00
iabdalkader
b06fe58038 Make core vbat configurable. 2020-02-21 14:36:41 +02:00
iabdalkader
ccea3aecb2 Rename FSIN pin to FSYNC.
* Legacy name from OV datasheets.
2020-02-21 14:20:47 +02:00
iabdalkader
403e8ae798 Fix FSYNC pin.
* Disable FSYNC flag for sensors that don't actually use it.
* Only control the FSYNC pin for sensors that set the FSYNC flag.
2020-02-21 14:04:58 +02:00