Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jun 19, 2024
1 parent 46d52ea commit 4ae40e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/doc/en/vision/display.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ from maix import image, display

disp = display.Display()
img = image.Image(320, 240)
img.draw_rectangle(0, 0, disp.width(), disp.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rectangle(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_rect(0, 0, disp.width(), disp.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rect(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_string(10, 10, "Hello MaixPy!", color=image.Color.from_rgb(255, 255, 255))
disp.show(img)
```
Expand Down Expand Up @@ -89,8 +89,8 @@ Of course, if you don't have a screen, or to save memory by not initializing the
from maix import image

img = image.Image(320, 240)
img.draw_rectangle(0, 0, img.width(), img.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rectangle(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_rect(0, 0, img.width(), img.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rect(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_string(10, 10, "Hello MaixPy!", color=image.Color.from_rgb(255, 255, 255))
img.send_to_maixvision()
```
8 changes: 4 additions & 4 deletions docs/doc/zh/vision/display.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ from maix import image, display

disp = display.Display()
img = image.Image(320, 240)
img.draw_rectangle(0, 0, disp.width(), disp.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rectangle(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_rect(0, 0, disp.width(), disp.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rect(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_string(10, 10, "Hello MaixPy!", color=image.Color.from_rgb(255, 255, 255))
disp.show(img)
```
Expand Down Expand Up @@ -93,8 +93,8 @@ disp.set_backlight(50)
from maix import image

img = image.Image(320, 240)
img.draw_rectangle(0, 0, img.width(), img.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rectangle(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_rect(0, 0, img.width(), img.height(), color=image.Color.from_rgb(255, 0, 0), thickness=-1)
img.draw_rect(10, 10, 100, 100, color=image.Color.from_rgb(255, 0, 0))
img.draw_string(10, 10, "Hello MaixPy!", color=image.Color.from_rgb(255, 255, 255))
img.send_to_maixvision()
```
Expand Down

0 comments on commit 4ae40e6

Please sign in to comment.