Commit Graph

1876 Commits

Author SHA1 Message Date
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
Kwabena W. Agyeman
c2c92c9f41 No requirement to size FB anymore. 2017-06-24 12:43:23 -04:00
Kwabena W. Agyeman
a02c2bad6c Fix main FB and JPEG FB size and pixels code. 2017-06-24 12:42:02 -04:00
Kwabena W. Agyeman
fffa3a691a Add function to get image size in bytes given the format. 2017-06-24 12:27:23 -04:00
iabdalkader
851b5306a7 Add IMAGE_BPP_BAYER. 2017-06-19 01:50:02 +02:00
iabdalkader
d0b45e3cd4 Fix HoG script. 2017-06-19 01:33:40 +02:00
Ibrahim Abd Elkader
ec8e186432 Merge pull request #245 from kwagyeman/master
Improve image load.
2017-06-19 01:04:19 +02:00
Kwabena W. Agyeman
87d53385a6 Improve image load.
It now copies to the frame buffer and will error out if loading an image
that is too large.
2017-06-18 13:57:34 -04:00
iabdalkader
32211bcd44 Remove test draw keypoints.
* Draw keypoints called with the wrong args.
2017-06-16 23:58:35 +02:00
Ibrahim Abd Elkader
3082632b00 Merge pull request #244 from kwagyeman/master
Add corners to code objects
2017-06-16 16:13:11 +02:00
Kwabena W. Agyeman
968574b1a5 Add corners to code objects. 2017-06-16 01:56:33 -04:00
Ibrahim Abd Elkader
9e1b778040 Merge pull request #243 from kwagyeman/master
Improve stream file format.
2017-06-12 19:45:13 +02:00
Kwabena W. Agyeman
cfe7881dff Improve stream file format.
All chunks are multiples of 16 bytes. Don't want to run into issues with
long alignment now or in the future.
2017-06-12 01:43:57 -04:00
Ibrahim Abd Elkader
909382b416 Merge pull request #242 from kwagyeman/master
Add Image Writer/Reader
2017-06-12 00:52:12 +02:00