Commit Graph

1307 Commits

Author SHA1 Message Date
iabdalkader
c7c3ddce63 Add DAC init in main.c
* Fix issue #121
2016-05-01 15:50:10 +02:00
iabdalkader
e53d8f874f Add second iris detection example 2016-05-01 15:07:27 +02:00
iabdalkader
f8201885c4 Fix IDE's Bootloader initialization. 2016-05-01 12:43:37 +02:00
iabdalkader
17b1ce2b24 Cleanup IDE's Bootloader class 2016-05-01 12:25:26 +02:00
iabdalkader
260caaa8e7 Fix WINC client.send() zeros data being sent.
* Issue #129
2016-04-30 23:08:23 +02:00
Ibrahim Abd Elkader
36d5f610e9 Merge pull request #133 from kwagyeman/master
Add RGB565 histogram equalization.
2016-04-30 05:21:32 +02:00
Kwabena W. Agyeman
fc605b0a80 Made histeg work for RGB565.
Added YUV to RGB565 conversion to make this happen.
2016-04-29 23:03:19 -04:00
iabdalkader
90ac31c0ff Set config board in preferences dialog. 2016-04-29 23:49:24 +02:00
iabdalkader
a63f300026 Set config serial port in preferences dialog. 2016-04-29 23:22:05 +02:00
iabdalkader
4f38db3e81 Update firmware images. 2016-04-29 20:46:26 +02:00
iabdalkader
d6890e7912 Close serial port when connecting/disconnecting. 2016-04-29 20:38:24 +02:00
iabdalkader
6b581af1b1 Add mass erase to make flash. 2016-04-29 20:32:14 +02:00
Ibrahim Abd Elkader
ebb7053040 Merge pull request #132 from kwagyeman/master
Add missing cam functionality
2016-04-28 23:58:27 +02:00
iabdalkader
37515c7672 Use list_ports for Windows COM ports. 2016-04-28 21:54:08 +02:00
iabdalkader
77d8f56e3e Update main firmware image 2016-04-28 13:06:28 +02:00
iabdalkader
4f5251c50d Update bootloader and firmware images. 2016-04-28 12:48:24 +02:00
iabdalkader
0d5aaf5064 Fix USB descriptors.
* This fix makes the bootloader+fw image enumerate correctly on Linux and Windows.
2016-04-28 12:47:21 +02:00
iabdalkader
a4186d3191 Erase the flash FS when uploading new FW image. 2016-04-28 11:57:47 +02:00
Kwabena W. Agyeman
80cb701d3b Add missing cam functionality
Added the ability to turn AGC off. Kinda will need the ability to restore
AGC settings back to user specified ones in the future... but, this will
do for now.

Added the ability to turn AEC off. Objectively this function probably
won't be used. But, in low light situations it can help.

Added get_fb() to allow you to get the last image snapshot returned.

There was some old exposure function in the code that was getting
optimized out. So, I deleted the used methods that didn't have any code
in them and commented out the only method that did.
2016-04-27 21:53:06 -04:00
iabdalkader
794bb367ae Fix Bootloader CDC descriptors.
* Removed some unused descriptors, but mainly set the CDC interface number to (1)
  same as MP, as Windows doesn't like different interface numbers for the same device.
2016-04-27 19:38:44 +02:00
iabdalkader
dff1054171 Add binary flag to FW file read. 2016-04-27 19:30:05 +02:00
iabdalkader
db541f51ca Fix if indent 2016-04-27 18:36:22 +02:00
iabdalkader
ae718e8207 Reset OpenMV before running bootloader. 2016-04-27 18:33:53 +02:00
iabdalkader
20560923b0 Fix bootloader message. 2016-04-27 18:31:28 +02:00
iabdalkader
03eb277aa9 Add serial disconnect function. 2016-04-27 18:27:36 +02:00
iabdalkader
3f0340d103 Remove usb hidden import from PyInstaller spec. 2016-04-27 18:21:42 +02:00
iabdalkader
8cd6fbf301 Replace pyboard and MP string descriptors. 2016-04-27 18:17:42 +02:00
iabdalkader
130fcbf162 Pass wValue to control requests. 2016-04-27 08:34:20 +02:00
iabdalkader
10e6e974d3 Update FW images. 2016-04-27 07:51:34 +02:00
iabdalkader
c2ac84044f Move terminal update callback 2016-04-27 02:12:41 +02:00
iabdalkader
5217dedb8c Remove mismatch flag.
* Not really needed, nothing runs unless connected is set True.
2016-04-27 01:57:03 +02:00
iabdalkader
9f7980eec4 Fix IDE undo. 2016-04-26 23:32:11 +02:00
iabdalkader
cadb73eb5e Fix Makefile build order. 2016-04-26 22:58:07 +02:00
Ibrahim Abd Elkader
a0d0949bbb Merge pull request #131 from kwagyeman/master
Final Imlib Cleanup
2016-04-26 22:50:40 +02:00
Kwabena W. Agyeman
7a01a9bede Final Imlib Cleanup
Finished going through imlib.c.
-> Histeq uses fb_alloc now and has hook for RGB histeq when reserve YUV
LUT is added (coming soon in next PR).

Cleanuped py_helper.c/h
-> No functional changes. Just added some header info.

Finished going through py_image.c
* 1 - Finished general code cleanup and updating everything to using new
library functions. In particular, I updated the remaining find_*
functions with the new roi clipping code when they accept rois.
* 2 - Made blob stuff return a list when nothing is found so you don't
have to do an if on the returned value anymore.
* 3 - img subscr is more powerful now allowing image reading and
writing. I updated this because I had to use it to find a previous bug
with socket.send() for the WINC driver.
* 4 - Renamed find_eyes to find_eye. Because it just finds one eye.
* 5 - Other than that just general code cleanup to make functions look
consistent.

And yes, changes have been test. Face tracking, eye tracking, keypoints,
etc. all work still.

Future things todo before release:
1 - Change all LAB stuff to YUV.
2 - Add in reverse YUV->RGB LUT and update functions like Mode() to use
this so they don't generate messed up outputs, also histeq() too.
3 - Add any remaining sensor control functions like agc control.
2016-04-25 21:55:49 -04:00
Ibrahim Abd Elkader
3ac7872188 Merge pull request #130 from kwagyeman/master
Improve JPEG capabilities.
2016-04-26 02:47:08 +02:00
iabdalkader
232461295d Remove old DFU code. 2016-04-25 20:35:36 +02:00
iabdalkader
54be7503e6 Update IDE to handle the new bootloader. 2016-04-25 18:22:41 +02:00
iabdalkader
3d38908f2a Update main Makefile
* Add bootloader sources.
* Generate main FW image dfu, bootloader dfu and combined dfu image.
2016-04-25 18:20:20 +02:00
iabdalkader
508f303d91 Move ISR vector start of the main firmware image. 2016-04-25 18:19:39 +02:00
iabdalkader
d14c55251d Change interrupt vector table offset.
* Set to 0x08010000 where the main FW image starts
2016-04-25 18:18:27 +02:00
iabdalkader
9ed107ccee Re-enable IRQs in main.c 2016-04-25 18:18:03 +02:00
iabdalkader
87740c0170 Add CDC bootloader source dir 2016-04-25 18:17:21 +02:00
Kwabena W. Agyeman
367e5fdd3d Improved JPEG capabilities.
* Added the ability to control the quality on JPEG functions... However,
due to our JPEG implementation this doesn't seem to help. 90% JPEG
quality images and regular images should be about equal. But, you can
see heavy degredation with 90% still. E.g. text is unreabable. Not
exactly sure why this is happening but it can be fixed later.

* Changed the compress() function to compressed(). Also, it now
compresses using FB_Alloc to prevent realloc issues when compressing.

* Added new compress() function. This function compresses an image in
place and if that image is the frame bufffer then it will update the
frame buffer bpp value to reflect the image was compressed. Users can use
this function to basically finalize the frame buffer and then pass the FB
to functions that need to send image bytes. The benefit of using this
function is that it should allow higher quality JPEGs and let everything
run at a faster speed while connected to the IDE.

I made this function to speed up WiFi. However, I encountered a bug with
the winc.send() method. It appears to zero the bytes it sends. I didn't
debug further except to verify that the image data became zero after
calling send.
2016-04-23 16:37:21 -04:00
Ibrahim Abd Elkader
4075eae03d Merge pull request #126 from kwagyeman/master
scripts cleanup
2016-04-23 02:07:56 +02:00
Kwabena W. Agyeman
4c88c110cf 60 Scripts.
Everything except the DAC script works. That has to be fixed. Anyway, we
have a ton of example for launch. So, hopefully, comments about how to
do stuff should be limited.

That said, the PYB module is in a poor state still. Stuff kinda works and
kinda doesn't from it.

One day... There won't be any fires to put out on this project and I can
stop working so hard.
2016-04-21 20:01:17 -04:00
Ibrahim Abd Elkader
e2d665eb9e Merge pull request #125 from kwagyeman/master
Fix dilate.
2016-04-21 20:07:19 +02:00
Kwabena W. Agyeman
bb9d79d744 Fixed dilate.
This was bugged. Tested and now works.
2016-04-21 13:11:38 -04:00
Ibrahim Abd Elkader
fe36dd8ff4 Merge pull request #123 from kwagyeman/master
Refactor some example scripts.
2016-04-21 00:25:56 +02:00
Kwabena W. Agyeman
2006cf9746 Example Work
* Filled in all the board control examples. Everything works except for
DAC.

* Moved test drawing scripts to drawing dir and renamed them and added
comments.

* Filled in all the image filter stuff. There are still some tests that
can be renamed, commented, and added to this folder. But, I will do that
later.

* Fixed motion detection thresholds.

* Fixed LCD script comments.

* Fixed BLE return value.
2016-04-20 17:10:44 -04:00