Detecting sun & moon / OpenCV & other libraries for object detection

hej all,

i’ve been struggling with finding a feasible solution to do the object detection of images of the sun and the moon (so, roughly, two circular bright spots). my first trial was installing python and trying my luck with TensorFlow. but after 3 days I just got frustrated and had no help online. so i’m back to Processing, where I feel comfortable with.

i was wondering if anyone knows a good library or way of applying ML models to object detection within Processing and could share some light, way or hopefully a tutorial I could follow. if you also have any other idea besides using ML models to do the task, i’m all years : P

thank you!