dbetm / counting-stars

A simple web app for counting stars (segmenting bright units)

Home Page:https://dbetm.github.io/counting-stars/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Counting stars

A simple web app for counting stars ⭐⭐⭐

Technologies used:

  • CSS3
  • JavaScript
  • HTML5
  • Marvin JS (image manipulation)

Basis algorithm (counting bright groups of pixels)

  1. Resize input image.
  2. Umbralize image using three different thresholds.
  3. For each umbralized image:
    • Count groups of white pixels using DFS (Depth-First Search).
  4. Sum counts and calculate the average.

Usage

Upload a starry nigth photo

You can see the result, click at Clear to try with another photo

Notes:

  • If you want to contribute feel free to create a Pull Request.

About

A simple web app for counting stars (segmenting bright units)

https://dbetm.github.io/counting-stars/

License:MIT License


Languages

Language:JavaScript 39.5%Language:Python 29.2%Language:HTML 15.8%Language:CSS 15.5%