chipKIT® Development Platform

Inspired by Arduino™

Serial JPEG Camera

Created Sat, 20 Jul 2013 12:26:10 +0000 by shahrul


shahrul

Sat, 20 Jul 2013 12:26:10 +0000

I want capture image using Serial JPEG Camera and display on TFT LCD. The camera from Sparkfun https://www.sparkfun.com/products/10061

Display TFT LCD, thanks to UTFT Library, easy to use. http://shahrulnizam.com/chipkit-lesson-tft-lcd-st7735/

So now, how the way to convert JPEG format (from camera) to RGB565 (display to TFT LCD) ?


majenko

Sat, 20 Jul 2013 12:38:18 +0000

How good is your C programming?

JPEG is a very complex compression algorythm. Under normal circumstances you'd just use one of the pre-existing JPEG libraries, like libjpeg, but it's somewhat more complex in a microcontroller. Limited RAM means your program has to be very lean. Limited processing power means that decoding won't be fast.

Microchip has a library in their application example code / library collection which you might be able to get going on the chipKIT: [url]http://www.microchip.com/mla[/url]


shahrul

Sat, 20 Jul 2013 12:50:11 +0000

How good is your C programming? JPEG is a very complex compression algorythm. Under normal circumstances you'd just use one of the pre-existing JPEG libraries, like libjpeg, but it's somewhat more complex in a microcontroller. Limited RAM means your program has to be very lean. Limited processing power means that decoding won't be fast. Microchip has a library in their application example code / library collection which you might be able to get going on the chipKIT: [url]http://www.microchip.com/mla[/url]

I just know JPEG data starts with FF D8, ends with FF D9. Stated in wikipedia and also in the camera datasheet. I have interface the camera and display on serial monitor, get about 3440 bytes JPEG data.

If have library, it's very nice and better to save time. I have go to the above library link. How to use? Which one should I start from this link http://www.ijg.org/files/


majenko

Sat, 20 Jul 2013 14:42:40 +0000

If you have to ask then I doubt you have the skills to do the job.

You will have to download the application library, find the graphics library (this is NOT a chipKIT library), locate the JPEG decoder code, and then adapt it to compile on the chipKIT and take the data you have.

Not a simple job even for an experienced programmer like myself.


shahrul

Sat, 20 Jul 2013 15:37:13 +0000

Not a simple job even for an experienced programmer like myself.

Agree, also not simple job for me to. haha I have download, but don't know how to start. Maybe can't be done at this time..