Home
last modified time | relevance | path

Searched refs:cv2 (Results 1 – 7 of 7) sorted by relevance

/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py20 import cv2
252 ret3, img_bw = cv2.threshold(np.uint8(img_gray), 0, 255,
253 cv2.THRESH_BINARY + cv2.THRESH_OTSU)
256 contours, hierarchy = cv2.findContours(255-img_bw, cv2.RETR_TREE,
257 cv2.CHAIN_APPROX_SIMPLE)
269 child_area = cv2.contourArea(ct)
277 prt_area = cv2.contourArea(contours[parent])
342 cv2.line(img, (circle_ctx, circle_cty), (size[1]/2, size[0]/2),
359 cv2.circle(img, (circle_ctx, circle_cty), line_width*2, (255, 0, 0), -1)
360 cv2.putText(img, "circle center", (text_circle_x, text_circle_y),
[all …]
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py21 import cv2
86 text_height = cv2.getTextSize('gf', cv2.FONT_HERSHEY_SIMPLEX,
99 cv2.rectangle(img_legend_ls, (left, top), (right, bottom), GREEN,
105 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom), GREEN,
168 cv2.rectangle(img_legend_ls, (left, top), (right, bottom),
186 cv2.rectangle(img_legend_ufmt, (left, top), (right, bottom),
243 cv2.putText(img, text, (text_org[0], text_org[1]),
244 cv2.FONT_HERSHEY_SIMPLEX, font_scale,
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py28 import cv2
46 criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT,
264 gframes.append(cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY))
269 p0 = cv2.goodFeaturesToTrack(gframe0, mask=None, **FEATURE_PARAMS)
270 p1,st,_ = cv2.calcOpticalFlowPyrLK(gframe0, gframe1, p0, None,
286 cv2.circle(frame, (x,y), 3, (100,100,255), -1)
/cts/apps/CameraITS/build/
Denvsetup.sh34 for M in numpy PIL Image matplotlib pylab cv2 scipy.stats scipy.spatial
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_SearchSnippetsTest.java56 ContentValues cv2 = new ContentValues();
57 cv2.put(Contacts.DISPLAY_NAME, "Cold Tamago"); in cv2.put()
58 sContentValues[1] = cv2;
DContactsContract_DataTest.java149 ContentValues cv2 = new ContentValues();
150 cv2.put(Contacts.DISPLAY_NAME, "Hot Tamale"); in cv2.put()
151 cv2.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in cv2.put()
152 cv2.put(Phone.DATA, "510-123-5769"); in cv2.put()
153 cv2.put(Phone.TYPE, Phone.TYPE_HOME); in cv2.put()
154 sContentValues[1] = cv2;
451 ContentValues cv2 = new ContentValues(); in testContactablesUri() local
458 null, false, cv, cv2); in testContactablesUri()
DContactsContract_FrequentsStrequentsTest.java136 ContentValues cv2 = new ContentValues();
137 cv2.put(Contacts.DISPLAY_NAME, "Cold Tamago"); in cv2.put()
138 sContentValues[1] = cv2;