mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Benchmark]Compare diff for OCR (#1415)
* avoid mem copy for cpp benchmark * set CMAKE_BUILD_TYPE to Release * Add SegmentationDiff * change pointer to reference * fixed bug * cast uint8 to int32 * Add diff compare for OCR * Add diff compare for OCR * rm ppocr pipeline * Add yolov5 diff compare * Add yolov5 diff compare * deal with comments * deal with comments * fixed bug * fixed bug
This commit is contained in:
5
fastdeploy/vision/utils/utils.h
Normal file → Executable file
5
fastdeploy/vision/utils/utils.h
Normal file → Executable file
@@ -67,8 +67,11 @@ void NMS(FaceDetectionResult* result, float iou_threshold = 0.5);
|
||||
/// Sort DetectionResult/FaceDetectionResult by score
|
||||
FASTDEPLOY_DECL void SortDetectionResult(DetectionResult* result);
|
||||
FASTDEPLOY_DECL void SortDetectionResult(FaceDetectionResult* result);
|
||||
/// Lex Sort DetectionResult/FaceDetectionResult by x(w) & y(h) axis
|
||||
/// Lex Sort DetectionResult by x(w) & y(h) axis
|
||||
FASTDEPLOY_DECL void LexSortDetectionResultByXY(DetectionResult* result);
|
||||
/// Lex Sort OCRDet Result by x(w) & y(h) axis
|
||||
FASTDEPLOY_DECL void LexSortOCRDetResultByXY(
|
||||
std::vector<std::array<int, 8>>* result);
|
||||
|
||||
/// L2 Norm / cosine similarity (for face recognition, ...)
|
||||
FASTDEPLOY_DECL std::vector<float>
|
||||
|
||||
Reference in New Issue
Block a user