在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):edufolly/flutter_mobile_vision开源软件地址(OpenSource Url):https://github.com/edufolly/flutter_mobile_vision开源编程语言(OpenSource Language):Java 77.6%开源软件介绍(OpenSource Introduction):flutter_mobile_visionFlutter implementation for Google Mobile Vision. Based on Google Mobile Vision. Android Samples -=- iOS Samples Liked? Features
Your feature isn't listed? Open a issue right now!ScreenshotsUsageTo use this plugin :
dependencies:
flutter:
sdk: flutter
flutter_mobile_vision: ^0.1.3
@override
void initState() {
super.initState();
FlutterMobileVision.start().then((x) => setState(() {}));
} or for a better implementation: @override
void initState() {
super.initState();
FlutterMobileVision.start().then((previewSizes) => setState(() {
_previewBarcode = previewSizes[_cameraBarcode].first;
_previewOcr = previewSizes[_cameraOcr].first;
_previewFace = previewSizes[_cameraFace].first;
}));
} Barcode//...
List<Barcode> barcodes = [];
try {
barcodes = await FlutterMobileVision.scan(
flash: _torchBarcode,
autoFocus: _autoFocusBarcode,
formats: _onlyFormatBarcode,
multiple: _multipleBarcode,
waitTap: _waitTapBarcode,
showText: _showTextBarcode,
preview: _previewBarcode,
camera: _cameraBarcode,
fps: 15.0,
);
} on Exception {
barcodes.add(new Barcode('Failed to get barcode.'));
}
//... AndroidFor Android, you must do the following before you can use the plugin:
iOSIf you can help, the community thanks. Your fork is needed. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论