qubee.calibration.preprocess.GetImage Class Reference#
|
Mobilint SDK qb Compiler v0.12.0.0
MCS002-KR
|
qubee.calibration.preprocess.GetImage Class Reference
Retrieve an image tensor from a file path or NumPy array using OpenCV. More...
Public Member Functions | |
| __init__ (self, bool to_float32=False, str channel_order="bgr") | |
| np.ndarray | __call__ (self, Union[np.ndarray, str] img_input) |
| Args: img_input (Union[np.ndarray, str]): Input image path or numpy tensor. | |
| get_image_data (self, str img_input) | |
Public Attributes | |
| to_float32 = to_float32 | |
| str | channel_order = channel_order.lower() |
| int | num_channel = 1: |
Detailed Description
Retrieve an image tensor from a file path or NumPy array using OpenCV.
- Parameters
-
to_float32 bool. Cast the output image to float32 when True. Defaults to False. channel_order string. Channel order to enforce ("bgr", "rgb", "bw", "rgba", or "brga"). Defaults to "bgr".
Definition at line 147 of file preprocess.py.
Constructor & Destructor Documentation
◆ __init__()
| qubee.calibration.preprocess.GetImage.__init__ | ( | self, | |
| bool | to_float32 = False, | ||
| str | channel_order = "bgr" ) |
Definition at line 155 of file preprocess.py.
Member Function Documentation
◆ __call__()
| np.ndarray qubee.calibration.preprocess.GetImage.__call__ | ( | self, | |
| Union[np.ndarray, str] | img_input ) |
Args: img_input (Union[np.ndarray, str]): Input image path or numpy tensor.
Returns: keepdims: Contains image numpy tensor and image meta such as "ori_shape".
Definition at line 161 of file preprocess.py.
◆ get_image_data()
| qubee.calibration.preprocess.GetImage.get_image_data | ( | self, | |
| str | img_input ) |
Definition at line 238 of file preprocess.py.
Member Data Documentation
◆ to_float32
| qubee.calibration.preprocess.GetImage.to_float32 = to_float32 |
Definition at line 157 of file preprocess.py.
◆ channel_order
| str qubee.calibration.preprocess.GetImage.channel_order = channel_order.lower() |
Definition at line 159 of file preprocess.py.
◆ num_channel
| int qubee.calibration.preprocess.GetImage.num_channel = 1: |
Definition at line 172 of file preprocess.py.
The documentation for this class was generated from the following file:
Generated by