| class info |
| com.huawei.hms.mlplugin.card.bcr.MLBcrCaptureConfig.Factory |
| Represents the configurator factory of the bank card recognition plug-in, which is used to create a configurator instance for the bank card recognition plug-in. |
| Return type | Method name |
| MLBcrCaptureConfig | create() |
| MLBcrCaptureConfig.Factory | setOrientation(int orientation) |
| Method |
| public MLBcrCaptureConfig create() |
| Creates a configurator instance for the bank card recognition plug-in, and specifies the expected result type of bank card recognition. |
Return
| Type | desc |
| MLBcrCaptureConfig | Configurator instance of the bank card recognition plug-in. |
Sample Code
- MLBcrCaptureConfig config = new MLBcrCaptureConfig.Factory()
- // Set the recognition screen orientation.
- // MLBcrCaptureConfig.ORIENTATION_AUTO: adaptive mode. The physical sensor decides the plug-in screen orientation.
- // MLBcrCaptureConfig.ORIENTATION_LANDSCAPE: landscape mode. The screen width is greater than the screen height.
- // MLBcrCaptureConfig.ORIENTATION_PORTRAIT: portrait mode. The screen height is greater than the screen width.
- .setOrientation(MLBcrCaptureConfig.ORIENTATION_AUTO)
- .create();
| Method |
| public MLBcrCaptureConfig.Factory setOrientation(int orientation) |
| Sets the recognition screen orientation. |
Parameters
| Parameter name | Parameter desc |
| orientation | Recognition screen orientation. ORIENTATION_AUTO: adaptive mode ORIENTATION_LANDSCAPE: landscape mode ORIENTATION_PORTRAIT: portrait mode |
Return
| Type | desc |
| MLBcrCaptureConfig.Factory | Factory instance of the bank card recognition plug-in configurator. |