Skip to content

Instantly share code, notes, and snippets.

@jayrambhia
Created April 19, 2013 21:11
Show Gist options
  • Save jayrambhia/5423271 to your computer and use it in GitHub Desktop.
Save jayrambhia/5423271 to your computer and use it in GitHub Desktop.
copying is breaking tests..
└─[$] <git:(Main/referncing_issues*)> nosetests tests.py
.........FF............OpenCV Error: Assertion failed (A.size == arrays[i0]->size) in init, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/matrix.cpp, line 3180
E.....................................OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E..........OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E..................OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.........OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.F.OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.....OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
EOpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E...............OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E......E.OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.....OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.E..OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E..F....OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E..OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.........OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E.....F....../home/jay/Git/SimpleCV/SimpleCV/ImageClass.py:12885: RuntimeWarning: invalid value encountered in divide
harmonic_mean = detA / traceA
..WARNING: stepic library required
WARNING: stepic library required
...OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size == dst.size) in cvCopy, file /home/jay/Downloads/OpenCV-2.4.4/modules/core/src/copy.cpp, line 557
E......................./home/jay/Git/SimpleCV/SimpleCV/ImageClass.py:13427: UserWarning: 0 intensity means no blurring
warnings.warn("0 intensity means no blurring")
..
======================================================================
ERROR: SimpleCV.tests.tests.test_detection_feature_measures
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 380, in test_detection_feature_measures
c = f.meanColor()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Blob.py", line 202, in meanColor
avg = cv.Avg(self.image.getBitmap(),self.mMask._getGrayscaleBitmap())
error: A.size == arrays[i0]->size
======================================================================
ERROR: SimpleCV.tests.tests.test_image_crop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 881, in test_image_crop
crop = img.crop(x,y,w,h)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_feature_crop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1080, in test_feature_crop
croppedImages = lines.crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Features.py", line 599, in crop
return np.array([f.crop() for f in self])
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 159, in crop
return self.image.crop(tl[0],tl[1],self.width(),self.height())
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_segmentation_running
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1398, in test_segmentation_running
segmentor.addImage(i1)
File "/home/jay/Git/SimpleCV/SimpleCV/Segmentation/RunningSegmentation.py", line 50, in addImage
self.mModelImg = Image(cv.CreateImage((img.width,img.height), cv.IPL_DEPTH_32F, 3))
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 1024, in __init__
cv.Copy(source, self._bitmap, None)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_embiggen
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1428, in test_embiggen
results.append(img.embiggen(size=(w,h),color=Color.RED,pos=(-20,-20)))
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 6921, in embiggen
cv.Copy(self.getBitmap(),newCanvas)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_blit_alpha_mask
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1603, in test_blit_alpha_mask
results.append(bottom.blit(top,alphaMask=aMask,pos=(-10,-10)))
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 6649, in blit
cImg = img.crop(topROI[0],topROI[1],topROI[2],topROI[3])
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_hough_circles
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1656, in test_hough_circles
img2 = circs[0].crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 1077, in crop
retVal = retVal.crop(self.x, self.y, self.width(), self.height(), centered = True)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_findKeypoints
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1762, in test_findKeypoints
k.crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 1338, in crop
retVal = retVal.crop(self.x, self.y, self.width(), self.height(), centered = True)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
-------------------- >> begin captured stdout << ---------------------
trying to find SURF keypoints.
Found: 333
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: SimpleCV.tests.tests.test_movement_feature
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1779, in test_movement_feature
img = fs[0].crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 1487, in crop
return self.image.crop(x,y,int(self.window),int(self.window))
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_detection_spatial_relationships
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2099, in test_detection_spatial_relationships
template = img.crop(200,200,50,50)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_findHaarFeatures
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2234, in test_findHaarFeatures
f = img.findHaarFeatures(face)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 3632, in findHaarFeatures
objects = cv.HaarDetectObjects(self._getEqualizedGrayscaleBitmap(),
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 2104, in _getEqualizedGrayscaleBitmap
retVal = cv.CreateImage(cv.GetSize(self._getEqualizedGrayscaleBitmap), cv.IPL_DEPTH_8U, 1)
TypeError: CvArr argument 'arr' must be IplImage, CvMat or CvMatND. Use fromarray() to convert numpy arrays to CvMat or cvMatND
======================================================================
ERROR: SimpleCV.tests.tests.test_flood_fill_to_mask
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2278, in test_flood_fill_to_mask
omask = img.floodFillToMask(b.coordinates(),tolerance=10)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 9533, in floodFillToMask
retVal = retVal.crop(1,1,self.width,self.height)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_line_crop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2432, in test_line_crop
results.append( ls.crop() )
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 159, in crop
return self.image.crop(tl[0],tl[1],self.width(),self.height())
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_save_kwargs
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2472, in test_save_kwargs
img.save(l90,quality=90)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 2370, in save
saveimg.getPIL().save(filename, mode, **params)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 1901, in getPIL
return retVal
UnboundLocalError: local variable 'retVal' referenced before assignment
======================================================================
ERROR: SimpleCV.tests.tests.test_feature_angles_rotate
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2565, in test_feature_angles_rotate
temp = bs.crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Features.py", line 1602, in crop
return self.image.crop(self.x, self.y, self.width(), self.height(), centered = True)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_point_intersection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2783, in test_point_intersection
pts = img.edgeIntersections(a,b,width=1)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 11006, in edgeIntersections
edges = self.crop(x,y,w,h)._getEdgeMap(canny1, canny2)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_findKeypoints_all
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2868, in test_findKeypoints_all
k.crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 1338, in crop
retVal = retVal.crop(self.x, self.y, self.width(), self.height(), centered = True)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
-------------------- >> begin captured stdout << ---------------------
ORB
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: SimpleCV.tests.tests.test_image_new_crop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2905, in test_image_new_crop
crop = img.crop((x,y,w,h))
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.test_uncrop
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 3096, in test_uncrop
croppedImg = img.crop(10,20,250,500)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
======================================================================
ERROR: SimpleCV.tests.tests.testROIFeature
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 3328, in testROIFeature
roiList[0].crop()
File "/home/jay/Git/SimpleCV/SimpleCV/Features/Detection.py", line 2580, in crop
retVal = self.image.crop(self.xtl,self.ytl,self.w,self.h)
File "/home/jay/Git/SimpleCV/SimpleCV/ImageClass.py", line 5787, in crop
cv.Copy(self.getBitmap(), retVal)
error: src.depth() == dst.depth() && src.size == dst.size
-------------------- >> begin captured stdout << ---------------------
(0, [322, 1, 119, 52])
(1, [322, 1, 119, 52])
(2, [322, 1, 119, 52])
(3, [322, 1, 119, 52])
(4, [322, 1, 119, 52])
(5, [322, 1, 119, 52])
(6, [322, 1, 119, 52])
(7, [322, 1, 119, 52])
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: SimpleCV.tests.tests.test_image_setitem
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 194, in test_image_setitem
assert False
AssertionError
======================================================================
FAIL: SimpleCV.tests.tests.test_image_setslice
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 209, in test_image_setslice
assert False
AssertionError
======================================================================
FAIL: SimpleCV.tests.tests.test_hsv_conversion
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 1628, in test_hsv_conversion
assert False
AssertionError
======================================================================
FAIL: SimpleCV.tests.tests.test_pixelize
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 2626, in test_pixelize
perform_diff(results,name_stem,tolerance=6.0)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 91, in perform_diff
assert False
AssertionError:
-------------------- >> begin captured stdout << ---------------------
23.3539002736
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: SimpleCV.tests.tests.test_line_imgIntersection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/jay/Git/SimpleCV/SimpleCV/tests/tests.py", line 3155, in test_line_imgIntersection
assert False
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment