We use NASA Solar Dynamics Observatory data that used the Helioseismic and Magnetic Imager’s intensity data for full disk solar images. SDO was launched into orbit in February 2010. We wentGo the NASA SDO Data Page to obtain images of the Sun with and without sunspots. In the archives from the 2019-2020 solar minimum period when the sun went hundreds of days without a single sunspot.
Here is the website and data input that was used
​https://sdo.gsfc.nasa.gov/data/aiahmi/​
Starting date 2019-08-01 Ending date 2019-08-05
HMI Intensitygram (Orange) Data
Resolution 512 Every 25 th image Give 20 images
In the archives in the 2022-2024 period the sun was active and had sunspots. Hence again we used the website
https://sdo.gsfc.nasa.gov/data/aiahmi/
with the following data:
Starting date 2022-08-01 Ending date 2024-08-05
HMI Intensitygram (Orange) Data
Resolution 512 Every 2800 th image Give 25 images
Now with use Wolfram’s AI programming: Wolfram U course
spotlessFiles=
;
In[]:=
imgswithout=Import[#]&/@spotlessFiles
;
In[]:=
imgswithoutdisplay=Import[#,ImageSize->100]&/@spotlessFiles
;​​imgswithoutdisplay[[1;;5]]
Out[]=

,
,
,
,

spotFiles=
;
In[]:=
imgswith=Import[#]&/@spotFiles
;
In[]:=
imgswithdisplay=Import[#,ImageSize->100]&/@spotFiles
;​​imgswithdisplay[[1;;5]]
Out[]=

,
,
,
,

​​WhichspotFiles=
;
In[]:=
imgswitch=Import/@WhichspotFiles;
In[]:=
i
mgswitchhdisplay=Import[#,ImageSize->100]&/@WhichspotFiles
Out[]=
i

,
,
,
,
,

In[]:=
whichSunwithSpots=Classify[<|​​"NoSpots"->imgswithout,​​"Spots"->imgswith|>]
Out[]=
ClassifierFunction
Input type: Image
Classes: NoSpots,Spots
Data not saved. Save now

In[]:=
whichSunwithSpots[imgswitch]
Out[]=
{NoSpots,Spots,NoSpots,Spots,Spots,Spots}
So the process selected ones with spots!
Note the process with the smaller images used (ImageSize ->100) , the last images was classified as NoSpots,
Hence the image size and resolution is important.