Skip to content

Commit

Permalink
feat: Subject Segmentation (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonarafat authored Oct 7, 2024
1 parent d78a294 commit c27ac07
Show file tree
Hide file tree
Showing 41 changed files with 1,042 additions and 130 deletions.
172 changes: 87 additions & 85 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,94 +11,96 @@ on:
branches:
- master
- develop
- test
- chore

jobs:
lint:
runs-on: macos-latest

steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
- uses: subosito/[email protected]
with:
flutter-version: '3.24.0'
cache: true

- name: Install dependencies for google_ml_kit
working-directory: ./packages/google_ml_kit
run: flutter pub get

- name: Install dependencies for google_mlkit_barcode_scanning
working-directory: ./packages/google_mlkit_barcode_scanning
run: flutter pub get

- name: Install dependencies for google_mlkit_commons
working-directory: ./packages/google_mlkit_commons
run: flutter pub get

- name: Install dependencies for google_mlkit_face_detection
working-directory: ./packages/google_mlkit_face_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_face_mesh_detection
working-directory: ./packages/google_mlkit_face_mesh_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_image_labeling
working-directory: ./packages/google_mlkit_image_labeling
run: flutter pub get

- name: Install dependencies for google_mlkit_digital_ink_recognition
working-directory: ./packages/google_mlkit_digital_ink_recognition
run: flutter pub get

- name: Install dependencies for google_mlkit_document_scanner
working-directory: ./packages/google_mlkit_document_scanner
run: flutter pub get

- name: Install dependencies for google_mlkit_language_id
working-directory: ./packages/google_mlkit_language_id
run: flutter pub get

- name: Install dependencies for google_mlkit_object_detection
working-directory: ./packages/google_mlkit_object_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_pose_detection
working-directory: ./packages/google_mlkit_pose_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_text_recognition
working-directory: ./packages/google_mlkit_text_recognition
run: flutter pub get

- name: Install dependencies for google_mlkit_translation
working-directory: ./packages/google_mlkit_translation
run: flutter pub get

- name: Install dependencies for google_mlkit_entity_extraction
working-directory: ./packages/google_mlkit_entity_extraction
run: flutter pub get

- name: Install dependencies for google_mlkit_smart_reply
working-directory: ./packages/google_mlkit_smart_reply
run: flutter pub get

- name: Install dependencies for google_mlkit_selfie_segmentation
working-directory: ./packages/google_mlkit_selfie_segmentation
run: flutter pub get

- name: Install dependencies for example
working-directory: ./packages/example
run: flutter pub get

# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .

# Statically analyze the Dart code for any errors.
- run: flutter analyze .
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
- uses: subosito/[email protected]
with:
flutter-version: '3.24.0'
cache: true

- name: Install dependencies for google_ml_kit
working-directory: ./packages/google_ml_kit
run: flutter pub get

- name: Install dependencies for google_mlkit_barcode_scanning
working-directory: ./packages/google_mlkit_barcode_scanning
run: flutter pub get

- name: Install dependencies for google_mlkit_commons
working-directory: ./packages/google_mlkit_commons
run: flutter pub get

- name: Install dependencies for google_mlkit_face_detection
working-directory: ./packages/google_mlkit_face_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_face_mesh_detection
working-directory: ./packages/google_mlkit_face_mesh_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_image_labeling
working-directory: ./packages/google_mlkit_image_labeling
run: flutter pub get

- name: Install dependencies for google_mlkit_digital_ink_recognition
working-directory: ./packages/google_mlkit_digital_ink_recognition
run: flutter pub get

- name: Install dependencies for google_mlkit_document_scanner
working-directory: ./packages/google_mlkit_document_scanner
run: flutter pub get

- name: Install dependencies for google_mlkit_language_id
working-directory: ./packages/google_mlkit_language_id
run: flutter pub get

- name: Install dependencies for google_mlkit_object_detection
working-directory: ./packages/google_mlkit_object_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_pose_detection
working-directory: ./packages/google_mlkit_pose_detection
run: flutter pub get

- name: Install dependencies for google_mlkit_text_recognition
working-directory: ./packages/google_mlkit_text_recognition
run: flutter pub get

- name: Install dependencies for google_mlkit_translation
working-directory: ./packages/google_mlkit_translation
run: flutter pub get

- name: Install dependencies for google_mlkit_entity_extraction
working-directory: ./packages/google_mlkit_entity_extraction
run: flutter pub get

- name: Install dependencies for google_mlkit_smart_reply
working-directory: ./packages/google_mlkit_smart_reply
run: flutter pub get

- name: Install dependencies for google_mlkit_selfie_segmentation
working-directory: ./packages/google_mlkit_selfie_segmentation
run: flutter pub get

- name: Install dependencies for google_mlkit_subject_segmentation
working-directory: ./packages/google_mlkit_subject_segmentation
run: flutter pub get

- name: Install dependencies for example
working-directory: ./packages/example
run: flutter pub get

# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .

# Statically analyze the Dart code for any errors.
- run: flutter analyze .
9 changes: 7 additions & 2 deletions .github/workflows/inactive-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
close-issue-label: "close-inactivity"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
days-before-pr-stale: 14
days-before-pr-close: 7
stale-pr-label: "stale"
close-pr-label: "close-inactivity"
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity."
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
operations-per-run: 100
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# Name/Organization <email address>

Francisco Bernal <[email protected]>
Benson Arafat <[email protected]>
Bharat Biradar <[email protected]>
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Packages with changes:
- [`google_mlkit_pose_detection` - `v0.13.0`](#google_mlkit_pose_detection---v0130)
- [`google_mlkit_selfie_segmentation` - `v0.9.0`](#google_mlkit_selfie_segmentation---v090)
- [`google_mlkit_smart_reply` - `v0.12.0`](#google_mlkit_smart_reply---v0120)
- [`google_mlkit_subject_segmentation` - `v0.0.1`](#google_mlkit_subject_segmentation---v001)
- [`google_mlkit_text_recognition` - `v0.14.0`](#google_mlkit_text_recognition---v0140)
- [`google_mlkit_translation` - `v0.12.0`](#google_mlkit_translation---v0120)

Expand Down Expand Up @@ -97,6 +98,10 @@ Packages with changes:
* Update dependencies.
* Update README.

#### `google_mlkit_subject_segmentation` - `v0.0.1`

* Initial release.

#### `google_mlkit_text_recognition` - `v0.14.0`

* Update dependencies.
Expand Down
Loading

0 comments on commit c27ac07

Please sign in to comment.