Draw the rectangle

Draw the rectangleExample IntroductionAPI Documentationdraw_rectangleSample codeRoutine running effect

Example Introduction

In this section, we introduce the draw_rectangle() method for drawing lines

API Documentation

draw_rectangle

Draw a rectangle on the image. You can pass in parameters x, y, w, h separately or as a tuple (x, y, w, h).

This method returns an image object, allowing other methods to be called through chaining.

Compressed images and Bayer format images are not supported.

Sample code

 

Routine running effect

image-20250207210813131