from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QApplication
import os,sys


def choose_image():
    app = QApplication(sys.argv)
    file_path = ''
    file_path, _ = QFileDialog.getOpenFileName(caption="Choose Image", directory=os.curdir,
                                                    filter="JPG Files (*.jpg);;BMP Files (*.bmp);;PNG Files (*.png);;")
    if file_path != '':
        return file_path
    else:
        return None

0b916fd2c3224e2fdb2f2211a5519949f4da9f69
<mask token>

<mask token>


def choose_image():
    app = QApplication(sys.argv)
    file_path = ''
    file_path, _ = QFileDialog.getOpenFileName(caption='Choose Image',
        directory=os.curdir, filter=
        'JPG Files (*.jpg);;BMP Files (*.bmp);;PNG Files (*.png);;')
    if file_path != '':
        return file_path
    else:
        return None

from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QApplication
import os, sys


def choose_image():
    app = QApplication(sys.argv)
    file_path = ''
    file_path, _ = QFileDialog.getOpenFileName(caption='Choose Image',
        directory=os.curdir, filter=
        'JPG Files (*.jpg);;BMP Files (*.bmp);;PNG Files (*.png);;')
    if file_path != '':
        return file_path
    else:
        return None

from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QApplication
import os,sys


def choose_image():
    app = QApplication(sys.argv)
    file_path = ''
    file_path, _ = QFileDialog.getOpenFileName(caption="Choose Image", directory=os.curdir,
                                                    filter="JPG Files (*.jpg);;BMP Files (*.bmp);;PNG Files (*.png);;")
    if file_path != '':
        return file_path
    else:
        return None
