Commit Graph

1979 Commits

Author SHA1 Message Date
Kwabena W. Agyeman
27f5110ab7 Add extra frame buffer.
You can now allocate an extra frame buffer for storing images. However,
this takes memory from the main frame buffer. In particular this reduces
the RAM for many methods that do image processing making memory errors
more likely to happen. Note that you may allocate as many extra fb's as
you like. Dealloc happens in reverse order.

Anyway, you can use this method to now storage things like difference
images in RAM allowing for MUCH faster frame difference image
processing.

Moving on, to keep memory management sane... the second fb looks just
like an image and you can use all the image methods to load and update
it, etc. That said, if users deallocate the second FB they need to *NOT*
use the image pointer anymore. There's no way for me to delete the image
pointer in python right now so this is just something that has to be
manually managed (even if I did setup a deconstructor the second FB is
on a stack... so, things wouldn't work so easily with that).
2017-12-24 22:40:26 -05:00
Kwabena W. Agyeman
f2c36e780a Add a LUT for illuminvar()
It's now faster to be more useful.

Need to work on HDR for the sensor and making the sensor output better.
I fixed some issues with the illuminvar() method going crazy when it
gets colors with values near 0... but, the shot noise from the sensor
adds a lot of noise to everything. Fixing this will likely solve a lot
of algorithm problems.
2017-12-23 21:16:55 -05:00
Kwabena W. Agyeman
e2025e8d1e SSIM Code
Image comparison using SSIM. It can be used to detect image
differences... but, the algorithm was designed to compare image quality
and look at compression artifacts. Anyway, it works kinda okay for
detecting frame differences.
2017-12-23 15:01:13 -05:00
Kwabena W. Agyeman
e5eb7185fb Line ops can now accept a parameter value. 2017-12-21 22:22:12 -05:00
Kwabena W. Agyeman
937aa1fa22 Add chrominace and illuminace invariant image generators.
Both algorithms were tested on the OpenMV Cam using images loaded from a
file and work correctly. However, shot noise from the sensor.snapshot()
makes the output value somewhat worthless except in a situation unless
you've controlled for it. Anyway, the illuminvar work best when the
image is constrained to a very particular view point looking at a flat
scene without shadow and then a shadow enters.

(Not adding demo's for these methods since the output looks like crap
unless you've put some work into constraining the scene... need to add
HDR code and other stuff to the sensor module to get better images).
2017-12-17 21:57:08 -05:00
iabdalkader
aa0e20ce9d Update CHANGELOG. 2017-11-04 18:11:06 +02:00
iabdalkader
cb1e8dd8cf Update firmware images. 2017-11-04 17:57:52 +02:00
iabdalkader
2f32dad550 Add sensor sleep mode example. 2017-11-04 17:45:37 +02:00
iabdalkader
9b063127ac Update firmware images. 2017-11-02 17:28:15 +02:00
iabdalkader
8b35752706 Fix find_line_segments unit test 2017-11-01 22:01:42 +02:00
iabdalkader
b6608cc754 Fix servo pins. 2017-11-01 19:07:29 +02:00
Ibrahim Abd Elkader
07436299e9
Merge pull request #278 from kwagyeman/master
Fix up lens_correction and add example script.
2017-10-30 02:07:30 +02:00
Kwabena W. Agyeman
8d63f6d84b Fix up lens_correction and add example script. 2017-10-28 00:31:01 -04:00
Ibrahim Abd Elkader
7ef27db280 Merge pull request #277 from kwagyeman/master
Add perspective rotation correction code.
2017-10-27 12:48:48 +02:00
Kwabena W. Agyeman
5e3cf92ac4 Add perspective rotation correction code.
This code will help you undo image rotation issues in the X/Y/Z
direction. The demo shows off the frame buffer spinning around.
2017-10-27 01:21:13 -04:00
iabdalkader
8160e9120e Add MT9V034 initial support. 2017-10-24 03:07:17 +02:00
iabdalkader
9104ef3437 Swap read/write word data. 2017-10-21 23:40:56 +02:00
iabdalkader
d860361fcd Fix cambus read/write-w register width. 2017-10-21 14:18:42 +02:00
iabdalkader
fecf856169 Revert "Add generic cam bus read/write."
This reverts commit d2ebe6f7e2.
2017-10-21 14:17:53 +02:00
iabdalkader
d2ebe6f7e2 Add generic cam bus read/write. 2017-10-19 00:53:43 +02:00
iabdalkader
ff8cf16169 Rename data to reg_data. 2017-10-18 23:19:12 +02:00
iabdalkader
04a14a290f Rename SCCB/I2C driver to cambus. 2017-10-18 23:14:14 +02:00
iabdalkader
d1a5f72a95 Add new cam support files. 2017-10-17 14:14:08 +02:00
Ibrahim Abd Elkader
469820d46b Merge pull request #276 from kwagyeman/master
Use special version of nlr_raise again.
2017-10-17 12:38:15 +02:00
Kwabena W. Agyeman
1748000e4d Use special version of nlr_raise again. 2017-10-17 01:14:57 -04:00
iabdalkader
39e8ee73fc Update issue template 2017-10-16 15:58:54 +02:00
iabdalkader
3fd020e848 Remove old example. 2017-10-13 16:54:06 +02:00
iabdalkader
927edcf321 Fix M4 UART pins. 2017-10-12 21:49:37 +02:00
iabdalkader
46da0d9f2f Add roundf to Makefiles. 2017-10-09 21:32:03 +02:00
iabdalkader
c6c7324272 Apply mpconfigboard fix for MP-1.9.2 2017-10-09 21:21:44 +02:00
iabdalkader
11bed4b993 Update to MP-1.9.2 2017-10-09 21:20:06 +02:00
iabdalkader
3f6360ae57 Update firmware images. 2017-10-06 01:45:11 +02:00
iabdalkader
64143d4a94 Remove frozen code object file. 2017-10-06 01:37:44 +02:00
iabdalkader
20c8b66789 Implement sensor soft sleep. 2017-10-05 01:25:49 +02:00
iabdalkader
f86a5fb63d Fix blob.density()
* Fix issue #268
2017-10-04 11:00:23 +02:00
Ibrahim Abd Elkader
56c907d058 Merge pull request #267 from kwagyeman/master
Disable find line segments on the M4.
2017-10-03 12:50:04 +02:00
Kwabena W. Agyeman
cbe2a4aebd Disable find line segments on the M4. 2017-10-03 02:50:55 -04:00
iabdalkader
c961b3eac0 Remove Cortex flags from MP Makefile. 2017-10-02 00:49:36 +02:00
iabdalkader
38aca6e9e8 Disable frozen modules. 2017-10-02 00:47:03 +02:00
iabdalkader
bb0d0e778a Disable OPENMV 1 build. 2017-10-02 00:27:03 +02:00
iabdalkader
afe07324c5 Use 1 DMA handle for SD TX/RX 2017-10-02 00:16:27 +02:00
iabdalkader
763228e30d Update F4 HAL. 2017-10-01 22:57:28 +02:00
iabdalkader
2edc26db6a Update CMSIS. 2017-10-01 22:47:05 +02:00
iabdalkader
5bffa8879a Remove comment. 2017-09-26 00:03:41 +02:00
iabdalkader
608ca9ab87 Remove unused pyb functions. 2017-09-24 21:29:34 +02:00
iabdalkader
6e34bafe6b Add function to execute boot scripts. 2017-09-24 21:16:10 +02:00
iabdalkader
de8caa3006 Remove debugging code. 2017-09-24 20:48:26 +02:00
iabdalkader
0c20049e3d clean up main.c 2017-09-24 01:47:46 +02:00
iabdalkader
5460f7f5e1 Fix FS cache address. 2017-09-24 01:46:41 +02:00
iabdalkader
e2514ee302 Add pendsv debugging flags to top Makefile. 2017-09-23 15:46:06 +02:00