General utilities

cv2PySide6.util.get_data_path(*paths: str) str[source]

Get the absolute path to the directory where the sample data are stored.

Parameters
paths

Subpaths under cv2PySide6/data/ directory.

Returns
path

Absolute path to the sample depending on the user’s system.

Examples

>>> from cv2PySide6 import get_data_path
>>> get_data_path() 
'path/cv2PySide6/data'
>>> get_data_path('hello.mp4') 
'path/cv2PySide6/data/hello.mp4'