User avatar
ben_nuttall
Posts: 235
Joined: Sun Aug 19, 2012 11:19 am
Location: Cambridgeshire, UK
Contact: Website Twitter

Astro Cam

Wed Jun 10, 2015 10:35 pm

I've written a little script to take a scaled-down stream from the camera and display it on the LED matrix.

See https://github.com/bennuttall/astro-pi- ... tro_cam.py

Does anyone see any ways of improving the image quality? It's hard to tell how good it is, or whether it's just the low resolution.
Former RPF staff. Author of gpiozero and creator of piwheels.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 27428
Joined: Sat Jul 30, 2011 7:41 pm

Re: Astro Cam

Thu Jun 11, 2015 7:48 am

The camera/ISP is going most of the scaling down to 64x64, and that's uses a pretty good algorithm, not sure of how picamera does the scale from 64 to 8, but I suspect that its simply the resolution of the LED's is too low.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2463
Joined: Thu Jul 11, 2013 2:37 pm

Re: Astro Cam

Thu Jun 11, 2015 8:03 am

Maybe a windowed crop of the source image will allow more "detail" to be captured? A centred low-res image may look better once it's on the matrix.
Rockets are loud.
https://astro-pi.org

User avatar
topshed
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 85
Joined: Mon Feb 04, 2013 12:05 pm
Location: Surrey
Contact: Website

Re: Astro Cam

Thu Jun 11, 2015 9:49 am

I think the 8x8 pixel array is cropped from the top left hand quarter of the 64x64 image.

_________
|...X..|......|
-----------
|.......|......|
-----------

By positioning pieces of coloured card over that quadrant, I could see the LEDs change colour appropriately. After some fiddling about, the best image I managed to capture was one of the Raspberry Pi logo:

Image

Just about recognisable...
--
Richard Hayler - Citizen Science Programme Manager

Return to “Astro Pi”