Commit Graph

375 Commits

Author SHA1 Message Date
iabdalkader
f66757f264 Fix ROI size sent from IDE.
* Rectangle was changed from int to short.
2016-02-26 03:03:29 +02:00
iabdalkader
84e2e1fa0d Update keypoints scripts. 2016-02-26 03:03:08 +02:00
iabdalkader
9f7b370b0e Update face_tracking script.
* Search for new keypoints within a detected face.
* Draw based on matching percentage of keypoints.
2016-02-22 03:32:32 +02:00
iabdalkader
8d4131426d Update face, eye and iris detection scripts. 2016-02-21 23:04:31 +02:00
iabdalkader
baee885cd4 Update eye detection Python script. 2016-02-21 20:39:48 +02:00
Kwabena W. Agyeman
140ceb3b77 Fixed bug in centroid and added tests.
Stuff works. Yay! Moving on to other things now.
2016-02-20 16:04:59 -05:00
Kwabena W. Agyeman
88d9c02a1b Draw keypoints now accepts lists.
Made draw keypoints accept lists of (x, y, angle) tuples. I did this so
it could be used to show object rotation easily.
2016-02-20 16:04:59 -05:00
Kwabena W. Agyeman
b01adfee26 Fixed up drawing code and scripts along with drawing code.
Set pixel works too now.
2016-02-19 22:55:50 -05:00
Kwabena W. Agyeman
a035aae493 Fixed set pixel. 2016-02-19 21:05:02 -05:00
iabdalkader
c4c25c70d9 Fix Enable/Disable JPEG 2016-02-19 18:10:04 +02:00
iabdalkader
19450b8810 Update Python examples 2016-02-19 18:03:20 +02:00
Kwabena W. Agyeman
b27dfde61f Remvoed set pixel code for now. 2016-02-18 23:02:15 -05:00
Kwabena W. Agyeman
bcd5151412 New drawing functions.
All the drawing functions have been updated to handle automatic clipping
when drawing offscren and work with both grayscale and RGB565.
Additionally, all functions now accept color arguments.

I've also updated the example scripts with the new functions and tested
them out to make sure they work.

Additionally, I wrote a test suite for the drawing functions to make
sure they work.
2016-02-18 22:40:12 -05:00
iabdalkader
7f9e95fdd5 Add enable/disable JPEG to preferences dialog. 2016-02-18 05:10:10 +02:00
iabdalkader
6b52c82e39 Add find face+eyes example script 2016-02-17 22:35:29 +02:00
iabdalkader
6b5cdce4aa Update face detection example 2016-02-17 22:09:02 +02:00
iabdalkader
dd7c8809a3 Update MLX Python script. 2016-02-10 17:35:40 +02:00
iabdalkader
dbd69a3a25 Remove framebuffer locking.
* Not needed anymore.
2016-02-09 01:11:25 +02:00
iabdalkader
05144b63b1 Make the IDE handle older FW versions. 2016-02-06 20:10:16 +02:00
iabdalkader
b61ac5f067 Display the correct IDE version. 2016-02-06 19:32:02 +02:00
iabdalkader
eb97a51183 Fix the ABI version to avoid breaking older IDE's 2016-02-06 19:19:55 +02:00
iabdalkader
51390c9326 Update version mismatch error 2016-02-06 18:07:09 +02:00
iabdalkader
cf641af6b0 Add command to return script running flag.
* Return script running flag to disable/enable execute and stop buttons.
* Up ABI version
2016-02-06 17:59:52 +02:00
iabdalkader
cc312c3a53 Draw the last frame when fb is not ready. 2016-02-06 16:11:30 +02:00
iabdalkader
1d932b0b5a Update MLX python scripts 2016-01-25 23:53:46 +02:00
iabdalkader
3eddaa5c10 Update MLX example 2016-01-25 22:32:46 +02:00
iabdalkader
7bccf220c4 Add MLX-LCD example. 2016-01-18 19:34:06 +02:00
iabdalkader
f28d3f6235 Update MLX example 2016-01-18 19:29:50 +02:00
iabdalkader
4ba640a842 Uncomment sensor.reset in blob_detection example 2015-10-04 00:29:20 +02:00
iabdalkader
fc2a5bb1c7 Use python2 to run openmv.py, pydfu.py and openmv-ide.py 2015-10-03 23:53:03 +02:00
iabdalkader
8fd4ea6d16 Add pinout dialog to Help menu. 2015-10-01 23:51:00 +02:00
iabdalkader
f45128955f Move serial port opening to openmv.py 2015-09-27 23:41:25 +02:00
iabdalkader
99884ea399 Fix IDE's Version String. 2015-09-26 00:00:13 +02:00
iabdalkader
29cbe8dc12 Add About Dialog. 2015-09-25 23:53:08 +02:00
iabdalkader
8f747b518d Fix IDE tag name 2015-09-24 01:00:45 +02:00
iabdalkader
9398ae0248 Add check for update
* Add check for latest release in IDE.
2015-09-23 05:04:55 +02:00
iabdalkader
f887659869 Fix default baudrate in openmv example
* Fix baudrate in openmv.py example
2015-09-14 03:25:31 +02:00
iabdalkader
4c065fac6e Fix menuitems underscores
* Issue #36
2015-09-14 03:00:30 +02:00
iabdalkader
cf9c643ca0 Remove unused import 2015-09-14 02:47:27 +02:00
iabdalkader
e81e6d189e Fix style/lang search path 2015-09-11 07:03:10 +02:00
iabdalkader
b03a77a80e Append IDE directory to style search paths 2015-09-11 07:00:45 +02:00
iabdalkader
c1fb84c164 Cleanup PyInstaller spec file 2015-09-10 02:17:26 +02:00
iabdalkader
159ab5dc7e Add BUNDLE attributes 2015-09-09 01:40:08 +02:00
iabdalkader
d47fafbc49 Generate an app for Mac OS X 2015-09-09 01:38:06 +02:00
iabdalkader
8692546dad Add Mac OS X to PyInstaller spec file 2015-09-08 23:09:50 +02:00
iabdalkader
80259c7071 List Mac OS X ttys 2015-09-08 23:04:04 +02:00
iabdalkader
d031ea87f1 Implement set_pixel 2015-08-20 16:25:37 +02:00
iabdalkader
9f4664c2b8 Append version to PyInstaller packages 2015-08-19 18:17:39 +02:00
iabdalkader
3341c894c5 Update PyInstaller Spec file
* Bundle gtksourceview style/lang files
2015-08-19 16:41:21 +02:00
iabdalkader
ddf3a8a232 Disable pyinstaller console. 2015-08-19 00:20:51 +02:00
iabdalkader
161b2d6a43 Increase keypoints threshold 2015-08-15 16:46:31 +02:00
iabdalkader
e04f7ec0fb Disable built-in DFU on Windows 2015-08-14 16:06:42 +02:00
iabdalkader
29af37cb93 Load helloworld.py on start up 2015-08-13 23:14:08 +02:00
iabdalkader
3b45053d84 Remove lib scripts dir 2015-08-13 23:12:14 +02:00
iabdalkader
0b07c82a79 Update examples 2015-08-13 23:09:06 +02:00
iabdalkader
5903859ab5 Fix VREF threshold in self tests script 2015-08-06 23:13:49 +02:00
iabdalkader
0aa9f23d0a Add self-tests script 2015-08-06 12:19:00 +02:00
iabdalkader
a3d1413423 Update colorbar script 2015-08-06 12:16:52 +02:00
iabdalkader
0c9ec07aa7 Update colorbar script 2015-08-04 12:22:12 +02:00
iabdalkader
4b55a1f949 Add colorbar test script 2015-08-04 12:19:01 +02:00
iabdalkader
5c0e6b8710 Increase serial timeout 2015-08-04 10:41:33 +02:00
iabdalkader
be82b952c3 Use timeout_add to lower CPU usage 2015-08-04 10:34:01 +02:00
iabdalkader
730348f98c Use gtk main_quit instead of sys.exit 2015-07-31 15:18:59 +02:00
iabdalkader
ccc4de8488 Revert to numpy 2015-07-31 15:18:41 +02:00
iabdalkader
71d38bcca8 Pull binaries from firmware directory 2015-07-28 20:34:07 +02:00
iabdalkader
c866827e1b Add bundle dir 2015-07-28 20:17:13 +02:00
iabdalkader
85b956554f Add PyInstaller spec file and update mkpkg 2015-07-28 19:51:49 +02:00
iabdalkader
c91ff380ce Check udev file when connecting. 2015-07-18 14:19:33 +02:00
iabdalkader
d691482385 Update connection failure message 2015-07-16 08:16:49 +02:00
iabdalkader
9234a04f68 Fix typo 2015-07-12 04:15:31 +02:00
iabdalkader
80e025dcd7 Append .py when saving files
* Fixes issue #41
2015-07-09 06:36:26 +02:00
iabdalkader
9d51051ba8 Return FR_NO_FILE if built-in cascade not found 2015-07-09 04:38:07 +02:00
iabdalkader
6c1d1ede81 Fix IDE boards names 2015-07-09 03:51:00 +02:00
iabdalkader
b18104abec Fix c header cascade 2015-07-09 03:34:18 +02:00
iabdalkader
645070f11e Add c header cascade option 2015-07-09 02:21:04 +02:00
iabdalkader
50e95cf3d5 Cleanup the cascade generator
* Add command line args
* Add cascade name arg
* Add cascade info arg
2015-07-09 00:30:02 +02:00
iabdalkader
66db27c4c0 Add baudrate setting
* Add a baudrate combo selection
* Add baudrate to config file
* Use 921600 in the default config
2015-07-08 03:29:24 +02:00
iabdalkader
182a844cd2 Add FW version command
* Add FW version command to usbdbg.
* Add FW version function to openmv.py
* Check for major version in the IDE.
2015-07-04 03:44:42 +02:00
iabdalkader
0d0086f6b3 Import pydfu on Linux only for openmv module 2015-07-04 01:54:02 +02:00
iabdalkader
f851600d50 Import pydfu on Linux only 2015-07-04 01:51:58 +02:00
iabdalkader
46d2f9db18 Remove usb imports 2015-07-04 01:48:02 +02:00
Ibrahim Abd Elkader
65bb893790 Merge pull request #48 from dhylands/pydfu-improvement
pydfu - minor improvement in list construction.
2015-07-01 23:44:00 +03:00
Dave Hylands
1790d04c87 pydfu - minor improvement in list construction.
This was a change done by @dpgeorge in the micropython tree and
I'm basically migrating back to openmv.
2015-07-01 12:40:09 -07:00
Dave Hylands
2e27055f69 Fix pydfu.py to work with Beta 1 and Beta 2 versions of PyUSB
In PyUSB 1.0.0.b1, the usb.util.get_string function takes a lenght argument.
In PyUSB 1.0.0.b2, it no longer takes a length argument.

Since python2 seems to come with PyUSB 1.0.0.b1 and python3 seems to come
with 1.0.0.b2, this change allows the same source to work with either
version of PyUSB.
2015-06-21 06:41:01 -07:00
iabdalkader
b8273fec98 Update examples 2015-05-05 14:07:05 +03:00
iabdalkader
95e1ef70c2 Show pop-up menu only when cam is connected
* Fixes #35
2015-05-01 05:13:18 +03:00
iabdalkader
26425fa66e Rollback to gtksourceview 2015-04-30 08:11:50 +03:00
iabdalkader
80740ed910 Catch device disconnected except when exiting DFU 2015-04-29 00:01:59 +03:00
iabdalkader
8fef7ee4a9 Add last firmware path to config file 2015-04-28 22:26:18 +03:00
iabdalkader
0354614d8a Use Python2.7 in IDE 2015-04-28 22:16:42 +03:00
iabdalkader
0215a4ad23 Request text buffer only if buf_len > 0 2015-04-28 22:15:47 +03:00
iabdalkader
cbd37fc360 Remove stop script before exec
* No need to send stop before exec anymore
2015-04-28 22:12:32 +03:00
iabdalkader
b9d96dab42 Fix pydfu/libusb issue
* See https://github.com/walac/pyusb/issues/94
2015-04-22 02:28:12 +02:00
iabdalkader
51907dc7cd Set baudrate once when opening port 2015-02-10 07:01:05 +02:00
iabdalkader
754cce406c Implement debugging over CDC 2015-02-08 11:12:24 +02:00
iabdalkader
62a213522d Remove old test script 2015-02-08 10:42:28 +02:00
iabdalkader
38f4ed963d Fix Typo 2015-02-08 07:26:07 +02:00
iabdalkader
f99ae139ad Fix IDE path in py2exe 2014-11-15 08:16:41 +02:00
iabdalkader
903f524a28 Catch except when releasing dev 2014-11-15 03:37:02 +02:00
iabdalkader
35a7cb47f7 Return string COM ports for Windows 2014-11-10 22:55:11 +02:00
iabdalkader
ebb884b174 Set preferences dialog title 2014-11-10 22:50:18 +02:00
iabdalkader
acf0c7b17e Move config file and user scripts to home dir 2014-11-10 22:12:30 +02:00
iabdalkader
02777986c1 Fix warning about disconnected device 2014-11-10 21:59:50 +02:00
iabdalkader
7dfc2f0f24 Add preferences dialog, serial port enumeration 2014-11-10 21:58:41 +02:00
iabdalkader
5f58d6e3d6 Remove QT IDE 2014-11-10 20:44:00 +02:00
iabdalkader
6a0af1f3c3 Use separate configs for cdc/hid and debug
* This is the only solution that works with libusb on Windows
* Soft-disconnect is used to switch between configs
2014-11-10 19:36:34 +02:00
iabdalkader
2ea5a6e639 Use appdirs to manage file paths 2014-11-10 01:36:10 +02:00
iabdalkader
7fa3142d71 Catch except when serial is closed 2014-11-06 15:15:01 +02:00
iabdalkader
40d43a2a8c Add OMV Debug Interface 2014-11-06 15:14:33 +02:00
iabdalkader
874e4b99bb Open serial port after calling openmv.init
* Handle the case where init changes the configuration
2014-11-03 17:00:28 +02:00
iabdalkader
97bf077581 Fix init compatibility with Windows backend 2014-11-02 16:16:42 +02:00
iabdalkader
ad5d2d742d Update tooltips 2014-11-02 16:13:13 +02:00
iabdalkader
b062c8fb68 Fix init compatibility with Windows backend 2014-11-02 15:54:39 +02:00
iabdalkader
cea31c1774 Use one request for locking and header
* Use one request for locking and FB header to save bandwidth
2014-11-01 15:58:52 +02:00
iabdalkader
97bf3d90fe Remove VTE use textview for terminal 2014-10-31 20:45:42 +02:00
iabdalkader
0aaa51bc26 Fix SDRAM part-no
* Issue #29
2014-10-31 19:21:41 +02:00
iabdalkader
46bbb691ca Make get_dfu_devices compatible with pyusb 1.0.0b2 2014-10-31 13:43:18 +02:00
iabdalkader
47806afe4a Update pyusb interface for 1.0.0b2
* Fix issue #30
2014-10-31 13:15:48 +02:00
shimniok@gmail.com
9c3c7b6c53 Modified to take RGB888 from fb_dump() 2014-10-29 09:00:10 -06:00
shimniok@gmail.com
f43c9bdf51 Had to undo automatic detection until we can add a find() into openmv.py 2014-10-29 08:59:51 -06:00
shimniok@gmail.com
78df5265cb Reverted all changes to openmv.py, openmv-ide.py per discussion 2014-10-29 08:23:16 -06:00
shimniok@gmail.com
d70ad4925f Revised status update text on flash. Added binary file to config. Pre-populates binary file in flash dialog 2014-10-28 15:59:01 -06:00
shimniok@gmail.com
e76a5d6778 added additional scale methods 2014-10-28 15:32:07 -06:00
shimniok@gmail.com
ab32cd034e added configuration file load/save with defaults 2014-10-28 15:31:39 -06:00
shimniok@gmail.com
4a91c8aabe Fixed problem with exiting dfu 2014-10-27 18:52:54 -06:00
shimniok@gmail.com
967bd154ba Set up automatic connection option, added Tools menu with connect/reset/flash/auto 2014-10-27 18:04:58 -06:00
shimniok@gmail.com
dca276b863 Rearranged declarations. Added closeEvent to catch window close 2014-10-27 17:52:38 -06:00
shimniok@gmail.com
8a65ecc874 Added edit menu: cut, copy paste 2014-10-27 17:32:20 -06:00
shimniok@gmail.com
9f456ed963 Added cut icon 2014-10-27 17:28:35 -06:00
shimniok@gmail.com
4d7aaa0d86 Checks for modified doc before new/open, disables save action and enables when document modified 2014-10-27 17:12:30 -06:00
shimniok@gmail.com
38f0d76b08 Wired up recent and examples to actually open files. 2014-10-27 16:12:19 -06:00
shimniok@gmail.com
b76c66a2ee Added recent and examples submenus into file 2014-10-27 15:56:57 -06:00
shimniok@gmail.com
5eff4e7dc1 Fixed some error handling bugs 2014-10-27 15:56:44 -06:00
shimniok@gmail.com
d6c7460aa9 Modified error handling, fixed disconnect detect bug in gtk ide 2014-10-27 15:56:12 -06:00
shimniok@gmail.com
0f9c7be631 renaming gtk ide back to openmv-ide.py for now 2014-10-27 15:09:31 -06:00
shimniok@gmail.com
266a86ba6a Modified detector to include disconnect as well as connect events 2014-10-27 15:02:58 -06:00
shimniok@gmail.com
609d76a511 Modified framebuffer error handling 2014-10-27 15:01:47 -06:00
shimniok@gmail.com
6f47d67961 Fixed bug with image processing; modified error handling 2014-10-27 15:01:34 -06:00
shimniok@gmail.com
de5240bb3b Modified terminal error handling 2014-10-27 15:01:03 -06:00
shimniok@gmail.com
588eba99f9 Removed commented out old fb_dump() code 2014-10-27 11:45:18 -06:00
shimniok@gmail.com
22820c3a39 Added PyQt4 IDE, renamed original ide to gtk-ide.py, added softlink (for now). Modified openmv.py to accommmodate new ide, modified gtk-ide.py to accommodate changes to openmv.py 2014-10-27 11:29:37 -06:00
shimniok@gmail.com
3d8087fd19 Added PyQt4 IDE, renamed original ide to gtk-ide.py, added softlink (for now). Modified openmv.py to accommmodate new ide, modified gtk-ide.py to accommodate changes to openmv.py 2014-10-27 11:29:02 -06:00
iabdalkader
ef9bf26981 Add Eye Detector 2014-10-25 15:33:02 +02:00
iabdalkader
c15fc85786 Decode byte string for Python3 2014-10-22 17:03:45 +02:00
iabdalkader
356fbaf904 Remove numpy dependency 2014-10-22 09:05:24 +02:00
iabdalkader
b21223a342 Update blit example 2014-10-21 16:32:52 +02:00
iabdalkader
b40f537a70 Move np reshape to openmv.py 2014-10-19 17:52:12 +02:00
iabdalkader
b44fb48c7f Create default config from IDE 2014-10-16 07:13:59 +02:00
Dave Hylands
87a5ce1df5 python-vte is needed (at least for ubuntu 14.04) for openmv-ide.py 2014-10-15 12:00:22 -07:00
iabdalkader
38d9cd951a Check the max number of stages 2014-10-15 10:01:07 +02:00