title: Invalid SOS parameters for sequential JPEG in R OpenCV
body: <p>I tried in R to open a jpg image using the opencv library, using this code:</p>
  <pre><code>library(opencv)
  sample  &lt;- ocv_read(&quot;Sample.jpg&quot;)
  </code></pre>
  <p>But I get this message:</p>
  <p><code>Invalid SOS parameters for sequential JPEG</code></p>
  <p>I'm not sure why I receive this message. I tried the following code to open the file:</p>
  <pre><code>sample  &lt;- ocv_read(path = &quot;Sample.jpg&quot;)
  </code></pre>
  <p>I would like to understand that SOS parameter, please could you help me with this issue?</p>
  <p>Regards,</p>
  <p>Alexis</p>
  <p>p.d. Attached is part of the photo, because it contains the ID number and its better not to expose it.</p>
  <p><a href="https://i.stack.imgur.com/pI6EU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pI6EU.jpg" alt="Cropped image" /></a></p>