
'''simple docstring'''

import requests
from bsa import BeautifulSoup


def 	_UpperCAmelCase				(  _lowerCamelCase						:       int  ,      _lowerCamelCase						:       str		)    ->						str:
  _lowerCAmelCase       :  Dict   				=					(
      """https://www.horoscope.com/us/horoscopes/general/"""
      f'horoscope-general-daily-{day}.aspx?sign={zodiac_sign}'
  )
  _lowerCAmelCase       :  Any   				=					BeautifulSoup(requests.get(_lowerCamelCase		).content  ,      """html.parser"""		)
  return soup.find("""div"""  ,      class_="""main-horoscope"""		).p.text


if __name__ == "__main__":
     print("""Daily Horoscope. \n""")
     print(
         """enter your Zodiac sign number:\n""",
         """1. Aries\n""",
         """2. Taurus\n""",
         """3. Gemini\n""",
         """4. Cancer\n""",
         """5. Leo\n""",
         """6. Virgo\n""",
         """7. Libra\n""",
         """8. Scorpio\n""",
         """9. Sagittarius\n""",
         """10. Capricorn\n""",
         """11. Aquarius\n""",
         """12. Pisces\n""",
     )
     UpperCamelCase_     			=       int(input("""number> """).strip())
     print("""choose some day:\n""", """yesterday\n""", """today\n""", """tomorrow\n""")
     UpperCamelCase_     			=       input("""enter the day> """)
     UpperCamelCase_     			=       horoscope(zodiac_sign, day)
     print(horoscope_text)




'''simple docstring'''

from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey
from numpy import divide, inta, multiply, ravel, sort, zeros_like


def 	_UpperCAmelCase				(  _lowerCamelCase						:       str  ,      _lowerCamelCase						:       List[Any]=3		)    ->						Union[str, Any]:
  _lowerCAmelCase       :  str   				=					int(mask / 2		)
  # copy image size
  _lowerCAmelCase       :  Dict   				=					zeros_like(_lowerCamelCase		)
  for i in range(_lowerCamelCase  ,      gray_img.shape[0] - bd		):
    for j in range(_lowerCamelCase  ,      gray_img.shape[1] - bd		):
      # get mask according with mask
      _lowerCAmelCase       :  Union[str, Any]   				=					ravel(gray_img[i - bd : i + bd + 1, j - bd : j + bd + 1]		)
      # calculate mask median
      _lowerCAmelCase       :  str   				=					sort(_lowerCamelCase		)[inta(divide((multiply(_lowerCamelCase  ,      _lowerCamelCase		))  ,      2		) + 1		)]
      _lowerCAmelCase       :  Dict   				=					median
  return median_img


if __name__ == "__main__":
     # read original image
     UpperCamelCase_     			=       imread("""../image_data/lena.jpg""")
     # turn image in gray scale value
     UpperCamelCase_     			=       cvtColor(img, COLOR_BGR2GRAY)

     # get values with two different mask size
     UpperCamelCase_     			=       median_filter(gray, 3)
     UpperCamelCase_     			=       median_filter(gray, 5)

     # show result images
     imshow("""median filter with 3x3 mask""", medianaxa)
     imshow("""median filter with 5x5 mask""", medianaxa)
     waitKey(0)


