DEV Community

Cover image for Setup your Raspberry Pi Model B as Google Colab (Feb '19) to work with Tensorflow, Keras and OpenCV

Setup your Raspberry Pi Model B as Google Colab (Feb '19) to work with Tensorflow, Keras and OpenCV

Rodolfo Ferro on March 22, 2019

Read this post in a better format, visit my blog. Description: Setup OpenCV, Tensorflow and Keras as in Google Colab but in your Raspberry Pi, LO...
Collapse
 
juan991029 profile image
juan991029

I get an error they could help me

(tfk) pi@raspberrypi:~ $ python
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

import cv2
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/.virtualenvs/tfk/lib/python3.5/site-packages/cv2/init.py", line 3, in
from .cv2 import *
ImportError: numpy.core.multiarray failed to import


Collapse
 
javier-aranda profile image
Javi AS

I solved it by installing numpy 1.13.3, which seems to be compatible with cv2 3.4.4 and Tensorflow 1.13.1. The line pip install numpy=1.13.3 does the magic

Collapse
 
levivm profile image
Levi Velázquez • Edited

You can use markdown for posting code.

Open code block using 3 backticks ` and close it in the same way.

:)