title: Error in ocr of MATLAB
body: <p>I am trying to use <code>OCR</code> of MATLAB for some text recognition.This is part of my code-</p>
  
  <pre><code>r = ocr(n1,'TextLayout','Word')
  if strcmp(r.Text,char('_'))==1 | strcmp(r.Text,char('/'))==1 
          figure,imshow(n1);title('False image to be removed');
  else
          n2=imadd(n2,n1);figure,imshow(n2);title('uuu1');
  end
  </code></pre>
  
  <p>This was my <code>ocr</code> result-</p>
  
  <pre><code>r = 
  
    ocrText with properties:
  
                        Text: '/
  
  '
      CharacterBoundingBoxes: [3x4 double]
        CharacterConfidences: [3x1 single]
                       Words: {'/'}
           WordBoundingBoxes: [315 133 16 9]
             WordConfidences: 0.7857
  </code></pre>
  
  <p>So,the text recognized is <code>/</code> so it should have gone into the <code>if</code> part of my code.But it always goes into the <code>else</code> part.How can I fix this?</p>