Example #1
0
 /// <summary>
 /// Release the memory associated with this Yolo detector.
 /// </summary>
 protected override void DisposeObject()
 {
     if (_yoloDetectionModel != null)
     {
         _yoloDetectionModel.Dispose();
         _yoloDetectionModel = null;
     }
 }
Example #2
0
 /// <summary>
 /// Clear and reset the model. Required Init function to be called again before calling ProcessAndRender.
 /// </summary>
 public void Clear()
 {
     if (_yoloDetectionModel != null)
     {
         _yoloDetectionModel.Dispose();
         _yoloDetectionModel = null;
     }
 }
Example #3
0
 protected override void DisposeObject()
 {
     if (_yoloDetectionModel != null)
     {
         _yoloDetectionModel.Dispose();
         _yoloDetectionModel = null;
     }
     //throw new NotImplementedException();
 }
        /// <summary>
        /// Clear and reset the model. Required Init function to be called again before calling ProcessAndRender.
        /// </summary>
        public void Clear()
        {
            if (_vehicleLicensePlateDetectionModel != null)
            {
                _vehicleLicensePlateDetectionModel.Dispose();
                _vehicleLicensePlateDetectionModel = null;
            }

            if (_vehicleAttrRecognizerModel != null)
            {
                _vehicleAttrRecognizerModel.Dispose();
                _vehicleAttrRecognizerModel = null;
            }

            if (_ocr != null)
            {
                _ocr.Dispose();
                _ocr = null;
            }
        }
        /// <summary>
        /// Release the memory associated with this vehicle license plate detector
        /// </summary>
        protected override void DisposeObject()
        {
            if (_vehicleLicensePlateDetectionModel != null)
            {
                _vehicleLicensePlateDetectionModel.Dispose();
                _vehicleLicensePlateDetectionModel = null;
            }

            if (_vehicleAttrRecognizer != null)
            {
                _vehicleAttrRecognizer.Dispose();
                _vehicleAttrRecognizer = null;
            }

            if (_ocr != null)
            {
                _ocr.Dispose();
                _ocr = null;
            }
        }