-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCV error: assertion failed radius >= 0 && thickness <= MAX_THICKNESS && 0 <= shift && shift <= XY_SHIFT in function 'circle' #4
Comments
I wound up doing some debugging on this. In the case above, the issue was the sun radius was not being calculated correctly, and I resolved it by manually calculating the sun radius (which was 142 pixels). Playing around with the code more, I discovered this error message can also arise if the sun radius is less than 50 pixels. So if anybody is getting this error message and you have photos where the sun is not very wide, you'll need to resize your pictures. |
Same issue: INFO: 42 images found in D:\Astronomy\20240408 Solar Eclipse\tests [8676] Failed to execute script eclipse-aligner It looks like the SUN RADIUS is not correctly detected? The example is "1210". |
Yes, I found it out, we have to first resize the image before the detection. It seems that our image size or resolution is too big for the program detecting. After reducing the size, it is able to proceed the processes. The fine-tuning is necessary, especially I have some images that the sun partially covered by cloud, so multiple times are needed to perfect detect the sun. |
After several trails, it turns out that resizing is not always necessary, but we have to set the sun radius manually. |
Hi there! I've got a bunch of photos from today's eclipse I'd like to centre and crop and turn into a time lapse. I was moving my camera's tripod manually during the eclipse so just plunking everything into ffmpeg is pretty jerky.
Unfortunately, when I run the code from this project I get the following error:
I've tried running it on a few different subsets of my eclipse photos with the same error. I've also tried picking different sun photos for the sun parameter, same error.
If helpful, a subset of the photos I'm working with, including DSC05852 are here: https://www.flickr.com/photos/patitsas/albums/72177720316092556/
I'm running Python 3.12.2 on Fedora 39 (6.7.5-200.fc39.x86_64)
Thanks!
The text was updated successfully, but these errors were encountered: