-
Notifications
You must be signed in to change notification settings - Fork 25
Adds mediapipe_text package #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
2b45512
adds mediapipe_text package
craiglabenz 7b20bfb
Update .vscode/settings.json
craiglabenz 1de6617
resync headers
craiglabenz fed1f14
regenerated core bindings
craiglabenz 4cd5730
Apply suggestions from code review
Piinks 37b2c76
Adds example to `mediapipe-task-text` (#15)
craiglabenz 967bea9
added base Dart class ClassificationResult to consolidate results log…
craiglabenz d5113e1
Update Makefile
Piinks e03ede5
Update Makefile
Piinks 826f0d2
Update packages/mediapipe-task-text/build.dart
craiglabenz 1bdbb1e
Update packages/mediapipe-task-text/lib/src/tasks/text_classification…
craiglabenz 5f13c18
code review responses
craiglabenz 5f87e76
formatting
craiglabenz 1bc407c
removes stale comment
craiglabenz 070147d
adds Dart to Native converters, with tests
craiglabenz 34a824e
changes from code review
craiglabenz 9887fee
updates mediapipe-core to prepare for IO/web split
craiglabenz caf3413
Improves memory management in core tests
craiglabenz fd27076
updated ffigen / bindings
craiglabenz 9029f18
refactors text package for better memory management and eventual web/…
craiglabenz fcfc59f
removed stale test
craiglabenz 163b213
cleanup on aisle COMMENTS
craiglabenz 7a865b4
Comments and documentation improvements
craiglabenz 8403b9b
Moved log statement
craiglabenz 478f9b1
Removed native memory management helpers in favor of `free` extension…
craiglabenz 24ddcc8
Renamed abstract classes to have Base prefix
craiglabenz 1e60ba8
sorted out class constructors
craiglabenz 2e99712
Improved docstrings explaining memory ownership
craiglabenz c62bedf
Convert lists to lazy iterable / generators
craiglabenz 4aab937
added missing licenses
craiglabenz 9a43aac
Update packages/mediapipe-task-text/example/test/widgets_test.dart
craiglabenz 5b5e400
Update packages/mediapipe-task-text/example/lib/main.dart
craiglabenz a576c39
completed return style change
craiglabenz 93fe9c6
CI troubleshooting
craiglabenz 680160d
moved around debugging code
craiglabenz f7d6d0f
logging tweak
craiglabenz f7f6490
cat native-assets.yaml
craiglabenz f3594cb
moar logs
craiglabenz db148ab
removed bad echo
craiglabenz b07e023
fixed native-assets typo
craiglabenz f0aaa5c
Removes CI debugging statements
craiglabenz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,8 @@ | ||
| { | ||
| "files.associations": { | ||
| "base_options.h": "c", | ||
| "__config": "c", | ||
| "text_classifier.h": "c", | ||
| "category.h": "c" | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,5 +1,9 @@ | ||
| include: ../analysis_options.yaml | ||
|
|
||
| linter: | ||
| rules: | ||
| - public_member_api_docs # see https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-javadocs-etc | ||
craiglabenz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| analyzer: | ||
| exclude: | ||
| - "**/mediapipe_common_bindings.dart" | ||
This file contains hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| // Copyright 2014 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| export 'src/interface/interface.dart'; |
This file contains hidden or 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,5 @@ | ||
| // Copyright 2014 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| export 'src/io/mediapipe_core.dart'; |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,14 @@ | ||
| // Copyright 2014 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| /// Shortens long strings for logging, printing, etc. | ||
| extension DebuggableString on String { | ||
| /// Shortens the string to its first X characters, replacing the rest with an | ||
| /// ellipses and the total length. If the string is equal to or shorter than | ||
| /// the given length, then [shorten] is a no-op. | ||
| String shorten([int x = 10]) { | ||
| if (length <= x) return this; | ||
| return '${substring(0, x)}...[$length]'; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.