imagecore 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/imagecore/analyze_image.cxx +3 -0
- data/lib/imagecore/version.rb +1 -1
- metadata +3 -3
@@ -30,6 +30,9 @@ bool image_core_analyze_image(const char *filename, int thresh,
|
|
30
30
|
findContours(threshold_output, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE,
|
31
31
|
Point(0, 0));
|
32
32
|
|
33
|
+
if (contours.size() == 0)
|
34
|
+
return false;
|
35
|
+
|
33
36
|
vector<Rect> boundRect(contours.size());
|
34
37
|
vector<Point> allcontours;
|
35
38
|
unsigned enclosing = -1;
|
data/lib/imagecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Determine the core of an image file, stripping any borders
|
15
15
|
email:
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 1.8.
|
117
|
+
rubygems_version: 1.8.11
|
118
118
|
signing_key:
|
119
119
|
specification_version: 3
|
120
120
|
summary: Get image file core
|