Skip to content
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

Updated the Example to have Real Time Object Detection working out of the box. #33

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

xAlpharax
Copy link

Considerable changes inside the example to make the Real Time Object Detection work as intended OOTB.

Changes to be committed:
modified: .gitignore
modified: .metadata
modified: CHANGELOG.md
modified: LICENSE
modified: README.md
modified: analysis_options.yaml
modified: android/.gitignore
modified: android/build.gradle
modified: android/gradle/wrapper/gradle-wrapper.jar
modified: android/gradle/wrapper/gradle-wrapper.properties
modified: android/gradlew
modified: android/gradlew.bat
modified: android/libs/tesseract4android-release.aar
modified: android/settings.gradle
modified: android/src/main/AndroidManifest.xml
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/FlutterVisionPlugin.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Tesseract.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolo.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov5.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov8.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov8Seg.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/FeedInputTensorHelper.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/RenderScriptHelper.java
modified: android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/utils.java
modified: example/.gitignore
modified: example/.metadata
modified: example/README.md
modified: example/analysis_options.yaml
modified: example/android/.gitignore
modified: example/android/app/build.gradle
modified: example/android/app/src/debug/AndroidManifest.xml
modified: example/android/app/src/main/AndroidManifest.xml
deleted: example/android/app/src/main/java/com/vladih/computer_vision/flutter_vision_example/MainActivity.java
new file: example/android/app/src/main/kotlin/com/example/example/MainActivity.kt
modified: example/android/app/src/main/res/drawable-v21/launch_background.xml
modified: example/android/app/src/main/res/drawable/launch_background.xml
modified: example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
modified: example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
modified: example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
modified: example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
modified: example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
modified: example/android/app/src/main/res/values-night/styles.xml
modified: example/android/app/src/main/res/values/styles.xml
modified: example/android/app/src/profile/AndroidManifest.xml
modified: example/android/build.gradle
modified: example/android/gradle.properties
modified: example/android/gradle/wrapper/gradle-wrapper.properties
modified: example/android/settings.gradle
modified: example/assets/labels.txt
deleted: example/assets/tessdata/spa.traineddata
deleted: example/assets/tessdata_config.json
modified: example/assets/yolov5n.tflite
modified: example/assets/yolov8n-seg.tflite
deleted: example/assets/yolov8n.tflite
modified: example/ios/.gitignore
modified: example/ios/Flutter/AppFrameworkInfo.plist
modified: example/ios/Flutter/Debug.xcconfig
modified: example/ios/Flutter/Release.xcconfig
modified: example/ios/Runner.xcodeproj/project.pbxproj
modified: example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
modified: example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
modified: example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
modified: example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
modified: example/ios/Runner.xcworkspace/contents.xcworkspacedata
modified: example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
modified: example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
modified: example/ios/Runner/AppDelegate.swift
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
modified: example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
modified: example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
modified: example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
modified: example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
modified: example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
modified: example/ios/Runner/Base.lproj/LaunchScreen.storyboard
modified: example/ios/Runner/Base.lproj/Main.storyboard
modified: example/ios/Runner/Info.plist
modified: example/ios/Runner/Runner-Bridging-Header.h
modified: example/lib/main.dart
modified: example/pubspec.lock
modified: example/pubspec.yaml
modified: example/test/widget_test.dart
modified: ios/.gitignore
modified: ios/Assets/.gitkeep
modified: ios/Classes/FlutterVisionPlugin.h
modified: ios/Classes/FlutterVisionPlugin.m
modified: ios/Classes/SwiftFlutterVisionPlugin.swift
modified: ios/flutter_vision.podspec
modified: lib/flutter_vision.dart
modified: lib/src/plugin/android.dart
modified: lib/src/plugin/base.dart
modified: pubspec.yaml
modified: test/flutter_vision_test.dart

app. Plus, made the Real Time Object Detection / Instance Segmentation /
Classification better.

Changes to be committed:
    modified:   .gitignore
    modified:   .metadata
    modified:   CHANGELOG.md
    modified:   LICENSE
    modified:   README.md
    modified:   analysis_options.yaml
    modified:   android/.gitignore
    modified:   android/build.gradle
    modified:   android/gradle/wrapper/gradle-wrapper.jar
    modified:   android/gradle/wrapper/gradle-wrapper.properties
    modified:   android/gradlew
    modified:   android/gradlew.bat
    modified:   android/libs/tesseract4android-release.aar
    modified:   android/settings.gradle
    modified:   android/src/main/AndroidManifest.xml
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/FlutterVisionPlugin.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Tesseract.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolo.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov5.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov8.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolov8Seg.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/FeedInputTensorHelper.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/RenderScriptHelper.java
    modified:   android/src/main/java/com/vladih/computer_vision/flutter_vision/utils/utils.java
    modified:   example/.gitignore
    modified:   example/.metadata
    modified:   example/README.md
    modified:   example/analysis_options.yaml
    modified:   example/android/.gitignore
    modified:   example/android/app/build.gradle
    modified:   example/android/app/src/debug/AndroidManifest.xml
    modified:   example/android/app/src/main/AndroidManifest.xml
    deleted:    example/android/app/src/main/java/com/vladih/computer_vision/flutter_vision_example/MainActivity.java
    new file:   example/android/app/src/main/kotlin/com/example/example/MainActivity.kt
    modified:   example/android/app/src/main/res/drawable-v21/launch_background.xml
    modified:   example/android/app/src/main/res/drawable/launch_background.xml
    modified:   example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
    modified:   example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
    modified:   example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
    modified:   example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
    modified:   example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
    modified:   example/android/app/src/main/res/values-night/styles.xml
    modified:   example/android/app/src/main/res/values/styles.xml
    modified:   example/android/app/src/profile/AndroidManifest.xml
    modified:   example/android/build.gradle
    modified:   example/android/gradle.properties
    modified:   example/android/gradle/wrapper/gradle-wrapper.properties
    modified:   example/android/settings.gradle
    modified:   example/assets/labels.txt
    deleted:    example/assets/tessdata/spa.traineddata
    deleted:    example/assets/tessdata_config.json
    modified:   example/assets/yolov5n.tflite
    modified:   example/assets/yolov8n-seg.tflite
    deleted:    example/assets/yolov8n.tflite
    modified:   example/ios/.gitignore
    modified:   example/ios/Flutter/AppFrameworkInfo.plist
    modified:   example/ios/Flutter/Debug.xcconfig
    modified:   example/ios/Flutter/Release.xcconfig
    modified:   example/ios/Runner.xcodeproj/project.pbxproj
    modified:   example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
    modified:   example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
    modified:   example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
    modified:   example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
    modified:   example/ios/Runner.xcworkspace/contents.xcworkspacedata
    modified:   example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
    modified:   example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
    modified:   example/ios/Runner/AppDelegate.swift
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
    modified:   example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
    modified:   example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected]
    modified:   example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
    modified:   example/ios/Runner/Base.lproj/LaunchScreen.storyboard
    modified:   example/ios/Runner/Base.lproj/Main.storyboard
    modified:   example/ios/Runner/Info.plist
    modified:   example/ios/Runner/Runner-Bridging-Header.h
    modified:   example/lib/main.dart
    modified:   example/pubspec.lock
    modified:   example/pubspec.yaml
    modified:   example/test/widget_test.dart
    modified:   ios/.gitignore
    modified:   ios/Assets/.gitkeep
    modified:   ios/Classes/FlutterVisionPlugin.h
    modified:   ios/Classes/FlutterVisionPlugin.m
    modified:   ios/Classes/SwiftFlutterVisionPlugin.swift
    modified:   ios/flutter_vision.podspec
    modified:   lib/flutter_vision.dart
    modified:   lib/src/plugin/android.dart
    modified:   lib/src/plugin/base.dart
    modified:   pubspec.yaml
    modified:   test/flutter_vision_test.dart
Changes to be committed:
    modified:   example/pubspec.lock
    modified:   example/pubspec.yaml
Changes to be committed:
    modified:   lib/main.dart
@xAlpharax
Copy link
Author

This example is void of the Tessarect demo and YoloV8 on image labeling because these were simply not that great (they re not that hard to reimplement, but shorter code was also much easier to make changes on). Hope this helps.

Changes to be committed:
    modified:   example/pubspec.lock
    modified:   example/pubspec.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant