Skip to content

Setting up Python

Erdem Halil edited this page May 28, 2021 · 4 revisions

Step 1: Install Anaconda

Click here to go to Anaconda's website.

Click download, it will take you to Anaconda Installers, once there, choose the latest installer suitable for you.

IMPORTANT: In the installer, choose “Install for everyone”, otherwise you won’t be able to choose between different Python versions in the next step.

Step 2: Anaconda Navigator

2.1 Open the recently installed Anaconda Navigator.

2.2 Click on Environments

2.3 Click on Create and, for the packages, choose Python 3.6.

2.4 After it is created go back to the Home tab and install "CMD.exe Prompt" and (optionally - see Alternative Step 4) "Spyder"

Step 3: CMD.exe Prompt

Launch CMD.exe Prompt and invoke the following command:

pip install TensorFlow==1.15 lxml pillow matplotlib jupyter contextlib2 cython tf_slim

Now, navigate to research folder in our machine-learning directory

Example:

cd C:\Users\user\Desktop\group-14\machine-learning\models\research

Then, do the following commands, one at the time:

Python setup.py build
Python setup.py install
pip install paho-mqtt

Step 4: Running the script

Navigate to object_detection folder

Example (assuming that you are already in research folder):

cd object_detection

Then invoke the following command:

Python mqtt_to_video.py

Alternative Step 4: Spyder (for visual experience)

You can now close the CMD Prompt and open "Spyder".

Open the following file (CTRL + O) group-14\machine-learning\models\research\object_detection\mqtt_to_video.py and run it by pressing F5.

Step 5: Contemplate success

The script is now ready and waiting for input from the application.

Clone this wiki locally