Announcement

Collapse
No announcement yet.

read a jpg image...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • read a jpg image...

    Hello,
    I have again a little problem with the camera but I assume (and I hope!) you will find fastly the answer. I want to use the JPG format...

    I have attached to this post a pdf document which describes the different commands and results that I get...

    My problem is that I do not know when my data (corresponding to the JPEG image) begins.

    For example, A jpg picture has to begin with FFD8FFE0 and finish with FFD9.
    But I think all the bytes received by my camera are not useful for the image...

    For each block, I delete the 4 first bytes and the last two bytes... But It does not work I hope you will help me


    =>aa 0e 00 00 00 00
    <=
    00 00 fa 00 ff d8 ff e0 00 11 4a 46 49 46 00 01 ..&uacute;.&yuml;&Oslash;&yuml;&agrave;..JFIF..02 03 04 05 06 07 08 09 0a ff db 00 43 00 10 0c .........&yuml;&Ucirc;.C...0c 0e 0c 0a 10 0e 0e 0e 12 12 10 14 18 28 1a 18 .............(..16 16 18 32 24 26 1e 28 3a 34 3e 3c 3a 34 38 38 ...2$&amp;.(:4><:48840 48 5c 4e 40 44 58 46 38 38 50 6e 52 58 60 62 @H\N@DXF88PnRX`b68 68 68 3e 4e 72 7a 70 64 78 5c 66 68 64 ff db hhh>Nrzpdx\fhd&yuml;&Ucirc;00 43 01 12 12 12 16 16 16 30 1a 1a 30 64 42 38 .C.......0..0dB842 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 Bddddddddddddddd64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 dddddddddddddddd64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 dddddddddddddddd64 64 64 ff c4 00 1f 00 00 01 05 01 01 01 01 01 ddd&yuml;&Auml;...........01 00 00 00 00 00 00 00 00 01 02 03 04 05 06 07 ................08 09 0a 0b ff c4 00 b5 10 00 02 01 03 03 02 04 ....&yuml;&Auml;.&mu;........03 05 05 04 04 00 00 01 7d 01 02 03 00 04 11 05 ........}.......12 21 31 41 06 13 51 61 07 22 71 14 32 81 91 a1 .!1A..Qa."q.2ı&lsquo;&iexcl;08 23 42 b1 c1 15 52 d1 f0 24 33 62 72 82 bb 00
    .#B&plusmn;&Aacute;.R&Ntilde;&eth;$3br&sbquo;&raquo;.

  • #2


    The jpeg format is quite a bit different, check what you are doing against the doco again, you are probably missing a little bit.

    What you've got so far doesn't look radically wrong.

    Maybe matlab can't 'handle' jpegs.

    You should be able to save the file as a jpeg and then open it in windows.
    Mark

    Comment


    • #3


      In a previous post , a person wrote:
      http://4d.websitetoolbox.com/post/Dislaying-JPEG-5759737?highlight=bytes

      [I have removed the 6 bytes from each package to leave just the image data..]

      In my example 6 bytes corresponding to 00 00 fa 00 and bb 00 for the first package???I am not sure....

      thanks a lot!

      Ok I retry and it works now! Thanks for all your help provided ESP_support

      see U soon

      ps: when camera will be deployed on field I will send you the link!

      Comment

      Working...
      X