[mousetrap/ng] Fixed Some Bugs
- From: Rohan Anil <rohananil src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mousetrap/ng] Fixed Some Bugs
- Date: Mon, 4 Jan 2010 17:21:27 +0000 (UTC)
commit 9afa96f08aa9b3a89e6ddc6c6d316b71c06b0919
Author: Rohan Anil <rohan anil gmail com>
Date: Mon Jan 4 22:49:51 2010 +0530
Fixed Some Bugs
src/mousetrap/ocvfw/backends/OcvfwBase.cpp | 6 ++--
src/mousetrap/ocvfw/dev/PyMtpCapture.cpp | 6 ++--
src/mousetrap/ocvfw/include/OcvfwBase.h | 55 ++++++++++++++++------------
3 files changed, 37 insertions(+), 30 deletions(-)
---
diff --git a/src/mousetrap/ocvfw/backends/OcvfwBase.cpp b/src/mousetrap/ocvfw/backends/OcvfwBase.cpp
index d27e4a3..64146a4 100644
--- a/src/mousetrap/ocvfw/backends/OcvfwBase.cpp
+++ b/src/mousetrap/ocvfw/backends/OcvfwBase.cpp
@@ -102,13 +102,13 @@ int OcvfwBase::waitKey(int num) {
return cvWaitKey(num);
}
-int OcvfwBase::getHaarPoints(char haarclassifier) {
+int OcvfwBase::getHaarPoints(char* haarclassifier) {
CvHaarClassifierCascade* cascade;
cascade = (CvHaarClassifierCascade*)cvLoad(haarclassifier, 0, 0, 0);
-
+
if (cascade) {
-
+
}
}
diff --git a/src/mousetrap/ocvfw/dev/PyMtpCapture.cpp b/src/mousetrap/ocvfw/dev/PyMtpCapture.cpp
index c1682a4..0c80d6b 100644
--- a/src/mousetrap/ocvfw/dev/PyMtpCapture.cpp
+++ b/src/mousetrap/ocvfw/dev/PyMtpCapture.cpp
@@ -19,14 +19,14 @@
*/
-#include "Python.h"
-#include "structmember.h"
-
#include "cv.h"
#include "highgui.h"
#include "MtpCapture.h"
+#include "Python.h"
+#include "structmember.h"
+
static MtpCapture cap;
typedef struct {
diff --git a/src/mousetrap/ocvfw/include/OcvfwBase.h b/src/mousetrap/ocvfw/include/OcvfwBase.h
index 11138d8..1e64b0f 100644
--- a/src/mousetrap/ocvfw/include/OcvfwBase.h
+++ b/src/mousetrap/ocvfw/include/OcvfwBase.h
@@ -34,30 +34,30 @@ class OcvfwBase
{
public:
- /**
- * The Constructor
- * Currently does nothing
- */
- OcvfwBase(void);
-
- /**
- * OpenCV WaitKey call
- */
- int waitKey(int num);
-
- /**
- * Creates a new image. Currently just calls OpenCv CreateImage
- *
- * @param size The image size
- * @param depth The image depth
- * @param channels The number of channels.
- *
- * @return A pointer to the new image.
- */
- IplImage *newImage(CvSize size, int depth, int channels);
-
-
- /**
+ /**
+ * The Constructor
+ * Currently does nothing
+ */
+ OcvfwBase(void);
+
+ /**
+ * OpenCV WaitKey call
+ */
+ int waitKey(int num);
+
+ /**
+ * Creates a new image. Currently just calls OpenCv CreateImage
+ *
+ * @param size The image size
+ * @param depth The image depth
+ * @param channels The number of channels.
+ *
+ * @return A pointer to the new image.
+ */
+ IplImage *newImage(CvSize size, int depth, int channels);
+
+
+ /**
*Query Image From Webcam
* result Image From the Webcam
*/
@@ -74,6 +74,13 @@ public:
*/
void stopCamera();
+ /**
+ * Get Detected Region using Input Haar Cascade
+ * @param Haar Cascade Path
+ * result returns 1 for Sucess and 0 for Failure
+ */
+ int getHaarPoints(char* haarclassifier) ;
+
private:
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]