installing the opencv and numpy for python 3.6. in windows

                                 INSTALLING OPENCV AND NUMPY FOR PYTHON  3.6.. IN WINDOWS


        Hello guys in this article i am gonna show you how to setup opencv and numpy for the python version 3.6... .(In this article i have came up with installing it in windows.) .these software's will help you for image processing and machine learning analysis in iot .Even though there are many tutorial all of which  shows up for the python 2.7 i have came up for the python version 3.6 so lets start.....................
 
              At first you need to download the python 3.6 . i have  given the link below
                                 link:   https://www.python.org/downloads/release/python-364/

based on your system requirement(32/64bit) download it . once you have downloaded install it . i have installed it in my C: drive. after completing it open the COMMAND PROMPT and change the directory where  you have installed it.

as you can see i have installed it in my c:\users\laptop
   


              once you have done it run a simple python script you should get the output.once you had done now you have python  version(3.6..)  in your PC. then you have to install numpy.

the python 3.6. has already pip package so you can go to tensor flow web page at there you may find the required command lines.You can just copy and paste the command line . i have also given the
 link : https://www.tensorflow.org/install/       
once you get into the link select the operating system and other requirement's.after selecting you could see the command line.you could install just the CPU version or GPU else both .  
                                                 
i have installed both the CPU and GPU version i would recommend you also do same.once you have installed the tensor flow go to the COMMAND PROMPT and type the following as shown in the    image .once you have done you should get as the following .                                                                                                                                                       
 
now we have installed the NUMPY next you have to install OPEN CV .To install the OPEN CV i have given the link:https://www.scivision.co/install-opencv-python-windows/
once you get into it you may find the required command lines to install the opencv .i found it suited for the python 3.6.  . since the python 3.6 has PIP package it is enough to install it using a command line.
once you have installed the opencv. proceed the  following command 
so now you have the every thing's you need .Now you can try a simple code using NUMPY and OPENCV. At here i have written a simple code displaying a image .       
import numpy as np
import cv2
img = cv2.imread('messi5.jpg',0) 
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
 change the image name.and run it through python shell .you should see the image. if so you have installed the NUMPY and OPENCV .if you have any suggestion please comment below                                                             


Comments

Popular posts from this blog

connecting nodemcu with mysql database