Commit Graph

369 Commits

Author SHA1 Message Date
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
iabdalkader
d6f527e87f Catch exception when opening invalid file. 2014-10-14 20:01:01 +02:00
Dave Hylands
bdf8b7bde8 Rework pydfu.py to support .dfu files.
You can now use ./pydfu.py -l to list available DFU devices.
You can now use ./pydfu.py -u firmware.dfu to program .dfu files.
Made --mass-storage be an option, and it now erases pages as needed
by default rather than erasing everything.

I didn't maintain support for raw binary files, but that would be
easy to add back if needed.

The file is now mostly pep8 and pylint clean.
2014-10-12 13:30:22 -07:00
iabdalkader
3264e71ae9 Use str to convert received buffer 2014-10-10 04:12:14 +02:00
iabdalkader
e6fe67c7b5 Keep track of last uploaded binary 2014-10-05 03:10:55 +02:00
iabdalkader
70c251761f Add recent files menu 2014-10-05 03:06:26 +02:00
iabdalkader
77aef90607 Clear firmware update dialog before running 2014-10-05 02:10:24 +02:00
iabdalkader
30f586fe4a Hide Firmware update dialog on exit 2014-10-05 02:06:53 +02:00
iabdalkader
1ee8b4170c Remove old DFU cmd and fw path 2014-10-05 02:00:34 +02:00
iabdalkader
a1699f5f3b Use configparser to store/load configuration 2014-10-05 01:59:08 +02:00
iabdalkader
1706cbdb83 Fix print calls 2014-10-05 01:53:07 +02:00
iabdalkader
619bc14fa1 Fix exit_dfu 2014-10-03 03:51:48 +02:00
iabdalkader
4bb1d3fc3f Use built-in Python DFU-util 2014-10-03 03:33:00 +02:00
iabdalkader
0573d0726d Add Python DFU Util 2014-10-03 03:32:20 +02:00
iabdalkader
175fbf5e20 Fix face tracking example
* continue if no kpts were found
2014-10-02 15:55:02 +02:00
iabdalkader
7243e808e9 Add user scripts dir 2014-10-02 01:42:55 +02:00
iabdalkader
6fd70bb734 Update example 2014-10-01 02:03:55 +02:00
iabdalkader
90309715c9 Pass RGB to image_threshold and convert to LAB 2014-09-28 16:40:06 +02:00
iabdalkader
58ea8be932 Merge branch 'fwupdate' 2014-09-27 21:28:08 +02:00
iabdalkader
a819be7b80 Add Firmware Update from IDE 2014-09-27 21:16:47 +02:00
iabdalkader
6fd18847ed Add exit DFU 2014-09-27 18:58:23 +02:00
iabdalkader
f726e6b56b Sort examples 2014-09-27 12:27:18 +02:00
shimniok@gmail.com
9618f383ea Implemented DFU bootloader widget in UI, enabled handler, wrote handler to call bootloader in openmv. 2014-09-26 11:39:13 -06:00
shimniok@gmail.com
ea6abcff77 added functionality to send USBDBG_BOOT to force camera into bootloader 2014-09-26 11:16:09 -06:00
iabdalkader
858c23b922 Update window title to show connected status 2014-09-25 19:47:35 +02:00
iabdalkader
d84985b5ef Add scripts dir
* Use for open/save user scripts
2014-09-25 19:32:11 +02:00
iabdalkader
a347081ee4 More cleanups
* Move control buttons to list
2014-09-25 19:23:54 +02:00
iabdalkader
b9b1eee93e Cleanup open/new/save/save_as 2014-09-25 19:12:59 +02:00
iabdalkader
7a1628480c Disable save button after saving 2014-09-25 18:35:08 +02:00
iabdalkader
99a4595e13 Add Examples submenu
* File->Examples lists all examples in ide_path/examples
2014-09-25 18:21:36 +02:00
Michael Shimniok
5e95efdac5 Modified udev rules to symlink openmvcam for serial; modified openmv-ide.py to open openmvcam symlink 2014-09-25 03:32:36 -06:00
iabdalkader
8467c67f06 Add System Reset Command
* Add sys reset to USBDBG and IDE
2014-09-25 03:37:00 +02:00
iabdalkader
6c7ad99152 Catch exception in release
* Issue #10
2014-09-25 03:00:25 +02:00
iabdalkader
e69fa95c62 Add data directory 2014-09-25 02:43:00 +02:00
iabdalkader
ec6630ca28 Update for PIL use tostring 2014-09-25 02:29:05 +02:00
iabdalkader
d1c6f6451e Use frombuffer
* Issue #8
2014-09-25 01:58:31 +02:00
iabdalkader
f3d2efd707 Fix Keypoints example 2014-09-24 22:27:16 +02:00
iabdalkader
c3306f2d05 Handle no device attached
* Fix issue #9
2014-09-23 15:51:06 +02:00
iabdalkader
392e613d3d Make IDE Handle Disconnect/Connect Gracefully
* Fix issue #10
2014-09-23 15:40:51 +02:00
iabdalkader
528c53b952 Update examples 2014-09-20 08:59:02 +02:00
iabdalkader
a747566082 Add write_ppm example 2014-09-20 08:47:20 +02:00
iabdalkader
581753c1f5 Add Face Tracking Example 2014-09-20 05:30:26 +02:00
iabdalkader
a8146eaeba Disable FB swap 2014-09-20 03:38:26 +02:00
iabdalkader
b5d6de47ee Update FB Viewer 2014-09-20 02:31:14 +02:00
iabdalkader
0d5f8ef1b9 Fix IDE GUI freeze 2014-09-20 01:37:51 +02:00
iabdalkader
4944ada3aa Remove old example 2014-09-19 01:44:03 +02:00
shimniok@gmail.com
2582ae5c6e updated to current VID/PID 2014-09-18 15:32:42 -06:00
iabdalkader
09cf8d954e Update Examples 2014-09-17 22:25:41 +02:00
iabdalkader
156c349e43 Add JPEG Example 2014-09-17 22:19:07 +02:00
iabdalkader
95fcaffebc Fix AVI encoding, update example 2014-09-14 14:38:59 +02:00
iabdalkader
85f904c7f4 Add MLX example 2014-09-12 20:57:26 +02:00
iabdalkader
7bb8bef8a1 Add Update FB Command 2014-09-10 22:22:50 +02:00
iabdalkader
7be9f51eb7 Add Zoom In/Out 2014-09-10 19:11:46 +02:00
iabdalkader
6bc280a743 Update UI 2014-09-10 19:00:54 +02:00
iabdalkader
c70960d17e Add save descriptor from ROI 2014-09-10 18:59:34 +02:00
iabdalkader
41d531242a Fix big frame size 2014-09-04 01:03:38 +02:00
iabdalkader
5fdd6e09a3 Add font rendering 2014-09-01 23:43:06 +02:00
iabdalkader
ee2ba469d8 Update examples 2014-09-01 16:56:43 +02:00
iabdalkader
5a66fd714b Upate FB every 80ms 2014-09-01 16:37:11 +02:00
iabdalkader
25abc200f9 Add FAST/FREAK detector
* Remove SURF code and MP functions
* Add FAST/FREAK keypoint extractor/descriptor
* Add FAST/FREAK Python example
2014-08-27 17:34:58 +02:00
iabdalkader
374428e14e Add main.py example 2014-08-20 22:17:07 +02:00
iabdalkader
ef772ffc0a Move update callback to idle function 2014-08-20 21:19:07 +02:00
iabdalkader
7c55ea797e Add check for num_bytes 2014-08-20 21:17:58 +02:00
iabdalkader
12d062d1bc Enable GPIO and SPI
* Fix GPIO/SPI code
* Use buffers in SPI read/write
* Add pin qstrs OMV2
* remove old led files
* Update LCD user examples
2014-08-10 19:39:19 +02:00
iabdalkader
c3c283d1b8 Update echo server example 2014-07-14 04:14:44 +02:00
iabdalkader
78ad46dd34 Add set_quality for JPEG mode 2014-07-09 04:31:39 +02:00
iabdalkader
dbbe232caf Update examples 2014-07-05 03:49:41 +02:00
iabdalkader
e3e04743cd Add echo server and mjpeg streamer 2014-07-05 03:45:41 +02:00
iabdalkader
de521eae0f Add AVI/MJPEG module and example 2014-06-30 03:49:48 +02:00
iabdalkader
16a69c7b08 Use gobject.timeout_add to schedule redraw 2014-06-30 03:48:40 +02:00
iabdalkader
3bed5f4b6f Use /tmp for temp jpeg 2014-06-28 19:55:56 +02:00
iabdalkader
f15aaae0f7 Update OpenMV module/ide
* Update commands
* Minor UI fixes
* Set screen size in openmv-fb
2014-06-25 19:52:08 +02:00
iabdalkader
b5587adc65 Add sensor controls 2014-06-21 09:41:27 +02:00
iabdalkader
01505510e7 Add UI path 2014-06-20 15:29:24 +02:00
iabdalkader
98a086effe Update Python examples 2014-06-19 23:21:59 +02:00
iabdalkader
e8a44ae066 Update IDE
* Add save template
* Misc UI fixes
2014-06-19 23:12:32 +02:00
iabdalkader
2142219e20 Update write image example 2014-06-18 21:22:12 +02:00
iabdalkader
8603bb76f6 Update OpenMV Python lib 2014-06-18 17:13:08 +02:00
iabdalkader
72c13e47d7 Fix blob detection 2014-05-03 00:03:39 +02:00
iabdalkader
3c31c48d6b Add script to do combined tests 2014-05-02 22:59:46 +02:00
iabdalkader
e24da17ba3 Use INTERP_BILINEAR for scaling function 2014-05-02 22:07:08 +02:00
iabdalkader
a0adf6417a Scale IDE Image 2014-05-02 20:15:49 +02:00
iabdalkader
10ad732e41 Update FB viewer example 2014-04-10 15:45:04 +02:00
iabdalkader
32d52ec2d6 Remove C user code 2014-04-04 21:10:03 +02:00
iabdalkader
08a2e41167 Update Python examples 2014-04-04 21:08:33 +02:00
iabdalkader
c844da7bec Add ppm support 2014-04-02 02:12:46 +02:00
iabdalkader
df5808b27d Fix blob example 2014-03-22 19:45:03 +02:00
iabdalkader
264d06aa7b Set filename as window title 2014-03-22 19:44:33 +02:00
iabdalkader
775c34fecf Change capture format to png 2014-03-22 19:44:13 +02:00
iabdalkader
d13bd63dfe Fix lcd driver 2014-03-22 19:43:48 +02:00
iabdalkader
fa541c6ecd Add FPS counter 2014-03-22 19:42:36 +02:00
iabdalkader
03d99e2a1b Add SURF examples 2014-03-22 19:41:53 +02:00
iabdalkader
787fbc6e3b Update examples 2014-03-19 01:44:47 +02:00
iabdalkader
8cbf7eaeed Fix layout 2014-03-08 03:31:06 +02:00
iabdalkader
2adb1881bf Update IDE
* Add scroll windows
* Fix save as singal
2014-03-08 03:24:07 +02:00
iabdalkader
953624b3e1 Save/load last opened script 2014-03-07 23:57:25 +02:00
iabdalkader
0553daf50d Add file open/save/save as support 2014-03-07 22:11:49 +02:00
iabdalkader
3ed30c4411 Add LCD example 2014-03-07 20:43:54 +02:00
iabdalkader
bce35ca678 Add Python LCD driver 2014-03-07 20:40:38 +02:00
iabdalkader
ab05fb6213 Update blob detection example 2014-03-02 01:47:20 +02:00
iabdalkader
fa42d9c565 Print cascade info 2014-02-23 18:27:30 +02:00
iabdalkader
7891a89723 Use pendsv exception to interrupt running code 2014-02-23 03:37:46 +02:00
iabdalkader
dea39420c5 Update IDE UI
* Add color selection
* Fix framebuffer layout
2014-02-21 23:33:24 +02:00
iabdalkader
c5ee4bc08a Add Python Examples 2014-02-21 23:06:36 +02:00
iabdalkader
0256dbf01f Add color selection and fix layout
* Add color selection with mouse click
* Fix layout to center the framebuffer
2014-02-21 01:42:28 +02:00
iabdalkader
678abe2b4a Rename cascade.py 2014-02-14 16:01:41 +02:00
iabdalkader
ed512f29fb Rename cascade-bin 2014-02-14 15:59:33 +02:00
iabdalkader
99eb37e7f9 Read cascade size from file 2014-02-14 15:41:27 +02:00
iabdalkader
0eb1575229 Add support for running scripts from cmd 2014-02-13 23:02:10 +02:00
iabdalkader
3f4bd4b82a Read cascade size from file 2014-02-13 21:10:32 +02:00
iabdalkader
d42f30a184 Add OpenCV cascade converter 2014-02-13 20:41:53 +02:00
iabdalkader
ab87906cac Update userspace apps
* Move rgb conversion to openmv module
* Add frame size function to openmv module
* Use new USBDBG commands
2014-02-13 02:16:24 +02:00
iabdalkader
4c2545fddf Update example script 2014-02-11 01:48:54 +02:00
iabdalkader
94562bfae9 Fix USB ctrl transfer number 2014-02-10 03:16:04 +02:00
iabdalkader
5ea84e8c20 Move openmv code to separate python module
* Add openmv module which has USB debug functions
* Update IDE and FB viewer to use openmv module
2014-02-10 03:14:14 +02:00
iabdalkader
ea20c64dbd Fix C FB viewer
* Check if kernel driver is attached before detaching
2014-02-09 22:25:10 +02:00
iabdalkader
c115d5f4a3 Add FPS to framebuffer viewer 2014-02-09 22:24:18 +02:00
iabdalkader
5408de85a4 Add FB viewer 2014-02-08 23:49:50 +02:00
iabdalkader
4b9c759c5d Update IDE
* Use control transfer to exec script
2014-02-08 23:13:50 +02:00
iabdalkader
aa67b5b2b4 Add OpenMV Python IDE 2014-02-06 20:41:04 +02:00
iabdalkader
5fd0435199 Update userspace app for the new debug interface 2014-02-05 14:19:06 +02:00
iabdalkader
93a551e0c5 Change userspace code to use varargs
Change userspace tool to use var args when sending a command to the
camera.
2013-12-13 19:03:55 +02:00
iabdalkader
409d682f6e Fix userspace code to work with the new HAL
Fix libusb userspace code to work with the new HAL,
use new header, commands and sensor struct.
2013-12-13 03:01:29 +02:00
iabdalkader
0d8c75e0b4 Added the new hardware revision
Added missing DSP library
Fixed SysTick timer IRQ priority
userspace fixes
2013-12-06 03:40:57 +02:00
iabdalkader
5a259bbcf1 Fixed linker script to load haar cascade into CCM
Fixed issue with SCCB delay and optimization
Recompiled all libraries with optimization enabled (-O2)
Some more tweaks to the Sensor's registers
Added function to load CCM data into .ccm section in runtime
2013-12-02 22:17:45 +02:00
iabdalkader
b0c4f8e844 Added USB OTG FS support
Added userspace libusb driver
Fixed some registers now QCIF/QQCIF resoultions are working
Updated CMSIS and STM32F4xx standard peripheral libraries
2013-11-30 04:23:22 +02:00