Well, this was my one of the best years ever in some terms actually. It starts from getting into Amrita University, Amritapuri campus and getting to know about the one the most active open source club in any university, the FOSS@Amrita. Getting involved in the club made me aware of different fields in the computer science itself and more over introduced me to the open source world. During the process seniors, our mentors over here asked me to choose an organization to contribute to. I was confused about which organization should I choose to contribute. What I did was just shortlisted the number of organization based on their language preferences. Mine I set it to C++. I just randomly went through the list and found something interesting. It was a tagline, “EXPERIENCE FREEDOM”, something struck me. The organization was, of course, KDE. Well, I got engaged with the organization. Fixed some bug or two.
Then I got to know about a program called KDE-SoK. Which was similar to Google Summer of Code program. I wanted to participate in that but was not aware of which project to choose, how to write the proposal for it. As it was the initial stages of my contributing career, I was a newbie in most of the stuff.
By some means, I got to know a project called KStars and saw their project idea. I wasn’t sure even if I should participate in it. But I ended up submitting a proposal for it.
Just after few days, I just got a mail. Hurray.. My proposal got accepted, and I was going to participate for this years SoK program on KStars project.
The project aims in collect a new set of images from NASA/ESO catalogs along with orientation (angle from the north) and pixel scale (arcsecs/pixel) for the whole set of Messier Catalog (110 objects), which is a collection of astronomy objects in the night sky.
So after the implementation of the project, the expected result is a new List of public domain images with orientation and pixel scale information. Images must also be processed for overlay in KStars, so must have transparency where there is background sky.
So the game had begun. With my mentor Cojocaru Raphael, he was the 2016 GSoC student under Kstars project. We started by finding the better source to find the images. Our main aim was NASA/ESO catalogs. But we found a better option. A website named Astrobin. So we found one of the better sources for the images. Next up was the data. There was a condition that the data should be appropriate to that of the image we are going to collect. Hence, astrobin was the best place to collect these. Also, I needed to get the permission of the authors so that I could take their image. So I started to ask the authors about it and started to collect each image and data of the corresponding images. Collecting these images and data were only just 2 parts of 3. The next step was one of the challenging ones. I had to remove the background of each and every 110 objects we are going to collect. At that time, Anu chechi, A senior of mine in my university suggested me about the image processing tool named OpenCV. I went through different docs and found that I could remove the whole background within seconds, instead of using tools such as photoshop etc. So created a python script for it and voila…!! The work has been done :) I have added the python script used for this below. If you want, you guys could check it out :)
import numpy as np import cv2
file_name = "t.jpg"
src = cv2.imread("/home/aniketh/KStars: SoK/t.jpg", 1) tmp = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
_,alpha = cv2.threshold(tmp,150,255,cv2.THRESH_OTSU) b, g, r = cv2.split(src) rgba = [b,g,r, alpha] dst = cv2.merge(rgba,4)
By Mid of December 2016, most of my work got finished. Only some of them were left. Then we decided to ask the authors if they are okay if we go with the common licensing 3.0 for their images. So at the last of the month January 2017, the project was over. Now the project is undergoing the integration part. I myself is trying to get to the point where the images and the data could be integrated. So my SoK project is completed. After the final review of my project, my mentor was quite excited about my work and he published a good review about me and my work on the mailing list. I’m really thankful to my mentor Raphael, as he was there whole time guiding me, giving me the actual idea of what had to be done. Even if the project was a small one and the time we spend together working on it was also less, but we got along together really well and he was really willing to guide me through the process step by step and moreover he was interested in helping me in other matters too. Whenever I did something good, he used to notice that and always appreciated it which increased my interest over my work and pushed me to do the things I was doing with perfection. Also he used to correct me in when I went wrong, never put down anything to be honest.
The experience was tremendous, working for a project under a mentor itself is really a great learning experience, Moreover doing what you love to do and make things you love better helps you to put in your maximum effort. Hence, here also that’s what happened. Got very well engaged with the community. Got to know new things, got to meet new people. Helped me to gain strength in talking to people publicly over IRC as asking doubts even how much stupid one it may be. Because I was really a shy person and all of these just helped me to be a better person overall and a let out what I didn’t want in my life. So whoever reading this, try to get engaged in some projects like these so that you guys could also experience this. Never think about the rewards or the goodies you will get by doing these. The happiness itself after completing some projects like this itself is awesome and these goodies and the rewards will come on the way. So stopping for the time being. that’s it for now. Gotta go.