title: Using Camera with Visual Recognition IBM Watson in Unity
body: <p>To start off im really new  to this, I have recently used vuforia with unity for ar applications and such.</p>
  
  <p>Now to the main thing ,
  what i am trying to do is use camera of mobile app to take a pic and use it later for visual recognition
  can anyone help with this.</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  using IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3;
  using IBM.Watson.DeveloperCloud.Logging;
  using IBM.Watson.DeveloperCloud.Utilities;
  using System.Collections.Generic;
  public class neww : MonoBehaviour {
  
  // Use this for initialization
  void Start () {
      private string _apikey = "&lt;api-key&gt;";
      private string _url = "https://gateway-a.watsonplatform.net/visual-
  recognition/api";
  
      private VisualRecognition _visualRecognition;
      private string _visualRecognitionVersionDate = "2016-05-20";
      private bool _classifyGetTested = false;
      private bool _classifyPostTested = false;
      private string _imageURL = "https://upload.wikimedia.org/wikipedia/commons/e/e9/Official_portrait_of_Barack_Obama.jpg";
      Log.Debug("ExampleVisualRecognition", "Attempting to get classify via URL");
      if (!_visualRecognition.Classify(OnClassifyGet, _imageURL))
          Log.Debug("ExampleVisualRecognition", "Classify image failed!");
  }
  private void OnClassifyGet(ClassifyTopLevelMultiple classify, string data)
  {
      Log.Debug("ExampleVisualRecognition", "VisualRecognition - ClassifyGet Response: {0}", data);
      _classifyGetTested = true;
  
  }
  
  private void OnClassifyPost(ClassifyTopLevelMultiple classify, string data)
  {
      Log.Debug("ExampleVisualRecognition", "VisualRecognition - ClassifyPost Response: {0}", data);
      _classifyPostTested = true;
  }
  // Update is called once per frame
  void Update () {
  
  }
  }
  </code></pre>