Side by side tests

Side by side tests

A side by side test: 320 x 240 pixels, B&W, 8 bits/pixel (76802 Bytes) 320 x 240 pixels, B&W, 4 bits/pixel (38402 Bytes) 320 x 240 pixels, B&W, 8 bits/pixel with RLE compression (25981 Bytes) 320 x 240 pixels, B&W, 8 bits/pixel with RLE compression – aggressive (17924 Bytes) Last one was done using some aggressive settings on … Continue reading

A simple RLE implementation (cont)

A simple RLE implementation (cont)

  I managed to get the RLE implementation working quite well. The original code is adding an index information for EVERY pixel, which on a noisy image can double the size of the image instead of compressing it. This is pretty much a functional version: … for (i = 1; i< lineLen; i++){ if (seq == … Continue reading

A simple RLE implementation

I was explaining in the previous post about the RLE algorithm (Run-Length Encoding) I am using as an alternative to jpeg compression. The good part about this is that will work with OV7670/OV7725 and will not require a lot of CPU cycles. The code looks something like this: // Capture and stream a frame in B&W … Continue reading

“Home made” compression

“Home made” compression

I am not sure what am I doing wrong, but for now I can not get the OV2640 camera to create a proper jpeg file. Sometime works, sometime not… Plus, the OV2640 is very expensive, changing from raw to jpeg is slow as I need to load a different set of registries, etc. So I … Continue reading

CTS Client

I had not much time lately, however, using the CTS Client code I managed to put together a “simple” client application, java based, to play the data stream coming from a CTS module. The images are streamed from one of my CTS modules with a OV2640 camera on board.

ATMEGA328 + OV7670 FIFO module (software)

As I do not have an Arduino board I am not able to put together a code running on Arduino, however, below code should run either using AVR Studio or modified to be used as an Arduino library. The code should be tailored for the schematic published previously. For performance purposes the code should only send … Continue reading

Java – convert byte array to image (jpeg)

I am working on getting a jpeg camera (OV2640) working with my CTS module and stream live video over serial port. I tried using PROCESSING to receive the files the display them real-time on-screen, however, it seems is not possible. I thought is faster this way then write an application using Java. I was wrong … Continue reading

OV2640 and jpeg – continued

OV2640 and jpeg – continued

Ok, between Christmas shoppings, preparations and more shoppings I managed to spend a couple of hours here and there and work on this jpeg issue. The good part is that I’ve cracked the problem with the jpeg output and managed to get some things going. The bad part now: because of the hardware design I … Continue reading