PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. mateusmhs
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 10 September 2020

Hello everyone.

I would like to do some image recognition with PLCNext and I found this tutorial about OpenCV: https://www.plcnext-community.net/index.php?option=com_content&view=article&id=266:opencv-with-plcnext-controls&catid=23&Itemid=307&lang=en

 

I am having some doubts on how to make the instalations because I am using a Windows Machine and the tutorial is for Linux.

I am not so familiar with Linux OS and would like to know if it's possible to work with OpenCV in Windows machine. If it is, is there a tutorial for Windows?

Or, is there another library to the image recognition application?

 

Thanks.

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi,

It might be possible to cross-compile OpenCV (and any dependencies) on Windows using vcpkg. You would need to create your own vcpkg triplet that uses a PLCnext toolchain, and possibly also modify the existing vcpkg port(s) for OpenCV (and/or any dependencies).

Once you've cross-compiled OpenCV using vcpkg, you should be able to link to it using the CMAKE_TOOLCHAIN_FILE and VCPKG_CHAINLOAD_TOOLCHAIN_FILE cmake options, with the plcncli build command, to refer to the vcpkg.cmake file and the PLCnext SDK toolchain.cmake file respectively.

This has worked for me with other vcpkg packages on Linux (although I haven't tried OpenCV), so perhaps this will also work for you on Windows. 

Regards,
Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.