Home
last modified time | relevance | path

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

12

/third_party/mindspore/tests/ut/python/dataset/
Dtest_convertcolor.py18 import cv2
53 convertcolor_cv = cv2.cvtColor(original, cv_convert)
67 convert_color(mode.ConvertMode.COLOR_BGR2GRAY, cv2.COLOR_BGR2GRAY, plot)
68 convert_color(mode.ConvertMode.COLOR_BGR2RGB, cv2.COLOR_BGR2RGB, plot)
69 convert_color(mode.ConvertMode.COLOR_BGR2BGRA, cv2.COLOR_BGR2BGRA, plot)
77 img = cv2.imread(IMAGE_FILE)
80 img_expect = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
Dtest_decode.py18 import cv2
48 expected = cv2.imdecode(item2["image"], cv2.IMREAD_COLOR)
49 expected = cv2.cvtColor(expected, cv2.COLOR_BGR2RGB)
74 expected = cv2.imdecode(item2["image"], cv2.IMREAD_COLOR)
75 expected = cv2.cvtColor(expected, cv2.COLOR_BGR2RGB)
Dtest_vertical_flip.py18 import cv2
55 vertical_flip_cv = cv2.flip(original, 0)
69 img = cv2.imread(IMAGE_FILE)
72 img_cv = cv2.flip(img, 0)
Dtest_horizontal_flip.py18 import cv2
55 horizontal_flip_cv = cv2.flip(original, 1)
69 img = cv2.imread(IMAGE_FILE)
72 img_cv = cv2.flip(img, 1)
Dtest_eager_vision.py15 import cv2
33 img = cv2.imread("../data/dataset/apple.jpg")
42 img = cv2.imread("../data/dataset/apple.jpg")
67 img = cv2.imread("../data/dataset/apple.jpg")
108 img = cv2.imread("../data/dataset/apple.jpg")
Dtest_gaussian_blur.py18 import cv2
55 gaussian_blur_cv = cv2.GaussianBlur(original, (3, 3), 3)
69 img = cv2.imread(IMAGE_FILE)
72 img_cv = cv2.GaussianBlur(img, (3, 5), 3.5, 3.5)
Dtest_rotate.py18 import cv2
55 rotate_cv = cv2.rotate(original, cv2.ROTATE_90_COUNTERCLOCKWISE)
89 img = cv2.imread(IMAGE_FILE)
Dtest_random_rotation.py19 import cv2
62 rotation_cv = cv2.rotate(original, cv2.ROTATE_90_COUNTERCLOCKWISE)
99 rotation_cv = cv2.rotate(original, cv2.ROTATE_90_COUNTERCLOCKWISE)
Dtest_crop.py18 import cv2
69 img = cv2.imread(IMAGE_FILE)
Dtest_epoch_ctrl.py21 import cv2
96 expected = cv2.imdecode(item2["image"], cv2.IMREAD_COLOR)
97 expected = cv2.cvtColor(expected, cv2.COLOR_BGR2RGB)
/third_party/mindspore/mindspore/dataset/utils/
Dbrowse_dataset.py70 cv2 = importlib.import_module("cv2")
114 draw_image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
126 cv2.rectangle(draw_image, (x1, y1), (x2, y2), bbox_color, thickness)
134cv2.putText(draw_image, draw_label, (x1, y2), cv2.FONT_HERSHEY_SIMPLEX, font_size, text_color, thi…
145 cv2.imshow(win_name, draw_image)
146 if cv2.waitKey(wait_time) == 27:
150 cv2.imwrite(out_file, draw_image)
/third_party/glslang/Test/
DnonSquare.vert8 const vec2 cv2 = vec2(10.0, 20.0);
24 … (m24 * m42) * v4 + cv2 * m42 + m24 * cv2 + vec4(cv2[1], cv2.x, m42[2][1], m42[2][0]);
Dspv.nonSquare.vert8 const vec2 cv2 = vec2(10.0, 20.0);
24 … (m24 * m42) * v4 + cv2 * m42 + m24 * cv2 + vec4(cv2[1], cv2.x, m42[2][1], m42[2][0]);
Dspv.conversion.frag109 ivec4 cv2 = ivec4(1.0);
110 bvec4 cv5 = bvec4(cv2);
Dconversion.frag109 ivec4 cv2 = ivec4(1.0);
110 bvec4 cv5 = bvec4(cv2);
/third_party/boost/libs/date_time/test/
Dtestconstrained_value.cpp34 constrained_value<day_value_policies> cv1(0), cv2(31); in main() local
35 check("not equal", cv1 != cv2); in main()
37 check("greater", cv2 > cv1); in main()
38 check("greater or equal ", cv2 >= cv1); in main()
/third_party/python/Lib/turtledemo/
Dtwo_canvases.py14 cv2 = TK.Canvas(root, width=300, height=200, bg="#ffeeee")
16 cv2.pack()
20 s2 = TurtleScreen(cv2)
/third_party/mindspore/mindspore/mindrecord/tools/
Dcifar10_to_mr.py30 cv2 = import_module("cv2") variable
32 cv2 = None variable
141 if not cv2:
147 _, img = cv2.imencode(".jpeg", img[..., [2, 1, 0]])
Dcifar100_to_mr.py30 cv2 = import_module("cv2") variable
32 cv2 = None variable
146 if not cv2:
153 _, img = cv2.imencode(".jpeg", img[..., [2, 1, 0]])
Dmnist_to_mr.py29 cv2 = import_module("cv2") variable
31 cv2 = None variable
110 _, img = cv2.imencode(".jpeg", data)
123 _, img = cv2.imencode(".jpeg", data)
230 if not cv2:
/third_party/mindspore/tests/ut/python/mindrecord/
Dtest_mnist_to_mr.py19 import cv2
135 _, img = cv2.imencode(".jpeg", data)
142 _, img = cv2.imencode(".jpeg", data)
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Dtransforms.py22 import cv2
246 cv2.setNumThreads(1)
247 x = cv2.cvtColor(img, cv2.COLOR_RGB2HSV_FULL)
258 image_data = cv2.cvtColor(x, cv2.COLOR_HSV2RGB_FULL)
/third_party/python/Lib/test/
Ddataclass_module_2.py21 cv2: T_CV2
Ddataclass_module_2_str.py21 cv2: T_CV2
Ddataclass_module_1.py21 cv2: T_CV2

12