converting JPEG frames into Image
Hello,
I'm a noob in java programming.
Currently I'm dealing with C328R CMOS camera which is a image sensor with JPEG compression.
The camera transmit the JPEG-compressed data in packets and a group of packets forms a frame (one image per frame). Each packet has an ID so the sequence of the packet can be traced. It uses serial transmission to communicate to the PC.
For now, I have no problem to read the data serially as I just read the inputStream. The problem is I have no idea on how to convert every frame into image.
Any hints for me to work with?
Thanks for any reply ^^
Re: converting JPEG frames into Image
I don't have an answer, but here is a some place to start.
How do the bytes you read compare to the bytes in a jpeg file?
Here is what the first few bytes of a jpeg file look like in hex:
FFD8 FFE0 0010 4A46 4946 0001 0101 0096
0096 0000 FFDB 0043 0010 0B0C 0E0C 0A10