Skip to content

Latest commit

 

History

History
107 lines (75 loc) · 3.75 KB

README.md

File metadata and controls

107 lines (75 loc) · 3.75 KB

rmv

Removing Given Logos in Images

Dependencies

  1. Some Kind of Android Simulator, we use Genymotion
  1. Android Studio (Or at least just the ADK)
  2. Ability to use Google Cloud Vision API. They offer a free trial and have a free option for personal use, but you have to have a mail address and there are a bunch of other restrictions 😥

Setting Up

Clone our repo

    git clone [email protected]:avancemos/rmv.git

Download and setup an android emulator for your platform

Since we used Genymotion, well show you how to set it up

  1. Go to https://www.genymotion.com/download/ and follow the instructions on their site to download the package
  • As of the writing of this README, installing the emulator entails creating an account
  1. Launch the application
  2. Click the add button with the ➕ sign
  3. You will see a sign in prompt at the bottom of the window that pops up. Sign in and select a device.
  • Note: we selected the Nexus 5x running Android 6.0.0 Marshmallow. However, any device with Android 4.1+ Jelly Bean should work fine.
  1. Select the device and hit next. Read over all the information on the screen, name the device, and hit next.
  2. Genymotion will download all the require files. Depending on your internet speed this might take a while
  3. Once done, select the new device from the menu and hit run or ctrl+l
  4. The simulation should launch

Install and Set Up Android Studio

  1. Download Android Stuidio
  2. Complete the install process for your platform
  3. On Genymotion, go to Settings -> ADB and check Use custom Android SDK tools
  4. Then provide in the box below the location of the ADK / Android SDK
  • On macOS/Linux the path should look something like /Users/user_name/Library/Android/sdk

Install the Snapseed APK on the VM

  1. The APK is located in the repo under apk/Snapseed-VX.X.X.apk
  2. On Genymotion, this can be done by dragging the apk/Snapseed-VX.X.X.apk file into the open VM
  3. This will take a little while, depending on the specs of your machine, but the app will install.
  • Note: you may have to reboot your VM

Set up ADB

  1. Go into the settings on the VM
  2. Scroll down to the about phone
  3. Scroll down to build number
  4. Tab build number about 10
  5. There will be a message saying that you have enabled developer options
  6. Go back to the settings page and you will see the developer options menu
  7. Open the developer options, and enable USB debugging
  8. Install adb and fastboot into the scripts folder

Run in terminal:

On macOS:

    unzip /PATH/to/rmv/scripts/Android.zip
    ./PATH/TO/rmv/scripts/ADB-Install-Linux.sh
    mv /PATH/TO/rmv/scripts/Android/Mac/* /PATH/TO/rmv/scripts/

On Linux:

    sudo apt-get install unzip
    unzip Android.zip -d /PATH/TO/rmv/scripts/
    ./PATH/TO/rmv/scripts/ADB-Install-Mac.sh
    mv /PATH/TO/rmv/scripts/Android/Mac/* /PATH/TO/rmv/scripts/

Setup Google Cloud Vision API with you account

Still working on how to get this to work for people other than me

Selecting image and Sub-image

When selecting your image and sub-image, there are a few things to keep in mind:

  1. You should pick an image where the subimage is clearly visiable and is not obscured
  2. The subimage should be somthing that is able to be recognized by Google Cloud Vision

Running the script

  1. Open the Android Emulator
    cd /PATH/TO/rmv/scripts
    ./1080.sh
  1. If ./1080.sh doesn't work:
    chmod +x 1080.sh

Note that this is not yet finished