Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (12 loc) · 1.79 KB

TranslatorExplorer.md

File metadata and controls

23 lines (12 loc) · 1.79 KB

Translator API Explorer

alt text

This demo shows text translation using the Translator Text API. Using this demo, users can translate text to and from 60+ supported languages, and easily detect the language of any text. You will also be able to find alternative translations for single words, along with examples for different contexts.

Text Translation using OCR

Also we added the ability to provide images from local files, Bing Images or web camera as an input method. We will OCR it, detect the language and make the translation.

alt text

Key Source Code

  • TranslatorExplorerPage: Main page that drives the demo.

  • CameraControl: The code that contains the camera feed and runs a background loop to perform several tasks and that provides the control button to capture a photo.

  • ImageWithFaceBorderUserControl: A control used to display the result of each photo capture. It detects when the photo is loaded, automatically calls the Vision APIs and displays the result over the photo.

  • ImageAnalyzer: Responsible for wrapping an image and exposing several methods and properties that act as a bridge to the Cognitive Services.

  • ImageSearchUserControl: A control used for searching Bing Images and local images and using them as input in the page.