Search This Blog

Friday, October 31, 2014

Fixing the Code

Friday has been a good day, by the Gorse Fox's standards. The Silver Vixen has been in her study working on her preparation and practise for a workshop she will be attending tomorrow. The Gorse Fox has been in his study working on the Raspberry Pi.

With the camera module fitted, the pictures being captured are much better than the old ones. However, these pictures do not include any sort of timestamp on the image. What's more it doesn't appear to be an option. A little investigation revealed that a caption could be overlaid on the image using another program.

It took a fair bit of fiddling about, but now GF has the automatic image capture working.

This particular image was taken at four o'clock as the sun was going down. There was still a bug in the code at this point. The timestamp was repeating the hour - so instead of saying 160002 (2 seconds past 16:00) it repeated the hour and said 16160002. That was soon corrected.

There were many other tasks the Gorse Fox had to do: the early photos, taken when we first moved in, were mirror images of what was actually there - so he also wrote some code to go through and flip all the pictures that were affected.

Some tasks are still outstanding - dates/times were wrong for the first few weeks we were here - so they need to be sorted out if GF can work out what they should have been. Also, he would like to create a video by combining all the early photos (prior to the installation of the new camera) into a sequence.

No comments: