Removing Given Logos in Images
- Some Kind of Android Simulator, we use Genymotion
- Note: On macOS, you must install Virtualbox
- Android Studio (Or at least just the ADK)
- 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 😥
git clone [email protected]:avancemos/rmv.git
Since we used Genymotion, well show you how to set it up
- 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
- Launch the application
- Click the
add
button with the ➕ sign - 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.
- Select the device and hit
next
. Read over all the information on the screen, name the device, and hit next. - Genymotion will download all the require files. Depending on your internet speed this might take a while
- Once done, select the new device from the menu and hit
run
orctrl+l
- The simulation should launch
- Download Android Stuidio
- Complete the install process for your platform
- On Genymotion, go to
Settings -> ADB
and checkUse custom Android SDK tools
- 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
- The APK is located in the repo under
apk/Snapseed-VX.X.X.apk
- On Genymotion, this can be done by dragging the
apk/Snapseed-VX.X.X.apk
file into the open VM - 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
- Go into the settings on the VM
- Scroll down to the
about phone
- Scroll down to
build number
- Tab
build number
about 10 - There will be a message saying that
you have enabled developer options
- Go back to the settings page and you will see the
developer options
menu - Open the developer options, and enable
USB debugging
- 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/
Still working on how to get this to work for people other than me
When selecting your image and sub-image, there are a few things to keep in mind:
- You should pick an image where the subimage is clearly visiable and is not obscured
- The subimage should be somthing that is able to be recognized by Google Cloud Vision
- Open the Android Emulator
cd /PATH/TO/rmv/scripts
./1080.sh
- If
./1080.sh
doesn't work:
chmod +x 1080.sh