We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a636367 commit e746662Copy full SHA for e746662
subprojects/robotpy-cscore/tests/test_cv.py
@@ -7,3 +7,12 @@ def test_empty_img():
7
sink = cs.CvSink("something")
8
_, rimg = sink.grabFrame(img)
9
assert (rimg == img).all()
10
+
11
12
+def test_nonempty_img():
13
+ img = np.zeros(shape=(480, 640, 3), dtype=np.uint8)
14
+ img2 = np.zeros(shape=(480, 640, 3), dtype=np.uint8)
15
+ sink = cs.CvSink("something")
16
+ _, img = sink.grabFrame(img)
17
18
+ assert (img == img2).all()
0 commit comments