Ibrahim Abd Elkader
0cf13e8777
Merge pull request #263 from kwagyeman/lsd
...
Lsd
2017-09-13 18:09:50 +02:00
Kwabena W. Agyeman
5a3153c8b9
Find line segments more stable
...
Switched the find line segments algorithm to something more stable using
the standard LSD algorithm that's used by OpenCV.
2017-09-13 00:33:31 -04:00
Kwabena W. Agyeman
7dff089e6f
Removed QRCodes from the OpenMV Cam M4.
...
They don't really work that well on it anyway due to having to use a low
res. This makes room for more basic CV features on the M4 which it can
run.
2017-09-03 14:39:14 -04:00
Christoph Schmidt-Hieber
0c697c4c90
Update to latest openmv API
...
Make this script work as a standalone program, and update to latest openmv API
2017-08-23 12:19:01 +02:00
iabdalkader
b65bd2cb87
Add template and eye unit-tests.
2017-08-10 16:02:19 +02:00
iabdalkader
246a39d2c5
Add find_codes unit-tests.
2017-08-09 00:31:05 +02:00
iabdalkader
b79daef5d7
Add missing image for unit-tests.
2017-08-08 00:28:44 +02:00
iabdalkader
798ef73154
Move unit-tests.
2017-08-08 00:23:47 +02:00
iabdalkader
8557d55745
Update unit-tests script.
2017-08-08 00:22:12 +02:00
iabdalkader
3a7bb9487c
Add more unit-tests.
2017-08-08 00:18:05 +02:00
iabdalkader
b8eca48d13
Add find_blobs unit-test.
2017-07-16 20:21:28 +02:00
iabdalkader
9cc6e9616f
Add get_histogram unit-test.
2017-07-16 20:01:50 +02:00
Kwabena W. Agyeman
a4e556e7e3
Add find_rects() using AprilTag's quad detector.
...
It's awesome.
2017-07-13 01:25:23 -04:00
iabdalkader
d7bbf3a5d9
Add cat face Haar cascade.
2017-07-11 23:49:27 +02:00
iabdalkader
4d409d57f3
Update Haar unit test.
2017-07-11 23:47:55 +02:00
iabdalkader
ef38b68aa2
Move GC collect after loading unit test function.
2017-07-11 23:45:02 +02:00
iabdalkader
db62c80765
Add unit tests.
2017-07-11 23:10:16 +02:00
iabdalkader
200ffeed58
Add LeNet!
2017-07-11 04:10:40 +02:00
normen
9d5c16f2d8
Remove unnecessary loops in Haar importer
...
- Loops were added due to sleep deprivation :)
- Rename "threshold" variable to something more appropriate
2017-07-11 01:52:31 +02:00
normen
3d7283b1ee
Remove debug output for Haar importer
2017-07-10 07:16:58 +02:00
normen
6266ef139f
Fix Haar cascade importer for new XML format - working!
2017-07-10 06:48:26 +02:00
normen
93c1a4860c
Improve new XML Haar format support
...
- Add support for both old and new format to importer
- Header generation still missing for new format!
- Still issues with rect feature count in new format
2017-07-10 02:06:17 +02:00
normen
0002e899f8
Fix a few more issues with the Haar importer
...
- It imports and creates binary files that don't crash the cam
- No tracking yet
- Number of features from rects is different than number of features from weakClassifiers for some reason..
2017-07-10 01:41:08 +02:00
normen
c30f0616cb
Changes to make Haar importer work with new XML format
...
- Still seems to create buggy data, camera starts to blink blue/white after a while when trying to use the cascade, no tracking at all
- Only the actual conversion part has the changes, info and header not
- Few info on format, limited info here: http://answers.opencv.org/question/8418/explanation-of-cascadexml-in-a-haar-classifier/
2017-07-07 03:18:09 +02:00
Kwabena W. Agyeman
5f4e690fa1
Add find circles.
...
Now you can find circles with your OpenMV Cam! The alrogithm can eek out
about 7 FPS on a 160x120 image which is quite impressive given how
computationally expensive circle finding is...
2017-07-04 14:09:21 -04:00
Ibrahim Abd Elkader
1bbf18e11d
Merge pull request #247 from kwagyeman/master
...
Add linear regression
2017-06-29 18:28:52 +02:00
iabdalkader
d6b048a9af
Add servo shield example.
2017-06-29 16:17:21 +02:00
iabdalkader
97cbeeefe2
Move tests folder.
2017-06-29 16:04:32 +02:00
Kwabena W. Agyeman
cd4ad0dff3
Add linear regression
...
For easy line following mainly. In non-robust mode the line is computed
using least squares. In robust mode the line is computed using the
Theil-Sen median of slopes method. We do not use the Siegel Median of
Medians operation because it costs more CPU time... but, more
importantly there's no way to improve the centroid estimate so even if
the slope is more robust the line will be drawn in the wrong place.
2017-06-28 01:16:15 -04:00
iabdalkader
7d29104ed6
Add sensor.flush()
2017-06-25 16:48:17 +02:00
iabdalkader
d0b45e3cd4
Fix HoG script.
2017-06-19 01:33:40 +02:00
iabdalkader
32211bcd44
Remove test draw keypoints.
...
* Draw keypoints called with the wrong args.
2017-06-16 23:58:35 +02:00
Kwabena W. Agyeman
dc6ab59cfd
Add Image Writer/Reader
...
These two new classes allow you to record image data for later viewing
at the same speed the image data was recorded. Unlike GIF/MJPEG the
image data is stored on the file system completely uncompressed in
native frame buffer format making super fast reading and writing
possible. Recording VGA Grayscale at ~13 FPS is possible along with
playing it back. (That's about 30 Mb/s folks).
...
The motivation for writing these scripts is so that you can record video
of something like a line following track, take that video home, and work
on computer vision algorithms for that data.
These classes should make it a lot easier to use the camera at home now.
2017-06-11 15:53:43 -04:00
iabdalkader
8cc740f989
Add RTC example.
2017-06-07 23:00:23 +02:00
Kwabena W. Agyeman
a039b5d1c7
Change skip_frames() to use a 2 second timeout.
...
This was necessary due to the increase in the frame rate. The previous
method did not correlate to time.
All scripts updated.
2017-05-27 19:31:41 -04:00
Kwabena W. Agyeman
e9e48d5028
Update QRCode
...
Fixed issues with QRCode method in response to user reqeust on the
forums: http://forums.openmv.io/viewtopic.php ?
f=6&t=286&p=1799&hilit=qrcode#p1799.
2017-05-27 16:21:10 -04:00
Seth T
e040b8e87c
Simplify finding largest_blob
2017-05-23 11:56:53 -04:00
Seth T
7b62d97cbb
Clarify numeric literals are not in octal
2017-05-23 11:54:07 -04:00
Seth T
b7edb589b1
Typo
2017-05-23 11:53:29 -04:00
iabdalkader
05f5d07e99
Update keypoints example script.
2017-05-22 19:48:49 +02:00
Kwabena W. Agyeman
f4a9c61544
Add find_line_segments
...
The OpenMV Cam can now infinite lines and line segments from those
infinite lines. find_lines has been updated to allow all this to work.
2017-05-10 21:40:22 -04:00
Kwabena W. Agyeman
31b7b5bf3e
Improved find_lines
...
Frame rate now can hit 30 FPS when JPEG compression is off. Merging of
lines is perfected too which greatly reduces the noise output. Also,
lines are now objects so you can get their values in an easy way.
2017-05-06 14:31:20 -04:00
Kwabena W. Agyeman
690ec923ae
Add data matrix support.
...
Add support for decoding data matrices and example scripts.
2017-04-28 19:58:19 -04:00
Kwabena W. Agyeman
bfd048e6f3
Integrate ZBar 2/2
...
ZBar functionality integrated along with an example script.
2017-03-24 12:45:27 -04:00
Kwabena W. Agyeman
c6009ae05d
Fixed apriltags z translation.
2017-03-21 21:01:52 -04:00
Kwabena W. Agyeman
aa5047cc7b
Fix uart receiving code
2017-03-21 20:28:20 -04:00
Kwabena W. Agyeman
df17088d32
Add MAVLink scripts for quadcopters
2017-03-21 16:30:16 -04:00
Kwabena W. Agyeman
06f41880a7
Add pixy emulation scripts
2017-03-10 19:24:33 -05:00
iabdalkader
943f19ae5d
Add MJPEG AP mode example script.
2017-03-09 20:54:36 +02:00
iabdalkader
7b1fa85880
Update MJPEG script.
2017-03-09 20:54:09 +02:00
iabdalkader
ee0e9822b7
Update keypoints scripts.
2017-03-07 19:45:48 +02:00
iabdalkader
c3a75a515b
Update face detection script.
2017-02-28 17:47:07 +02:00
iabdalkader
15fc16c916
Update face tracking script.
2017-02-28 17:45:48 +02:00
Kwabena W. Agyeman
cd07c0d5fa
AprilTags Fixes
...
* Made all memory allocations during the exhaustive time safe.
* Added 3D pose output from the AprilTags code.
2017-02-14 18:36:52 -05:00
Kwabena W. Agyeman
b22aadc21f
QR Code Bug Fixes
...
Fixed typo in qrcode script. Moved scripts to new folder. Fixed roi
offset for qrcodes. Use fast functions in qrcode library.
2017-02-10 15:14:29 -05:00
Kwabena W. Agyeman
71e795812f
April Tag Release Fixes
...
Everything works. Running out of memory is fixed and the rotation value
is valid now. For 320x240 operation on the STM32H7 we're going to need
on the order of 1 MB in the entire frame buffer. The code is designed to
handle us getting this amount of memory without any new changes for
320x240 support.
2017-02-10 13:42:35 -05:00
Kwabena W. Agyeman
443ba3bff8
AprilTags Support
...
Works super good.
2017-02-09 17:37:18 -05:00
Kwabena W. Agyeman
f1ddeb1011
Make how to use these scripts more obvious.
...
Added a box to put the object to track in.
2017-01-15 22:26:27 -05:00
Ibrahim Abd Elkader
f7e04a450b
Merge pull request #177 from kwagyeman/update_lens_corr
...
Speed up lens_corr.
2017-01-16 04:43:56 +02:00
Kwabena W. Agyeman
d6b49adefa
Speed up lens_corr.
...
Speed up the algorithm by fixing the abs() issue. Do not use that
function in any of your code. It by itself cut the speed of the code
in half. I don't know what's in that function but I'm guessing it does
ABS of a float using ints or something.
I made the zoom parameter functional now too so you can use lens_corr to
zoom in on the image. Argument parsing is handled too. Finally, I
updated the only script where this is used.
Note that I'm able to get more than 10 FPS at 160x120 on the M4 and 15
FPS at 160x120 on the M7. Previous this was at about 5 FPS and 7.5 FPS
respectively.
2017-01-15 21:32:55 -05:00
Kwabena W. Agyeman
ed3f226478
Tested stats with examples and fixed bugs
...
The automatic grayscale and rgb565 color tracking scripts are very cool.
2017-01-15 14:59:42 -05:00
iabdalkader
e650adb53a
Update keypoints.py script.
2017-01-15 18:43:14 +02:00
Ibrahim Abd Elkader
f1f2fb03d6
Merge pull request #175 from kwagyeman/arduino_interface
...
Arduino Interfacing Code
2017-01-15 03:56:59 +02:00
Kwabena W. Agyeman
870985178a
Arduino Interfacing Code
...
Simple SPI and I2C examples.
2017-01-14 20:32:32 -05:00
Ibrahim Abd Elkader
25005eb80e
Merge pull request #174 from kwagyeman/color_tracking
...
Update color tracking scripts.
2017-01-14 18:29:26 +02:00
Kwabena W. Agyeman
19050ee7a5
Update color tracking scripts.
...
Lots of scripts now. Cleaned up old code.
2017-01-14 11:17:07 -05:00
iabdalkader
be300ff6ed
Update scripts that use descriptor functions.
2017-01-14 01:23:23 +02:00
Kwabena W. Agyeman
0e89b655bf
Made set_windowing simpilier.
...
Tested with updated qr code example script.
2017-01-12 17:41:40 -05:00
iabdalkader
58ef87cd85
ORB: Change default threshold to 85 and min match to 5.
2017-01-10 04:11:41 +02:00
iabdalkader
ba2e15a354
Update face tracking example
2017-01-09 01:40:32 +02:00
iabdalkader
f884fe2072
Add ORB keypoints example scripts.
2017-01-09 01:29:37 +02:00
iabdalkader
96e4f770c0
Use scale_factor instead of scale in find_features
...
* Updated all scripts.
2017-01-08 18:23:25 +02:00
iabdalkader
78cebd16e1
Update scripts using auto functions control.
2016-12-29 03:54:22 +02:00
Kwabena W. Agyeman
fbc58cf137
Updated QR Code Library with upstream changes and fixed up scripts for
...
demo.
2016-12-28 10:57:31 -05:00
Kwabena W. Agyeman
af15ec6eb3
New Blob Code
...
The new API is backwards compatible with the previous one except for
advanced features. The new blob code uses a flood fill algorithm that is
3x faster in filling out blobs that the previous code. On the M7 the
performance cap of 30 FPS is usually reached.
Additionally, blobs are objects with named attributes now so you don't
have to index access them anymore. However, index access is still
supported.
2016-12-27 19:10:24 -05:00
Kwabena W. Agyeman
6a8ce01e79
Add QRCode detection.
...
Use the qrcodes script and point your OpenMV Cam at google search
results for QR Codes.
2016-12-27 15:30:35 -05:00
iabdalkader
a800673f87
Update selftest script.
2016-12-22 01:24:27 +02:00
iabdalkader
cee80158c3
Update copy2fb example
2016-12-14 18:50:04 +02:00
iabdalkader
993ad7c2b4
Update helloworld comments.
2016-12-02 01:13:58 +02:00
iabdalkader
e8dcb2863d
Update MJPEG streamer example.
2016-11-19 23:31:24 +02:00
iabdalkader
b421022ef9
Bump firmware version.
2016-11-04 00:17:18 +02:00
iabdalkader
ddc61b4946
Update release tag name.
2016-11-04 00:14:47 +02:00
iabdalkader
ef6e6303c7
Add HoG.
2016-10-10 17:22:04 +02:00
iabdalkader
926be29c43
Bump firmware version.
2016-09-20 01:17:53 +02:00
iabdalkader
d711cd1f78
Update release tag name.
2016-09-20 01:11:29 +02:00
iabdalkader
41d5171b95
Update find lines script.
2016-09-20 00:20:38 +02:00
iabdalkader
2d88e660a7
Update face detector's default thresholds.
2016-09-14 23:15:59 +02:00
iabdalkader
e81f228796
Add simple edge function.
2016-09-14 20:54:53 +02:00
iabdalkader
e104be63df
Implement Canny edge detector.
2016-09-13 02:37:43 +02:00
iabdalkader
3a05589a6b
Add Hough Transform example script.
2016-09-12 22:17:20 +02:00
iabdalkader
63d57d2f9f
Add facerec example
2016-09-08 03:12:37 +02:00
iabdalkader
21920eaa06
Bump firmware version.
2016-08-31 02:45:06 +02:00
iabdalkader
7d7bbc54ac
Update IDE release tag name
2016-08-31 02:06:18 +02:00
iabdalkader
2bcb70a653
Fix default FB state.
2016-08-30 01:04:00 +02:00
iabdalkader
ad585caccb
Update mjpeg streaming example.
2016-08-30 00:58:02 +02:00
iabdalkader
027d548300
Add FPS test script.
2016-08-27 20:45:14 +02:00
iabdalkader
014847da5d
Bump firmware version.
2016-08-25 19:26:20 +02:00
iabdalkader
602ba5d670
Update IDE tag name.
2016-08-25 19:14:49 +02:00
iabdalkader
124cef21de
Update colorbars test.
2016-08-23 22:35:50 +02:00
iabdalkader
56438bc079
Add cpufreq module.
...
* Add CPU frequency scaling module and example script.
2016-08-17 19:42:05 +02:00