diff --git a/docs/pages/index/README.md b/docs/pages/index/README.md index a2ee7f98..3c0f2196 100644 --- a/docs/pages/index/README.md +++ b/docs/pages/index/README.md @@ -232,7 +232,7 @@ from maix import camera, display, image, nn classifier = nn.Classifier(model="/root/models/mobilenetv2.mud") cam = camera.Camera(classifier.input_width(), classifier.input_height(), classifier.input_format()) -dis = display.Display() +disp = display.Display() while 1: img = cam.read() @@ -240,7 +240,7 @@ while 1: max_idx, max_prob = res[0] msg = f"{max_prob:5.2f}: {classifier.labels[max_idx]}" img.draw_string(10, 10, msg, image.COLOR_RED) - dis.show(img) + disp.show(img) ``` diff --git a/docs/pages/index_zh/README.md b/docs/pages/index_zh/README.md index df0d0d12..47652f41 100644 --- a/docs/pages/index_zh/README.md +++ b/docs/pages/index_zh/README.md @@ -232,7 +232,7 @@ from maix import camera, display, image, nn classifier = nn.Classifier(model="/root/models/mobilenetv2.mud") cam = camera.Camera(classifier.input_width(), classifier.input_height(), classifier.input_format()) -dis = display.Display() +disp = display.Display() while 1: img = cam.read() @@ -240,7 +240,7 @@ while 1: max_idx, max_prob = res[0] msg = f"{max_prob:5.2f}: {classifier.labels[max_idx]}" img.draw_string(10, 10, msg, image.COLOR_RED) - dis.show(img) + disp.show(img) ```