diff --git a/maixpy/api/api.json b/maixpy/api/api.json index 5ccda72..e3fa5a1 100644 --- a/maixpy/api/api.json +++ b/maixpy/api/api.json @@ -607,7 +607,8 @@ "args": [], "ret_type": null, "static": false, - "def": "Tensors()" + "def": "Tensors()", + "py_def": "def __init__(self) -> None" }, "add_tensor": { "type": "func", @@ -641,7 +642,8 @@ ], "ret_type": "void", "static": false, - "def": "void add_tensor(const std::string &key, tensor::Tensor *tensor, bool copy, bool auto_delete)" + "def": "void add_tensor(const std::string &key, tensor::Tensor *tensor, bool copy, bool auto_delete)", + "py_def": "def add_tensor(self, key: str, tensor: Tensor, copy: bool, auto_delete: bool) -> None" }, "rm_tensor": { "type": "func", @@ -660,7 +662,8 @@ ], "ret_type": "void", "static": false, - "def": "void rm_tensor(const std::string &key)" + "def": "void rm_tensor(const std::string &key)", + "py_def": "def rm_tensor(self, key: str) -> None" }, "get_tensor": { "type": "func", @@ -680,7 +683,8 @@ ], "ret_type": "tensor::Tensor*", "static": false, - "def": "tensor::Tensor *get_tensor(const std::string &key)" + "def": "tensor::Tensor *get_tensor(const std::string &key)", + "py_def": "def get_tensor(self, key: str) -> Tensor" }, "__getitem__": { "type": "func", @@ -700,7 +704,8 @@ ], "ret_type": "tensor::Tensor*", "static": false, - "def": "tensor::Tensor *operator[](const std::string &key)" + "def": "tensor::Tensor *operator[](const std::string &key)", + "py_def": "def __getitem__(self, key: str) -> Tensor" }, "__len__": { "type": "func", @@ -714,7 +719,8 @@ "args": [], "ret_type": "size_t", "static": false, - "def": "size_t size()" + "def": "size_t size()", + "py_def": "def __len__(self) -> int" }, "get_names": { "type": "func", @@ -727,7 +733,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector get_names()" + "def": "std::vector get_names()", + "py_def": "def get_names(self) -> list[str]" }, "tensors": { "type": "var", @@ -926,7 +933,8 @@ ], "ret_type": null, "static": false, - "def": "Size(int width = 0, int height = 0)" + "def": "Size(int width = 0, int height = 0)", + "py_def": "def __init__(self, width: int = 0, height: int = 0) -> None" }, "width": { "type": "func", @@ -948,7 +956,8 @@ ], "ret_type": "int", "static": false, - "def": "int width(int width = -1)" + "def": "int width(int width = -1)", + "py_def": "def width(self, width: int = -1) -> int" }, "height": { "type": "func", @@ -970,7 +979,8 @@ ], "ret_type": "int", "static": false, - "def": "int height(int height = -1)" + "def": "int height(int height = -1)", + "py_def": "def height(self, height: int = -1) -> int" }, "__getitem__": { "type": "func", @@ -994,7 +1004,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &operator[](int index)" + "def": "int &operator[](int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "__str__": { "type": "func", @@ -1007,7 +1018,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string __str__()" + "def": "std::string __str__()", + "py_def": "def __str__(self) -> str" } }, "def": "class Size" @@ -1468,7 +1480,8 @@ ], "ret_type": null, "static": false, - "def": "Rect(std::vector> &corners, int x, int y, int w, int h, int magnitude = 0)" + "def": "Rect(std::vector> &corners, int x, int y, int w, int h, int magnitude = 0)", + "py_def": "def __init__(self, corners: list[list[int]], x: int, y: int, w: int, h: int, magnitude: int = 0) -> None" }, "__getitem__": { "type": "func", @@ -1491,7 +1504,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &__getitem__(int index)" + "def": "int &__getitem__(int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "corners": { "type": "func", @@ -1505,7 +1519,8 @@ "args": [], "ret_type": "std::vector>", "static": false, - "def": "std::vector> corners()" + "def": "std::vector> corners()", + "py_def": "def corners(self) -> list[list[int]]" }, "rect": { "type": "func", @@ -1519,7 +1534,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector rect()" + "def": "std::vector rect()", + "py_def": "def rect(self) -> list[int]" }, "x": { "type": "func", @@ -1533,7 +1549,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int x()" + "def": "int x()", + "py_def": "def x(self) -> int" }, "y": { "type": "func", @@ -1547,7 +1564,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int y()" + "def": "int y()", + "py_def": "def y(self) -> int" }, "w": { "type": "func", @@ -1561,7 +1579,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int w()" + "def": "int w()", + "py_def": "def w(self) -> int" }, "h": { "type": "func", @@ -1575,7 +1594,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int h()" + "def": "int h()", + "py_def": "def h(self) -> int" }, "magnitude": { "type": "func", @@ -1589,7 +1609,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int magnitude()" + "def": "int magnitude()", + "py_def": "def magnitude(self) -> int" } }, "def": "class Rect" @@ -1641,7 +1662,8 @@ ], "ret_type": null, "static": false, - "def": "Circle(int x, int y, int r, int magnitude)" + "def": "Circle(int x, int y, int r, int magnitude)", + "py_def": "def __init__(self, x: int, y: int, r: int, magnitude: int) -> None" }, "__getitem__": { "type": "func", @@ -1664,7 +1686,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &__getitem__(int index)" + "def": "int &__getitem__(int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "x": { "type": "func", @@ -1678,7 +1701,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int x()" + "def": "int x()", + "py_def": "def x(self) -> int" }, "y": { "type": "func", @@ -1692,7 +1716,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int y()" + "def": "int y()", + "py_def": "def y(self) -> int" }, "r": { "type": "func", @@ -1706,7 +1731,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int r()" + "def": "int r()", + "py_def": "def r(self) -> int" }, "magnitude": { "type": "func", @@ -1720,7 +1746,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int magnitude()" + "def": "int magnitude()", + "py_def": "def magnitude(self) -> int" } }, "def": "class Circle" @@ -2744,7 +2771,8 @@ ], "ret_type": null, "static": false, - "def": "AprilTag(std::vector &rect, std::vector> &corners, int id, int famliy, float centroid_x, float centroid_y, float rotation, float decision_margin, int hamming, float goodness, float x_translation, float y_translation, float z_translation, float x_rotation, float y_rotation, float z_rotation)" + "def": "AprilTag(std::vector &rect, std::vector> &corners, int id, int famliy, float centroid_x, float centroid_y, float rotation, float decision_margin, int hamming, float goodness, float x_translation, float y_translation, float z_translation, float x_rotation, float y_rotation, float z_rotation)", + "py_def": "def __init__(self, rect: list[int], corners: list[list[int]], id: int, famliy: int, centroid_x: float, centroid_y: float, rotation: float, decision_margin: float, hamming: int, goodness: float, x_translation: float, y_translation: float, z_translation: float, x_rotation: float, y_rotation: float, z_rotation: float) -> None" }, "__getitem__": { "type": "func", @@ -2767,7 +2795,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &__getitem__(int index)" + "def": "int &__getitem__(int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "corners": { "type": "func", @@ -2781,7 +2810,8 @@ "args": [], "ret_type": "std::vector>", "static": false, - "def": "std::vector> corners()" + "def": "std::vector> corners()", + "py_def": "def corners(self) -> list[list[int]]" }, "rect": { "type": "func", @@ -2795,7 +2825,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector rect()" + "def": "std::vector rect()", + "py_def": "def rect(self) -> list[int]" }, "x": { "type": "func", @@ -2809,7 +2840,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int x()" + "def": "int x()", + "py_def": "def x(self) -> int" }, "y": { "type": "func", @@ -2823,7 +2855,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int y()" + "def": "int y()", + "py_def": "def y(self) -> int" }, "w": { "type": "func", @@ -2837,7 +2870,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int w()" + "def": "int w()", + "py_def": "def w(self) -> int" }, "h": { "type": "func", @@ -2851,7 +2885,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int h()" + "def": "int h()", + "py_def": "def h(self) -> int" }, "id": { "type": "func", @@ -2865,7 +2900,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int id()" + "def": "int id()", + "py_def": "def id(self) -> int" }, "family": { "type": "func", @@ -2879,7 +2915,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int family()" + "def": "int family()", + "py_def": "def family(self) -> int" }, "cx": { "type": "func", @@ -2893,7 +2930,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int cx()" + "def": "int cx()", + "py_def": "def cx(self) -> int" }, "cxf": { "type": "func", @@ -2907,7 +2945,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float cxf()" + "def": "float cxf()", + "py_def": "def cxf(self) -> float" }, "cy": { "type": "func", @@ -2921,7 +2960,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int cy()" + "def": "int cy()", + "py_def": "def cy(self) -> int" }, "cyf": { "type": "func", @@ -2935,7 +2975,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float cyf()" + "def": "float cyf()", + "py_def": "def cyf(self) -> float" }, "rotation": { "type": "func", @@ -2949,7 +2990,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float rotation()" + "def": "float rotation()", + "py_def": "def rotation(self) -> float" }, "decision_margin": { "type": "func", @@ -2963,7 +3005,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float decision_margin()" + "def": "float decision_margin()", + "py_def": "def decision_margin(self) -> float" }, "hamming": { "type": "func", @@ -2977,7 +3020,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int hamming()" + "def": "int hamming()", + "py_def": "def hamming(self) -> int" }, "goodness": { "type": "func", @@ -2991,7 +3035,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float goodness()" + "def": "float goodness()", + "py_def": "def goodness(self) -> float" }, "x_translation": { "type": "func", @@ -3005,7 +3050,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float x_translation()" + "def": "float x_translation()", + "py_def": "def x_translation(self) -> float" }, "y_translation": { "type": "func", @@ -3019,7 +3065,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float y_translation()" + "def": "float y_translation()", + "py_def": "def y_translation(self) -> float" }, "z_translation": { "type": "func", @@ -3033,7 +3080,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float z_translation()" + "def": "float z_translation()", + "py_def": "def z_translation(self) -> float" }, "x_rotation": { "type": "func", @@ -3047,7 +3095,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float x_rotation()" + "def": "float x_rotation()", + "py_def": "def x_rotation(self) -> float" }, "y_rotation": { "type": "func", @@ -3061,7 +3110,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float y_rotation()" + "def": "float y_rotation()", + "py_def": "def y_rotation(self) -> float" }, "z_rotation": { "type": "func", @@ -3075,7 +3125,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float z_rotation()" + "def": "float z_rotation()", + "py_def": "def z_rotation(self) -> float" } }, "def": "class AprilTag" @@ -3406,7 +3457,8 @@ ], "ret_type": null, "static": false, - "def": "BarCode(std::vector &rect, std::vector> &corners, std::string &payload, int type, float rotation, int quality)" + "def": "BarCode(std::vector &rect, std::vector> &corners, std::string &payload, int type, float rotation, int quality)", + "py_def": "def __init__(self, rect: list[int], corners: list[list[int]], payload: str, type: int, rotation: float, quality: int) -> None" }, "__getitem__": { "type": "func", @@ -3429,7 +3481,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &__getitem__(int index)" + "def": "int &__getitem__(int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "corners": { "type": "func", @@ -3443,7 +3496,8 @@ "args": [], "ret_type": "std::vector>", "static": false, - "def": "std::vector> corners()" + "def": "std::vector> corners()", + "py_def": "def corners(self) -> list[list[int]]" }, "rect": { "type": "func", @@ -3457,7 +3511,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector rect()" + "def": "std::vector rect()", + "py_def": "def rect(self) -> list[int]" }, "x": { "type": "func", @@ -3471,7 +3526,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int x()" + "def": "int x()", + "py_def": "def x(self) -> int" }, "y": { "type": "func", @@ -3485,7 +3541,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int y()" + "def": "int y()", + "py_def": "def y(self) -> int" }, "w": { "type": "func", @@ -3499,7 +3556,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int w()" + "def": "int w()", + "py_def": "def w(self) -> int" }, "h": { "type": "func", @@ -3513,7 +3571,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int h()" + "def": "int h()", + "py_def": "def h(self) -> int" }, "payload": { "type": "func", @@ -3527,7 +3586,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string payload()" + "def": "std::string payload()", + "py_def": "def payload(self) -> str" }, "type": { "type": "func", @@ -3541,7 +3601,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int type()" + "def": "int type()", + "py_def": "def type(self) -> int" }, "rotation": { "type": "func", @@ -3555,7 +3616,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float rotation()" + "def": "float rotation()", + "py_def": "def rotation(self) -> float" }, "quality": { "type": "func", @@ -3569,7 +3631,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int quality()" + "def": "int quality()", + "py_def": "def quality(self) -> int" } }, "def": "class BarCode" @@ -4052,7 +4115,8 @@ ], "ret_type": null, "static": false, - "def": "Displacement(float x_translation, float y_translation, float rotation, float scale, float response)" + "def": "Displacement(float x_translation, float y_translation, float rotation, float scale, float response)", + "py_def": "def __init__(self, x_translation: float, y_translation: float, rotation: float, scale: float, response: float) -> None" }, "__getitem__": { "type": "func", @@ -4075,7 +4139,8 @@ ], "ret_type": "int&", "static": false, - "def": "int &__getitem__(int index)" + "def": "int &__getitem__(int index)", + "py_def": "def __getitem__(self, index: int) -> int" }, "x_translation": { "type": "func", @@ -4089,7 +4154,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float x_translation()" + "def": "float x_translation()", + "py_def": "def x_translation(self) -> float" }, "y_translation": { "type": "func", @@ -4103,7 +4169,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float y_translation()" + "def": "float y_translation()", + "py_def": "def y_translation(self) -> float" }, "rotation": { "type": "func", @@ -4117,7 +4184,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float rotation()" + "def": "float rotation()", + "py_def": "def rotation(self) -> float" }, "scale": { "type": "func", @@ -4131,7 +4199,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float scale()" + "def": "float scale()", + "py_def": "def scale(self) -> float" }, "response": { "type": "func", @@ -4145,7 +4214,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float response()" + "def": "float response()", + "py_def": "def response(self) -> float" } }, "def": "class Displacement" @@ -4179,7 +4249,8 @@ ], "ret_type": null, "static": false, - "def": "LBPKeyPoint(std::valarray &data)" + "def": "LBPKeyPoint(std::valarray &data)", + "py_def": "def __init__(self, data: list[int]) -> None" } }, "def": "class LBPKeyPoint" @@ -4331,7 +4402,8 @@ ], "ret_type": null, "static": false, - "def": "KPTMatch(int cx, int cy, int x, int y, int w, int h, int score, int theta, int match)" + "def": "KPTMatch(int cx, int cy, int x, int y, int w, int h, int score, int theta, int match)", + "py_def": "def __init__(self, cx: int, cy: int, x: int, y: int, w: int, h: int, score: int, theta: int, match: int) -> None" } }, "def": "class KPTMatch" @@ -4377,7 +4449,8 @@ ], "ret_type": null, "static": false, - "def": "ORBKeyPoint(std::vector &data, int threshold, bool normalized)" + "def": "ORBKeyPoint(std::vector &data, int threshold, bool normalized)", + "py_def": "def __init__(self, data: list[KeyPoint], threshold: int, normalized: bool) -> None" }, "get_data": { "type": "func", @@ -4391,7 +4464,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector get_data()" + "def": "std::vector get_data()", + "py_def": "def get_data(self) -> list[KeyPoint]" } }, "def": "class ORBKeyPoint" @@ -4421,7 +4495,8 @@ "args": [], "ret_type": null, "static": false, - "def": "HaarCascade()" + "def": "HaarCascade()", + "py_def": "def __init__(self) -> None" } }, "def": "class HaarCascade" @@ -9137,7 +9212,8 @@ ], "ret_type": null, "static": false, - "def": "Camera(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, const char *device = nullptr, int fps = -1, int buff_num = 3, bool open = true)" + "def": "Camera(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, const char *device = nullptr, int fps = -1, int buff_num = 3, bool open = true)", + "py_def": "def __init__(self, width: int = -1, height: int = -1, format: maix.image.Format = ..., device: str = None, fps: int = -1, buff_num: int = 3, open: bool = True) -> None" }, "get_ch_nums": { "type": "func", @@ -9151,7 +9227,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int get_ch_nums()" + "def": "int get_ch_nums()", + "py_def": "def get_ch_nums(self) -> int" }, "open": { "type": "func", @@ -9198,7 +9275,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err open(int width = -1, int height = -1, image::Format format = image::FMT_INVALID, int fps = -1, int buff_num = -1)" + "def": "err::Err open(int width = -1, int height = -1, image::Format format = image::FMT_INVALID, int fps = -1, int buff_num = -1)", + "py_def": "def open(self, width: int = -1, height: int = -1, format: maix.image.Format = ..., fps: int = -1, buff_num: int = -1) -> maix.err.Err" }, "read": { "type": "func", @@ -9232,7 +9310,8 @@ ], "ret_type": "image::Image*", "static": false, - "def": "image::Image *read(void *buff = nullptr, size_t buff_size = 0, bool block = true)" + "def": "image::Image *read(void *buff = nullptr, size_t buff_size = 0, bool block = true)", + "py_def": "def read(self, buff: capsule = None, buff_size: int = 0, block: bool = True) -> maix.image.Image" }, "clear_buff": { "type": "func", @@ -9245,7 +9324,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void clear_buff()" + "def": "void clear_buff()", + "py_def": "def clear_buff(self) -> None" }, "skip_frames": { "type": "func", @@ -9267,7 +9347,8 @@ ], "ret_type": "void", "static": false, - "def": "void skip_frames(int num)" + "def": "void skip_frames(int num)", + "py_def": "def skip_frames(self, num: int) -> None" }, "close": { "type": "func", @@ -9280,7 +9361,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void close()" + "def": "void close()", + "py_def": "def close(self) -> None" }, "add_channel": { "type": "func", @@ -9333,7 +9415,8 @@ ], "ret_type": "camera::Camera*", "static": false, - "def": "camera::Camera *add_channel(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, int fps = -1, int buff_num = 3, bool open = true)" + "def": "camera::Camera *add_channel(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, int fps = -1, int buff_num = 3, bool open = true)", + "py_def": "def add_channel(self, width: int = -1, height: int = -1, format: maix.image.Format = ..., fps: int = -1, buff_num: int = 3, open: bool = True) -> Camera" }, "is_opened": { "type": "func", @@ -9347,7 +9430,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_opened()" + "def": "bool is_opened()", + "py_def": "def is_opened(self) -> bool" }, "is_closed": { "type": "func", @@ -9361,7 +9445,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_closed()" + "def": "bool is_closed()", + "py_def": "def is_closed(self) -> bool" }, "width": { "type": "func", @@ -9375,7 +9460,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int width()" + "def": "int width()", + "py_def": "def width(self) -> int" }, "height": { "type": "func", @@ -9389,7 +9475,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int height()" + "def": "int height()", + "py_def": "def height(self) -> int" }, "fps": { "type": "func", @@ -9403,7 +9490,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int fps()" + "def": "int fps()", + "py_def": "def fps(self) -> int" }, "format": { "type": "func", @@ -9417,7 +9505,8 @@ "args": [], "ret_type": "image::Format", "static": false, - "def": "image::Format format()" + "def": "image::Format format()", + "py_def": "def format(self) -> maix.image.Format" }, "buff_num": { "type": "func", @@ -9431,7 +9520,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int buff_num()" + "def": "int buff_num()", + "py_def": "def buff_num(self) -> int" }, "hmirror": { "type": "func", @@ -9451,7 +9541,8 @@ ], "ret_type": "int", "static": false, - "def": "int hmirror(int value = -1)" + "def": "int hmirror(int value = -1)", + "py_def": "def hmirror(self, value: int = -1) -> int" }, "vflip": { "type": "func", @@ -9471,7 +9562,8 @@ ], "ret_type": "int", "static": false, - "def": "int vflip(int value = -1)" + "def": "int vflip(int value = -1)", + "py_def": "def vflip(self, value: int = -1) -> int" }, "exposure": { "type": "func", @@ -9491,7 +9583,8 @@ ], "ret_type": "float", "static": false, - "def": "float exposure(int value = -1)" + "def": "float exposure(int value = -1)", + "py_def": "def exposure(self, value: int = -1) -> float" }, "gain": { "type": "func", @@ -9511,7 +9604,8 @@ ], "ret_type": "float", "static": false, - "def": "float gain(int value = -1)" + "def": "float gain(int value = -1)", + "py_def": "def gain(self, value: int = -1) -> float" }, "device": { "type": "func", @@ -9525,7 +9619,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string device()" + "def": "std::string device()", + "py_def": "def device(self) -> str" }, "write_reg": { "type": "func", @@ -9560,7 +9655,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err write_reg(int addr, int data, int bit_width = 8)" + "def": "err::Err write_reg(int addr, int data, int bit_width = 8)", + "py_def": "def write_reg(self, addr: int, data: int, bit_width: int = 8) -> maix.err.Err" }, "read_reg": { "type": "func", @@ -9589,7 +9685,8 @@ ], "ret_type": "int", "static": false, - "def": "int read_reg(int addr, int bit_width = 8)" + "def": "int read_reg(int addr, int bit_width = 8)", + "py_def": "def read_reg(self, addr: int, bit_width: int = 8) -> int" }, "show_colorbar": { "type": "func", @@ -9612,7 +9709,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err show_colorbar(bool enable)" + "def": "err::Err show_colorbar(bool enable)", + "py_def": "def show_colorbar(self, enable: bool) -> maix.err.Err" }, "set_resolution": { "type": "func", @@ -9640,7 +9738,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_resolution(int width, int height)" + "def": "err::Err set_resolution(int width, int height)", + "py_def": "def set_resolution(self, width: int, height: int) -> maix.err.Err" }, "set_hmirror": { "type": "func", @@ -9662,7 +9761,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_hmirror(bool en)" + "def": "err::Err set_hmirror(bool en)", + "py_def": "def set_hmirror(self, en: bool) -> maix.err.Err" }, "set_vflip": { "type": "func", @@ -9684,7 +9784,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_vflip(bool en)" + "def": "err::Err set_vflip(bool en)", + "py_def": "def set_vflip(self, en: bool) -> maix.err.Err" }, "set_luma": { "type": "func", @@ -9706,7 +9807,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_luma(int value)" + "def": "err::Err set_luma(int value)", + "py_def": "def set_luma(self, value: int) -> maix.err.Err" }, "set_constrast": { "type": "func", @@ -9728,7 +9830,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_constrast(int value)" + "def": "err::Err set_constrast(int value)", + "py_def": "def set_constrast(self, value: int) -> maix.err.Err" }, "set_saturation": { "type": "func", @@ -9750,7 +9853,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_saturation(int value)" + "def": "err::Err set_saturation(int value)", + "py_def": "def set_saturation(self, value: int) -> maix.err.Err" } }, "def": "class Camera" @@ -9819,7 +9923,8 @@ ], "ret_type": null, "static": false, - "def": "Display(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, const char *device = nullptr, bool open = true)" + "def": "Display(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, const char *device = nullptr, bool open = true)", + "py_def": "def __init__(self, width: int = -1, height: int = -1, format: maix.image.Format = ..., device: str = None, open: bool = True) -> None" }, "width": { "type": "func", @@ -9833,7 +9938,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int width()" + "def": "int width()", + "py_def": "def width(self) -> int" }, "height": { "type": "func", @@ -9850,7 +9956,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int height()" + "def": "int height()", + "py_def": "def height(self) -> int" }, "size": { "type": "func", @@ -9867,7 +9974,8 @@ "args": [], "ret_type": "std::vector", "static": false, - "def": "std::vector size()" + "def": "std::vector size()", + "py_def": "def size(self) -> list[int]" }, "format": { "type": "func", @@ -9881,7 +9989,8 @@ "args": [], "ret_type": "image::Format", "static": false, - "def": "image::Format format()" + "def": "image::Format format()", + "py_def": "def format(self) -> maix.image.Format" }, "open": { "type": "func", @@ -9916,7 +10025,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err open(int width = -1, int height = -1, image::Format format = image::FMT_INVALID)" + "def": "err::Err open(int width = -1, int height = -1, image::Format format = image::FMT_INVALID)", + "py_def": "def open(self, width: int = -1, height: int = -1, format: maix.image.Format = ...) -> maix.err.Err" }, "close": { "type": "func", @@ -9930,7 +10040,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err close()" + "def": "err::Err close()", + "py_def": "def close(self) -> maix.err.Err" }, "add_channel": { "type": "func", @@ -9971,7 +10082,8 @@ ], "ret_type": "display::Display*", "static": false, - "def": "display::Display *add_channel(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, bool open = true)" + "def": "display::Display *add_channel(int width = -1, int height = -1, image::Format format = image::FMT_RGB888, bool open = true)", + "py_def": "def add_channel(self, width: int = -1, height: int = -1, format: maix.image.Format = ..., open: bool = True) -> Display" }, "is_opened": { "type": "func", @@ -9985,7 +10097,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_opened()" + "def": "bool is_opened()", + "py_def": "def is_opened(self) -> bool" }, "is_closed": { "type": "func", @@ -9999,7 +10112,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_closed()" + "def": "bool is_closed()", + "py_def": "def is_closed(self) -> bool" }, "show": { "type": "func", @@ -10028,7 +10142,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err show(image::Image &img, image::Fit fit = image::FIT_CONTAIN)" + "def": "err::Err show(image::Image &img, image::Fit fit = image::FIT_CONTAIN)", + "py_def": "def show(self, img: maix.image.Image, fit: maix.image.Fit = ...) -> maix.err.Err" }, "device": { "type": "func", @@ -10042,7 +10157,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string device()" + "def": "std::string device()", + "py_def": "def device(self) -> str" }, "set_backlight": { "type": "func", @@ -10064,7 +10180,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_backlight(float value)" + "def": "void set_backlight(float value)", + "py_def": "def set_backlight(self, value: float) -> None" }, "set_hmirror": { "type": "func", @@ -10086,7 +10203,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_hmirror(bool en)" + "def": "err::Err set_hmirror(bool en)", + "py_def": "def set_hmirror(self, en: bool) -> maix.err.Err" }, "set_vflip": { "type": "func", @@ -10108,7 +10226,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_vflip(bool en)" + "def": "err::Err set_vflip(bool en)", + "py_def": "def set_vflip(self, en: bool) -> maix.err.Err" } }, "def": "class Display" @@ -10677,6 +10796,19 @@ "static": false, "def": "err::Err rename(const std::string &src, const std::string &dst)" }, + "sync": { + "type": "func", + "name": "sync", + "doc": { + "brief": "Sync files, ensure they're wrriten to disk from RAM", + "maixpy": "maix.fs.sync", + "py_doc": "Sync files, ensure they're wrriten to disk from RAM" + }, + "args": [], + "ret_type": "void", + "static": false, + "def": "void sync()" + }, "getsize": { "type": "func", "name": "getsize", @@ -10873,6 +11005,21 @@ "py_doc": "File read write ops" }, "members": { + "__init__": { + "type": "func", + "name": "File", + "doc": { + "brief": "Construct File object", + "maixpy": "maix.fs.File.__init__", + "maixcdk": "maix.fs.File.File", + "py_doc": "Construct File object" + }, + "args": [], + "ret_type": null, + "static": false, + "def": "File()", + "py_def": "def __init__(self) -> None" + }, "open": { "type": "func", "name": "open", @@ -10900,7 +11047,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err open(const std::string &path, const std::string &mode)" + "def": "err::Err open(const std::string &path, const std::string &mode)", + "py_def": "def open(self, path: str, mode: str) -> maix.err.Err" }, "close": { "type": "func", @@ -10913,7 +11061,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void close()" + "def": "void close()", + "py_def": "def close(self) -> None" }, "read": { "type": "func", @@ -10936,7 +11085,8 @@ ], "ret_type": "std::vector*", "static": false, - "def": "std::vector *read(int size)" + "def": "std::vector *read(int size)", + "py_def": "def read(self, size: int) -> list[int]" }, "readline": { "type": "func", @@ -10950,7 +11100,8 @@ "args": [], "ret_type": "std::string*", "static": false, - "def": "std::string *readline()" + "def": "std::string *readline()", + "py_def": "def readline(self) -> str" }, "write": { "type": "func", @@ -10973,7 +11124,8 @@ ], "ret_type": "int", "static": false, - "def": "int write(const std::vector &buf)" + "def": "int write(const std::vector &buf)", + "py_def": "def write(self, buf: list[int]) -> int" }, "seek": { "type": "func", @@ -11002,7 +11154,8 @@ ], "ret_type": "int", "static": false, - "def": "int seek(int offset, int whence)" + "def": "int seek(int offset, int whence)", + "py_def": "def seek(self, offset: int, whence: int) -> int" }, "tell": { "type": "func", @@ -11016,7 +11169,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int tell()" + "def": "int tell()", + "py_def": "def tell(self) -> int" }, "flush": { "type": "func", @@ -11030,7 +11184,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err flush()" + "def": "err::Err flush()", + "py_def": "def flush(self) -> maix.err.Err" } }, "def": "class File" @@ -11087,13 +11242,13 @@ "brief": "maix.sys module" }, "members": { - "os_version()": { + "os_version": { "type": "func", "name": "os_version", "doc": { "brief": "Get system version", "return": "version string, e.g. \"2024.4.1-13af4b\"", - "maixpy": "maix.sys.os_version()", + "maixpy": "maix.sys.os_version", "py_doc": "Get system version\n\nReturns: version string, e.g. \"2024.4.1-13af4b\"\n" }, "args": [], @@ -11101,13 +11256,13 @@ "static": false, "def": "std::string os_version()" }, - "device_name()": { + "device_name": { "type": "func", "name": "device_name", "doc": { "brief": "Get device name", "return": "device name, e.g. \"MaixCAM\"", - "maixpy": "maix.sys.device_name()", + "maixpy": "maix.sys.device_name", "py_doc": "Get device name\n\nReturns: device name, e.g. \"MaixCAM\"\n" }, "args": [], @@ -11115,13 +11270,13 @@ "static": false, "def": "std::string device_name()" }, - "host_name()": { + "host_name": { "type": "func", "name": "host_name", "doc": { "brief": "Get host name", "return": "host name, e.g. \"maixcam-2f9f\"", - "maixpy": "maix.sys.host_name()", + "maixpy": "maix.sys.host_name", "py_doc": "Get host name\n\nReturns: host name, e.g. \"maixcam-2f9f\"\n" }, "args": [], @@ -11129,13 +11284,13 @@ "static": false, "def": "std::string host_name()" }, - "host_domain()": { + "host_domain": { "type": "func", "name": "host_domain", "doc": { "brief": "Get host domain", "return": "host domain, e.g. \"maixcam-2f9f.local\"", - "maixpy": "maix.sys.host_domain()", + "maixpy": "maix.sys.host_domain", "py_doc": "Get host domain\n\nReturns: host domain, e.g. \"maixcam-2f9f.local\"\n" }, "args": [], @@ -11143,13 +11298,13 @@ "static": false, "def": "std::string host_domain()" }, - "ip_address()": { + "ip_address": { "type": "func", "name": "ip_address", "doc": { "brief": "Get ip address", "return": "ip address, dict type, e.g. {\"eth0\": \"192.168.0.195\", \"wlan0\": \"192.168.0.123\", \"usb0\": \"10.47.159.1\"}", - "maixpy": "maix.sys.ip_address()", + "maixpy": "maix.sys.ip_address", "py_doc": "Get ip address\n\nReturns: ip address, dict type, e.g. {\"eth0\": \"192.168.0.195\", \"wlan0\": \"192.168.0.123\", \"usb0\": \"10.47.159.1\"}\n" }, "args": [], @@ -11157,13 +11312,13 @@ "static": false, "def": "std::map ip_address()" }, - "mac_address()": { + "mac_address": { "type": "func", "name": "mac_address", "doc": { "brief": "Get mac address", "return": "mac address, dict type, e.g. {\"eth0\": \"00:0c:29:2f:9f:00\", \"wlan0\": \"00:0c:29:2f:9f:01\", \"usb0\": \"00:0c:29:2f:9f:02\"}", - "maixpy": "maix.sys.mac_address()", + "maixpy": "maix.sys.mac_address", "py_doc": "Get mac address\n\nReturns: mac address, dict type, e.g. {\"eth0\": \"00:0c:29:2f:9f:00\", \"wlan0\": \"00:0c:29:2f:9f:01\", \"usb0\": \"00:0c:29:2f:9f:02\"}\n" }, "args": [], @@ -11171,13 +11326,13 @@ "static": false, "def": "std::map mac_address()" }, - "device_key()": { + "device_key": { "type": "func", "name": "device_key", "doc": { "brief": "Get device key, can be unique id of device", "return": "device key, 32 bytes hex string, e.g. \"1234567890abcdef1234567890abcdef\"", - "maixpy": "maix.sys.device_key()", + "maixpy": "maix.sys.device_key", "py_doc": "Get device key, can be unique id of device\n\nReturns: device key, 32 bytes hex string, e.g. \"1234567890abcdef1234567890abcdef\"\n" }, "args": [], @@ -11185,13 +11340,13 @@ "static": false, "def": "std::string device_key()" }, - "memory_info()": { + "memory_info": { "type": "func", "name": "memory_info", "doc": { "brief": "Get memory info", "return": "memory info, dict type, e.g. {\"total\": 1024, \"used\": 512, \"hw_total\": 256*1024*1024}\ntotal: total memory size in Byte.\nused: used memory size in Byte.\nhw_total: total memory size in Byte of hardware, the total <= hw_total\uff0c\nOS kernel may reserve some memory for some hardware like camera, npu, display etc.", - "maixpy": "maix.sys.memory_info()", + "maixpy": "maix.sys.memory_info", "py_doc": "Get memory info\n\nReturns: memory info, dict type, e.g. {\"total\": 1024, \"used\": 512, \"hw_total\": 256*1024*1024}\ntotal: total memory size in Byte.\nused: used memory size in Byte.\nhw_total: total memory size in Byte of hardware, the total <= hw_total\uff0c\nOS kernel may reserve some memory for some hardware like camera, npu, display etc.\n" }, "args": [], @@ -11199,7 +11354,7 @@ "static": false, "def": "std::map memory_info()" }, - "bytes_to_human(1234)": { + "bytes_to_human": { "type": "func", "name": "bytes_to_human", "doc": { @@ -11212,7 +11367,7 @@ "sep:": "separator string, e.g. \" \"" }, "return": "human readable string, e.g. \"1.21 KB\"", - "maixpy": "maix.sys.bytes_to_human(1234)", + "maixpy": "maix.sys.bytes_to_human", "py_doc": "Bytes to human readable string\n\nArgs:\n - bytes:: bytes size\uff0ce.g. 1234B = 1234/1024 = 1.205 KB\n - precision:: decimal precision, default 2\n - base:: base number, default 1024\n - unit:: unit string, e.g. \"B\"\n - sep:: separator string, e.g. \" \"\n\n\nReturns: human readable string, e.g. \"1.21 KB\"\n" }, "args": [ @@ -11246,13 +11401,13 @@ "static": false, "def": "std::string bytes_to_human(unsigned long long bytes, int precision = 2, int base = 1024, const std::string &unit = \"B\", const std::string &sep = \" \")" }, - "cpu_freq()": { + "cpu_freq": { "type": "func", "name": "cpu_freq", "doc": { "brief": "Get CPU frequency", "return": "CPU frequency, dict type, e.g. {\"cpu0\": 1000000000, \"cpu1\": 1000000000}", - "maixpy": "maix.sys.cpu_freq()", + "maixpy": "maix.sys.cpu_freq", "py_doc": "Get CPU frequency\n\nReturns: CPU frequency, dict type, e.g. {\"cpu0\": 1000000000, \"cpu1\": 1000000000}\n" }, "args": [], @@ -11260,13 +11415,13 @@ "static": false, "def": "std::map cpu_freq()" }, - "cpu_temp()": { + "cpu_temp": { "type": "func", "name": "cpu_temp", "doc": { "brief": "Get CPU temperature", "return": "CPU temperature, unit dgree, dict type, e.g. {\"cpu\": 50.0, \"cpu0\": 50, \"cpu1\": 50}", - "maixpy": "maix.sys.cpu_temp()", + "maixpy": "maix.sys.cpu_temp", "py_doc": "Get CPU temperature\n\nReturns: CPU temperature, unit dgree, dict type, e.g. {\"cpu\": 50.0, \"cpu0\": 50, \"cpu1\": 50}\n" }, "args": [], @@ -11274,13 +11429,13 @@ "static": false, "def": "std::map cpu_temp()" }, - "cpu_usage()": { + "cpu_usage": { "type": "func", "name": "cpu_usage", "doc": { "brief": "Get CPU usage", "return": "CPU usage, dict type, e.g. {\"cpu\": 50.0, \"cpu0\": 50, \"cpu1\": 50}", - "maixpy": "maix.sys.cpu_usage()", + "maixpy": "maix.sys.cpu_usage", "py_doc": "Get CPU usage\n\nReturns: CPU usage, dict type, e.g. {\"cpu\": 50.0, \"cpu0\": 50, \"cpu1\": 50}\n" }, "args": [], @@ -11288,13 +11443,13 @@ "static": false, "def": "std::map cpu_usage()" }, - "npu_freq()": { + "npu_freq": { "type": "func", "name": "npu_freq", "doc": { "brief": "Get NPU frequency", "return": "NPU frequency, dict type, e.g. {\"npu0\": 500000000}", - "maixpy": "maix.sys.npu_freq()", + "maixpy": "maix.sys.npu_freq", "py_doc": "Get NPU frequency\n\nReturns: NPU frequency, dict type, e.g. {\"npu0\": 500000000}\n" }, "args": [], @@ -11302,7 +11457,7 @@ "static": false, "def": "std::map npu_freq()" }, - "disk_usage()": { + "disk_usage": { "type": "func", "name": "disk_usage", "doc": { @@ -11311,7 +11466,7 @@ "path:": "disk path, default \"/\"" }, "return": "disk usage, dict type, e.g. {\"total\": 1024, \"used\": 512}", - "maixpy": "maix.sys.disk_usage()", + "maixpy": "maix.sys.disk_usage", "py_doc": "Get disk usage\n\nArgs:\n - path:: disk path, default \"/\"\n\n\nReturns: disk usage, dict type, e.g. {\"total\": 1024, \"used\": 512}\n" }, "args": [ @@ -11325,7 +11480,7 @@ "static": false, "def": "std::map disk_usage(const std::string &path = \"/\")" }, - "disk_partitions()": { + "disk_partitions": { "type": "func", "name": "disk_partitions", "doc": { @@ -11334,7 +11489,7 @@ "only_disk": "only return real disk, tempfs sysfs etc. not return, default true." }, "return": "disk partition and mount point info, list type, e.g. [{\"device\": \"/dev/mmcblk0p1\", \"mountpoint\": \"/mnt/sdcard\", \"fstype\": \"vfat\"}]", - "maixpy": "maix.sys.disk_partitions()", + "maixpy": "maix.sys.disk_partitions", "py_doc": "Get disk partition and mount point info\n\nArgs:\n - only_disk: only return real disk, tempfs sysfs etc. not return, default true.\n\n\nReturns: disk partition and mount point info, list type, e.g. [{\"device\": \"/dev/mmcblk0p1\", \"mountpoint\": \"/mnt/sdcard\", \"fstype\": \"vfat\"}]\n" }, "args": [ @@ -11761,7 +11916,8 @@ ], "ret_type": null, "static": false, - "def": "DateTime(int year = 0, int month = 0, int day = 0, int hour = 0, int minute = 0, int second = 0, int microsecond = 0, int yearday = 0, int weekday = 0, int zone = 0)" + "def": "DateTime(int year = 0, int month = 0, int day = 0, int hour = 0, int minute = 0, int second = 0, int microsecond = 0, int yearday = 0, int weekday = 0, int zone = 0)", + "py_def": "def __init__(self, year: int = 0, month: int = 0, day: int = 0, hour: int = 0, minute: int = 0, second: int = 0, microsecond: int = 0, yearday: int = 0, weekday: int = 0, zone: int = 0) -> None" }, "strftime": { "type": "func", @@ -11781,7 +11937,8 @@ ], "ret_type": "std::string", "static": false, - "def": "std::string strftime(const std::string &format)" + "def": "std::string strftime(const std::string &format)", + "py_def": "def strftime(self, format: str) -> str" }, "timestamp": { "type": "func", @@ -11795,7 +11952,8 @@ "args": [], "ret_type": "double", "static": false, - "def": "double timestamp()" + "def": "double timestamp()", + "py_def": "def timestamp(self) -> float" } }, "def": "class DateTime" @@ -11973,7 +12131,8 @@ ], "ret_type": null, "static": false, - "def": "Trans(const std::map> &locales_dict)" + "def": "Trans(const std::map> &locales_dict)", + "py_def": "def __init__(self, locales_dict: dict[str, dict[str, str]]) -> None" }, "tr": { "type": "func", @@ -12002,7 +12161,8 @@ ], "ret_type": "string", "static": false, - "def": "string tr(const string &key, const string locale = \"\")" + "def": "string tr(const string &key, const string locale = \"\")", + "py_def": "def tr(self, key: str, locale: str = '') -> str" }, "set_locale": { "type": "func", @@ -12024,7 +12184,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_locale(const string &locale)" + "def": "void set_locale(const string &locale)", + "py_def": "def set_locale(self, locale: str) -> None" }, "get_locale": { "type": "func", @@ -12038,7 +12199,8 @@ "args": [], "ret_type": "string", "static": false, - "def": "string get_locale()" + "def": "string get_locale()", + "py_def": "def get_locale(self) -> str" } }, "def": "class Trans" @@ -12289,7 +12451,8 @@ ], "ret_type": "Bytes*", "static": false, - "def": "Bytes *encode_resp_ok(Bytes *body = nullptr)" + "def": "Bytes *encode_resp_ok(Bytes *body = nullptr)", + "py_def": "def encode_resp_ok(*args, **kwargs)" }, "encode_report": { "type": "func", @@ -12312,7 +12475,8 @@ ], "ret_type": "Bytes*", "static": false, - "def": "Bytes *encode_report(Bytes *body = nullptr)" + "def": "Bytes *encode_report(Bytes *body = nullptr)", + "py_def": "def encode_report(*args, **kwargs)" }, "encode_resp_err": { "type": "func", @@ -12341,7 +12505,8 @@ ], "ret_type": "Bytes*", "static": false, - "def": "Bytes *encode_resp_err(err::Err code, const std::string &msg)" + "def": "Bytes *encode_resp_err(err::Err code, const std::string &msg)", + "py_def": "def encode_resp_err(*args, **kwargs)" }, "set_body": { "type": "func", @@ -12363,7 +12528,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_body(Bytes *body_new)" + "def": "void set_body(Bytes *body_new)", + "py_def": "def set_body(self, body_new: maix.Bytes(bytes)) -> None" }, "get_body": { "type": "func", @@ -12377,7 +12543,8 @@ "args": [], "ret_type": "Bytes*", "static": false, - "def": "Bytes *get_body()" + "def": "Bytes *get_body()", + "py_def": "def get_body(*args, **kwargs)" } }, "def": "class MSG" @@ -12624,7 +12791,8 @@ "args": [], "ret_type": null, "static": false, - "def": "Test()" + "def": "Test()", + "py_def": "def __init__(self) -> None" } }, "def": "class Test" @@ -12776,7 +12944,8 @@ ], "ret_type": null, "static": false, - "def": "Example(std::string &name, int age = 18, example::Kind pet = example::KIND_NONE)" + "def": "Example(std::string &name, int age = 18, example::Kind pet = example::KIND_NONE)", + "py_def": "def __init__(self, name: str, age: int = 18, pet: Kind = ...) -> None" }, "get_name": { "type": "func", @@ -12790,7 +12959,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string get_name()" + "def": "std::string get_name()", + "py_def": "def get_name(self) -> str" }, "get_age": { "type": "func", @@ -12804,7 +12974,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int get_age()" + "def": "int get_age()", + "py_def": "def get_age(self) -> int" }, "set_name": { "type": "func", @@ -12826,7 +12997,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_name(std::string name)" + "def": "void set_name(std::string name)", + "py_def": "def set_name(self, name: str) -> None" }, "set_age": { "type": "func", @@ -12848,7 +13020,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_age(int age)" + "def": "void set_age(int age)", + "py_def": "def set_age(self, age: int) -> None" }, "set_pet": { "type": "func", @@ -12868,7 +13041,8 @@ ], "ret_type": "void", "static": false, - "def": "void set_pet(example::Kind pet)" + "def": "void set_pet(example::Kind pet)", + "py_def": "def set_pet(self, pet: Kind) -> None" }, "get_pet": { "type": "func", @@ -12881,7 +13055,8 @@ "args": [], "ret_type": "example::Kind", "static": false, - "def": "example::Kind get_pet()" + "def": "example::Kind get_pet()", + "py_def": "def get_pet(self) -> Kind" }, "get_list": { "type": "func", @@ -12904,7 +13079,8 @@ ], "ret_type": "std::vector*", "static": false, - "def": "std::vector *get_list(std::vector in)" + "def": "std::vector *get_list(std::vector in)", + "py_def": "def get_list(self, in: list[int]) -> list[int]" }, "get_dict": { "type": "func", @@ -12927,7 +13103,8 @@ ], "ret_type": "std::map", "static": false, - "def": "std::map get_dict(std::map &in)" + "def": "std::map get_dict(std::map &in)", + "py_def": "def get_dict(self, in: dict[str, int]) -> dict[str, int]" }, "hello": { "type": "func", @@ -12950,7 +13127,8 @@ ], "ret_type": "std::string", "static": true, - "def": "static std::string hello(std::string name)" + "def": "static std::string hello(std::string name)", + "py_def": "def hello(name: str) -> str" }, "hello_bytes": { "type": "func", @@ -12973,7 +13151,8 @@ ], "ret_type": "Bytes*", "static": true, - "def": "static Bytes *hello_bytes(Bytes &bytes)" + "def": "static Bytes *hello_bytes(Bytes &bytes)", + "py_def": "def hello_bytes(*args, **kwargs)" }, "callback": { "type": "func", @@ -12996,7 +13175,8 @@ ], "ret_type": "int", "static": true, - "def": "static int callback(std::function cb)" + "def": "static int callback(std::function cb)", + "py_def": "def callback(cb: typing.Callable[[int, int], int]) -> int" }, "hello_dict": { "type": "func", @@ -13018,7 +13198,8 @@ ], "ret_type": "std::map*", "static": true, - "def": "static std::map *hello_dict(std::map *dict)" + "def": "static std::map *hello_dict(std::map *dict)", + "py_def": "def hello_dict(dict: dict[str, int]) -> dict[str, int]" }, "name": { "type": "var", @@ -13096,7 +13277,8 @@ "args": [], "ret_type": "std::map*", "static": true, - "def": "static std::map *dict_test()" + "def": "static std::map *dict_test()", + "py_def": "def dict_test() -> dict[str, Test]" } }, "def": "class Example" @@ -13857,6 +14039,29 @@ }, "auto_add": true }, + "network": { + "type": "module", + "doc": { + "brief": "maix.network module" + }, + "members": { + "have_network": { + "type": "func", + "name": "have_network", + "doc": { + "brief": "Return if device have network(WiFi/Eth etc.)", + "return": "True if have network, else False.", + "maixpy": "maix.network.have_network", + "py_doc": "Return if device have network(WiFi/Eth etc.)\n\nReturns: True if have network, else False.\n" + }, + "args": [], + "ret_type": "bool", + "static": false, + "def": "bool have_network()" + } + }, + "auto_add": true + }, "nn": { "type": "module", "doc": { @@ -15321,7 +15526,8 @@ ], "ret_type": null, "static": false, - "def": "GPIO(std::string pin, gpio::Mode mode = gpio::Mode::IN, gpio::Pull pull = gpio::Pull::PULL_NONE)" + "def": "GPIO(std::string pin, gpio::Mode mode = gpio::Mode::IN, gpio::Pull pull = gpio::Pull::PULL_NONE)", + "py_def": "def __init__(self, pin: str, mode: Mode = ..., pull: Pull = ...) -> None" }, "value": { "type": "func", @@ -15344,7 +15550,8 @@ ], "ret_type": "int", "static": false, - "def": "int value(int value = -1)" + "def": "int value(int value = -1)", + "py_def": "def value(self, value: int = -1) -> int" }, "high": { "type": "func", @@ -15357,7 +15564,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void high()" + "def": "void high()", + "py_def": "def high(self) -> None" }, "low": { "type": "func", @@ -15370,7 +15578,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void low()" + "def": "void low()", + "py_def": "def low(self) -> None" }, "toggle": { "type": "func", @@ -15383,7 +15592,8 @@ "args": [], "ret_type": "void", "static": false, - "def": "void toggle()" + "def": "void toggle()", + "py_def": "def toggle(self) -> None" } }, "def": "class GPIO" @@ -15773,7 +15983,8 @@ ], "ret_type": null, "static": false, - "def": "UART(const std::string &port = \"\", int baudrate = 115200, uart::BITS databits = uart::BITS_8,\n uart::PARITY parity = uart::PARITY_NONE, uart::STOP stopbits = uart::STOP_1,\n uart::FLOW_CTRL flow_ctrl = uart::FLOW_CTRL_NONE)" + "def": "UART(const std::string &port = \"\", int baudrate = 115200, uart::BITS databits = uart::BITS_8,\n uart::PARITY parity = uart::PARITY_NONE, uart::STOP stopbits = uart::STOP_1,\n uart::FLOW_CTRL flow_ctrl = uart::FLOW_CTRL_NONE)", + "py_def": "def __init__(self, port: str = '', baudrate: int = 115200, databits: BITS = ..., parity: PARITY = ..., stopbits: STOP = ..., flow_ctrl: FLOW_CTRL = ...) -> None" }, "set_port": { "type": "func", @@ -15796,7 +16007,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_port(const std::string &port)" + "def": "err::Err set_port(const std::string &port)", + "py_def": "def set_port(self, port: str) -> maix.err.Err" }, "get_port": { "type": "func", @@ -15810,7 +16022,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string get_port()" + "def": "std::string get_port()", + "py_def": "def get_port(self) -> str" }, "set_baudrate": { "type": "func", @@ -15833,7 +16046,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err set_baudrate(int baudrate)" + "def": "err::Err set_baudrate(int baudrate)", + "py_def": "def set_baudrate(self, baudrate: int) -> maix.err.Err" }, "get_baudrate": { "type": "func", @@ -15847,7 +16061,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int get_baudrate()" + "def": "int get_baudrate()", + "py_def": "def get_baudrate(self) -> int" }, "open": { "type": "func", @@ -15861,7 +16076,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err open()" + "def": "err::Err open()", + "py_def": "def open(self) -> maix.err.Err" }, "is_open": { "type": "func", @@ -15875,7 +16091,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_open()" + "def": "bool is_open()", + "py_def": "def is_open(self) -> bool" }, "close": { "type": "func", @@ -15889,7 +16106,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err close()" + "def": "err::Err close()", + "py_def": "def close(self) -> maix.err.Err" }, "write_str": { "type": "func", @@ -15912,7 +16130,8 @@ ], "ret_type": "int", "static": false, - "def": "int write_str(const std::string &str)" + "def": "int write_str(const std::string &str)", + "py_def": "def write_str(self, str: str) -> int" }, "write": { "type": "func", @@ -15935,7 +16154,8 @@ ], "ret_type": "int", "static": false, - "def": "int write(Bytes &data)" + "def": "int write(Bytes &data)", + "py_def": "def write(self, data: maix.Bytes(bytes)) -> int" }, "available": { "type": "func", @@ -15959,7 +16179,8 @@ ], "ret_type": "int", "static": false, - "def": "int available(int timeout = 0)" + "def": "int available(int timeout = 0)", + "py_def": "def available(self, timeout: int = 0) -> int" }, "read": { "type": "func", @@ -15988,7 +16209,8 @@ ], "ret_type": "Bytes*", "static": false, - "def": "Bytes *read(int len = -1, int timeout = 0)" + "def": "Bytes *read(int len = -1, int timeout = 0)", + "py_def": "def read(*args, **kwargs)" }, "readline": { "type": "func", @@ -16011,7 +16233,8 @@ ], "ret_type": "Bytes*", "static": false, - "def": "Bytes *readline(int timeout = -1)" + "def": "Bytes *readline(int timeout = -1)", + "py_def": "def readline(*args, **kwargs)" } }, "def": "class UART : public comm::CommBase" @@ -16125,7 +16348,8 @@ ], "ret_type": null, "static": false, - "def": "Key(std::function callback = nullptr, bool open = true)" + "def": "Key(std::function callback = nullptr, bool open = true)", + "py_def": "def __init__(self, callback: typing.Callable[[int, int], None] = None, open: bool = True) -> None" }, "open": { "type": "func", @@ -16139,7 +16363,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err open()" + "def": "err::Err open()", + "py_def": "def open(self) -> maix.err.Err" }, "close": { "type": "func", @@ -16153,7 +16378,8 @@ "args": [], "ret_type": "err::Err", "static": false, - "def": "err::Err close()" + "def": "err::Err close()", + "py_def": "def close(self) -> maix.err.Err" }, "is_opened": { "type": "func", @@ -16167,7 +16393,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_opened()" + "def": "bool is_opened()", + "py_def": "def is_opened(self) -> bool" }, "read": { "type": "func", @@ -16182,7 +16409,8 @@ "args": [], "ret_type": "std::pair", "static": false, - "def": "std::pair read()" + "def": "std::pair read()", + "py_def": "def read(self) -> tuple[int, int]" } }, "def": "class Key" @@ -16601,7 +16829,8 @@ ], "ret_type": null, "static": false, - "def": "ADC(int pin, int resolution, float vref = -1)" + "def": "ADC(int pin, int resolution, float vref = -1)", + "py_def": "def __init__(self, pin: int, resolution: int, vref: float = -1) -> None" }, "read": { "type": "func", @@ -16615,7 +16844,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int read()" + "def": "int read()", + "py_def": "def read(self) -> int" }, "read_vol": { "type": "func", @@ -16629,7 +16859,8 @@ "args": [], "ret_type": "float", "static": false, - "def": "float read_vol()" + "def": "float read_vol()", + "py_def": "def read_vol(self) -> float" } }, "def": "class ADC" @@ -16716,7 +16947,8 @@ ], "ret_type": null, "static": false, - "def": "Rtsp(std::string ip = std::string(), int port = 8554, int fps = 30, rtsp::RtspStreamType stream_type = rtsp::RtspStreamType::RTSP_STREAM_H265)" + "def": "Rtsp(std::string ip = std::string(), int port = 8554, int fps = 30, rtsp::RtspStreamType stream_type = rtsp::RtspStreamType::RTSP_STREAM_H265)", + "py_def": "def __init__(self, ip: str = '', port: int = 8554, fps: int = 30, stream_type: RtspStreamType = ...) -> None" }, "start": { "type": "func", @@ -16746,7 +16978,8 @@ "static": false, "def": "err::Err stop()" } - ] + ], + "py_def": "def start(self) -> maix.err.Err" }, "bind_camera": { "type": "func", @@ -16769,7 +17002,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err bind_camera(camera::Camera *camera)" + "def": "err::Err bind_camera(camera::Camera *camera)", + "py_def": "def bind_camera(self, camera: maix.camera.Camera) -> maix.err.Err" }, "write": { "type": "func", @@ -16794,7 +17028,8 @@ ], "ret_type": "err::Err", "static": false, - "def": "err::Err write(video::VideoStream &stream)" + "def": "err::Err write(video::VideoStream &stream)", + "py_def": "def write(self, stream: ...) -> maix.err.Err" }, "get_url": { "type": "func", @@ -16808,7 +17043,8 @@ "args": [], "ret_type": "std::string", "static": false, - "def": "std::string get_url()" + "def": "std::string get_url()", + "py_def": "def get_url(self) -> str" }, "to_camera": { "type": "func", @@ -16822,7 +17058,8 @@ "args": [], "ret_type": "camera::Camera*", "static": false, - "def": "camera::Camera *to_camera()" + "def": "camera::Camera *to_camera()", + "py_def": "def to_camera(self) -> maix.camera.Camera" }, "rtsp_is_start": { "type": "func", @@ -16836,7 +17073,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool rtsp_is_start()" + "def": "bool rtsp_is_start()", + "py_def": "def rtsp_is_start(self) -> bool" } }, "def": "class Rtsp" @@ -16900,6 +17138,28 @@ "members": {}, "def": "class VideoStream" }, + "Encode": { + "type": "class", + "name": "Encode", + "doc": { + "brief": "Encode class", + "maixpy": "maix.video.Encode", + "py_doc": "Encode class" + }, + "members": {}, + "def": "class Encode" + }, + "Decode": { + "type": "class", + "name": "Decode", + "doc": { + "brief": "Decode class", + "maixpy": "maix.video.Decode", + "py_doc": "Decode class" + }, + "members": {}, + "def": "class Decode" + }, "Video": { "type": "class", "name": "Video", @@ -16915,15 +17175,36 @@ "doc": { "brief": "Construct a new Video object", "param": { + "path": "video path. if record is true, xxx.h265 means video format is H265, xxx.mp4 means video format is MP4", + "record": "If record is true, means record vide. if record is false means play video, default is false.", + "interval": "record interval. unit: us", "width": "video width, default is -1, means auto, mostly means max width of video support", "height": "video height, default is -1, means auto, mostly means max height of video support", - "type": "video type, default is VideoType::VIDEO_NONE" + "audio": "If audio is true, means record with audio. default is false.", + "sample_rate": "audio sample rate, default is 44100.", + "channel": "audio channel, default is 1.", + "open": "If true, vido will automatically call open() after creation. default is true." }, "maixpy": "maix.video.Video.__init__", "maixcdk": "maix.video.Video.Video", - "py_doc": "Construct a new Video object\n\nArgs:\n - width: video width, default is -1, means auto, mostly means max width of video support\n - height: video height, default is -1, means auto, mostly means max height of video support\n - type: video type, default is VideoType::VIDEO_NONE\n" + "py_doc": "Construct a new Video object\n\nArgs:\n - path: video path. if record is true, xxx.h265 means video format is H265, xxx.mp4 means video format is MP4\n - record: If record is true, means record vide. if record is false means play video, default is false.\n - interval: record interval. unit: us\n - width: video width, default is -1, means auto, mostly means max width of video support\n - height: video height, default is -1, means auto, mostly means max height of video support\n - audio: If audio is true, means record with audio. default is false.\n - sample_rate: audio sample rate, default is 44100.\n - channel: audio channel, default is 1.\n - open: If true, vido will automatically call open() after creation. default is true.\n" }, "args": [ + [ + "std::string", + "path", + "std::string()" + ], + [ + "bool", + "record", + "false" + ], + [ + "int", + "interval", + "33333" + ], [ "int", "width", @@ -16935,14 +17216,30 @@ "-1" ], [ - "video::VideoType", - "type", - "video::VideoType::VIDEO_NONE" + "bool", + "audio", + "false" + ], + [ + "int", + "sample_rate", + "44100" + ], + [ + "int", + "channel", + "1" + ], + [ + "bool", + "open", + "true" ] ], "ret_type": null, "static": false, - "def": "Video(int width = -1, int height = -1, video::VideoType type = video::VideoType::VIDEO_NONE)" + "def": "Video(std::string path = std::string(), bool record = false, int interval = 33333, int width = -1, int height = -1, bool audio = false, int sample_rate = 44100, int channel = 1, bool open = true)", + "py_def": "def __init__(self, width: int = -1, height: int = -1, type: VideoType = ...) -> None" }, "open": { "type": "func", @@ -16950,15 +17247,35 @@ "doc": { "brief": "Open video and run", "param": { + "path": "video path. if record is true, xxx.h265 means video format is H265, xxx.mp4 means video format is MP4", + "record": "If record is true, means record vide. if record is false means play video, default is false.", + "interval": "record interval. unit: us", "width": "video width, default is -1, means auto, mostly means max width of video support", "height": "video height, default is -1, means auto, mostly means max height of video support", - "format": "video output format, default same as the constructor's format argument" + "audio": "If audio is true, means record with audio. default is false.", + "sample_rate": "audio sample rate, default is 44100.", + "channel": "audio channel, default is 1." }, "return": "error code, err::ERR_NONE means success, others means failed", "maixpy": "maix.video.Video.open", - "py_doc": "Open video and run\n\nArgs:\n - width: video width, default is -1, means auto, mostly means max width of video support\n - height: video height, default is -1, means auto, mostly means max height of video support\n - format: video output format, default same as the constructor's format argument\n\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" + "py_doc": "Open video and run\n\nArgs:\n - path: video path. if record is true, xxx.h265 means video format is H265, xxx.mp4 means video format is MP4\n - record: If record is true, means record vide. if record is false means play video, default is false.\n - interval: record interval. unit: us\n - width: video width, default is -1, means auto, mostly means max width of video support\n - height: video height, default is -1, means auto, mostly means max height of video support\n - audio: If audio is true, means record with audio. default is false.\n - sample_rate: audio sample rate, default is 44100.\n - channel: audio channel, default is 1.\n\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" }, "args": [ + [ + "std::string", + "path", + "std::string()" + ], + [ + "bool", + "record", + "false" + ], + [ + "int", + "interval", + "33333" + ], [ "int", "width", @@ -16970,14 +17287,113 @@ "-1" ], [ - "video::VideoType", - "type", - "video::VideoType::VIDEO_NONE" + "bool", + "audio", + "false" + ], + [ + "int", + "sample_rate", + "44100" + ], + [ + "int", + "channel", + "1" ] ], "ret_type": "err::Err", "static": false, - "def": "err::Err open(int width = -1, int height = -1, video::VideoType type = video::VideoType::VIDEO_NONE)" + "def": "err::Err open(std::string path = std::string(), bool record = false, int interval = 33333, int width = -1, int height = -1, bool audio = false, int sample_rate = 44100, int channel = 1)", + "py_def": "def open(self, width: int = -1, height: int = -1, type: VideoType = ...) -> maix.err.Err" + }, + "close": { + "type": "func", + "name": "close", + "doc": { + "brief": "Close video", + "maixpy": "maix.video.Video.close", + "py_doc": "Close video" + }, + "args": [], + "ret_type": "void", + "static": false, + "def": "void close()", + "py_def": "def close(self) -> None" + }, + "bind_camera": { + "type": "func", + "name": "bind_camera", + "doc": { + "brief": "Bind camera", + "param": { + "camera": "camera object" + }, + "return": "error code, err::ERR_NONE means success, others means failed", + "maixpy": "maix.video.Video.bind_camera", + "py_doc": "Bind camera\n\nArgs:\n - camera: camera object\n\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" + }, + "args": [ + [ + "camera::Camera *", + "camera", + null + ] + ], + "ret_type": "err::Err", + "static": false, + "def": "err::Err bind_camera(camera::Camera *camera)" + }, + "record_start": { + "type": "func", + "name": "record_start", + "doc": { + "brief": "start record video", + "param": { + "record_time": "record video time, unit: ms.\nIf record_time = -1, mean record will not auto stop until record_finish() is called." + }, + "return": "error code, err::ERR_NONE means success, others means failed", + "maixpy": "maix.video.Video.record_start", + "py_doc": "start record video\n\nArgs:\n - record_time: record video time, unit: ms.\nIf record_time = -1, mean record will not auto stop until record_finish() is called.\n\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" + }, + "args": [ + [ + "uint64_t", + "record_time", + "-1" + ] + ], + "ret_type": "err::Err", + "static": false, + "def": "err::Err record_start(uint64_t record_time = -1)" + }, + "record_finish": { + "type": "func", + "name": "record_finish", + "doc": { + "brief": "stop record video", + "return": "error code, err::ERR_NONE means success, others means failed", + "maixpy": "maix.video.Video.record_finish", + "py_doc": "stop record video\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" + }, + "args": [], + "ret_type": "err::Err", + "static": false, + "def": "err::Err record_finish()" + }, + "capture": { + "type": "func", + "name": "capture", + "doc": { + "brief": "stop record video", + "return": "error code, err::ERR_NONE means success, others means failed", + "maixpy": "maix.video.Video.capture", + "py_doc": "stop record video\n\nReturns: error code, err::ERR_NONE means success, others means failed\n" + }, + "args": [], + "ret_type": "image::Image*", + "static": false, + "def": "image::Image *capture()" }, "encode": { "type": "func", @@ -17000,7 +17416,8 @@ ], "ret_type": "video::VideoStream", "static": false, - "def": "video::VideoStream encode(image::Image &img)" + "def": "video::VideoStream encode(image::Image &img)", + "py_def": "def encode(self, img: maix.image.Image) -> VideoStream" }, "decode": { "type": "func", @@ -17023,20 +17440,22 @@ ], "ret_type": "image::Image*", "static": false, - "def": "image::Image *decode(video::VideoStream &stream)" + "def": "image::Image *decode(video::VideoStream &stream)", + "py_def": "def decode(self, stream: VideoStream) -> maix.image.Image" }, - "close": { + "is_recording": { "type": "func", - "name": "close", + "name": "is_recording", "doc": { - "brief": "Close video", - "maixpy": "maix.video.Video.close", - "py_doc": "Close video" + "brief": "Check if video is recording", + "return": "true if video is recording, false if not", + "maixpy": "maix.video.Video.is_recording", + "py_doc": "Check if video is recording\n\nReturns: true if video is recording, false if not\n" }, "args": [], - "ret_type": "void", + "ret_type": "bool", "static": false, - "def": "void close()" + "def": "bool is_recording()" }, "is_opened": { "type": "func", @@ -17050,7 +17469,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_opened()" + "def": "bool is_opened()", + "py_def": "def is_opened(self) -> bool" }, "is_closed": { "type": "func", @@ -17064,7 +17484,8 @@ "args": [], "ret_type": "bool", "static": false, - "def": "bool is_closed()" + "def": "bool is_closed()", + "py_def": "def is_closed(self) -> bool" }, "width": { "type": "func", @@ -17078,7 +17499,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int width()" + "def": "int width()", + "py_def": "def width(self) -> int" }, "height": { "type": "func", @@ -17092,7 +17514,8 @@ "args": [], "ret_type": "int", "static": false, - "def": "int height()" + "def": "int height()", + "py_def": "def height(self) -> int" } }, "def": "class Video" diff --git a/maixpy/api/index.html b/maixpy/api/index.html index 1f32d65..51541c9 100644 --- a/maixpy/api/index.html +++ b/maixpy/api/index.html @@ -114,6 +114,7 @@

MaixPy

+ + + +