Permalink
Browse files

update to kittydar v0.1.6

  • Loading branch information...
harthur committed Apr 4, 2013
1 parent 64fb83b commit ae54f8c07cd667dbd6052710372e0a34c08ecc01
Showing with 2,985 additions and 2,147 deletions.
  1. +1 −4 demo.js
  2. +2 −2 detection-worker.js
  3. +6 −2 index.css
  4. +2 −2 index.html
  5. +2,972 −2,135 kittydar-0.1.1.js → kittydar-0.1.6.js
  6. +2 −2 server.js
View
@@ -142,16 +142,13 @@ var detector = {
worker.onmessage = this.onMessage;
worker.onerror = this.onError;
- kittydar.setOptions({
- scaleStep: 6
- })
var resizes = kittydar.getAllSizes(canvas);
worker.postMessage(resizes);
this.worker = worker;
}
else {
- var rects = kittydar.detectCats(canvas, network);
+ var rects = kittydar.detectCats(canvas);
this.paintCats(rects);
}
},
View
@@ -1,5 +1,5 @@
importScripts(
- "kittydar-0.1.1.js"
+ "kittydar-0.1.6.js"
);
onmessage = function(event) {
@@ -16,7 +16,7 @@ onmessage = function(event) {
});
});
- cats = kittydar.combineOverlaps(cats, 0.25, 2);
+ cats = kittydar.combineOverlaps(cats, 0.25, 4);
postMessage({ type: 'result', cats: cats });
}
View
@@ -14,7 +14,7 @@ body {
#subtitle, footer {
font-family: Monaco, Menlo, Tahoma, sans-serif;
- margin-top: 20px;
+ margin-top: 14px;
}
#container {
@@ -117,7 +117,7 @@ body {
}
footer {
- margin-top: 100px;
+ margin-top: 80px;
text-align: center;
font-size: 13px;
text-align: center;
@@ -146,6 +146,10 @@ footer a {
margin-top: 24px;
}
+#limit-note {
+ font-style: italic;
+}
+
#js-note {
margin-top: 6px;
}
View
@@ -4,7 +4,7 @@
<script src="jquery.js"></script>
<script src="demo.js"></script>
- <script src="kittydar-0.1.1.js"></script>
+ <script src="kittydar-0.1.6.js"></script>
</head>
<body>
<div id="container">
@@ -46,7 +46,7 @@
test images
</div>
<div id="note">
- kittydar is best at detecting upright cats that are facing forward.
+ <div id="limit-note">kittydar only detects upright cats that are facing forward.</div>
<div id="js-note">
<a href="http://github.com/harthur/kittydar">written in JavaScript</a>
</div>
Oops, something went wrong.

0 comments on commit ae54f8c

Please sign in to comment.