0% found this document useful (0 votes)
3 views5 pages

Install Python Script

This document provides a step-by-step guide for installing Anaconda IDE and using it to run a Python script for image conversion. It includes instructions for verifying the installation, setting up the environment, and executing the script with specific file requirements. Additionally, it notes that the instructions are unofficial and directs users to consult the class website for further details on using the script.

Uploaded by

try.ts1991
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Install Python Script

This document provides a step-by-step guide for installing Anaconda IDE and using it to run a Python script for image conversion. It includes instructions for verifying the installation, setting up the environment, and executing the script with specific file requirements. Additionally, it notes that the instructions are unofficial and directs users to consult the class website for further details on using the script.

Uploaded by

try.ts1991
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Install Anaconda development IDE:

https://www.anaconda.com/distribution/#download-section
Optional whether you want to install PyCharm, not required. Click Next if you don’t.

More information can be found here: https://docs.anaconda.com/anaconda/install/windows/

Verification of installation:

Click Start - then from the shortcuts, select Anaconda Navigator. If it opens, you have successfully
installed Anaconda.

Using Anaconda:

1. Click “Anaconda Navigator”


2. Go to Environments from left side and click “play” button then select “Open Terminal”

3. In terminal window, type: pip install opencv-python

4. Now go to Home and select an IDE (I used spyder 3.3.3), click lunch
5. In your IDE window, open img_convert.py you downloaded from class website and it should
look like this.

6. In order to get rom.txt file, you should put your images in the same folder where you save
img_convert.py.

7. Then in your IDE window, change the value of variable “IMAGE_FILENAME” (line 10) to the img
you are trying to convert. And also in your console (right lower coner), import required library.

8. Now click “run” button and you will get your rom.txt at the folder where you save your files.
Your console should show this:

Your folder should have this:

Disclaimer:

This instruction is not official Anaconda document.

For using img_convert.py, please read the instruction posted on class website.

You might also like