{"id":15372094,"url":"https://github.com/xquery/sdss_asteroid_detect","last_synced_at":"2026-02-01T01:04:43.811Z","repository":{"id":141753335,"uuid":"96357938","full_name":"xquery/sdss_asteroid_detect","owner":"xquery","description":"asteroid detection from Sloan Digital Sky Survey (SDSS) images (ALPHA - unstable under development)","archived":false,"fork":false,"pushed_at":"2017-11-04T12:53:49.000Z","size":29248,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-06-11T15:47:12.114Z","etag":null,"topics":["asteroid","detection","sdss"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xquery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-05T20:19:41.000Z","updated_at":"2021-06-28T11:01:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"76e94edc-eaf0-431f-8781-84eea170bcb0","html_url":"https://github.com/xquery/sdss_asteroid_detect","commit_stats":{"total_commits":55,"total_committers":1,"mean_commits":55.0,"dds":0.0,"last_synced_commit":"ac6bd30a16b3c89d844a3e52f8cbccc6b48c53d5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xquery/sdss_asteroid_detect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xquery%2Fsdss_asteroid_detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xquery%2Fsdss_asteroid_detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xquery%2Fsdss_asteroid_detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xquery%2Fsdss_asteroid_detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xquery","download_url":"https://codeload.github.com/xquery/sdss_asteroid_detect/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xquery%2Fsdss_asteroid_detect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28963197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T00:42:38.011Z","status":"ssl_error","status_checked_at":"2026-02-01T00:42:35.920Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asteroid","detection","sdss"],"created_at":"2024-10-01T13:49:34.345Z","updated_at":"2026-02-01T01:04:43.798Z","avatar_url":"https://github.com/xquery.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdss_asteroid_detect \n[![Build Status](https://travis-ci.org/xquery/sdss_asteroid_detect.svg?branch=master)](https://travis-ci.org/xquery/sdss_asteroid_detect)\n\nIMPORTANT NOTE- this software is unstable and under development.\n\nSmall collection of utilities for detecting moving objects within [sdss](http://www.sdss.org/) images.\n\n## Usage\n\nThe simplest approach is to grab a jpg image from SDSS and run naive_detect:\n\n```\n\u003e naive_detect \u003cjpg-image-file-name\u003e\n```\n\nwhich will generate a candidate.jpg if it contains a potential moving object, marking its location\non the jpeg.\n\nThe moving object is identified by a circle in the following example image.\n\n![Example candidate image2](data/test/positives/candidate_example2.jpg)\n\nhere is another example.\n\n![Example candidate image](data/test/positives/candidate_example.jpg)\n\nhere is a good example of detection at the limit of image resolution.\n\n![Example candidate image3](data/test/positives/candidate_example3.jpg)\n\n## Overview\n\nThis effort is an attempt to detect moving objects (eg. asteroids) in SDSS images at scale.\n\n* [SDSS - Sloan Digital Sky Survey](https://en.wikipedia.org/wiki/Sloan_Digital_Sky_Survey)\n* [Sloan Digital Sky Survey](http://www.sdss.org/)\n* [SDSS datasets](https://data.sdss.org/sas/dr13)\n* [opencv](https://en.wikipedia.org/wiki/OpenCV)\n\nThe way [SDSS captures](http://cas.sdss.org/dr5/en/proj/basic/asteroids/findingasteroids1.asp) image data makes it straightforward to identify moving objects.\n\nThe general algorithm for detection I have developed is as follows:\n\n* split image into RGB layers then subtract from each other\n* stationary objects should negate themselves\n* if there is anything remaining it will indicate offset aka movement\n* convert to grayscale for circle detection using [HoughCircle](https://en.wikipedia.org/wiki/Hough_transform)\n \nBecause it is most familiar to me, I am currently working with jpeg imagas though will be switching over to using FITS soon. \n \nFalse positives are an issue:\n\n* image flaring\n* detecting poor image quality\n* unknown (ex. picking up other kinds of artifacts/moving objects in SDSS image)\n\nI have not quite got to 'the at scale' part as I am still grokking lots of ancillary SDSS data.\n \n## Next steps\n  \n* publish results to [sdss asteroid detect s3 bucket](http://sdss.asteroid.detect.s3-website-us-east-1.amazonaws.com/)  \n* Layer in ML approaches for better false positive detection \n* Genetic alg for identifying optimal artifact detection parameters\n* Reconcile and report to [Moving Object Catelog](https://www.researchgate.net/publication/238534010_The_Sloan_Digital_Sky_Survey_Moving_Object_Catalog)\n\n\n## Build and deploy\n\nTo build you may have to install some additional deps:\n```\nyum install epel-release\nyum install cmake3\n```\n\nTo build this set of utilities on linux, osx and windows platforms.\n\n```\n\u003ecmake3 -DCMAKE_BUILD_TYPE=Debug -G \"CodeBlocks - Unix Makefiles\"\n```\n\nNote that running cmake will pull down dependencies.\n\nThen run make, make install.\n\nTo create a release package\n```\n\u003ecpack3 --config CPackConfig.cmake\n```\n\n### Dependencies\nThis project depends on the following external libs:\n\n* [opencv](https://github.com/opencv/opencv): for image processing\n* [rapidjson](https://github.com/miloyip/rapidjson): for json munging\n* [loguru](https://github.com/emilk/loguru): for logging\n* [gnuplot-cpp](https://github.com/orbitcowboy/gnuplot-cpp): for speaking to gnuplot\n* [googletest](https://github.com/google/googletest): for testing\n* [curl](https://curl.haxx.se): for http \n\n## License\n\n[Apache License v2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxquery%2Fsdss_asteroid_detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxquery%2Fsdss_asteroid_detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxquery%2Fsdss_asteroid_detect/lists"}