Hi On Sat, Mar 08, 2025 at 03:58:04PM +0100, m.kaindl0208@gmail.com wrote: > Those functions will be used by classify in the upcoming patches. > > Try the new filters using my Github Repo https://github.com/MaximilianKaindl/DeepFFMPEGVideoClassification. > > Any Feedback is appreciated! > > Signed-off-by: MaximilianKaindl > --- > libavutil/detection_bbox.c | 54 ++++++++++++++++++++++++++++++++++++++ > libavutil/detection_bbox.h | 31 ++++++++++++++++++++++ > 2 files changed, 85 insertions(+) > > diff --git a/libavutil/detection_bbox.c b/libavutil/detection_bbox.c index cb157b355b..378233121d 100644 > --- a/libavutil/detection_bbox.c > +++ b/libavutil/detection_bbox.c > @@ -18,6 +18,7 @@ > > #include "detection_bbox.h" > #include "mem.h" > +#include "libavutil/avstring.h" > > AVDetectionBBoxHeader *av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_size) { @@ -71,3 +72,56 @@ AVDetectionBBoxHeader *av_detection_bbox_create_side_data(AVFrame *frame, uint32 > > return header; > } > + > +int av_detection_bbox_fill_with_best_labels(char **labels, float > +*probabilities, int num_labels, AVDetectionBBox *bbox, int max_classes_per_box, float confidence_threshold) { > + int i, j, minpos, ret; The patch is corrupted by line breaks, check your editor settings for line/word wrap OR attach the patch OR use git send-email Applying: libavutil: add detectionbbox util functions error: corrupt patch at line 121 error: could not build fake ancestor Patch failed at 0001 libavutil: add detectionbbox util functions thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Elect your leaders based on what they did after the last election, not based on what they say before an election.