Nightlife sky or in search of Perseid - processing
Recently on Habré was published an article with the filming of the night sky "Nightlife of the sky or in search of Perseid . " But the authors themselves could not detect the meteors because of the large number of satellites, which in this case are false objects. I could not pass by, I decided to process the video, and see if there are Perseids on it or not. To begin, I built a video without the background of stars using the BackgroundSubtractorMOG2 tool from OpenCV. To suppress "noise" positives caused by video compression, an averaging filter with a 3x3 window was applied to each frame, and a opening operation was applied to the image of moving objects to suppress small operations. Without pre-filtering, “checkered” was clearly visible on the motion map. The first three frames removed from processing, because The BackgroundSubtractorMOG2 algorithm has not yet accumulated motion information on them.
After viewing it became clear that there are meteors in the video, but their speed is much higher (according to Wikipedia , the apparent speed of the Perseid meteor is about 59 km / s) than the speed of the satellites, and they appear on one or two consecutive frames as a short line. So the eye just does not have time to react to them against the background of bright stars.
Meteor after subtracting the background
Further, to make it easier to search for meteors, I made the simplest detector based on the Hough transform, which highlighted meteors on the original video. ')
And even with illumination it is difficult to understand whether there was a meteor or not. Only if viewed in freeze mode. But after putting all the traces of meteors on the background image, we have a more complete picture. It can be seen that most of the objects "fly out" from the bottom right of the image.
All detected meteors
But is there really the constellation Perseus? I am not a strong starry sky expert, so I took a screenshot of the Stellarium program with Perseids in the center. I chose manually a number of stars that I could match on the “average” background image from the video and the screen shot from Stellarium. Using the coordinates of tie points, I constructed a two-dimensional third-degree polynomial and recalculated the position of the Perseid source from the reference image to the background from the video. Source Perseid, to my surprise, just turned out to be in the lower right corner.
'Reference Sky' tagged with stars
Image of Perseid with star marks
So the authors of the article are not looking for nothing. Perseids were!