protected void OnObjectsDetectButton(object sender, EventArgs e) { if (ControlsActive) { Detect.Haar( opencv, OriginalImage, GtkSelection.Selection, Convert.ToDouble(cameraImage.WidthRequest) / OriginalImage.Width, Convert.ToDouble(cameraImage.HeightRequest) / OriginalImage.Height ); } }