[
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea/caches/build_file_checksums.ser\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n"
  },
  {
    "path": ".idea/assetWizardSettings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"WizardSettings\">\n    <option name=\"children\">\n      <map>\n        <entry key=\"imageWizard\">\n          <value>\n            <PersistentState>\n              <option name=\"children\">\n                <map>\n                  <entry key=\"imageAssetPanel\">\n                    <value>\n                      <PersistentState>\n                        <option name=\"children\">\n                          <map>\n                            <entry key=\"launcher\">\n                              <value>\n                                <PersistentState>\n                                  <option name=\"children\">\n                                    <map>\n                                      <entry key=\"foregroundImage\">\n                                        <value>\n                                          <PersistentState>\n                                            <option name=\"values\">\n                                              <map>\n                                                <entry key=\"scalingPercent\" value=\"101\" />\n                                              </map>\n                                            </option>\n                                          </PersistentState>\n                                        </value>\n                                      </entry>\n                                    </map>\n                                  </option>\n                                  <option name=\"values\">\n                                    <map>\n                                      <entry key=\"foregroundImage\" value=\"$USER_HOME$/Desktop/Dumpster/logo.jpg\" />\n                                    </map>\n                                  </option>\n                                </PersistentState>\n                              </value>\n                            </entry>\n                          </map>\n                        </option>\n                      </PersistentState>\n                    </value>\n                  </entry>\n                </map>\n              </option>\n            </PersistentState>\n          </value>\n        </entry>\n        <entry key=\"vectorWizard\">\n          <value>\n            <PersistentState>\n              <option name=\"children\">\n                <map>\n                  <entry key=\"vectorAssetStep\">\n                    <value>\n                      <PersistentState>\n                        <option name=\"children\">\n                          <map>\n                            <entry key=\"clipartAsset\">\n                              <value>\n                                <PersistentState>\n                                  <option name=\"values\">\n                                    <map>\n                                      <entry key=\"url\" value=\"jar:file:/Applications/Android%20Studio.app/Contents/plugins/android/lib/android.jar!/images/material_design_icons/navigation/ic_arrow_back_black_24dp.xml\" />\n                                    </map>\n                                  </option>\n                                </PersistentState>\n                              </value>\n                            </entry>\n                          </map>\n                        </option>\n                        <option name=\"values\">\n                          <map>\n                            <entry key=\"outputName\" value=\"ic_arrow_back\" />\n                            <entry key=\"sourceFile\" value=\"$USER_HOME$\" />\n                          </map>\n                        </option>\n                      </PersistentState>\n                    </value>\n                  </entry>\n                </map>\n              </option>\n            </PersistentState>\n          </value>\n        </entry>\n      </map>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/codeStyles/Project.xml",
    "content": "<component name=\"ProjectCodeStyleConfiguration\">\n  <code_scheme name=\"Project\" version=\"173\">\n    <Objective-C-extensions>\n      <file>\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Import\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Macro\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Typedef\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Enum\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Constant\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Global\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Struct\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"FunctionPredecl\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Function\" />\n      </file>\n      <class>\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Property\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"Synthesize\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"InitMethod\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"StaticMethod\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"InstanceMethod\" />\n        <option name=\"com.jetbrains.cidr.lang.util.OCDeclarationKind\" value=\"DeallocMethod\" />\n      </class>\n      <extensions>\n        <pair source=\"cpp\" header=\"h\" fileNamingConvention=\"NONE\" />\n        <pair source=\"c\" header=\"h\" fileNamingConvention=\"NONE\" />\n      </extensions>\n    </Objective-C-extensions>\n  </code_scheme>\n</component>"
  },
  {
    "path": ".idea/encodings.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"Encoding\">\n    <file url=\"PROJECT\" charset=\"UTF-8\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/gradle.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleSettings\">\n    <option name=\"linkedExternalProjectsSettings\">\n      <GradleProjectSettings>\n        <option name=\"distributionType\" value=\"DEFAULT_WRAPPED\" />\n        <option name=\"externalProjectPath\" value=\"$PROJECT_DIR$\" />\n        <option name=\"modules\">\n          <set>\n            <option value=\"$PROJECT_DIR$\" />\n            <option value=\"$PROJECT_DIR$/app\" />\n          </set>\n        </option>\n        <option name=\"resolveModulePerSourceSet\" value=\"false\" />\n      </GradleProjectSettings>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/inspectionProfiles/Project_Default.xml",
    "content": "<component name=\"InspectionProjectProfileManager\">\n  <profile version=\"1.0\">\n    <option name=\"myName\" value=\"Project Default\" />\n    <inspection_tool class=\"AndroidLintUsingHttp\" enabled=\"false\" level=\"WARNING\" enabled_by_default=\"false\" />\n  </profile>\n</component>"
  },
  {
    "path": ".idea/misc.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"NullableNotNullManager\">\n    <option name=\"myDefaultNullable\" value=\"android.support.annotation.Nullable\" />\n    <option name=\"myDefaultNotNull\" value=\"android.support.annotation.NonNull\" />\n    <option name=\"myNullables\">\n      <value>\n        <list size=\"7\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.Nullable\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nullable\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"javax.annotation.CheckForNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.Nullable\" />\n          <item index=\"4\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.Nullable\" />\n          <item index=\"5\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.Nullable\" />\n          <item index=\"6\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.RecentlyNullable\" />\n        </list>\n      </value>\n    </option>\n    <option name=\"myNotNulls\">\n      <value>\n        <list size=\"6\">\n          <item index=\"0\" class=\"java.lang.String\" itemvalue=\"org.jetbrains.annotations.NotNull\" />\n          <item index=\"1\" class=\"java.lang.String\" itemvalue=\"javax.annotation.Nonnull\" />\n          <item index=\"2\" class=\"java.lang.String\" itemvalue=\"edu.umd.cs.findbugs.annotations.NonNull\" />\n          <item index=\"3\" class=\"java.lang.String\" itemvalue=\"android.support.annotation.NonNull\" />\n          <item index=\"4\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.NonNull\" />\n          <item index=\"5\" class=\"java.lang.String\" itemvalue=\"androidx.annotation.RecentlyNonNull\" />\n        </list>\n      </value>\n    </option>\n  </component>\n  <component name=\"ProjectRootManager\" version=\"2\" languageLevel=\"JDK_1_7\" project-jdk-name=\"1.8\" project-jdk-type=\"JavaSDK\">\n    <output url=\"file://$PROJECT_DIR$/build/classes\" />\n  </component>\n  <component name=\"ProjectType\">\n    <option name=\"id\" value=\"Android\" />\n  </component>\n</project>"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <option name=\"ignoredProducers\">\n      <set>\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer\" />\n        <option value=\"org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer\" />\n      </set>\n    </option>\n  </component>\n</project>"
  },
  {
    "path": ".idea/vcs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping directory=\"$PROJECT_DIR$\" vcs=\"Git\" />\n  </component>\n</project>"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2019 Jasur Shukurov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Due to the hight cost and usage, I've stopped the server :`( . This project isn't supported anymore. You can use the android client side tho, but it won't return anything. \n\n# CarRecognition - AI Model \n\nThis is one of the best vehicle recognition applications. It can determine the car's license plate number, color, model, brand, and year. \n\n**Author: Jasurbek Shukurov**\n\n## Why? \nThis model runs with the highest accuracy compared to other models existing in the market. \n\n## Features\n\n- **License Plate Recognition**: Accurately detects and recognizes license plate numbers from images.\n- **Vehicle Color Detection**: Identifies the primary color of the vehicle.\n- **Model and Brand Identification**: Determines the specific model and brand of the vehicle.\n- **Year Estimation**: Estimates the manufacturing year of the vehicle.\n\n## Installation\n\nClone the repository:\n```\n   bash\n   git clone https://github.com/jasur-2902/Car-Recognition.git\n   cd Car-Recognition\n```\n\n\n##Usage\nUpload an image of a vehicle.\nThe application will process the image and display the detected information, including license plate number, vehicle color, model, brand, and estimated year.\n\n##How it Works\nThe CarRecognition app uses a deep learning model trained on a large dataset of vehicle images. It processes the input image, extracts relevant features, and then applies a series of classification algorithms to determine the car's details.\n\n###Contributing\nIf you'd like to contribute to this project, please fork the repository and use a feature branch. Pull requests are warmly welcome.\n\n###License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n###Contact\nFor any inquiries or support, please contact jasur.shukurov29@gmail.com.\n\n## Screenshots\n<img src=\"screenshots/Screenshot_20190109-002106.png\" alt=\"alt text\" width=\"288\" height=\"512\">      <img src=\"screenshots/1.jpg?raw=true\" alt=\"alt text\" width=\"288\" height=\"512\">      <img src=\"screenshots/2.jpg?raw=true\" alt=\"alt text\" width=\"288\" height=\"512\">\n\n<p align=\"center\"><img src=\"screenshots/3.jpg\" alt=\"alt text\" width=\"288\" height=\"512\">      <img src=\"screenshots/4.jpg\" alt=\"alt text\" width=\"288\" height=\"512\"> </p>\n\n\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "//noinspection GradleCompatible\napply plugin: 'com.android.application'\n\n\nandroid {\n    compileSdkVersion 28\n    defaultConfig {\n        applicationId \"uz.shukurov.carrecognition\"\n        minSdkVersion 18\n        targetSdkVersion 28\n        versionCode 2\n        versionName \"1.0.1\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n    implementation 'com.android.support:appcompat-v7:28.0.0'\n\n\n   //Design Elements\n    implementation 'com.android.support:design:28.0.0'\n    implementation 'com.android.support.constraint:constraint-layout:1.1.3'\n\n    //Firebase\n    implementation 'com.google.firebase:firebase-storage:16.0.5'\n    implementation 'com.google.firebase:firebase-core:16.0.6'\n\n    //Json\n    implementation 'com.github.amirdew:JSON:v1.0.0'\n\n\n\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation 'com.android.support.test:runner:1.0.2'\n    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'\n}\n\napply plugin: 'com.google.gms.google-services'\n"
  },
  {
    "path": "app/google-services.json",
    "content": "{\n  \"project_info\": {\n    \"project_number\": \"381266161153\",\n    \"firebase_url\": \"https://car-recognition-app.firebaseio.com\",\n    \"project_id\": \"car-recognition-app\",\n    \"storage_bucket\": \"car-recognition-app.appspot.com\"\n  },\n  \"client\": [\n    {\n      \"client_info\": {\n        \"mobilesdk_app_id\": \"1:381266161153:android:75e10f795367faff\",\n        \"android_client_info\": {\n          \"package_name\": \"uz.shukurov.carrecognition\"\n        }\n      },\n      \"oauth_client\": [\n        {\n          \"client_id\": \"381266161153-659ggmsld17svqnafah5ghn1rjgo1qkp.apps.googleusercontent.com\",\n          \"client_type\": 3\n        }\n      ],\n      \"api_key\": [\n        {\n          \"current_key\": \"AIzaSyCN_0I1080BaTJso0-j-aXajr2thOhSXws\"\n        }\n      ],\n      \"services\": {\n        \"analytics_service\": {\n          \"status\": 1\n        },\n        \"appinvite_service\": {\n          \"status\": 1,\n          \"other_platform_oauth_client\": []\n        },\n        \"ads_service\": {\n          \"status\": 2\n        }\n      }\n    }\n  ],\n  \"configuration_version\": \"1\"\n}"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/uz/shukurov/carrecognition/ExampleInstrumentedTest.java",
    "content": "package uz.shukurov.carrecognition;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.*;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"uz.shukurov.carrecognition\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"uz.shukurov.carrecognition\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n\n    <uses-feature\n        android:name=\"android.hardware.camera\"\n        android:required=\"true\" />\n\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\n\n    <application\n        android:allowBackup=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\">\n        <activity android:name=\".MainActivity\">\n\n        </activity>\n        <activity\n            android:theme=\"@style/NoActionBar\"\n            android:name=\".SplashActivity\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <action android:name=\"android.intent.action.VIEW\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n\n        </activity>\n\n        <provider\n            android:name=\"android.support.v4.content.FileProvider\"\n            android:authorities=\"uz.shukurov.carrecognition.fileprovider\"\n            android:exported=\"false\"\n            android:grantUriPermissions=\"true\">\n\n            <!-- ressource file to create -->\n            <meta-data\n                android:name=\"android.support.FILE_PROVIDER_PATHS\"\n                android:resource=\"@xml/file_paths\" />\n        </provider>\n\n        <activity\n            android:name=\".ResultActivity\"\n            android:theme=\"@style/NoActionBar\" />\n\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/assets/index.html",
    "content": "<html>\n<head></head>\n<body>\n  <img src=\"car.gif\" width=\"200px\" align=\"middle\">\n</body>\n</html>\n"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/MainActivity.java",
    "content": "package uz.shukurov.carrecognition;\n\nimport android.content.DialogInterface;\nimport android.content.Intent;\nimport android.content.pm.PackageManager;\nimport android.net.Uri;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\nimport android.os.Environment;\nimport android.provider.MediaStore;\nimport android.support.annotation.NonNull;\nimport android.support.design.widget.Snackbar;\nimport android.support.v4.app.ActivityCompat;\nimport android.support.v4.content.ContextCompat;\nimport android.support.v4.content.FileProvider;\nimport android.support.v7.app.AlertDialog;\nimport android.support.v7.app.AppCompatActivity;\nimport android.util.Log;\nimport android.view.Menu;\nimport android.view.MenuInflater;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.animation.Animation;\nimport android.view.animation.AnimationUtils;\nimport android.widget.ImageButton;\nimport android.widget.LinearLayout;\nimport android.widget.Toast;\n\nimport com.google.android.gms.tasks.Continuation;\nimport com.google.android.gms.tasks.OnCompleteListener;\nimport com.google.android.gms.tasks.Task;\nimport com.google.firebase.storage.FirebaseStorage;\nimport com.google.firebase.storage.StorageReference;\nimport com.google.firebase.storage.UploadTask;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.net.HttpURLConnection;\nimport java.net.URL;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n\nimport uz.shukurov.carrecognition.other.InternetCheck;\nimport uz.shukurov.carrecognition.other.MyBounceInterpolator;\nimport uz.shukurov.carrecognition.other.RequestCode;\n\n\npublic class MainActivity extends AppCompatActivity {\n\n\n    private StorageReference mStorageImage;\n    private ImageButton mCapture, mTakePicture;\n    private String downloadUri;\n    private Uri mImageUri = null;\n\n    private String url = \"http://18.217.108.249/cgi-bin/recognize2.py?url=\";\n\n    private static final String TAG = MainActivity.class.getSimpleName();\n\n    private AlertDialog mDialog;\n    private AlertDialog.Builder mBuilder;\n    private LinearLayout mLinearLayout;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n\n        mStorageImage = FirebaseStorage.getInstance().getReference().child(\"images\");\n\n        mCapture = findViewById(R.id.mCapture);\n\n        mTakePicture = findViewById(R.id.mTakePicture);\n\n        final Animation myAnim = AnimationUtils.loadAnimation(this, R.anim.bounce);\n        MyBounceInterpolator interpolator = new MyBounceInterpolator(0.2, 20);\n        myAnim.setInterpolator(interpolator);\n\n        mCapture.startAnimation(myAnim);\n        mTakePicture.startAnimation(myAnim);\n\n\n        mLinearLayout = findViewById(R.id.linearLayout);\n\n        if (!InternetCheck.isInternetAvailable(this)) {\n            initSnackbar();\n            mLinearLayout.setVisibility(View.INVISIBLE);\n        }\n\n        permissionRequest();\n\n        mCapture.setOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n\n\n                Intent galleryIntent = new Intent();\n                galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n                galleryIntent.setType(\"image/*\");\n                startActivityForResult(galleryIntent, RequestCode.GALLERY_REQUEST);\n\n            }\n        });\n\n\n        mTakePicture.setOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View view) {\n                dispatchTakePictureIntent();\n\n            }\n        });\n\n        if (!isDeviceSupportCamera()) {\n            Toast.makeText(getApplicationContext(),\n                    \"Sorry! Your device doesn't support camera\",\n                    Toast.LENGTH_LONG).show();\n            // will close the app if the device does't have camera\n            finish();\n        }\n\n    }\n\n\n    private void initSnackbar() {\n        final Snackbar snackbar = Snackbar.make(mLinearLayout, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).setAction(R.string.retry, new View.OnClickListener() {\n            @Override\n            public void onClick(View view) {\n                if (InternetCheck.isInternetAvailable(view.getContext())) {\n                    mLinearLayout.setVisibility(View.VISIBLE);\n                } else initSnackbar();\n            }\n        });\n//\n        snackbar.show();\n    }\n\n    @Override\n    public boolean onCreateOptionsMenu(Menu menu) {\n        MenuInflater inflater = getMenuInflater();\n        inflater.inflate(R.menu.main_menu, menu);\n        return true;\n    }\n\n    @Override\n    public boolean onOptionsItemSelected(MenuItem item) {\n        // Handle item selection\n        switch (item.getItemId()) {\n            case R.id.menu_item1:\n                return true;\n            case R.id.menu_item2:\n                AlertDialog dialog;\n                final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n                builder.setTitle(\"About\")\n                        .setMessage(\"This is one of the best vehicle recognition applications. It can identify the car's license plate number, color, model, brand and year. The project was created by Jasur Shukurov 2018-2019\")\n                        .setPositiveButton(\"Okay!\", new DialogInterface.OnClickListener() {\n                            @Override\n                            public void onClick(DialogInterface dialogInterface, int i) {\n                                dialogInterface.cancel();\n                            }\n                        });\n\n\n                dialog = builder.create();\n                dialog.show();\n\n                return true;\n            case R.id.menu_item3:\n                Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://home.adelphi.edu/~ja21947/car/privacy_policy.html\"));\n                startActivity(browserIntent);\n            default:\n                return super.onOptionsItemSelected(item);\n        }\n    }\n\n    private void permissionRequest() {\n\n        if (ContextCompat.checkSelfPermission(MainActivity.this,\n                android.Manifest.permission.WRITE_EXTERNAL_STORAGE)\n                != PackageManager.PERMISSION_GRANTED) {\n\n            // Permission is not granted\n            // Should we show an explanation?\n            if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n                    android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n                // Show an explanation to the user *asynchronously* -- don't block\n                // this thread waiting for the user's response! After the user\n                // sees the explanation, try again to request the permission.\n            } else {\n                // No explanation needed; request the permission\n                ActivityCompat.requestPermissions(MainActivity.this,\n                        new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE},\n                        RequestCode.MY_PERMISSIONS_REQUEST_EXTERNAL_STORAGE);\n\n                // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n                // app-defined int constant. The callback method gets the\n                // result of the request.\n            }\n        }\n\n    }\n\n    @Override\n    public void onRequestPermissionsResult(int requestCode,\n                                           String permissions[], int[] grantResults) {\n        switch (requestCode) {\n            case RequestCode.MY_PERMISSIONS_REQUEST_EXTERNAL_STORAGE: {\n                // If request is cancelled, the result arrays are empty.\n                if (grantResults.length > 0\n                        && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n                    // permission was granted, yay! Do the\n                    // contacts-related task you need to do.\n                } else {\n                    // permission denied, boo! Disable the\n                    // functionality that depends on this permission.\n                }\n                return;\n            }\n\n            // other 'case' lines to check for other\n            // permissions this app might request.\n        }\n    }\n\n    String mCurrentPhotoPath;\n\n    private File createImageFile() throws IOException {\n        // Create an image file name\n        String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n        String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n        File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n        File image = File.createTempFile(\n                imageFileName,  /* prefix */\n                \".jpg\",         /* suffix */\n                storageDir      /* directory */\n        );\n\n        // Save a file: path for use with ACTION_VIEW intents\n        mCurrentPhotoPath = image.getAbsolutePath();\n        return image;\n    }\n\n    Uri photoURI;\n\n\n    private void dispatchTakePictureIntent() {\n        Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n        // Ensure that there's a camera activity to handle the intent\n        if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n            // Create the File where the photo should go\n            File photoFile = null;\n            try {\n                photoFile = createImageFile();\n            } catch (IOException ex) {\n                // Error occurred while creating the File\n            }\n            // Continue only if the File was successfully created\n            if (photoFile != null) {\n                photoURI = FileProvider.getUriForFile(this,\n                        \"uz.shukurov.carrecognition.fileprovider\", photoFile);\n                takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n                startActivityForResult(takePictureIntent, RequestCode.REQUEST_TAKE_PHOTO);\n            }\n        }\n    }\n\n    private boolean isDeviceSupportCamera() {\n        if (getApplicationContext().getPackageManager().hasSystemFeature(\n                PackageManager.FEATURE_CAMERA)) {\n            // this device has a camera\n            return true;\n        } else {\n            // no camera on this device\n            return false;\n        }\n    }\n\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n        if (requestCode == RequestCode.GALLERY_REQUEST && resultCode == RESULT_OK) {\n            mImageUri = data.getData();\n            uploadImage();\n        }\n\n        if (requestCode == RequestCode.REQUEST_TAKE_PHOTO && resultCode == RESULT_OK) {\n\n            mImageUri = photoURI;\n            uploadImage();\n\n        }\n\n    }\n\n    //Uploading Image to Firebase\n    private void uploadImage() {\n\n        if (mImageUri != null) {\n            final StorageReference filepath = mStorageImage.child(mImageUri.getLastPathSegment());\n\n            mBuilder = new AlertDialog.Builder(MainActivity.this);\n            mBuilder.setTitle(\"Loading...\")\n                    .setMessage(\"Please wait, it will take some time!\")\n                    .setCancelable(false);\n\n            mDialog = mBuilder.create();\n            mDialog.show();\n\n            filepath.putFile(mImageUri).continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n                @Override\n                public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n                    if (!task.isSuccessful()) {\n                        mDialog.show();\n                        throw task.getException();\n                    }\n                    return filepath.getDownloadUrl();\n                }\n            }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n                @Override\n                public void onComplete(@NonNull Task<Uri> task) {\n                    if (task.isSuccessful()) {\n                        downloadUri = task.getResult().toString();\n                        String query = downloadUri.substring(87, downloadUri.length());\n                        new DownloadTask().execute(url + query);\n\n                    } else {\n                        mDialog.cancel();\n                        Toast.makeText(MainActivity.this, \"Upload failed: \" + task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n                    }\n                }\n            });\n\n        } else {\n            mDialog.cancel();\n            Toast.makeText(MainActivity.this, \"Sorry, something went wrong!\", Toast.LENGTH_SHORT).show();\n        }\n    }\n\n    private class DownloadTask extends AsyncTask<String, Void, String> {\n\n        @Override\n        protected String doInBackground(String... params) {\n            //do your request in here so that you don't interrupt the UI thread\n            try {\n                return downloadContent(params[0]);\n            } catch (IOException e) {\n                return \"Unable to retrieve data. URL may be invalid.\";\n            }\n        }\n\n        @Override\n        protected void onPostExecute(String result) {\n            //Here you are done with the task\n\n            Intent intent = new Intent(MainActivity.this, ResultActivity.class);\n\n            String[] extra = new String[2];\n            extra[0] = result;\n            extra[1] = downloadUri;\n\n\n            intent.putExtra(\"EXTRA_SESSION_ID\", extra);\n\n            mDialog.cancel();\n            if (result.length() < 600) {\n\n                final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n\n                builder.setMessage(\"Sorry, we can't identify this car! Please try one more time!\")\n                        .setTitle(\"Error, cannot detect!\")\n                        .setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n                            @Override\n                            public void onClick(DialogInterface dialogInterface, int i) {\n                                dialogInterface.cancel();\n                            }\n                        });\n\n                AlertDialog alertDialog = builder.create();\n                alertDialog.show();\n\n            } else\n                startActivity(intent);\n\n\n        }\n    }\n\n    private String downloadContent(String myurl) throws IOException {\n        InputStream is = null;\n\n        try {\n            URL url = new URL(myurl);\n            HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n            conn.setReadTimeout(5000 /* milliseconds */);\n            conn.setConnectTimeout(5500 /* milliseconds */);\n            conn.setRequestMethod(\"GET\");\n            conn.setDoOutput(true);\n            conn.connect();\n            int response = conn.getResponseCode();\n            Log.d(TAG, \"The response is: \" + response);\n            is = conn.getInputStream();\n\n            // Convert the InputStream into a string\n\n            System.out.println(\"\\nSending 'Get' request to URL : \" + url + \"--\" + response);\n\n            BufferedReader in = new BufferedReader(\n                    new InputStreamReader(conn.getInputStream()));\n            String inputLine;\n            StringBuffer response2 = new StringBuffer();\n\n            while ((inputLine = in.readLine()) != null) {\n                response2.append(inputLine);\n            }\n            in.close();\n\n            System.out.println(\"Response : -- \" + response2.toString());\n\n            mDialog.cancel();\n\n            return response2.toString();\n\n\n        } finally {\n            if (is != null) {\n                is.close();\n            }\n        }\n    }\n\n\n}\n"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/ResultActivity.java",
    "content": "package uz.shukurov.carrecognition;\n\nimport android.app.Activity;\nimport android.app.ProgressDialog;\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport android.graphics.Canvas;\nimport android.graphics.Color;\nimport android.graphics.Paint;\n\nimport android.graphics.drawable.BitmapDrawable;\nimport android.graphics.drawable.Drawable;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\n\nimport android.support.v7.widget.Toolbar;\nimport android.view.View;\nimport android.widget.ImageView;\nimport android.widget.TextView;\n\n\nimport java.io.InputStream;\n\nimport eu.amirs.JSON;\nimport uz.shukurov.carrecognition.R;\n\n\npublic class ResultActivity extends Activity {\n\n    private String extra[] = new String[2];\n    private String result, plate, color, year, body_type, make_model, url_out, type, processingTime;\n    private ImageView mImageView, mImageBodyType, mColorImageView;\n    private TextView mType, mPlate, mColor, mModel, mBodyType, mYear, mProcessingTime;\n    private ProgressDialog mProgressDialog;\n\n    private JSON json;\n\n    private int x1, x2, x3, x4, y1, y2, y3, y4;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_result);\n\n\n        toolbarMethod();\n\n        jsonConverting();\n\n        givingView();\n\n        new DownloadImage().execute(url_out);\n\n\n        mPlate.setText(plate);\n\n        settingDataToElements();\n    }\n\n    private void settingDataToElements() {\n        setColor();\n\n        mYear.setText(year);\n\n        setBodyType();\n\n        String make_model_upperCase = make_model.substring(0, 1).toUpperCase() + make_model.substring(1);\n\n        mModel.setText(make_model_upperCase);\n\n        int separate = type.indexOf(\"_\");\n        String brand = type.substring(0, separate);\n        String model = type.substring(separate + 1);\n        String car_type = brand.substring(0, 1).toUpperCase() + brand.substring(1) + \" \" + model.substring(0, 1).toUpperCase() + model.substring(1);\n        mType.setText(car_type);\n\n\n        mProcessingTime.setText(\"Processing Time: \" + processingTime);\n    }\n\n    private void givingView() {\n        mImageView = findViewById(R.id.imageView);\n        mType = findViewById(R.id.mType);\n        mPlate = findViewById(R.id.mPlate);\n        mColor = findViewById(R.id.mColor);\n        mModel = findViewById(R.id.mModel);\n        mYear = findViewById(R.id.mYear);\n        mBodyType = findViewById(R.id.mBodyType);\n        mProcessingTime = findViewById(R.id.processingTime);\n        mImageBodyType = findViewById(R.id.iv_body);\n        mColorImageView = findViewById(R.id.mColorImage);\n\n    }\n\n    private void jsonConverting() {\n\n        extra = getIntent().getStringArrayExtra(\"EXTRA_SESSION_ID\");\n\n        result = extra[0];\n        url_out = extra[1];\n        json = new JSON(result);\n\n        getJsonOutput();\n\n\n    }\n\n    private void toolbarMethod() {\n        Toolbar mToolbar = findViewById(R.id.toolbar);\n        mToolbar.setTitle(R.string.app_name);\n        mToolbar.setNavigationIcon(R.drawable.ic_arrow_back);\n        mToolbar.setTitleTextColor(getResources().getColor(R.color.white));\n\n        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View view) {\n\n                finish();\n\n            }\n        });\n    }\n\n    private void setColor() {\n\n        String color_upperCase = color.substring(0, 1).toUpperCase() + color.substring(1);\n        mColor.setText(color_upperCase);\n\n        switch (color) {\n            case (\"white\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.white));\n                break;\n            case (\"black\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.black));\n                break;\n            case (\"blue\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.blue));\n                break;\n            case (\"brown\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.brown));\n                break;\n            case (\"gold-beige\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.gold_beige));\n                break;\n            case (\"green\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.green));\n                break;\n            case (\"orange\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.orange));\n                break;\n            case (\"pink\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.pink));\n                break;\n            case (\"purple\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.purple));\n                break;\n            case (\"red\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.red));\n                break;\n            case (\"silver-gray\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.silver_gray));\n                break;\n            case (\"yellow\"):\n                mColorImageView.setColorFilter(getResources().getColor(R.color.yellow));\n                break;\n            default:\n                mColorImageView.setVisibility(View.INVISIBLE);\n\n        }\n\n    }\n\n    private void setBodyType() {\n\n        switch (body_type) {\n            case \"antique\":\n                mBodyType.setText(getString(R.string.antique));\n                break;\n            case \"missing\":\n                mBodyType.setText(getString(R.string.missing));\n                break;\n            case \"motorcycle\":\n                mBodyType.setText(getString(R.string.motorcycle));\n                mImageBodyType.setVisibility(View.INVISIBLE);\n                break;\n            case \"sedan-compact\":\n                mBodyType.setText(getString(R.string.sedan_compact));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type6));\n                break;\n            case \"sedan-convertible\":\n                mBodyType.setText(getString(R.string.sedan_convertible));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type6));\n                break;\n            case \"sedan-sports\":\n                mBodyType.setText(getString(R.string.sedan_sports));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type5));\n                break;\n            case \"sedan-standard\":\n                mBodyType.setText(getString(R.string.sedan_standard));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type6));\n                break;\n            case \"sedan-wagon\":\n                mBodyType.setText(getString(R.string.sedan_wagon));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type1));\n                break;\n            case \"suv-crossover\":\n                mBodyType.setText(getString(R.string.suv_crossover));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type7));\n                break;\n            case \"suv-standard\":\n                mBodyType.setText(getString(R.string.suv_standard));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type7));\n                break;\n            case \"suv-wagon\":\n                mBodyType.setText(getString(R.string.suv_wagon));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type3));\n                break;\n            case \"tractor-trailer\":\n                mBodyType.setText(getString(R.string.tractor_trailer));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type4));\n                break;\n            case \"truck-standard\":\n                mBodyType.setText(getString(R.string.tractor_standard));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type8));\n                break;\n            case \"van-full\":\n                mBodyType.setText(getString(R.string.van_full));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type8));\n                break;\n            case \"van-mini\":\n                mBodyType.setText(getString(R.string.van_mini));\n                mImageBodyType.setImageDrawable(getResources().getDrawable(R.drawable.body_type2));\n                break;\n            default:\n                mBodyType.setText(body_type);\n\n        }\n\n\n    }\n\n    private void getJsonOutput() {\n        plate = json.key(\"results\").index(0).key(\"plate\").stringValue();\n        color = json.key(\"results\").index(0).key(\"vehicle\").key(\"color\").index(0).key(\"name\").stringValue();\n        make_model = json.key(\"results\").index(0).key(\"vehicle\").key(\"make\").index(0).key(\"name\").stringValue();\n        body_type = json.key(\"results\").index(0).key(\"vehicle\").key(\"body_type\").index(0).key(\"name\").stringValue();\n        year = json.key(\"results\").index(0).key(\"vehicle\").key(\"year\").index(0).key(\"name\").stringValue();\n        type = json.key(\"results\").index(0).key(\"vehicle\").key(\"make_model\").index(0).key(\"name\").stringValue();\n\n        processingTime = json.key(\"processing_time\").key(\"plates\").toString();\n\n        x1 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(0).key(\"x\").stringValue());\n        y1 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(0).key(\"y\").stringValue());\n\n        x2 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(1).key(\"x\").stringValue());\n        y2 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(1).key(\"y\").stringValue());\n\n\n        x3 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(2).key(\"x\").stringValue());\n        y3 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(2).key(\"y\").stringValue());\n\n        x4 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(3).key(\"x\").stringValue());\n        y4 = Integer.valueOf(json.key(\"results\").index(0).key(\"coordinates\").index(3).key(\"y\").stringValue());\n    }\n\n\n    // DownloadImage AsyncTask\n    private class DownloadImage extends AsyncTask<String, Void, Bitmap> {\n\n        @Override\n        protected void onPreExecute() {\n            super.onPreExecute();\n            // Create a progressdialog\n            mProgressDialog = new ProgressDialog(ResultActivity.this);\n            // Set progressdialog title\n            mProgressDialog.setTitle(\"Download Image Tutorial\");\n            // Set progressdialog message\n            mProgressDialog.setMessage(\"Loading...\");\n            mProgressDialog.setIndeterminate(false);\n            // Show progressdialog\n            mProgressDialog.show();\n        }\n\n        @Override\n        protected Bitmap doInBackground(String... URL) {\n\n            String imageURL = URL[0];\n\n            Bitmap bitmap = null;\n            try {\n                // Download Image from URL\n                InputStream input = new java.net.URL(imageURL).openStream();\n                // Decode Bitmap\n                bitmap = BitmapFactory.decodeStream(input);\n            } catch (Exception e) {\n                e.printStackTrace();\n            }\n\n            return bitmap;\n        }\n\n        @Override\n        protected void onPostExecute(Bitmap decodedByte) {\n\n\n            Paint paint = new Paint();\n            paint.setColor(Color.RED);\n\n            paint.setStrokeWidth(10);\n\n\n            //Drawing line around plate\n            Bitmap tempBitmap = Bitmap.createBitmap(decodedByte.getWidth(), decodedByte.getHeight(), Bitmap.Config.RGB_565);\n            Canvas tempCanvas = new Canvas(tempBitmap);\n            tempCanvas.drawBitmap(decodedByte, 0, 0, null);\n\n\n            tempCanvas.drawLine(x1, y1, x2, y2, paint);\n            tempCanvas.drawLine(x1, y1, x4, y4, paint);\n            tempCanvas.drawLine(x3, y3, x4, y4, paint);\n            tempCanvas.drawLine(x3, y3, x2, y2, paint);\n\n\n            mImageView.setImageDrawable(new BitmapDrawable(getResources(), tempBitmap));\n\n            // Close progressdialog\n            mProgressDialog.dismiss();\n        }\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/SplashActivity.java",
    "content": "package uz.shukurov.carrecognition;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.SharedPreferences;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.preference.PreferenceManager;\nimport android.support.v7.app.AppCompatActivity;\nimport android.webkit.WebView;\nimport android.widget.ImageView;\n\n\npublic class SplashActivity extends AppCompatActivity {\n\n    ImageView mImageAnimation;\n    WebView webView;\n\n    public boolean isFirstStart;\n    Context mcontext;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_splash);\n\n        webView = findViewById(R.id.webView);\n        webView.loadUrl(\"file:///android_asset/index.html\");\n\n        new Handler().postDelayed(new Runnable() {\n            @Override\n            public void run() {\n                SplashActivity.this.startActivity(new Intent(SplashActivity.this, MainActivity.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));\n                SplashActivity.this.finish();\n\n            }\n        }, 3000);\n\n\n    }\n\n\n}\n"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/other/InternetCheck.java",
    "content": "package uz.shukurov.carrecognition.other;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\n\n\npublic class InternetCheck {\n    public static boolean isInternetAvailable(Context context) {\n        ConnectivityManager cm =\n                (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n        NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n        return activeNetwork != null &&\n                activeNetwork.isConnectedOrConnecting();\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/other/MyBounceInterpolator.java",
    "content": "package uz.shukurov.carrecognition.other;\n\npublic class MyBounceInterpolator implements android.view.animation.Interpolator {\n    private double mAmplitude = 1;\n    private double mFrequency = 10;\n\n    public MyBounceInterpolator(double amplitude, double frequency) {\n        mAmplitude = amplitude;\n        mFrequency = frequency;\n    }\n\n    public float getInterpolation(float time) {\n        return (float) (-1 * Math.pow(Math.E, -time/ mAmplitude) *\n                Math.cos(mFrequency * time) + 1);\n    }\n}"
  },
  {
    "path": "app/src/main/java/uz/shukurov/carrecognition/other/RequestCode.java",
    "content": "package uz.shukurov.carrecognition.other;\n\npublic class RequestCode {\n\n    public static final int MY_PERMISSIONS_REQUEST_EXTERNAL_STORAGE = 999;\n    public static final int REQUEST_TAKE_PHOTO = 998;\n    public static final int GALLERY_REQUEST = 997;\n\n\n}\n"
  },
  {
    "path": "app/src/main/res/anim/bounce.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n    <scale\n        android:duration=\"2000\"\n        android:fromXScale=\"0.3\"\n        android:toXScale=\"1.0\"\n        android:fromYScale=\"0.3\"\n        android:toYScale=\"1.0\"\n        android:pivotX=\"50%\"\n        android:pivotY=\"50%\" />\n</set>"
  },
  {
    "path": "app/src/main/res/drawable/camera_button_click.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@drawable/ic_camera_clicked2\"\n        android:state_pressed=\"true\" />\n    <item android:drawable=\"@drawable/camera_icon\" />\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/gallery_button_click.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@drawable/ic_gallery_clicked2\"\n        android:state_pressed=\"true\" />\n    <item android:drawable=\"@drawable/ic_gallery\" />\n</selector>"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_back.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"24dp\"\n        android:height=\"24dp\"\n        android:viewportWidth=\"24.0\"\n        android:viewportHeight=\"24.0\">\n    <path\n        android:fillColor=\"#fff\"\n        android:pathData=\"M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector\n    android:height=\"108dp\"\n    android:width=\"108dp\"\n    android:viewportHeight=\"108\"\n    android:viewportWidth=\"108\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <path android:fillColor=\"#008577\"\n          android:pathData=\"M0,0h108v108h-108z\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M9,0L9,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,0L19,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M29,0L29,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M39,0L39,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M49,0L49,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M59,0L59,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M69,0L69,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M79,0L79,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M89,0L89,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M99,0L99,108\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,9L108,9\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,19L108,19\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,29L108,29\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,39L108,39\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,49L108,49\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,59L108,59\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,69L108,69\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,79L108,79\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,89L108,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M0,99L108,99\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,29L89,29\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,39L89,39\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,49L89,49\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,59L89,59\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,69L89,69\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M19,79L89,79\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M29,19L29,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M39,19L39,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M49,19L49,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M59,19L59,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M69,19L69,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n    <path android:fillColor=\"#00000000\" android:pathData=\"M79,19L79,89\"\n          android:strokeColor=\"#33FFFFFF\" android:strokeWidth=\"0.8\"/>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillType=\"evenOdd\"\n        android:pathData=\"M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"78.5885\"\n                android:endY=\"90.9159\"\n                android:startX=\"48.7653\"\n                android:startY=\"61.0927\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/linearLayout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_gravity=\"center\"\n    android:gravity=\"center\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\">\n\n\n    <ImageButton\n        android:id=\"@+id/mTakePicture\"\n        android:layout_width=\"100dp\"\n        android:layout_height=\"76dp\"\n        android:layout_gravity=\"center_horizontal\"\n        android:textSize=\"15sp\"\n        android:background=\"@drawable/camera_button_click\"\n        android:contentDescription=\"@string/take_picture_button_description\" />\n\n    <TextView\n        android:padding=\"10dp\"\n        android:id=\"@+id/textView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/take_a_picture\"\n        android:textAlignment=\"center\"\n        android:textSize=\"16sp\"\n        android:textColor=\"@android:color/black\"\n        android:textStyle=\"bold\" />\n\n\n    <TextView\n        android:padding=\"10dp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginLeft=\"25dp\"\n        android:layout_marginRight=\"25dp\"\n        android:background=\"@android:color/darker_gray\"\n        />\n\n    <TextView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/or\"\n        android:padding=\"15dp\"\n        android:textAlignment=\"center\"\n        android:textSize=\"16sp\"\n        android:textColor=\"@android:color/black\"\n        android:textStyle=\"bold\" />\n\n    <TextView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginLeft=\"25dp\"\n        android:layout_marginRight=\"25dp\"\n        android:background=\"@android:color/darker_gray\"\n        />\n\n    <ImageButton\n        android:id=\"@+id/mCapture\"\n        android:layout_width=\"100dp\"\n        android:layout_height=\"100dp\"\n        android:layout_gravity=\"center_horizontal\"\n        android:textSize=\"16sp\"\n        android:background=\"@drawable/gallery_button_click\"\n        android:contentDescription=\"@string/select_from_gallery_button_description\" />\n\n    <TextView\n        android:padding=\"10dp\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:text=\"@string/select_from_gallery\"\n        android:textAlignment=\"center\"\n        android:textSize=\"16sp\"\n        android:textColor=\"@android:color/black\"\n        android:textStyle=\"bold\" />\n\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_result.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_gravity=\"center\"\n    android:gravity=\"center\"\n    android:orientation=\"vertical\"\n    tools:context=\".ResultActivity\">\n\n\n    <android.support.v7.widget.Toolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"?attr/colorPrimary\"\n        android:minHeight=\"?attr/actionBarSize\"\n        app:theme=\"@style/ThemeOverlay.AppCompat.Dark\">\n\n    </android.support.v7.widget.Toolbar>\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"8dp\"\n            android:orientation=\"vertical\">\n\n            <android.support.v7.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n                xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_margin=\"3dp\"\n                android:padding=\"10dp\"\n                app:cardCornerRadius=\"6dp\"\n                app:cardElevation=\"6dp\">\n\n                <LinearLayout\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:orientation=\"vertical\"\n                    android:padding=\"10dp\">\n\n                    <RelativeLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:paddingLeft=\"5dp\">\n\n                        <TextView\n                            android:id=\"@+id/body\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:layout_marginTop=\"0dp\"\n                            android:text=\"Body type: \"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            android:textStyle=\"bold\" />\n\n                        <TextView\n                            android:id=\"@+id/mBodyType\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:layout_marginTop=\"0dp\"\n                            android:layout_toEndOf=\"@+id/body\"\n                            android:text=\"\"\n                            android:textSize=\"@dimen/resuly_textview_size\" />\n\n                        <ImageView\n                            android:id=\"@+id/iv_body\"\n                            android:layout_width=\"60dp\"\n                            android:layout_height=\"25dp\"\n                            android:layout_alignParentEnd=\"true\"\n                            android:layout_marginEnd=\"20dp\"\n                            android:src=\"@drawable/body_type1\" />\n\n                    </RelativeLayout>\n\n                    <RelativeLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:padding=\"5dp\">\n\n                        <TextView\n                            android:id=\"@+id/brand\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:text=\"Brand: \"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            android:textStyle=\"bold\" />\n\n                        <TextView\n                            android:id=\"@+id/mModel\"\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_toEndOf=\"@+id/brand\"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            tools:text=\"Model\" />\n                    </RelativeLayout>\n\n                    <RelativeLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:padding=\"5dp\">\n\n                        <TextView\n                            android:id=\"@+id/year\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:text=\"Year: \"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            android:textStyle=\"bold\" />\n\n                        <TextView\n                            android:id=\"@+id/mYear\"\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_toEndOf=\"@+id/year\"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            app:layout_constraintEnd_toEndOf=\"parent\"\n                            tools:text=\"Year\" />\n                    </RelativeLayout>\n\n                    <RelativeLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:padding=\"5dp\">\n\n                        <TextView\n                            android:id=\"@+id/color\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:text=\"Color: \"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            android:textStyle=\"bold\" />\n\n                        <TextView\n\n                            android:id=\"@+id/mColor\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:layout_toEndOf=\"@+id/color\"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            tools:text=\"Color\" />\n\n                        <ImageView\n                            android:id=\"@+id/mColorImage\"\n                            android:layout_width=\"18dp\"\n                            android:layout_height=\"18dp\"\n                            android:layout_alignParentTop=\"true\"\n                            android:layout_alignParentEnd=\"true\"\n                            android:layout_centerHorizontal=\"true\"\n                            android:layout_marginEnd=\"20dp\"\n                            android:src=\"?attr/colorPrimary\" />\n\n                    </RelativeLayout>\n\n                    <RelativeLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:padding=\"5dp\">\n\n\n                        <TextView\n                            android:id=\"@+id/type\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:text=\"Model: \"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            android:textStyle=\"bold\" />\n\n                        <TextView\n                            android:id=\"@+id/mType\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentTop=\"true\"\n                            android:layout_toEndOf=\"@+id/type\"\n                            android:textSize=\"@dimen/resuly_textview_size\"\n                            tools:text=\"Car Model\" />\n\n                    </RelativeLayout>\n\n                </LinearLayout>\n            </android.support.v7.widget.CardView>\n\n\n            <TextView\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"1dp\"\n                android:layout_marginLeft=\"8dp\"\n                android:layout_marginTop=\"15dp\"\n                android:layout_marginRight=\"8dp\"\n                android:layout_marginBottom=\"10dp\"\n                android:background=\"@android:color/darker_gray\"\n                android:padding=\"10dp\" />\n\n\n            <android.support.v7.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n                xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_margin=\"8dp\"\n                android:paddingTop=\"5dp\"\n                app:cardCornerRadius=\"6dp\"\n                app:cardElevation=\"6dp\">\n\n                <LinearLayout\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_gravity=\"center\"\n                    android:orientation=\"vertical\"\n                    android:padding=\"10dp\">\n\n                    <RelativeLayout\n                        android:layout_width=\"wrap_content\"\n                        android:layout_height=\"wrap_content\">\n\n                        <TextView\n                            android:id=\"@+id/mPlate\"\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_alignParentStart=\"true\"\n                            android:layout_centerVertical=\"true\"\n                            android:layout_marginStart=\"0dp\"\n                            android:scrollbars=\"vertical\"\n                            android:textAlignment=\"center\"\n                            android:textSize=\"20sp\"\n                            android:textStyle=\"bold\"\n                            tools:text=\"Plate Number\" />\n\n                        <ImageView\n                            android:id=\"@+id/imageView3\"\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"80dp\"\n                            android:layout_alignParentStart=\"true\"\n                            android:layout_alignParentTop=\"true\"\n                            android:src=\"@drawable/plate\" />\n                    </RelativeLayout>\n\n                    <ImageView\n                        android:id=\"@+id/imageView\"\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\"\n                        android:layout_gravity=\"center\"\n                        android:contentDescription=\"@string/car_image_description\"\n                        tools:src=\"@tools:sample/avatars[2]\" />\n                </LinearLayout>\n            </android.support.v7.widget.CardView>\n        </LinearLayout>\n\n        <TextView\n            android:id=\"@+id/processingTime\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_alignParentStart=\"true\"\n            android:layout_alignParentBottom=\"true\"\n            android:layout_marginStart=\"30dp\"\n            android:layout_marginBottom=\"15dp\"\n            android:paddingTop=\"5dp\"\n            android:textColor=\"@android:color/darker_gray\"\n            tools:text=\"Processing Time \" />\n\n    </RelativeLayout>\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_splash.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.constraint.ConstraintLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:background=\"@color/splash_activity_background\"\n   >\n\n    <WebView\n        android:id=\"@+id/webView\"\n\n        android:layout_width=\"200dp\"\n        android:layout_height=\"200dp\"\n        android:scrollbars=\"none\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\">\n\n\n    </WebView>\n\n    <TextView\n        android:id=\"@+id/textView\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"19dp\"\n        android:layout_marginBottom=\"20dp\"\n        android:text=\"@string/copyRight\"\n        android:textColor=\"@color/TransparentWhite\"\n        android:textSize=\"15sp\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\" />\n\n\n</android.support.constraint.ConstraintLayout>\n"
  },
  {
    "path": "app/src/main/res/menu/main_menu.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n    <item\n        android:id=\"@+id/menu_item1\"\n        android:title=\"Settings\" />\n    <item\n        android:id=\"@+id/menu_item2\"\n        android:title=\"About\" />\n    <item\n        android:id=\"@+id/menu_item3\"\n        android:title=\"Privacy Policy\" />\n</menu>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\"/>\n    <foreground android:drawable=\"@mipmap/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\"/>\n    <foreground android:drawable=\"@mipmap/ic_launcher_foreground\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#4285F4</color>\n    <color name=\"colorPrimaryDark\">#4285F4</color>\n    <color name=\"colorAccent\">#4285F4</color>\n\n    <color name=\"white\">#fff</color>\n    <color name=\"black\">#000</color>\n    <color name=\"blue\">#00f</color>\n    <color name=\"brown\">#654321</color>\n    <color name=\"gold_beige\">#ffd700 </color>\n    <color name=\"green\">#00ff00</color>\n    <color name=\"orange\">#ffa500</color>\n    <color name=\"pink\">#ff69b4</color>\n    <color name=\"purple\">#551a8b</color>\n    <color name=\"red\">#ff0000</color>\n    <color name=\"silver_gray\">#c0c0c0 </color>\n    <color name=\"yellow\">#ffff00</color>\n\n    <color name=\"TransparentWhite\">#c9c9c9</color>\n    <color name=\"colorGreen\">#00dc9e</color>\n    <color name=\"splash_activity_background\">#fff</color>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <dimen name=\"resuly_textview_size\">14sp</dimen>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Vehicle Recognition</string>\n    <string name=\"body_type\">Body type: </string>\n    <string name=\"van_mini\"> VAN Mini</string>\n    <string name=\"van_full\"> VAN Full</string>\n    <string name=\"tractor_standard\"> Tractor Standard</string>\n    <string name=\"tractor_trailer\"> Tractor Trailer</string>\n    <string name=\"suv_wagon\"> SUV Wagon</string>\n    <string name=\"suv_standard\"> SUV Standard</string>\n    <string name=\"suv_crossover\"> SUV Crossover</string>\n    <string name=\"sedan_wagon\"> Sedan Wagon</string>\n    <string name=\"sedan_standard\"> Sedan Standard</string>\n    <string name=\"sedan_sports\"> Sedan Sports</string>\n    <string name=\"sedan_convertible\"> Sedan Convertible</string>\n    <string name=\"sedan_compact\"> Sedan Compact</string>\n    <string name=\"motorcycle\"> Motorcycle</string>\n    <string name=\"missing\"> Missing</string>\n    <string name=\"antique\"> Antique</string>\n    <string name=\"car_image_description\">Processed Car Image</string>\n    <string name=\"no_internet\">Ops, we could not find an active internet connection…</string>\n    <string name=\"retry\">Retry</string>\n    <string name=\"copyRight\">Project was created by Jasur Shukurov</string>\n    <string name=\"select_from_gallery\">Select from gallery</string>\n    <string name=\"take_a_picture\">Take a picture</string>\n    <string name=\"take_picture_button_description\">Take Picture Button</string>\n    <string name=\"or\">OR</string>\n    <string name=\"select_from_gallery_button_description\">Select from gallery button</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n\n\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n    <style name=\"NoActionBar\" parent=\"Theme.AppCompat.Light.NoActionBar\">\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n\n    </style>\n\n\n</resources>\n\n"
  },
  {
    "path": "app/src/main/res/xml/file_paths.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<paths xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <external-path name=\"external_files\" path=\".\" />\n</paths>"
  },
  {
    "path": "app/src/test/java/uz/shukurov/carrecognition/ExampleUnitTest.java",
    "content": "package uz.shukurov.carrecognition;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    \n    repositories {\n        google()\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.2.0'\n        classpath 'com.google.gms:google-services:4.2.0' // google-services plugin\n\n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        google() // Google's Maven repository\n        jcenter()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.6-all.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windows variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app'\n"
  }
]