update demo names

This commit is contained in:
Neucrack
2025-09-10 18:27:33 +08:00
parent 480cc36bfe
commit 9d7b9bdca5
2620 changed files with 9 additions and 42 deletions

View File

@@ -24,7 +24,7 @@ MaixCDK
[![Build MaixCAM](https://github.com/sipeed/MaixCDK/actions/workflows/build_maixcam.yml/badge.svg)](https://github.com/sipeed/MaixCDK/actions/workflows/build_maixcam.yml)
[![Trigger wiki](https://github.com/sipeed/MaMaixCDKixPy/actions/workflows/trigger_wiki.yml/badge.svg)](https://github.com/sipeed/MaixCDK/actions/workflows/trigger_wiki.yml)
[English](./README.md) | 中文
English | [中文](./README_ZH.md)
</div>

View File

@@ -4,7 +4,7 @@ MaixCDK Examples
Examples in this directory are cross-platform, which means they can run on any platform supported by MaixCDK.
e.g. Camera demo.
All examples name should be start with noun like `image_show` but not `show_image`.
All examples name should be start with noun like `display_image_show` but not `display_show_image`.
Specific platform examples should be placed in `MaixCDK/test` directory.

View File

@@ -1,11 +0,0 @@
id: bytetrack_demo
name: ByteTrack
name[zh]: ByteTrack
version: 1.0.0
#icon: assets/hello.png
author: Sipeed Ltd
desc: ByteTrack
desc[zh]: ByteTrack
files:
# assets: assets

View File

@@ -1,11 +0,0 @@
id: focus_stack
name: focus_stack
name[zh]:
version: 1.0.0
#icon: assets/hello.png
author:
desc:
desc[zh]:
files:
# assets: assets

View File

@@ -18,8 +18,8 @@ int _main(int argc, char* argv[])
uint64_t t1, t2, t3;
char buf[128] = {0};
display::Display screen = display::Display();
log::info("screen size: %dx%d\n", screen.width(), screen.height());
display::Display disp = display::Display();
log::info("screen size: %dx%d\n", disp.width(), disp.height());
// time when start read image from camera
t1 = time::ticks_ms();
@@ -31,7 +31,7 @@ int _main(int argc, char* argv[])
// time when read image finished
t2 = time::ticks_ms();
screen.show(*img);
disp.show(*img);
// free image data, important!
delete img;
@@ -41,10 +41,10 @@ int _main(int argc, char* argv[])
snprintf(buf, sizeof(buf), "load: %ld, disp: %ld, all: %ld (ms)", t2-t1, t3-t2, t3-t1);
while(!app::need_exit())
{
// check if screen is closed by user(mostly for PC), and show image on screen
if(!screen.is_opened())
// check if disp is closed by user(mostly for PC), and show image on screen
if(!disp.is_opened())
{
log::info("screen closed\n");
log::info("disp closed\n");
break;
}
time::sleep_ms(50);

View File

@@ -86,7 +86,7 @@ int _main(int argc, char *argv[])
bool only_first_class = true;
nn::YOLOv8 detector("", dual_buff);
nn::YOLO11 detector("", dual_buff);
e = detector.load(model_path);
err::check_raise(e, "load model failed");
log::info("load yolov8 model %s success", model_path);

View File

@@ -1,11 +0,0 @@
id: onnxruntime_demo
name: onnxruntime_demo
name[zh]:
version: 1.0.0
#icon: assets/hello.png
author:
desc:
desc[zh]:
files:
# assets: assets

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Some files were not shown because too many files have changed in this diff Show More