Get File MIME Type in Python

Get file MIME type in Python You can get mime type in python by using python-magic library. You can install python-magic using PIP. $ pip install python-magic To find mime type, import magic library and pass file path into () >>> import magic >>> ("path/", mime=True) 'application/pdf' If you face…

Install Opencv in CentOS

Install opencv in CentOS Opencv can be install in CentOS in two ways: 1) Install from available yum repository. But till the time of writing this post repository are available. If you need latest version of opencv then go for 2. option. 2) Opencv installation from source. 1) Install opencv…
TechieRoopTutorials, Programming Solutions, Tips & Tricks 2016