Opencv in python3 (container)
Good evening,
I have a project, in which I need to run the opencv on the AXC F 2152.
We are already running in a container (used in this tutorial https://www.plcnext-community.net/en/hn-makers-blog/556-containerized-opencv-python-on-plcnext.html) , it is opencv running on python2.
There is some container for this plc that has opencv in python3?
Or how to use, the same variables in PLCnextengineer and python2?
PS: I need in python 3 because I need communicate with PyPLCn.
PS2: I tried to install python-opcua to try to use python2 in communication, but I couldn't (apparently there is an error in the installation due to lack of ram).
Thanks,
Dino Silva
Comments
Hi,
You can install python3 in the image. Simply create a new image with the image and a docker file. It is a debian jessi, so python3 would be version 3.4.x
For building a image you need Docker, Belena is not possible.
dockerfile:
For build:
Out of interest, why is it not possible to build an image using Balena?
In this tutorial:
https://www.plcnext-community.net/en/hn-makers-blog/465-how-to-turn-an-axc-f-2152-into-an-aws-greengrass-device.html
... the
balena build
command is used (in step 4) to create an image.What am I missing?
~ Martin.
Hi,
I still had in mind that the build tools are not available with Balena. Either I'm confusing things or something has changed.
Right now I'm confused in my head
.
Then of course Balena works too.
G Jan