• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

bleh bleh bleh

react-native-live-translator

An augmented reality experiment in react native

Image of googleplay

Try beta release: https://play.google.com/apps/testing/com.livetranslator

Overview

A simple and small app that translates in real time what you see from your mobile.

Augmented reality is an overlay of content on the real world, it means to add enhancements to the existing reality in order to make it more meaningful.

With the help of advanced Google Cloud technology such as Cloud Vision, the information and the environment surrounding can become interactive.

It is inspired from Google's "Giorgio Cam" AI and react-native-camera-translator experiments.

For a thorough discussion, please read the following blog post about it.

Selecting a language.

I created the language selector using snack expo using Animated and PanResponder from react native.

https://snack.expo.io/SkhJOy4B-

Rotating the dialog

I am also using the mobile accelerometer to create an animated transition in order to improve the user experience when rotating the mobile.

https://snack.expo.io/B1jDvJEH-

https://snack.expo.io/Bk0aqeTSZ

Quick start

Clone the repository

git clone https://github.com/agrcrobles/react-native-live-translator.git
cd react-native-live-translator

Run the app

react-native run-android # only on android
react-native run-ios # only on ios

Prerequisites: Node version 6.0 or higher and npm version 3.0 or higher as well as android or ios running.

More info see: https://facebook.github.io/react-native/docs/getting-started.html

Configure Google API yourself

  • Enable the Cloud Vision API, for doing that, take a look at this quickstart guide

  • Enable Translate API as explained here

For further information look into getting started docs.

  • Reminder: After enabling the Google Cloud API, click the Go to Credentials button to set up your Cloud Translation API credentials.

  • Finally, add the key in the package.json file of the project

Supported languages

  • en: English
  • es: Spanish
  • de: Deutsch

Dependencies

Contribute!! :)

The following improvements and PR could be accepted:

  • Improve error handler and encoding
  • Move from REST to Google Cloud Translator API. https://cloud.google.com/translate/docs/apis?hl=es-419
  • Improved Translate text by using Compute hamming
  • An image diff algorithm could be also useful to avoid being overkill when taking and recording a picture.

Demo

me playing with the app

License

MIT

More Repositories

1

react-native-blockchain-poll

Source code of bringing-the-blockchain-to-react-native blog post.
JavaScript
85
star
2

react-native-web-workspace

cross platform app with react in a monorepo
JavaScript
74
star
3

react-native-web-boilerplate

I am no longer in maintenance
JavaScript
71
star
4

react-native-web-expo-boilerplate

I am no longer in maintenance
JavaScript
63
star
5

babel-preset-react-native-web3

deprecated: babel preset for react native, web3 and babel 6
JavaScript
22
star
6

react-navigation-polyfill

DEPRECATED: somes experiments usng react-navigation in web
JavaScript
19
star
7

react-ethereum-metacoin

Yet another dapp
JavaScript
11
star
8

ngflip

ngflip - an angular wrapper for turn.js
JavaScript
7
star
9

react-coin-hive-miner-sample

Mine cryptocurrency while your users are idle
JavaScript
5
star
10

redux-form-styled-for-react-native

Made my own UI for react native and web with redux-form following some best practices
JavaScript
4
star
11

ipfs-react-handy

Record a personal message using react and IPFS
JavaScript
2
star
12

so-53681826-minimum-web-notification

Trying Notification API in the web
JavaScript
2
star
13

react-native-test-token

react-native-test-token
JavaScript
2
star
14

test-UI-Layer

JavaScript
1
star
15

bael-template

Vue
1
star
16

redux-form-ui

1
star
17

gatsby-starter-netlify-cms

JavaScript
1
star
18

nuxt-netlifycms-boilerplate

Vue
1
star
19

react-native-vscode-extensionpack

React Native Extension Pack for the VSCode
1
star
20

nuxt-netlify-cms-starter

Vue
1
star
21

mdzevents

experimenting with ionic back in the day!
HTML
1
star
22

my-svelte-project

my-svelte-project
JavaScript
1
star
23

zeta-music-player

JavaScript
1
star