简体   繁体   中英

Is there any way I can download OpenCV on Raspberry Pi 3 Model B on a Windows laptop?

So, I am trying to install OpenCV with Python 3 onto my Raspberry Pi 3 Model B. The problem is, the commands are in Linux, and I need to install it using Windows. Is there any way I can install it using windows, or is it absolutely necessary to use Linux?

The link to the Linux commands: http://www.pyimagesearch.com/2015/07/27/installing-opencv-3-0-for-both-python-2-7-and-python-3-on-your-raspberry-pi-2/

The easiest way will be to connect your Raspberry Pi to a monitor or TV via HDMI, plug in a keyboard/mouse on USB, and then execute the commands directly on the Pi which is running Linux (ether NOOBS or Raspbian OSs depending on what's on your SD card).

You will need to use the Raspi-Config tool on the terminal on the Pi to enable SSH access, which in term will allow you to connect to your Pi from Windows via PuTTY .

Hope this helps.

Your Raspberry Pi should be running Linux, which means that you do need to run the Linux commands.

From a Windows computer, you can remotely access and run commands on your Raspberry Pi through a program such as PuTTy. There's a lot of tutorials on the topic available on the internet.

Let us know if you need help with a specific step.

If you don't have a keyboard and monitor for your pi Use putty to ssh to to it over the network. Once logged in to the shell use the commands provided on this link to install open cv and python. http://www.pyimagesearch.com/2015/02/23/install-opencv-and-python-on-your-raspberry-pi-2-and-b/

Assuming you have your Pi ready to ssh, you could view your RPi's GUI by installing xrdp as such sudo apt-get install xrdp

Then on your windows computer just open up Remote Desktop Connection and proceed as normal. The compilation will still occur on your raspberry pi

I would also recommend the same website but a different post http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

When compiling I would ensure make -j4 is included to utilise all 4 cores as this takes a much shorter time than without.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM