a = Analysis(['Collector.py'], pathex=[
    'C:\\Users\\vijay\\Python\\Collector'], hiddenimports=[], hookspath=
    None, runtime_hooks=None)
a.datas += [('logo.png', 'C:\\Users\\vijay\\System\\icon\\logo.png', 'DATA')]
pyz = PYZ(a.pure)
Add image to .spec file in Pyinstaller