Skip to content

Commit

Permalink
change dis var to disp
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Nov 28, 2024
1 parent 0b269d4 commit 037ee23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/pages/index/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ 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()
res = classifier.classify(img)
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)
```

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/index_zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ 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()
res = classifier.classify(img)
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)
```

</div>
Expand Down

0 comments on commit 037ee23

Please sign in to comment.