Exemple #1
0
        //javadoc: NMSBoxes(bboxes, scores, score_threshold, nms_threshold, indices)
        public static void NMSBoxes(MatOfRect2d bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices)
        {
            if (bboxes != null)
            {
                bboxes.ThrowIfDisposed();
            }
            if (scores != null)
            {
                scores.ThrowIfDisposed();
            }
            if (indices != null)
            {
                indices.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Mat bboxes_mat  = bboxes;
            Mat scores_mat  = scores;
            Mat indices_mat = indices;
            dnn_Dnn_NMSBoxes_15(bboxes_mat.nativeObj, scores_mat.nativeObj, score_threshold, nms_threshold, indices_mat.nativeObj);

            return;
#else
            return;
#endif
        }
Exemple #2
0
        //
        // C++:  bool cv::MultiTracker::update(Mat image, vector_Rect2d& boundingBox)
        //

        /**
         * Update the current tracking status.
         * param image input image
         * param boundingBox the tracking result, represent a list of ROIs of the tracked objects.
         * return automatically generated
         */
        public bool update(Mat image, MatOfRect2d boundingBox)
        {
            ThrowIfDisposed();
            if (image != null)
            {
                image.ThrowIfDisposed();
            }
            if (boundingBox != null)
            {
                boundingBox.ThrowIfDisposed();
            }
            Mat boundingBox_mat = boundingBox;

            return(tracking_MultiTracker_update_10(nativeObj, image.nativeObj, boundingBox_mat.nativeObj));
        }