Commit Graph

1889 Commits

Author SHA1 Message Date
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
Ibrahim Abd Elkader
26a74b7c72 Merge pull request #258 from kwagyeman/lsd
Fixed issues with polar math code.
2017-08-07 14:47:29 +02:00
Kwabena W. Agyeman
ae1e00cc2d Fix to match script 2017-08-07 03:47:25 -04:00
Kwabena W. Agyeman
3caed9461f Fix find_circles 2017-08-07 03:46:08 -04:00
Kwabena W. Agyeman
d284407898 Fixed issues with polar math code. 2017-08-07 01:40:04 -04:00
iabdalkader
1f027358c5 Add Servo shield. 2017-07-29 21:34:55 +02:00
iabdalkader
5c469e1e27 Update docs. 2017-07-28 13:59:52 +02:00
iabdalkader
9f658e4cfd Enable Servo 3.
* Fix issue #256.
2017-07-18 22:00:12 +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
Ibrahim Abd Elkader
2ff27b169b Merge pull request #255 from kwagyeman/master
Add find_rects() using AprilTag's quad detector.
2017-07-13 18:44:09 +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
aa2bd8a4e2 Add array insertion sort. 2017-07-11 23:48:49 +02:00
iabdalkader
4d409d57f3 Update Haar unit test. 2017-07-11 23:47:55 +02:00
iabdalkader
ef3b058842 Minor fix to Haar loading from path.
* Won't need slash anymore.
2017-07-11 23:47:19 +02:00
iabdalkader
ef38b68aa2 Move GC collect after loading unit test function. 2017-07-11 23:45:02 +02:00
iabdalkader
652ae88a65 Use ff_wrapper to load Haar cascades.
* Fixes unaligned reads warnings.
2017-07-11 23:37:24 +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
Ibrahim Abd Elkader
04f8918cec Merge pull request #254 from normen/master
Support for new Haar XML format
2017-07-11 02:52:35 +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
9f1151cf03 Removing .DS_Store file 2017-07-10 06:58:35 +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
iabdalkader
109e403f7a Fix ORB sorting.
* Using pointers to make the sort stable doesn't work. Each keypoint is allocated individually.
2017-07-08 03:56:25 +02:00
iabdalkader
37b2fc0b31 Make ORB keypoints sort function stable. 2017-07-07 04:13:57 +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
iabdalkader
1fea5ac78c Fix ORB bug.
* Clear matched flag when loading descriptor.
2017-07-06 21:41:02 +02:00
Ibrahim Abd Elkader
9a4754d873 Merge pull request #251 from kwagyeman/master
Improve find lines merging.
2017-07-05 00:36:20 +02:00
Kwabena W. Agyeman
089577173c Improve find lines merging. 2017-07-04 18:23:26 -04:00
Ibrahim Abd Elkader
c15d58d8c5 Merge pull request #250 from kwagyeman/master
Fix memory leak with get_regression.
2017-07-04 20:52:17 +02:00
Kwabena W. Agyeman
1ed867e39f Fix memory leak with get_regression. 2017-07-04 14:21:11 -04:00
Ibrahim Abd Elkader
c83ae21c63 Merge pull request #249 from kwagyeman/master
Add find circles.
2017-07-04 20:16:59 +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
2c05e20922 Merge pull request #248 from kwagyeman/master
Fixed blob issues.
2017-07-03 20:13:10 +02:00
Kwabena W. Agyeman
48f1e0bada Fixed blob issues.
* Angle averaging done correctly using sin/cos now.
* Unspecfied color bounds default to least restrictive instead of most
restrictive.
2017-07-03 13:05:57 -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
99ec972ad0 Rename main_fb_image_size to fb_buffer_size(). 2017-06-24 23:29:41 +02:00
iabdalkader
062f86c60a Remove *_FB_SIZE macros. 2017-06-24 23:03:09 +02:00
iabdalkader
bfe1f02ffa Remove 4 bytes from FB_SIZE macros. 2017-06-24 22:58:37 +02:00
Ibrahim Abd Elkader
c0967d1c5e Merge pull request #246 from kwagyeman/master
Cleanup framebuffer code
2017-06-24 22:56:39 +02:00