Serial JPEG Camera

Let us know what you think about the chipKIT, and what can be done to make it better!
Post Reply
shahrul
Posts: 19
Joined: Wed Mar 28, 2012 5:23 pm

Serial JPEG Camera

Post by shahrul » Sat Jul 20, 2013 1:26 pm

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) ?

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Serial JPEG Camera

Post by majenko » Sat Jul 20, 2013 1:38 pm

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: http://www.microchip.com/mla
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

shahrul
Posts: 19
Joined: Wed Mar 28, 2012 5:23 pm

Re: Serial JPEG Camera

Post by shahrul » Sat Jul 20, 2013 1:50 pm

majenko wrote: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: http://www.microchip.com/mla
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/

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Serial JPEG Camera

Post by majenko » Sat Jul 20, 2013 3:42 pm

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.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

shahrul
Posts: 19
Joined: Wed Mar 28, 2012 5:23 pm

Re: Serial JPEG Camera

Post by shahrul » Sat Jul 20, 2013 4:37 pm

majenko wrote: 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..

Post Reply