/// <summary> /// ValueType copy from another ARCoreExtensionsConfig object into this one. /// </summary> /// <param name="otherConfig">The ARCoreExtensionsConfig to copy from.</param> public void CopyFrom(ARCoreExtensionsConfig otherConfig) { CloudAnchorMode = otherConfig.CloudAnchorMode; SegmentationMode = otherConfig.SegmentationMode; DepthModeOverride = otherConfig.DepthModeOverride; UseHorizontalAndVerticalLowFeatureGrowth = otherConfig.UseHorizontalAndVerticalLowFeatureGrowth; }
/// <summary> /// Sets the page segmentation mode. /// </summary> /// <param name="mode">Segmentation Mode</param> private void SetPageSegmentationMode(SegmentationMode mode) { Debug.Assert(m_Handle != IntPtr.Zero, "Handle must not be nulled!"); if(m_Handle != IntPtr.Zero) { TesseractOCRBridge.SetPageSegmentationMode(m_Handle, mode); } }
public static ApiSegmentationMode ToApiSegmentationMode(this SegmentationMode mode) { switch (mode) { case SegmentationMode.People: return(ApiSegmentationMode.People); case SegmentationMode.Disabled: default: return(ApiSegmentationMode.Disabled); } }
public static extern void SetPageSegmentationMode(IntPtr tesseractHandle, SegmentationMode mode);