Hello Anureet,
As long as your vision can be corrected to 20/20 with glasses or contacts, you will be eligible for a First Class FAA Medical Certificate, which makes you eligible to fly as a civilian professional pilot. This is much less restrictive than military pilot vision requirements.
Otherwise, you need to visit an aviation medical examiner for proper advice. You can use this locator to search the nearest AME in your area. https://www.faa.gov/pilots/amelocator/
Thank you for using our forum!