-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(yolov8_obb): Implement obb task, add yolov8_obb sample.
Change-Id: I1104b1ee00a69786f45c1f04ba4117d34f836dcf
- Loading branch information
1 parent
1bf4446
commit 0aa5339
Showing
16 changed files
with
722 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2022 Sophgo Technologies Inc. All rights reserved. | ||
// | ||
// SOPHON-STREAM is licensed under the 2-Clause BSD License except for the | ||
// third-party components. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef SOPHON_STREAM_COMMON_OBB_OBJECT_METADATA_H_ | ||
#define SOPHON_STREAM_COMMON_OBB_OBJECT_METADATA_H_ | ||
|
||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
|
||
namespace sophon_stream { | ||
namespace common { | ||
struct ObbObjectMetadata { | ||
float x1, y1, x2, y2, x3, y3, x4, y4, score; | ||
int class_id; | ||
inline void add_offset(int x, int y){ | ||
this->x1 += x; | ||
this->x2 += x; | ||
this->x3 += x; | ||
this->x4 += x; | ||
this->y1 += y; | ||
this->y2 += y; | ||
this->y3 += y; | ||
this->y4 += y; | ||
} | ||
}; | ||
|
||
} // namespace common | ||
} // namespace sophon_stream | ||
|
||
#endif // SOPHON_STREAM_COMMON_POSED_OBJECT_METADATA_H_ |
Oops, something went wrong.