├── .DS_Store ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bert_qa ├── README.md ├── app │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── .DS_Store │ │ ├── androidTest │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── bertqa │ │ │ ├── ml │ │ │ └── QaClientTest.java │ │ │ └── tokenization │ │ │ ├── BasicTokenizerTest.java │ │ │ ├── FullTokenizerTest.java │ │ │ └── WordpieceTokenizerTest.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── bertqa │ │ │ ├── ml │ │ │ ├── Feature.kt │ │ │ ├── FeatureConverter.kt │ │ │ ├── LoadDatasetClient.kt │ │ │ ├── ModelHelper.kt │ │ │ ├── QaAnswer.kt │ │ │ └── QaClient.kt │ │ │ ├── tokenization │ │ │ ├── BasicTokenizer.kt │ │ │ ├── CharChecker.kt │ │ │ ├── FullTokenizer.kt │ │ │ └── WordpieceTokenizer.kt │ │ │ └── ui │ │ │ ├── DatasetListActivity.kt │ │ │ ├── QaActivity.kt │ │ │ └── QuestionAdapter.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ ├── banner_lite.png │ │ ├── ic_ask_active.xml │ │ ├── ic_ask_inactive.xml │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── tfe_qa_activity_dataset_list.xml │ │ ├── tfe_qa_activity_qa.xml │ │ └── tfe_qa_question_chip.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── depth_estimation ├── .gitignore ├── LICENSE.txt ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── shubham0204 │ │ │ └── ml │ │ │ └── depthestimation │ │ │ ├── BitmapUtils.kt │ │ │ ├── DrawingOverlay.kt │ │ │ ├── FrameAnalyser.kt │ │ │ ├── Logger.kt │ │ │ ├── MainActivity.kt │ │ │ └── MiDASModel.kt │ │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── depth_map_toggle_icon.xml │ │ ├── flip_camera_icon.xml │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── values-night │ │ └── themes.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── repo_images │ ├── depth_sample.jpg │ └── rgb_sample.jpg └── settings.gradle ├── digit_classifier ├── README.md ├── app │ ├── build.gradle │ ├── download_model.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── digitclassifier │ │ │ ├── DigitClassifier.kt │ │ │ └── MainActivity.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── tfe_dc_activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── image_segmentation ├── README.md ├── README_INTERNAL.md ├── app │ ├── build.gradle │ ├── download.gradle │ └── src │ │ ├── androidTest │ │ ├── assets │ │ │ ├── golden_output_task.png │ │ │ └── input_image.jpg │ │ └── java │ │ │ ├── AndroidManifest.xml │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── imagesegmentation │ │ │ └── ImageSegmentationModelExecutorTest.kt │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── imagesegmentation │ │ │ ├── MLExecutionViewModel.kt │ │ │ ├── MainActivity.kt │ │ │ └── camera │ │ │ ├── AutoFitSurfaceView.kt │ │ │ ├── CameraFragment.kt │ │ │ ├── CameraSizes.kt │ │ │ └── OrientationLiveData.kt │ │ └── res │ │ ├── anim │ │ └── scale_anim.xml │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ ├── bottom_sheet_bg.xml │ │ ├── ic_launcher_background.xml │ │ ├── ic_switchcam.xml │ │ └── rounded_edge.xml │ │ ├── layout │ │ ├── tfe_is_activity_main.xml │ │ └── tfe_is_bottom_sheet_layout.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── lib_interpreter │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── tensorflow │ │ └── lite │ │ └── examples │ │ └── imagesegmentation │ │ └── tflite │ │ ├── ImageSegmentationModelExecutor.kt │ │ └── ModelExecutionResult.kt ├── lib_task_api │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── tensorflow │ │ └── lite │ │ └── examples │ │ └── imagesegmentation │ │ └── tflite │ │ ├── ImageSegmentationModelExecutor.kt │ │ └── ModelExecutionResult.kt ├── lib_utils │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── tensorflow │ │ └── lite │ │ └── examples │ │ └── imagesegmentation │ │ └── utils │ │ └── ImageUtils.kt └── settings.gradle ├── optical_character_recognition ├── README.md ├── app │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ ├── settings.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ ├── android.jpg │ │ ├── chrome.jpg │ │ └── tensorflow.jpg │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── ocr │ │ │ ├── ImageUtils.kt │ │ │ ├── MLExecutionViewModel.kt │ │ │ ├── MainActivity.kt │ │ │ ├── ModelExecutionResult.kt │ │ │ └── OCRModelExecutor.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ ├── bottom_sheet_bg.xml │ │ ├── ic_launcher_background.xml │ │ └── rounded_edge.xml │ │ ├── layout │ │ ├── tfe_is_activity_main.xml │ │ └── tfe_is_bottom_sheet_layout.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── screenshot.gif └── settings.gradle ├── pose_estimation ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ ├── assets │ │ │ ├── image1.png │ │ │ ├── image2.jpg │ │ │ ├── image3.jpeg │ │ │ ├── image_credits.txt │ │ │ └── pose_landmark_truth.csv │ │ └── java │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── poseestimation │ │ │ ├── EvaluationUtils.kt │ │ │ ├── MovenetLightningTest.kt │ │ │ ├── MovenetThunderTest.kt │ │ │ ├── PoseClassifierTest.kt │ │ │ ├── PosenetTest.kt │ │ │ └── VisualizationTest.kt │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── labels.txt │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── poseestimation │ │ │ ├── MainActivity.kt │ │ │ ├── VisualizationUtils.kt │ │ │ ├── YuvToRgbConverter.kt │ │ │ ├── camera │ │ │ └── CameraSource.kt │ │ │ ├── data │ │ │ ├── BodyPart.kt │ │ │ ├── Device.kt │ │ │ ├── KeyPoint.kt │ │ │ ├── Person.kt │ │ │ └── TorsoAndBodyDistance.kt │ │ │ └── ml │ │ │ ├── MoveNet.kt │ │ │ ├── PoseClassifier.kt │ │ │ ├── PoseDetector.kt │ │ │ └── PoseNet.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── icn_chevron_up.png │ │ ├── drawable │ │ ├── rounded_edge.xml │ │ └── tfl2_logo.png │ │ ├── layout │ │ ├── activity_main.xml │ │ └── bottom_sheet_layout.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── posenetimage.png └── settings.gradle ├── posenet ├── README.md ├── app │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── posenet │ │ │ └── ExampleInstrumentedTest.kt │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── posenet │ │ │ ├── CameraActivity.kt │ │ │ ├── ConfirmationDialog.kt │ │ │ ├── Constants.kt │ │ │ ├── ImageUtils.kt │ │ │ ├── PosenetActivity.kt │ │ │ └── TestActivity.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ ├── action.png │ │ ├── ic_launcher_background.xml │ │ └── image.jpg │ │ ├── layout │ │ ├── tfe_pn_activity_camera.xml │ │ ├── tfe_pn_activity_posenet.xml │ │ └── tfe_pn_activity_test.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_action_info.png │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_action_info.png │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_action_info.png │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_action_info.png │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── posenet │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── posenet │ │ │ └── ExampleInstrumentedTest.kt │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── tensorflow │ │ └── lite │ │ └── examples │ │ └── posenet │ │ └── lib │ │ └── Posenet.kt ├── posenetimage.png └── settings.gradle ├── recommendation ├── README.md ├── app │ ├── build.gradle │ ├── download.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── recommendation │ │ │ ├── Config.kt │ │ │ ├── MainActivity.kt │ │ │ ├── MovieFragment.kt │ │ │ ├── MovieRecyclerViewAdapter.kt │ │ │ ├── RecommendationClient.kt │ │ │ ├── RecommendationFragment.kt │ │ │ ├── RecommendationRecyclerViewAdapter.kt │ │ │ └── data │ │ │ ├── FileUtil.kt │ │ │ └── MovieItem.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── tfe_re_activity_main.xml │ │ ├── tfe_re_fragment_recommendation.xml │ │ ├── tfe_re_fragment_recommendation_list.xml │ │ ├── tfe_re_fragment_selection.xml │ │ └── tfe_re_fragment_selection_list.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── sound_classifiaction ├── README.md ├── app │ ├── build.gradle │ ├── download_model.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── soundclassifier │ │ │ ├── MainActivity.kt │ │ │ └── ProbabilitiesAdapter.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ └── item_probability.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── style_transfer ├── README.md ├── app │ ├── build.gradle │ ├── download_model.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── thumbnails │ │ │ ├── style0.jpg │ │ │ ├── style1.jpg │ │ │ ├── style10.jpg │ │ │ ├── style11.jpg │ │ │ ├── style12.jpg │ │ │ ├── style13.jpg │ │ │ ├── style14.jpg │ │ │ ├── style15.jpg │ │ │ ├── style16.jpg │ │ │ ├── style17.jpg │ │ │ ├── style18.jpg │ │ │ ├── style19.jpg │ │ │ ├── style2.jpg │ │ │ ├── style20.jpg │ │ │ ├── style21.jpg │ │ │ ├── style22.jpg │ │ │ ├── style23.jpg │ │ │ ├── style24.jpg │ │ │ ├── style25.jpg │ │ │ ├── style3.jpg │ │ │ ├── style4.jpg │ │ │ ├── style5.jpg │ │ │ ├── style6.jpg │ │ │ ├── style7.jpg │ │ │ ├── style8.jpg │ │ │ └── style9.jpg │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── styletransfer │ │ │ ├── ImageUtils.kt │ │ │ ├── MLExecutionViewModel.kt │ │ │ ├── MainActivity.kt │ │ │ ├── ModelExecutionResult.kt │ │ │ ├── StyleFragment.kt │ │ │ ├── StyleRecyclerViewAdapter.kt │ │ │ ├── StyleTransferModelExecutor.kt │ │ │ └── camera │ │ │ ├── AutoFitSurfaceView.kt │ │ │ ├── CameraFragment.kt │ │ │ ├── CameraSizes.kt │ │ │ └── OrientationLiveData.kt │ │ └── res │ │ ├── anim │ │ └── scale_anim.xml │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── styles_square_thumb.jpg │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ ├── ic_launcher_background.xml │ │ ├── ic_switchcam.xml │ │ └── rounded_edge.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── bottom_sheet_layout.xml │ │ ├── fragment_style_list.xml │ │ └── image_item.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── text_classification ├── README.md ├── app │ ├── build.gradle │ ├── download_model.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── textclassification │ │ │ └── UnitTest.kt │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── tensorflow │ │ │ └── lite │ │ │ └── examples │ │ │ └── textclassification │ │ │ ├── MainActivity.kt │ │ │ ├── Result.kt │ │ │ └── TextClassificationClient.kt │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ ├── icn_chevron_down.png │ │ ├── icn_chevron_up.png │ │ ├── tfl2_logo.png │ │ └── tfl2_logo_dark.png │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── tfe_tc_activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle └── zero_dce ├── .gitignore ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── sunit │ │ └── zero_dce │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── sunit │ │ │ └── zero_dce │ │ │ ├── ImageUtils.kt │ │ │ ├── MainActivity.kt │ │ │ └── fragments │ │ │ ├── CameraFragment.kt │ │ │ ├── InferenceFragment.kt │ │ │ └── PermissionsFragment.kt │ ├── ml │ │ └── zero-dce.tflite │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── ic_launcher_background.xml │ │ ├── ic_save.xml │ │ ├── ic_share.xml │ │ ├── ic_shutter.xml │ │ ├── ic_shutter_focused.xml │ │ ├── ic_shutter_normal.xml │ │ ├── ic_shutter_pressed.xml │ │ └── ic_switch.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── fragment_camera.xml │ │ └── fragment_inference.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── navigation │ │ └── nav_graph.xml │ │ ├── values-night │ │ └── themes.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml │ └── test │ └── java │ └── com │ └── sunit │ └── zero_dce │ └── ExampleUnitTest.kt ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/.DS_Store -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | Thank you for showing interest in this project, here are some guidelines for contributing to this project. 3 | - Star the project 4 | - Create issue your want to work on or check the existing ones 5 | - Fork the repo 6 | - Clone in to your local machine by running the following commands 7 | ``` 8 | git clone https://github.com/SunitRoy2703/Tensorflow-lite-samples-kotlin.git 9 | 10 | ``` 11 | - `cd` into the project folder you clone 12 | - Create branch by running `git checkout -b [branch name]` 13 | - Makes your changes 14 | - Staged your changes by running the follwing commads 15 | ``` 16 | git add . 17 | git commit -m "Commit message" //Something like "Bug fixed" 18 | ``` 19 | - Push your changes to your GitHub repo 20 | ``` 21 | git push oringin [branch name] // Usually the branch name you create 22 | ``` 23 | - Now go back to github and make your PR -------------------------------------------------------------------------------- /bert_qa/app/download.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'de.undercouch.download' 2 | 3 | task downloadLiteModel { 4 | def downloadFiles = [ 5 | 'https://storage.googleapis.com/download.tensorflow.org/models/tflite/bert_qa/contents_from_squad.json': 'qa.json', 6 | 'https://tfhub.dev/tensorflow/lite-model/mobilebert/1/metadata/1?lite-format=tflite': 'model.tflite', 7 | ] 8 | downloadFiles.each { key, value -> 9 | download { 10 | src key 11 | dest project.ext.ASSET_DIR + value 12 | overwrite true 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /bert_qa/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /bert_qa/app/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/.DS_Store -------------------------------------------------------------------------------- /bert_qa/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable/banner_lite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/drawable/banner_lite.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable/ic_ask_active.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/drawable/ic_ask_inactive.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/layout/tfe_qa_question_chip.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | #eeff41 8 | 9 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Question and Answer 3 | Banner 4 | Please select an article below. 5 | You might want to ask? 6 | Text query 7 | Ask question 8 | 9 | -------------------------------------------------------------------------------- /bert_qa/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /bert_qa/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.6.0-RC' 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.0.0' 11 | classpath 'de.undercouch:gradle-download-task:4.0.2' 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | maven { 23 | name 'ossrh-snapshot' 24 | url 'http://oss.sonatype.org/content/repositories/snapshots' 25 | } 26 | } 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /bert_qa/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/bert_qa/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /bert_qa/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /bert_qa/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite BERT Q&A Demo App' 2 | include ':app' 3 | -------------------------------------------------------------------------------- /depth_estimation/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | /app/src/androidTest 6 | /app/src/test 7 | /.idea/caches 8 | /.idea/libraries 9 | /.idea/modules.xml 10 | /.idea/workspace.xml 11 | /.idea/navEditor.xml 12 | /.idea/assetWizardSettings.xml 13 | .DS_Store 14 | /build 15 | /captures 16 | .externalNativeBuild 17 | .cxx 18 | local.properties 19 | -------------------------------------------------------------------------------- /depth_estimation/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /depth_estimation/app/download.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'de.undercouch.download' 2 | 3 | task downloadModelFile(type: Download) { 4 | src 'https://tfhub.dev/intel/lite-model/midas/v2_1_small/1/lite/1?lite-format=tflite' 5 | dest project.ext.ASSET_DIR + '/depth_model.tflite' 6 | overwrite false 7 | } 8 | 9 | 10 | preBuild.dependsOn downloadModelFile -------------------------------------------------------------------------------- /depth_estimation/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /depth_estimation/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 15 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/drawable/depth_map_toggle_icon.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/drawable/flip_camera_icon.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Depth Estimation 3 | -------------------------------------------------------------------------------- /depth_estimation/app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /depth_estimation/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | dependencies { 8 | classpath "com.android.tools.build:gradle:7.0.0" 9 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20" 10 | classpath 'de.undercouch:gradle-download-task:4.0.2' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | task clean(type: Delete) { 18 | delete rootProject.buildDir 19 | } -------------------------------------------------------------------------------- /depth_estimation/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /depth_estimation/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Aug 25 07:50:30 IST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /depth_estimation/repo_images/depth_sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/repo_images/depth_sample.jpg -------------------------------------------------------------------------------- /depth_estimation/repo_images/rgb_sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/depth_estimation/repo_images/rgb_sample.jpg -------------------------------------------------------------------------------- /depth_estimation/settings.gradle: -------------------------------------------------------------------------------- 1 | dependencyResolutionManagement { 2 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 3 | repositories { 4 | google() 5 | mavenCentral() 6 | jcenter() // Warning: this repository is going to shut down soon 7 | } 8 | } 9 | rootProject.name = "Depth Estimation" 10 | include ':app' 11 | -------------------------------------------------------------------------------- /digit_classifier/app/download_model.gradle: -------------------------------------------------------------------------------- 1 | task downloadModelFile(type: Download) { 2 | src 'https://storage.googleapis.com/download.tensorflow.org/models/tflite/digit_classifier/mnist.tflite' 3 | dest project.ext.ASSET_DIR + '/mnist.tflite' 4 | overwrite false 5 | } 6 | 7 | 8 | tasks.whenTaskAdded { task -> 9 | if (task.name == 'assembleDebug') { 10 | task.dependsOn 'downloadModelFile' 11 | } 12 | if (task.name == 'assembleRelease') { 13 | task.dependsOn 'downloadModelFile' 14 | } 15 | } -------------------------------------------------------------------------------- /digit_classifier/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Digit Classifier 3 | Clear 4 | Please draw a digit 5 | Error classifying drawing: %s 6 | 7 | -------------------------------------------------------------------------------- /digit_classifier/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /digit_classifier/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.4.32' 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.1.3' 11 | classpath 'de.undercouch:gradle-download-task:4.0.2' 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | maven { 23 | name 'ossrh-snapshot' 24 | url 'http://oss.sonatype.org/content/repositories/snapshots' 25 | } 26 | maven { url 'https://jitpack.io' } 27 | } 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /digit_classifier/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/digit_classifier/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /digit_classifier/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /digit_classifier/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite Digit Classifier Demo App' 2 | include ':app' 3 | -------------------------------------------------------------------------------- /image_segmentation/app/download.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'de.undercouch.download' 2 | 3 | task downloadModelFile(type: Download) { 4 | src 'https://tfhub.dev/tensorflow/lite-model/deeplabv3/1/metadata/2?lite-format=tflite' 5 | dest project.ext.ASSET_DIR + '/deeplabv3_257_mv_gpu.tflite' 6 | overwrite false 7 | } 8 | 9 | 10 | preBuild.dependsOn downloadModelFile -------------------------------------------------------------------------------- /image_segmentation/app/src/androidTest/assets/golden_output_task.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/androidTest/assets/golden_output_task.png -------------------------------------------------------------------------------- /image_segmentation/app/src/androidTest/assets/input_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/androidTest/assets/input_image.jpg -------------------------------------------------------------------------------- /image_segmentation/app/src/androidTest/java/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/anim/scale_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable/bottom_sheet_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable/ic_switchcam.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/drawable/rounded_edge.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 10 | 11 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | #E4E4E4 8 | 9 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 300dp 4 | 15dp 5 | 8dp 6 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Image Segmentation 3 | GPU 4 | Re-run model 5 | Labels Found 6 | No Labels Found 7 | 8 | -------------------------------------------------------------------------------- /image_segmentation/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /image_segmentation/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | mavenCentral() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.0.0' 10 | classpath 'de.undercouch:gradle-download-task:4.0.2' 11 | classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71' 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | maven { 22 | name 'ossrh-snapshot' 23 | url 'http://oss.sonatype.org/content/repositories/snapshots' 24 | } 25 | } 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /image_segmentation/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/image_segmentation/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /image_segmentation/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /image_segmentation/lib_interpreter/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /image_segmentation/lib_task_api/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /image_segmentation/lib_utils/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /image_segmentation/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite Image Segmentation Demo App' 2 | include ':app', ':lib_interpreter', ':lib_task_api', ':lib_utils' 3 | -------------------------------------------------------------------------------- /optical_character_recognition/app/download.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'de.undercouch.download' 2 | 3 | task downloadTextDetectionModelFile(type: Download) { 4 | src 'https://tfhub.dev/sayakpaul/lite-model/east-text-detector/fp16/1?lite-format=tflite' 5 | dest project.ext.ASSET_DIR + '/text_detection.tflite' 6 | overwrite false 7 | } 8 | 9 | task downloadTextRecognitionModelFile(type: Download) { 10 | src 'https://tfhub.dev/tulasiram58827/lite-model/keras-ocr/float16/2?lite-format=tflite' 11 | dest project.ext.ASSET_DIR + '/text_recognition.tflite' 12 | overwrite false 13 | } 14 | 15 | preBuild.dependsOn downloadTextDetectionModelFile 16 | preBuild.dependsOn downloadTextRecognitionModelFile -------------------------------------------------------------------------------- /optical_character_recognition/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /optical_character_recognition/app/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite OCR Demo App' 2 | include ':app' -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/assets/android.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/assets/android.jpg -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/assets/chrome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/assets/chrome.jpg -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/assets/tensorflow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/assets/tensorflow.jpg -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable/bottom_sheet_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/drawable/rounded_edge.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 10 | 11 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | #E4E4E4 7 | 8 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 250dp 4 | 15dp 5 | 8dp 6 | 7 | -------------------------------------------------------------------------------- /optical_character_recognition/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /optical_character_recognition/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /optical_character_recognition/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /optical_character_recognition/screenshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/optical_character_recognition/screenshot.gif -------------------------------------------------------------------------------- /optical_character_recognition/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite Reinforcement Learning Demo App' 2 | include ':app' 3 | -------------------------------------------------------------------------------- /pose_estimation/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /pose_estimation/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /pose_estimation/app/src/androidTest/assets/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/androidTest/assets/image1.png -------------------------------------------------------------------------------- /pose_estimation/app/src/androidTest/assets/image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/androidTest/assets/image2.jpg -------------------------------------------------------------------------------- /pose_estimation/app/src/androidTest/assets/image3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/androidTest/assets/image3.jpeg -------------------------------------------------------------------------------- /pose_estimation/app/src/androidTest/assets/image_credits.txt: -------------------------------------------------------------------------------- 1 | Image1: https://pixabay.com/illustrations/woman-stand-wait-person-shoes-1427073/ 2 | Image2: https://pixabay.com/photos/businessman-suit-germany-black-1146791/ 3 | Image3: https://pixabay.com/photos/tree-pose-yoga-yogini-lifestyle-4823155/ 4 | -------------------------------------------------------------------------------- /pose_estimation/app/src/androidTest/assets/pose_landmark_truth.csv: -------------------------------------------------------------------------------- 1 | nose_x,nose_y,left_eye_x,left_eye_y,right_eye_x,right_eye_y,left_ear_x,left_ear_y,right_ear_x,right_ear_y,left_shoulder_x,left_shoulder_y,right_shoulder_x,right_shoulder_y,left_elbow_x,left_elbow_y,right_elbow_x,right_elbow_y,left_wrist_x,left_wrist_y,right_wrist_x,right_wrist_y,left_hip_x,left_hip_y,right_hip_x,right_hip_y,left_knee_x,left_knee_y,right_knee_x,right_knee_y,left_ankle_x,left_ankle_y,right_ankle_x,right_ankle_y 2 | 186,89,200,77,177,78,224,86,167,85,244,158,154,154,258,248,143,239,265,327,136,313,234,311,170,311,247,446,134,445,262,561,92,571 3 | 182,84,191,73,171,74,202,75,157,77,220,119,139,136,260,192,185,230,268,209,246,217,221,288,176,294,205,421,174,421,186,538,155,564 4 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/assets/labels.txt: -------------------------------------------------------------------------------- 1 | chair 2 | cobra 3 | dog 4 | tree 5 | warrior -------------------------------------------------------------------------------- /pose_estimation/app/src/main/java/org/tensorflow/lite/examples/poseestimation/data/Device.kt: -------------------------------------------------------------------------------- 1 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ============================================================================== 15 | */ 16 | 17 | package org.tensorflow.lite.examples.poseestimation.data 18 | 19 | enum class Device { 20 | CPU, 21 | NNAPI, 22 | GPU 23 | } 24 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/java/org/tensorflow/lite/examples/poseestimation/data/KeyPoint.kt: -------------------------------------------------------------------------------- 1 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ============================================================================== 15 | */ 16 | 17 | package org.tensorflow.lite.examples.poseestimation.data 18 | 19 | import android.graphics.PointF 20 | 21 | data class KeyPoint(val bodyPart: BodyPart, var coordinate: PointF, val score: Float) 22 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/java/org/tensorflow/lite/examples/poseestimation/data/Person.kt: -------------------------------------------------------------------------------- 1 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ============================================================================== 15 | */ 16 | 17 | package org.tensorflow.lite.examples.poseestimation.data 18 | 19 | data class Person(val keyPoints: List, val score: Float) 20 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/java/org/tensorflow/lite/examples/poseestimation/data/TorsoAndBodyDistance.kt: -------------------------------------------------------------------------------- 1 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | ============================================================================== 15 | */ 16 | 17 | package org.tensorflow.lite.examples.poseestimation.data 18 | 19 | data class TorsoAndBodyDistance( 20 | val maxTorsoYDistance: Float, 21 | val maxTorsoXDistance: Float, 22 | val maxBodyYDistance: Float, 23 | val maxBodyXDistance: Float 24 | ) 25 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/drawable/rounded_edge.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 10 | 11 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/drawable/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/app/src/main/res/drawable/tfl2_logo.png -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FF6200EE 4 | #FF3700B3 5 | #FF03DAC5 6 | #FF018786 7 | #FF000000 8 | #FFFFFFFF 9 | 10 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Pose Estimation 3 | This app needs camera permission. 4 | Score: %.2f 5 | Model: 6 | Fps: %d 7 | Device: 8 | - %s 9 | 10 | Movenet Lightning 11 | Movenet Thunder 12 | Posenet 13 | 14 | 15 | 16 | CPU 17 | GPU 18 | NNAPI 19 | 20 | 21 | -------------------------------------------------------------------------------- /pose_estimation/app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 18 | 19 | -------------------------------------------------------------------------------- /pose_estimation/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = "1.4.32" 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:4.1.3" 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | maven { 22 | name 'ossrh-snapshot' 23 | url 'http://oss.sonatype.org/content/repositories/snapshots' 24 | } 25 | } 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /pose_estimation/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /pose_estimation/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /pose_estimation/posenetimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/pose_estimation/posenetimage.png -------------------------------------------------------------------------------- /pose_estimation/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "TFLite Pose Estimation" 3 | -------------------------------------------------------------------------------- /posenet/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /posenet/app/src/main/java/org/tensorflow/lite/examples/posenet/Constants.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 The TensorFlow Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | @file:JvmName("Constants") 18 | 19 | package org.tensorflow.lite.examples.posenet 20 | 21 | /** Request camera and external storage permission. */ 22 | const val REQUEST_CAMERA_PERMISSION = 1 23 | 24 | /** Model input shape for images. */ 25 | const val MODEL_WIDTH = 257 26 | const val MODEL_HEIGHT = 257 27 | -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable/action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable/action.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/drawable/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/drawable/image.jpg -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-hdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-hdpi/ic_action_info.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-mdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-mdpi/ic_action_info.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xhdpi/ic_action_info.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxhdpi/ic_action_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxhdpi/ic_action_info.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /posenet/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | #ffa800 19 | #ff6f00 20 | #425066 21 | 22 | #66000000 23 | 24 | -------------------------------------------------------------------------------- /posenet/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /posenet/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.3.41' 5 | repositories { 6 | google() 7 | mavenCentral() 8 | 9 | } 10 | dependencies { 11 | classpath 'com.android.tools.build:gradle:4.0.0' 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | maven { 23 | name 'ossrh-snapshot' 24 | url 'http://oss.sonatype.org/content/repositories/snapshots' 25 | } 26 | } 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /posenet/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /posenet/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /posenet/posenet/download.gradle: -------------------------------------------------------------------------------- 1 | def targetFile = "src/main/assets/posenet_model.tflite" 2 | def modelFloatDownloadUrl = "https://storage.googleapis.com/download.tensorflow.org/models/tflite/posenet_mobilenet_v1_100_257x257_multi_kpt_stripped.tflite" 3 | 4 | task downloadModelFloat(type: DownloadUrlTask) { 5 | doFirst { 6 | println "Downloading ${modelFloatDownloadUrl}" 7 | } 8 | sourceUrl = "${modelFloatDownloadUrl}" 9 | target = file("${targetFile}") 10 | } 11 | 12 | class DownloadUrlTask extends DefaultTask { 13 | @Input 14 | String sourceUrl 15 | 16 | @OutputFile 17 | File target 18 | 19 | @TaskAction 20 | void download() { 21 | ant.get(src: sourceUrl, dest: target) 22 | } 23 | } 24 | 25 | preBuild.dependsOn downloadModelFloat 26 | -------------------------------------------------------------------------------- /posenet/posenet/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /posenet/posenet/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /posenet/posenetimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/posenet/posenetimage.png -------------------------------------------------------------------------------- /posenet/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite PoseNet Demo App' 2 | include ':app', ':posenet' 3 | -------------------------------------------------------------------------------- /recommendation/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /recommendation/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/layout/tfe_re_fragment_recommendation.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 22 | 23 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/layout/tfe_re_fragment_recommendation_list.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/layout/tfe_re_fragment_selection_list.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/recommendation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /recommendation/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 4dp 6 | 16dp 7 | 8 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Recommendation 3 | Please select your favorite movies. 4 | Our recommendation for you: 5 | 6 | -------------------------------------------------------------------------------- /recommendation/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 10 | -------------------------------------------------------------------------------- /sound_classifiaction/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext { 4 | kotlin_version = "1.4.30" 5 | } 6 | repositories { 7 | google() 8 | mavenCentral() 9 | } 10 | dependencies { 11 | classpath 'com.android.tools.build:gradle:4.1.3' 12 | classpath 'de.undercouch:gradle-download-task:4.0.2' // to download model 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | maven { 22 | name 'ossrh-snapshot' 23 | url 'http://oss.sonatype.org/content/repositories/snapshots' 24 | } 25 | } 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } -------------------------------------------------------------------------------- /sound_classifiaction/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/sound_classifiaction/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sound_classifiaction/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /sound_classifiaction/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "TFLite Sound Classifier Demo App" 2 | include ':app' -------------------------------------------------------------------------------- /style_transfer/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style0.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style1.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style10.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style11.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style12.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style13.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style14.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style15.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style16.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style17.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style18.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style19.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style2.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style20.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style21.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style22.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style23.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style24.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style25.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style3.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style4.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style5.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style6.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style7.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style8.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/assets/thumbnails/style9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/assets/thumbnails/style9.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/anim/scale_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/styles_square_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/styles_square_thumb.jpg -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable/ic_switchcam.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/drawable/rounded_edge.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 10 | 11 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/layout/fragment_style_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/layout/image_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 21 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | #66000000 8 | #ffffff 9 | #E4E4E4 10 | 11 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 256dp 4 | 16dp 5 | 15dp 6 | 8dp 7 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Style Transfer 3 | GPU 4 | Re-run model 5 | Choose a Style 6 | 7 | -------------------------------------------------------------------------------- /style_transfer/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /style_transfer/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.3.50' 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.0.0' 11 | classpath 'de.undercouch:gradle-download-task:4.0.2' 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | maven { 23 | name 'ossrh-snapshot' 24 | url 'http://oss.sonatype.org/content/repositories/snapshots' 25 | } 26 | } 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /style_transfer/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/style_transfer/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /style_transfer/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /style_transfer/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite Style Transfer Demo App' 2 | include ':app' -------------------------------------------------------------------------------- /text_classification/app/download_model.gradle: -------------------------------------------------------------------------------- 1 | task downloadModelFile(type: Download) { 2 | src 'https://storage.googleapis.com/download.tensorflow.org/models/tflite/text_classification/text_classification_v2.tflite' 3 | dest project.ext.ASSET_DIR + '/text_classification.tflite' 4 | overwrite true 5 | } 6 | 7 | preBuild.dependsOn downloadModelFile -------------------------------------------------------------------------------- /text_classification/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /text_classification/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-xxhdpi/tfl2_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-xxhdpi/tfl2_logo.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/drawable-xxhdpi/tfl2_logo_dark.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /text_classification/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffa800 4 | #ff6f00 5 | #425066 6 | 7 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 5 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TFL Text Classification 3 | Please enter your movie review. 4 | Predict 5 | 6 | -------------------------------------------------------------------------------- /text_classification/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /text_classification/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.6.0-M1' 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.0.0' 11 | classpath 'de.undercouch:gradle-download-task:4.0.2' 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | mavenCentral() 22 | maven { 23 | name 'ossrh-snapshot' 24 | url 'http://oss.sonatype.org/content/repositories/snapshots' 25 | } 26 | } 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /text_classification/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | android.useAndroidX=true 15 | 16 | 17 | -------------------------------------------------------------------------------- /text_classification/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/text_classification/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /text_classification/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /text_classification/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TFLite Text Classification Demo App' 2 | include ':app' 3 | 4 | -------------------------------------------------------------------------------- /zero_dce/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /zero_dce/README.md: -------------------------------------------------------------------------------- 1 | # TensorFlow Lite ZERO-DCE sample 2 | 3 | ## Overview 4 | Zero-Reference Deep Curve Estimation or Zero-DCE formulates low-light image enhancement as the task of estimating an image-specific tonal curve with a deep neural network. -------------------------------------------------------------------------------- /zero_dce/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /zero_dce/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /zero_dce/app/src/androidTest/java/com/sunit/zero_dce/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.sunit.zero_dce 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.sunit.zero_dce", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /zero_dce/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/java/com/sunit/zero_dce/ImageUtils.kt: -------------------------------------------------------------------------------- 1 | package com.sunit.zero_dce 2 | 3 | import android.graphics.Bitmap 4 | import java.io.File 5 | import java.io.FileOutputStream 6 | import java.io.IOException 7 | import java.io.OutputStream 8 | 9 | class ImageUtils { 10 | 11 | companion object { 12 | 13 | fun saveBitmap(bitmap: Bitmap?, file: File): String { 14 | 15 | try { 16 | val stream: OutputStream = FileOutputStream(file) 17 | bitmap?.compress(Bitmap.CompressFormat.JPEG, 100, stream) 18 | stream.flush() 19 | stream.close() 20 | } catch (e: IOException) { 21 | e.printStackTrace() 22 | } 23 | 24 | return file.absolutePath 25 | 26 | } 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /zero_dce/app/src/main/ml/zero-dce.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/ml/zero-dce.tflite -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/drawable/ic_save.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/drawable/ic_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 12 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 10 | 16 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | zero_dce 3 | -------------------------------------------------------------------------------- /zero_dce/app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /zero_dce/app/src/test/java/com/sunit/zero_dce/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.sunit.zero_dce 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } -------------------------------------------------------------------------------- /zero_dce/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = '1.3.61' 4 | repositories { 5 | google() 6 | mavenCentral() 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:4.2.2" 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.2.2" 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | mavenCentral() 21 | jcenter() // Warning: this repository is going to shut down soon 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } -------------------------------------------------------------------------------- /zero_dce/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunitRoy2703/Tensorflow-lite-kotlin-samples/c7628b3e58d9ae1ff902f4a9ff0142a051f91958/zero_dce/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /zero_dce/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Oct 29 21:10:38 IST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /zero_dce/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "zero_dce" 2 | include ':app' 3 | --------------------------------------------------------------------------------