[−][src]Struct opencv::dnn::TextDetectionModel_EAST
This class represents high-level API for text detection DL networks compatible with EAST model.
Configurable parameters:
- (float) confThreshold - used to filter boxes by confidences, default: 0.5f
- (float) nmsThreshold - used in non maximum suppression, default: 0.0f
Implementations
impl TextDetectionModel_EAST
[src]
pub fn as_raw_TextDetectionModel_EAST(&self) -> *const c_void
[src]
pub fn as_raw_mut_TextDetectionModel_EAST(&mut self) -> *mut c_void
[src]
impl TextDetectionModel_EAST
[src]
pub fn default() -> Result<TextDetectionModel_EAST>
[src]
pub fn new(network: &Net) -> Result<TextDetectionModel_EAST>
[src]
pub fn new_1(model: &str, config: &str) -> Result<TextDetectionModel_EAST>
[src]
Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.
Parameters
- model: Binary file contains trained weights.
- config: Text file contains network configuration.
C++ default parameters
- config: ""
Trait Implementations
impl Boxed for TextDetectionModel_EAST
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for TextDetectionModel_EAST
[src]
impl ModelTrait for TextDetectionModel_EAST
[src]
pub fn as_raw_Model(&self) -> *const c_void
[src]
pub fn as_raw_mut_Model(&mut self) -> *mut c_void
[src]
pub fn set_input_size(&mut self, size: Size) -> Result<Model>
[src]
pub fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
[src]
pub fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
[src]
pub fn set_input_scale(&mut self, scale: f64) -> Result<Model>
[src]
pub fn set_input_crop(&mut self, crop: bool) -> Result<Model>
[src]
pub fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
[src]
pub fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool
) -> Result<()>
[src]
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool
) -> Result<()>
pub fn predict(
&self,
frame: &dyn ToInputArray,
outs: &mut dyn ToOutputArray
) -> Result<()>
[src]
&self,
frame: &dyn ToInputArray,
outs: &mut dyn ToOutputArray
) -> Result<()>
pub fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>
[src]
pub fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>
[src]
pub fn get_network_(&self) -> Result<Net>
[src]
pub fn get_network__1(&mut self) -> Result<Net>
[src]
impl Send for TextDetectionModel_EAST
[src]
impl TextDetectionModelTrait for TextDetectionModel_EAST
[src]
pub fn as_raw_TextDetectionModel(&self) -> *const c_void
[src]
pub fn as_raw_mut_TextDetectionModel(&mut self) -> *mut c_void
[src]
pub fn detect(
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<Vector<Point>>,
confidences: &mut Vector<f32>
) -> Result<()>
[src]
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<Vector<Point>>,
confidences: &mut Vector<f32>
) -> Result<()>
pub fn detect_1(
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<Vector<Point>>
) -> Result<()>
[src]
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<Vector<Point>>
) -> Result<()>
pub fn detect_text_rectangles(
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<RotatedRect>,
confidences: &mut Vector<f32>
) -> Result<()>
[src]
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<RotatedRect>,
confidences: &mut Vector<f32>
) -> Result<()>
pub fn detect_text_rectangles_1(
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<RotatedRect>
) -> Result<()>
[src]
&self,
frame: &dyn ToInputArray,
detections: &mut Vector<RotatedRect>
) -> Result<()>
impl TextDetectionModel_EASTTrait for TextDetectionModel_EAST
[src]
pub fn as_raw_TextDetectionModel_EAST(&self) -> *const c_void
[src]
pub fn as_raw_mut_TextDetectionModel_EAST(&mut self) -> *mut c_void
[src]
pub fn set_confidence_threshold(
&mut self,
conf_threshold: f32
) -> Result<TextDetectionModel_EAST>
[src]
&mut self,
conf_threshold: f32
) -> Result<TextDetectionModel_EAST>
pub fn get_confidence_threshold(&self) -> Result<f32>
[src]
pub fn set_nms_threshold(
&mut self,
nms_threshold: f32
) -> Result<TextDetectionModel_EAST>
[src]
&mut self,
nms_threshold: f32
) -> Result<TextDetectionModel_EAST>
pub fn get_nms_threshold(&self) -> Result<f32>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextDetectionModel_EAST
[src]
impl !Sync for TextDetectionModel_EAST
[src]
impl Unpin for TextDetectionModel_EAST
[src]
impl UnwindSafe for TextDetectionModel_EAST
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,