Commit Graph

243 Commits

Author SHA1 Message Date
iabdalkader
2cbf6f08de Update WiFi scan script 2016-04-05 22:36:03 +02:00
iabdalkader
ea63340282 Add WINC1500 fw update script. 2016-04-05 22:35:38 +02:00
Kwabena W. Agyeman
0abd5d3688 Working on scripts...
Moved feature detection scripts into their own folders and added explict
frame_skip value per Ibrahim's request.

Finished working on snapshot and video recording scripts for next
release.

... From CMUcam4 work I learned that people will just want examples that
do "X" thing. So, in general, our examples should include a simple
script showing off a feature and then a more complex script that does "X"
where "X" is some app that a person would want. For example, we'll get
reuqests for face tracking with servos, and movement detection with
servos. So, instead of answering this question a million times with an
example script we'll just have examples for all kinds of things people
will want.

Gotta automate dealing with help support at the end of the day...
2016-04-02 11:18:20 -04:00
iabdalkader
fab730aeeb Update MJPEG streaming examples. 2016-03-31 22:36:41 +02:00
Kwabena W. Agyeman
94bc225542 Moved examples arround.
Tried to emulate Arduino's 11 folders... I'd perfer to have all the
shield scripts in one folder... but, that might not make sense. I don't
really want one script per folder however. So, I might merge some more
stuff in the future. I have a grand idea here that will become evident as
I work though the examples.

Anyway, the current structure is not final. It will be in flux for a
little while.

As for Git History, folder history is the best we're going to get. Git
and GitHub don't seem to deal with moves too well.
2016-03-30 21:30:11 -04:00
iabdalkader
20dcb16e9f Add NTP example. 2016-03-31 02:47:12 +02:00
iabdalkader
4d21a0b732 Add tcp_client and DNS examples. 2016-03-31 01:07:40 +02:00
iabdalkader
bd7eed6b54 Move Python scripts to separate directories. 2016-03-28 23:19:09 +02:00
Kwabena W. Agyeman
a6c2efcebe Renamed Display to Draw
And fixed type in blend. Per Ibrahim's suggestion.
2016-03-26 10:26:19 -04:00
iabdalkader
b2e77e9dce Add wifi scan and connect examples. 2016-03-26 01:55:16 +02:00
iabdalkader
7109748146 Update FIR Python examples. 2016-03-25 14:03:56 +02:00
Kwabena W. Agyeman
a74dd50eaf Improved IR code.
Return min and max from read_ir now. Also, made drawing functions take
IR values.

Example scripts have been updated to work with the new module code.
2016-03-24 19:52:00 -04:00
Kwabena W. Agyeman
2ef24cec0f Add BLE Driver
This a python module driver for the BLE module. It puts the module into
a mode that's good for machine interfacing and handles parsing commands
for you. Additionally, it lets you get access to the low level serial
port.

Users who want to use this driver will need to read and understand the
TruConnect API for what commands they can execute. This driver simply
makes executing commands easy. The user simply needs to call the
"command()" function with the strings listed on the TruConnect API and
they will get the response from the command back as a byte object.

Once the user has executed the nessary commands to setup the BLE
connection they can then do:

ble.command("str")

To put the BLE module into streaming mode and then they can just
directly access the serial port via:

ble.uart().write(<data>)

And etc.
2016-03-20 12:58:32 -04:00
Kwabena W. Agyeman
94910c8ed7 Move LCD code into module. It's now ultra fast, safe and friendly. I
tested everything too and added an example script (very simple).
2016-03-17 20:01:03 -04:00
iabdalkader
819027f525 Use pin aliases in scripts. 2016-03-15 00:15:32 +02:00
Kwabena W. Agyeman
66248c444b Update Gif to use fb_alloc_all.
And tested it along with mjpeg to make sure all this stuff is good. I
also see the issue with QQVGA now. That just appeared.
2016-03-05 22:29:21 -05:00
Kwabena W. Agyeman
5316b26d83 Added a new mjpeg module for Mjpeg support.
The built-in mjpeg module allows you to record videos seamlessly. It
will automatically compress the frame buffer using the extra space in the
main ram. So... you don't have to pass it jpeg images. Gets 7 FPS at
320x240 while connected to the computer too (it has to compress the
frame twice in this situation).

Anyway, the module work like Gif.
2016-03-05 20:03:48 -05:00
Kwabena W. Agyeman
9325029675 Add support for color gif.
Color gifs look very good for how bad you'd expect them to be with just
7 bits of color (rgb232) - quite amazing. Also, I  hardened the gif
module to make it "user ready".
2016-03-04 23:30:01 -05:00
Kwabena W. Agyeman
98f4dde21f Add new morph function.
The morph function lets you convolve the image with a kernel. It's
decently fast right now. But, in the future we'll have to optimize it by
a lot (unrolling loops, using SIMD instructions, etc.).

Anyway, along with morph I added an edge detection test script showing
how you can use a high pass filter on an image to get all the edges in
it. This is not as good as canny edge dection... but, it's about the
same and fast enough.

We'll need a Hough Transform system in the future to make edge dection
useful. Not sure how that will be implemented... so, that's going to be
far away for now.
2016-02-29 18:04:45 -05:00
iabdalkader
052d64e79c Set frame size to QQVGA in gif script. 2016-02-28 21:37:23 +02:00
iabdalkader
2e7ded5dd4 Add GIF module 2016-02-28 21:34:47 +02:00
iabdalkader
b40c07c75d Add BLE example. 2016-02-28 04:12:56 +02:00
iabdalkader
0aed3f4961 Add image filters example. 2016-02-28 04:07:28 +02:00
iabdalkader
c050509b9d Update descriptor scripts.
* Use the new match_descriptor.
* Add commented line that loads descriptor from file
2016-02-28 03:56:02 +02:00
iabdalkader
08f7cb8832 Add LBP descriptor example script 2016-02-28 03:51:57 +02:00
Kwabena W. Agyeman
4ed49082a1 Background Subtraction is working!!!
Woot, all the effort to make it so you can manipulate the image buffer
with an image off disk works!

Try out the motion_detection script.
2016-02-27 11:58:37 -05:00
iabdalkader
8b87656241 Update kpts script.
* Draw FPS on framebuffer
2016-02-26 23:14:32 +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
b01adfee26 Fixed up drawing code and scripts along with drawing code.
Set pixel works too now.
2016-02-19 22:55:50 -05:00
iabdalkader
19450b8810 Update Python examples 2016-02-19 18:03:20 +02: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
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
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
d031ea87f1 Implement set_pixel 2015-08-20 16:25:37 +02:00
iabdalkader
161b2d6a43 Increase keypoints threshold 2015-08-15 16:46:31 +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
9d51051ba8 Return FR_NO_FILE if built-in cascade not found 2015-07-09 04:38:07 +02:00
iabdalkader
b8273fec98 Update examples 2015-05-05 14:07:05 +03:00
iabdalkader
62a213522d Remove old test script 2015-02-08 10:42:28 +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
ef9bf26981 Add Eye Detector 2014-10-25 15:33:02 +02:00
iabdalkader
b21223a342 Update blit example 2014-10-21 16:32:52 +02:00
iabdalkader
3264e71ae9 Use str to convert received buffer 2014-10-10 04:12:14 +02:00
iabdalkader
175fbf5e20 Fix face tracking example
* continue if no kpts were found
2014-10-02 15:55:02 +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
f3d2efd707 Fix Keypoints example 2014-09-24 22:27:16 +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
b5d6de47ee Update FB Viewer 2014-09-20 02:31:14 +02:00
iabdalkader
4944ada3aa Remove old example 2014-09-19 01:44:03 +02: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
ee2ba469d8 Update examples 2014-09-01 16:56:43 +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
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
98a086effe Update Python examples 2014-06-19 23:21:59 +02:00
iabdalkader
2142219e20 Update write image example 2014-06-18 21:22:12 +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
10ad732e41 Update FB viewer example 2014-04-10 15:45:04 +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
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
3ed30c4411 Add LCD example 2014-03-07 20:43:54 +02:00
iabdalkader
ab05fb6213 Update blob detection example 2014-03-02 01:47:20 +02:00
iabdalkader
c5ee4bc08a Add Python Examples 2014-02-21 23:06:36 +02:00