reverted occasional commit
This commit is contained in:
parent
913811836a
commit
7d8f487b03
@ -4,6 +4,6 @@
|
|||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
<classpathentry kind="src" path="OpenCV-2.3.1_src"/>
|
<classpathentry kind="src" path="OpenCV_src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
</natures>
|
</natures>
|
||||||
<linkedResources>
|
<linkedResources>
|
||||||
<link>
|
<link>
|
||||||
<name>OpenCV-2.3.1_src</name>
|
<name>OpenCV_src</name>
|
||||||
<type>2</type>
|
<type>2</type>
|
||||||
<locationURI>_android_OpenCV_2_3_1_df28900a/src</locationURI>
|
<locationURI>_android_OpenCV_8d28b05d/src</locationURI>
|
||||||
</link>
|
</link>
|
||||||
</linkedResources>
|
</linkedResources>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
@ -19,10 +19,6 @@ import org.opencv.test.OpenCVTestCase;
|
|||||||
import org.opencv.test.OpenCVTestRunner;
|
import org.opencv.test.OpenCVTestRunner;
|
||||||
|
|
||||||
public class CoreTest extends OpenCVTestCase {
|
public class CoreTest extends OpenCVTestCase {
|
||||||
|
|
||||||
public void testRNG() {
|
|
||||||
fail("kiryaaa");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testAbsdiff() {
|
public void testAbsdiff() {
|
||||||
Core.absdiff(gray128, gray255, dst);
|
Core.absdiff(gray128, gray255, dst);
|
||||||
|
@ -565,50 +565,7 @@ class RstParser(object):
|
|||||||
for lang in sorted(stat.items()):
|
for lang in sorted(stat.items()):
|
||||||
print " %7s functions documented: %s" % lang
|
print " %7s functions documented: %s" % lang
|
||||||
print
|
print
|
||||||
|
|
||||||
def printApiSummary(self):
|
|
||||||
print '\n\n\nAPI SUMMARY\n\n'
|
|
||||||
|
|
||||||
# statistic by language
|
|
||||||
stat = {}
|
|
||||||
classes = 0
|
|
||||||
structs = 0
|
|
||||||
sortedFuncs = []
|
|
||||||
sortedClasses = []
|
|
||||||
|
|
||||||
# for name, d in self.definitions.items():
|
|
||||||
# if d.get("isclass", False):
|
|
||||||
# print d.get("name")
|
|
||||||
# elif d.get("isstruct", False):
|
|
||||||
# print d.get("name")
|
|
||||||
# else:
|
|
||||||
# for decl in d.get("decls",[]):
|
|
||||||
# if decl[0] == 'C++': # and (decl[1].find('::') == -1)
|
|
||||||
# idx = decl[1].find(' ')
|
|
||||||
# funcName = decl[1][idx:]
|
|
||||||
# sortedFuncs.append(funcName)
|
|
||||||
|
|
||||||
for name, d in self.definitions.items():
|
|
||||||
if d.get("isclass", False):
|
|
||||||
#classes += 1
|
|
||||||
sortedClasses.append("class " + d.get("name"))
|
|
||||||
|
|
||||||
for name, d in self.definitions.items():
|
|
||||||
if (not d.get("isclass", False)) and (not d.get("isstruct", False)) :
|
|
||||||
funcName = d.get("name")
|
|
||||||
if funcName.find('::') == -1:
|
|
||||||
sortedFuncs.append(funcName)
|
|
||||||
|
|
||||||
sortedClasses.sort()
|
|
||||||
for c in sortedClasses:
|
|
||||||
print c
|
|
||||||
|
|
||||||
print '\n'
|
|
||||||
|
|
||||||
sortedFuncs.sort()
|
|
||||||
for func in sortedFuncs:
|
|
||||||
print func
|
|
||||||
|
|
||||||
def mathReplace2(match):
|
def mathReplace2(match):
|
||||||
m = mathReplace(match)
|
m = mathReplace(match)
|
||||||
#print "%s ===> %s" % (match.group(0), m)
|
#print "%s ===> %s" % (match.group(0), m)
|
||||||
@ -705,7 +662,7 @@ if __name__ == "__main__":
|
|||||||
sys.path.append(hdr_parser_path)
|
sys.path.append(hdr_parser_path)
|
||||||
import hdr_parser
|
import hdr_parser
|
||||||
|
|
||||||
module = 'objdetect' #sys.argv[1]
|
module = sys.argv[1]
|
||||||
|
|
||||||
if module != "all" and not os.path.isdir(os.path.join(rst_parser_dir, "../" + module)):
|
if module != "all" and not os.path.isdir(os.path.join(rst_parser_dir, "../" + module)):
|
||||||
print "Module \"" + module + "\" could not be found."
|
print "Module \"" + module + "\" could not be found."
|
||||||
@ -721,5 +678,3 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# summary
|
# summary
|
||||||
parser.printSummary()
|
parser.printSummary()
|
||||||
# OpenCV API summary
|
|
||||||
parser.printApiSummary()
|
|
||||||
|
@ -59,11 +59,11 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
|
|||||||
|
|
||||||
params.setPreviewSize(getFrameWidth(), getFrameHeight());
|
params.setPreviewSize(getFrameWidth(), getFrameHeight());
|
||||||
mCamera.setParameters(params);
|
mCamera.setParameters(params);
|
||||||
// try {
|
try {
|
||||||
// mCamera.setPreviewDisplay(null);
|
mCamera.setPreviewDisplay(null);
|
||||||
// } catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// Log.e(TAG, "mCamera.setPreviewDisplay fails: " + e);
|
Log.e(TAG, "mCamera.setPreviewDisplay fails: " + e);
|
||||||
// }
|
}
|
||||||
mCamera.startPreview();
|
mCamera.startPreview();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,11 +59,11 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
|
|||||||
|
|
||||||
params.setPreviewSize(getFrameWidth(), getFrameHeight());
|
params.setPreviewSize(getFrameWidth(), getFrameHeight());
|
||||||
mCamera.setParameters(params);
|
mCamera.setParameters(params);
|
||||||
// try {
|
try {
|
||||||
// mCamera.setPreviewDisplay(null);
|
mCamera.setPreviewDisplay(null);
|
||||||
// } catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// Log.e(TAG, "mCamera.setPreviewDisplay fails: " + e);
|
Log.e(TAG, "mCamera.setPreviewDisplay fails: " + e);
|
||||||
// }
|
}
|
||||||
mCamera.startPreview();
|
mCamera.startPreview();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,23 +8,6 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
|
|
||||||
int main( int argc, const char** argv )
|
|
||||||
{
|
|
||||||
vector<Point2f> points;
|
|
||||||
points.push_back(Point2f(0.0, 0.0));
|
|
||||||
points.push_back(Point2f(-1.0, 1.0));
|
|
||||||
points.push_back(Point2f(1.0, 1.0));
|
|
||||||
points.push_back(Point2f(1.0, -1.0));
|
|
||||||
points.push_back(Point2f(-1.0, -1.0));
|
|
||||||
|
|
||||||
RotatedRect rrect;
|
|
||||||
rrect = fitEllipse(points);
|
|
||||||
|
|
||||||
cout << rrect.center << endl;
|
|
||||||
cout << rrect.size.width << endl;
|
|
||||||
cout << rrect.size.height << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
void help()
|
void help()
|
||||||
{
|
{
|
||||||
cout << "\nThis program demonstrates the cascade recognizer. Now you can use Haar or LBP features.\n"
|
cout << "\nThis program demonstrates the cascade recognizer. Now you can use Haar or LBP features.\n"
|
||||||
@ -47,7 +30,7 @@ void detectAndDraw( Mat& img,
|
|||||||
String cascadeName = "../../data/haarcascades/haarcascade_frontalface_alt.xml";
|
String cascadeName = "../../data/haarcascades/haarcascade_frontalface_alt.xml";
|
||||||
String nestedCascadeName = "../../data/haarcascades/haarcascade_eye_tree_eyeglasses.xml";
|
String nestedCascadeName = "../../data/haarcascades/haarcascade_eye_tree_eyeglasses.xml";
|
||||||
|
|
||||||
int main1( int argc, const char** argv )
|
int main( int argc, const char** argv )
|
||||||
{
|
{
|
||||||
CvCapture* capture = 0;
|
CvCapture* capture = 0;
|
||||||
Mat frame, frameCopy, image;
|
Mat frame, frameCopy, image;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user