Announcement

Collapse
No announcement yet.

need help with getting raw image

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

  • need help with getting raw image

    Hey everybody
    i really need some help with this Camera , the datasheet is not very helpful , well i managed to read data of raw picture , i've read someone here said you should remove the first and last 6 bytes , why ?
    and after removing these 6 bytes , how to get the real picture as jpg or png on the computer (as the demo do)
    Thank you so much for your help

  • #2


    I'm not quite following you, are you saying you can read RAW pictures but are wondering how to read JPGs?

    Section 7.4.1 of the datasheet describes the 'extra' data in each package. If you join all the 'image data' from all the packages and place it in a file you should be able to open it using paint (or whatever)
    Mark

    Comment


    • #3


      hey
      now that i have a file that contains all package , how do i get a picture file

      here is the data (package size 64 , jpg , picture size 1096)

      00003A00FFD8FFE000114A464946000102030405060708090AFFDB004300100C0C0E0C0A100E0E0E1212101418281A181616 183224261E283A343E3C3A34100001003A00383840485C4E404458463838506E525860626868683E4E727A7064785C666864 FFDB004301121212161616301A1A306442384264646464646464290002003A00646464646464646464646464646464646464 64646464646464646464646464646464646464646464646464FFC4001F0000010501010101010100F60003003A0000000000 0000000102030405060708090A0BFFC400B5100002010303020403050504040000017D010203000411051221314106135161 07227114E70004003A00328191A1082342B1C11552D1F02433627282090A161718191A25262728292A3435363738393A4344 45464748494A535455565758595A636465664A0005003A006768696A737475767778797A838485868788898A929394959697 98999AA2A3A4A5A6A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3E60006003A00D4D5D6D7D8D9DAE1E2E3E4E5 E6E7E8E9EAF1F2F3F4F5F6F7F8F9FAFFC4001F010003010101010101010101000000000000010203040506070809CB000700 3A000A0BFFC400B51100020102040403040705040400010277000102031104052131061241510761711322328108144291A1 B1C109233352F0156272EA0008003A00D10A162434E125F11718191A262728292A35363738393A434445464748494A535455 565758595A636465666768696A737475767778797A828384520009003A0085868788898A92939495969798999AA2A3A4A5A6 A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3D4D5D6D7D8D9DAE2E3E4E5E6E7E8B1000A003A00E9EAF2F3F4F5 F6F7F8F9FAFFC00011080040005003012200021101031101FFDA000C03010002110311003F00E34706B565BF8ADC15B4E770 C17285000B003A002B3E685A190A1ED5160D221A4C09C9A92360A57DB24D46073CD3B276F5FBD40CD6D0D33248FE98FEB5BD 9ACAD254A5BF239EFF0099AD450682AC0A000C003A00380A76280297140C4351B2E454845262803135787E4561FC39CFE959 31ED49034A9BD1792992377B6474ADFD5B52B1BC1BD24F98FDE1B4F3D3DA05000D003A00B1E3BA11C2E8243B4904A01F7B19 EFDBA9A6CC637B15415DC4EDC7A73D2A6B3B7FB55D2A7DD07AFB714C77699C71803A0AE8F45B031DB3484F2FAC000E003A00 DBD304D22F623B05DA9835A6ABC5548E331B60F6ABD110682850B4A56A60A08A0AD0172B914DC54CCB5191405CE1B9A72C65 8D6C8D0AE962595E51000F003A0030A8DC03B81FEB576DB4E8ADCE59B7B7D318A7621C923323B27820595BE52FF70F5E9D6B B1D3ACC416C910E8A31552C209258A2371CCB003B8E7DB0010003A00D4E074F6C56BC4C00A42D5997796A5252C3A1AAEA083 5BD32AC898ACD921C1A0A8BE844AF8A7EFCD46548A69E282AC3D9AA363485A9A4D0162A3550011003A0033DB9231F23755CD 44B7433BB3B4A83EF5AF7902C91E318F7AE72E91D037E19AD2CAC44A373574EBE22EA518DDF6900139E857A56CC52715C7E9 750012003400B33ADEC60B70491FA57589598E28B424E298FCD22D3B1C50558ACCB5132D5A65A8D9698CA8CB519156996A26 5A047FFFD9000000BE00

      Comment


      • #4


        It's a bit hard to see exactly what's going on here (with the way the forum has wrapped things), but anyway.

        From 7.4.1 we know we can ignore the first 4 bytes (00003A00) as that is the ID and the Datasize (the datasize is 0x003A (58) so that ties in well with the Package size.

        We would then take the next 58 bytes as the start of our JPEG, and that starts FFD8FFE0, which looks exactly like what I would expect for the start of a jpeg.

        Then we would ignore the last 2 bytes (the verify code).

        Then we would do the same for the next package, until we had 1096 bytes in the jpeg.

        If you saved that as a .jpg and double click on it in windows explorer it should bring up the contained picture.
        Mark

        Comment


        • #5


          Thank you so much it works
          another question , how to interface it with a ┬Ácontroller , i mean should i remove the max232 ship ???

          ps : just for who doesn't get it yet , don't put the data in notepad and then save it as .JPG it won't work ,
          you should open it with HEX WORKSHOP then save it as .JPG , it really worked for me

          Comment


          • #6


            The display talks serial at TTL levels.

            If you uController has a max232 and thus talks serial at RS232 levels then you will need to remove or otherwise disable it.
            Mark

            Comment


            • #7


              hey
              yes ,but how to disable it ?

              Comment


              • #8


                I have no idea what your uController is, so I can't really say much more than unplug it, but that might lead to complications (eg if your uController uses the voltages generated by the MAX232 for another purpose).

                You uController might have jumpers available to disable the MAX232.
                Mark

                Comment


                • #9


                  my ┬Ácontroller is a PIC 16F876A , it uses the TTL voltage (0-5V) for Uart communication

                  Comment


                  • #10


                    See here http://4d.websitetoolbox.com/post?id=6297103
                    Mark

                    Comment

                    Working...
                    X