The Main Purpose of this Application is for exploring CameraX Library and integrating ML model to generate a list of all colors/hexcode present in the captured Image.
- Jetpack Compose for UI.
- CameraX for Capturing Images.
- Navigation for Screen Management.
- Dagger Hilt for DI.
- MediaStore for Image storing and retrieving.
-
Navigation Folder contains 2 files. Destination & NavGraph. Destination is a sealed class which contains all the destinations. NavGraph is responsible for navigating to different screens and hold applicationContext which gets passed to required ComposableFunctions.
-
Presentation Folder contains all the required Composable Functions for Screens. CameraPreview.kt is a basic AndroidView which contains PreviewView of CameraX Lib used for showing Preview of Image before capturing it. CameraScreen.kt is the ComposeScreen which opens when we click on Camera on Details Screen and shows us the CameraPreview, along with the option to capture the photo & open Clicked Photo Gallery, & option to switch Camera.