Home > OS >  LabVIEW: IMAQ colorImage to Array
LabVIEW: IMAQ colorImage to Array

Time:05-24

enter image description hereI'm working on an application where an image should be read from LabVIEW (by a camera) and preprocessed in python function (the Image should not be read from a file path, meaning we should not save the image shown in the camera but it should be read directly in the python function and that's why I thought of sending its pixels values to the function), for this I'm using system exec.

as a first step I was trying to read an Image from a file path to check if I can have its pixels values as an array and send it to the command line. I used the IMAQ colorImage to array and to convert it to a string I used "Flatten to string function" (since there's no 32U to string function) but as shown in the picture I'm getting strange symbols. Ps: I used system exec because I don't have the license for the other python LabVIEW connectivity

Please if you know how can I have the array of the image pixels to send it as an argument to the python function help me, I will be so grateful!

enter image description here

CodePudding user response:

Check this example to convert numeric data table into string formatted as you want: example

  • Related