Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
fbernaly committed Apr 22, 2024
1 parent fe0679b commit d44e967
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions packages/google_ml_kit/lib/src/natural_language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class NaturalLanguage {

/// Returns instance of [LanguageIdentifier].
@Deprecated(
'Use [google_mlkit_language_id] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_language_id] plugin instead of [google_ml_kit].')
LanguageIdentifier languageIdentifier({double confidenceThreshold = 0.5}) {
return LanguageIdentifier(confidenceThreshold: confidenceThreshold);
}

/// Returns instance of [OnDeviceTranslator].
@Deprecated(
'Use [google_mlkit_translation] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_translation] plugin instead of [google_ml_kit].')
OnDeviceTranslator onDeviceTranslator(
{required TranslateLanguage sourceLanguage,
required TranslateLanguage targetLanguage}) {
Expand All @@ -27,14 +27,14 @@ class NaturalLanguage {

/// Returns instance of [EntityExtractor].
@Deprecated(
'Use [google_mlkit_entity_extraction] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_entity_extraction] plugin instead of [google_ml_kit].')
EntityExtractor entityExtractor(EntityExtractorLanguage language) {
return EntityExtractor(language: language);
}

/// Returns instance of [SmartReply].
@Deprecated(
'Use [google_mlkit_smart_reply] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_smart_reply] plugin instead of [google_ml_kit].')
SmartReply smartReply() {
return SmartReply();
}
Expand Down
18 changes: 9 additions & 9 deletions packages/google_ml_kit/lib/src/vision.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class Vision {
/// You can provide either [LocalLabelerOptions] to use a custom tflite model
/// Or [AutoMLImageLabelerOptions] to use auto ml vision model trained by you
@Deprecated(
'Use [google_mlkit_image_labeling] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_image_labeling] plugin instead of [google_ml_kit].')
ImageLabeler imageLabeler([ImageLabelerOptions? imageLabelerOptions]) {
return ImageLabeler(options: imageLabelerOptions ?? ImageLabelerOptions());
}

/// Returns instance of [BarcodeScanner]. By default it searches the input image for all [BarcodeFormat]s.
/// To limit the search model to specific [BarcodeFormat] pass list of [BarcodeFormat] as argument.
@Deprecated(
'Use [google_mlkit_barcode_scanning] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_barcode_scanning] plugin instead of [google_ml_kit].')
BarcodeScanner barcodeScanner([List<BarcodeFormat>? formatList]) {
return BarcodeScanner(formats: formatList ?? [BarcodeFormat.all]);
}
Expand All @@ -40,49 +40,49 @@ class Vision {
/// To limit the result to specific [PoseLandmark] pass list of [PoseLandmark]'s a
/// All the 33 positions have been declared as static constants in [PoseLandmark] class
@Deprecated(
'Use [google_mlkit_pose_detection] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_pose_detection] plugin instead of [google_ml_kit].')
PoseDetector poseDetector({PoseDetectorOptions? poseDetectorOptions}) {
return PoseDetector(options: poseDetectorOptions ?? PoseDetectorOptions());
}

/// Returns an instance of [DigitalInkRecognizer]
@Deprecated(
'Use [google_mlkit_digital_ink_recognition] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_digital_ink_recognition] plugin instead of [google_ml_kit].')
DigitalInkRecognizer digitalInkRecognizer({required String languageCode}) {
return DigitalInkRecognizer(languageCode: languageCode);
}

/// Return an instance of [TextRecognizer].
@Deprecated(
'Use [google_mlkit_text_recognition] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_text_recognition] plugin instead of [google_ml_kit].')
TextRecognizer textRecognizer({script = TextRecognitionScript.latin}) {
return TextRecognizer(script: script);
}

/// Return an instance of [FaceDetector].
@Deprecated(
'Use [google_mlkit_face_detection] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_face_detection] plugin instead of [google_ml_kit].')
FaceDetector faceDetector([FaceDetectorOptions? options]) {
return FaceDetector(options: options ?? FaceDetectorOptions());
}

/// Return an instance of [FaceMeshDetector].
@Deprecated(
'Use [google_mlkit_face_mesh_detection] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_face_mesh_detection] plugin instead of [google_ml_kit].')
FaceMeshDetector faceMeshDetector([FaceMeshDetectorOptions? option]) {
return FaceMeshDetector(option: option ?? FaceMeshDetectorOptions.faceMesh);
}

/// Returns an instance of [ObjectDetector].
@Deprecated(
'Use [google_mlkit_object_detection] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_object_detection] plugin instead of [google_ml_kit].')
ObjectDetector objectDetector({required ObjectDetectorOptions options}) {
return ObjectDetector(options: options);
}

/// Returns an instance of [SelfieSegmenter].
@Deprecated(
'Use [google_mlkit_selfie_segmentation] plugin directly instead of [google_ml_kit].')
'Use [google_mlkit_selfie_segmentation] plugin instead of [google_ml_kit].')
SelfieSegmenter selfieSegmenter(
{SegmenterMode mode = SegmenterMode.stream,
bool enableRawSizeMask = false}) {
Expand Down
26 changes: 13 additions & 13 deletions packages/google_ml_kit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ dependencies:

# Vision APIs
google_mlkit_commons: ^0.7.1
google_mlkit_barcode_scanning: ^0.11.0
google_mlkit_digital_ink_recognition: ^0.11.0
google_mlkit_face_detection: ^0.10.0
google_mlkit_face_mesh_detection: ^0.1.0
google_mlkit_image_labeling: ^0.11.0
google_mlkit_object_detection: ^0.12.0
google_mlkit_pose_detection: ^0.11.0
google_mlkit_selfie_segmentation: ^0.7.0
google_mlkit_text_recognition: ^0.12.0
google_mlkit_barcode_scanning: ^0.11.1
google_mlkit_digital_ink_recognition: ^0.11.1
google_mlkit_face_detection: ^0.10.1
google_mlkit_face_mesh_detection: ^0.1.1
google_mlkit_image_labeling: ^0.11.1
google_mlkit_object_detection: ^0.12.1
google_mlkit_pose_detection: ^0.11.1
google_mlkit_selfie_segmentation: ^0.7.1
google_mlkit_text_recognition: ^0.12.1

# uncomment these lines when working on the local plugins
# google_mlkit_commons:
Expand All @@ -44,10 +44,10 @@ dependencies:
# path: ../google_mlkit_text_recognition

# Natural Language APIs
google_mlkit_entity_extraction: ^0.12.0
google_mlkit_language_id: ^0.10.0
google_mlkit_translation: ^0.10.0
google_mlkit_smart_reply: ^0.10.0
google_mlkit_entity_extraction: ^0.12.1
google_mlkit_language_id: ^0.10.1
google_mlkit_translation: ^0.10.1
google_mlkit_smart_reply: ^0.10.1

# uncomment these lines when working on the local plugins
# google_mlkit_entity_extraction:
Expand Down

0 comments on commit d44e967

Please sign in to comment.