Skip to content

Commit

Permalink
chore: update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 7, 2023
1 parent e152616 commit bca84d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sample/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,9 @@ MaaBool my_analyze(MaaSyncContextHandle sync_context, const MaaImageBufferHandle

/* Output recognition result */

// Step 1: output out_box
// Step 1: output box
std::array<int, 4> my_box { 0 }; // your result
out_box->x = my_box[0];
out_box->y = my_box[1];
out_box->width = my_box[2];
out_box->height = my_box[3];
MaaSetRect(out_box, my_box[0], my_box[1], my_box[2], my_box[3]);

// Step 2: output anything you want
MaaSetString(out_detail,
Expand Down

0 comments on commit bca84d8

Please sign in to comment.