Giter Club home page Giter Club logo

stardust's Introduction

stardust

Detect constellation from starry pictures and draw constellation line.
2017/10~

Example

stardust can detect constellation from astronomical pictures(Photo by Rikuo Uchiki).

input output

stardust can also detect constellation from pictures that include ground(Photo by takasa5).

input output

Background and Goal

When my first time of watching starry sky I tried to find some constellations, but I could find few prominent constellations.
Typically, without prior knowledge about position of constellations, finding them is so difficult.
Now, with a smartphone app, we can know constellation's approximate position (thanks to GPS & gyro sensor).
So, my goal is to identify constellation and it's position accurately from image.
Combining this system and GPS and gyro (and high sensitively camera), we can watch starry sky with constellation information.

Requirements

opencv-python==3.4.0
numpy==1.14.0
scipy==1.1.0

Usage

$ git clone https://github.com/takasa5/stardust
$ cd stardust
from stardust import Stardust
import Constellation as cs

# Initialize Stardust with image path (or image array)
sd = Stardust("./input.jpg")
# Select constellation from Constellation-class
cstl = cs.Sagittarius()
# Draw constellation line if detected
sd.draw_line(cstl)
# Get image 
ret = sd.get_image()
# cv2.imshow() or cv2.imwrite()

Moreover, you can use stardust easily by LINE bot.
https://line.me/R/ti/p/%40njl8027x

TODO

  • 精度向上
    • 尤度計算式の改善
    • 星座間位置関係の考慮
    • 同じ星を二度以上通る場合の考慮
  • 星座データの追加
    • おひつじ座(Aries)
    • おうし座(Taurus)
    • ふたご座(Gemini)
    • かに座(Cancer)
    • しし座(Leo)
    • おとめ座(Virgo)
    • てんびん座(Libra)
    • さそり座(Scorpius)
    • いて座(Sagittarius)
    • やぎ座(Capricornus)
    • みずがめ座(Aquarius)
    • うお座(Pisces)
    • オリオン座(Orion)
    • データを紹介してくれる方、撮影した写真を提供してくれる方を募集しています
  • 星座名の付記
    • 文字の大きさ、太さは要調整
  • 画像から大まかな方角や仰角を検出

stardust's People

Contributors

takasa5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.