All you need to do is to get a photo recovery software, here's a good one: how to recover photos from sd card
You will also need to stop using flash card to prevent new files to be written to the drive. Because once new files could overwrite the space of deleted photos which may make them not recoverable.
If you have deleted files from usb flash drive, you may follow this usb data recovery solution.
Both memory card photo recovery software and usb data recovery software works on Windows 10, Windows 8, Windows 7, Windows XP, Windows Vista. You can recover deleted photos, videos, songs, documents, and other files from sd card and usb drive. You can also recover lost files after memory card reformat, or usb drive quick reformat.