-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to saliency and recognize text
- Loading branch information
1 parent
e9c518e
commit c9ee4ee
Showing
18 changed files
with
216 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## 0.0.4 | ||
|
||
* Updated Recognize Text | ||
* Added Sailency | ||
|
||
## 0.0.3 | ||
|
||
* Added Human Pose 3D | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/apple_vision_recognize_text/lib/apple_vision_recognize_text.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library apple_vision_recognize_text; | ||
|
||
export 'src/recognize_text_controller.dart'; | ||
|
||
export 'src/recognize_text_info.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/apple_vision_recognize_text/lib/src/recognize_text_info.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'package:apple_vision_commons/apple_vision_commons.dart'; | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/services.dart'; | ||
|
||
/// A value that determines whether the request prioritizes accuracy or speed in text recognition. | ||
enum RecognitionLevel {fast,accurate} | ||
enum Dispatch {defaultQueue,background,unspecified,userInitiated,userInteractive,utility} | ||
|
||
class RecognizeTextData{ | ||
/// Process the image using apple vision and return the requested information or null value | ||
/// | ||
/// [image] as Uint8List is the image that needs to be processed | ||
/// this needs to be in an image format raw will not work. | ||
/// | ||
/// [imageSize] as Size is the size of the image that is being processed | ||
/// | ||
/// [dispatch] the ability to use this in the background | ||
/// | ||
/// [recognitionLevel] the speed of determining the information | ||
/// | ||
/// [orientation] the orientation of the image being processed | ||
/// | ||
/// [languages] An array of locale to detect, in priority order. | ||
/// | ||
/// [automaticallyDetectsLanguage] A Boolean value that indicates whether to attempt detecting the language to use the appropriate model for recognition and language correction. (Only available in iOS 16.0 or newer.) | ||
RecognizeTextData({ | ||
required this.image, | ||
required this.imageSize, | ||
this.orientation = ImageOrientation.up, | ||
this.dispatch = Dispatch.defaultQueue, | ||
this.recognitionLevel = RecognitionLevel.fast, | ||
this.automaticallyDetectsLanguage = false, | ||
this.languages | ||
}); | ||
|
||
Uint8List image; | ||
Size imageSize; | ||
Dispatch dispatch; | ||
RecognitionLevel recognitionLevel; | ||
ImageOrientation orientation; | ||
bool automaticallyDetectsLanguage; | ||
List<Locale>? languages; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
## 0.0.2 | ||
|
||
* Added image orientation | ||
|
||
## 0.0.1 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.