jeevith
(Jeevith Hegde, Ph.D.)
February 23, 2022, 8:01pm
2
Hi @chris.shanor ,
Welcome to the community!
In my previous tests, handling return values from one programming language to another ( in this case python to .net ) is always cumbersome. Therefore, I suggest you change the return value to a json string. Here is a post where I given an example.
Hi @sssi
How did you solve this? May be others having the same problem can use what you used. Kindly pen it down in this thread.
def detect_face(img):
You are doing everything right here. But one heads up is converting python return types to .net types can be often clumbersome.
What I learnt from expierence is that it is easier to use json string as a return from python.
For example, your code could look like:
import json
import cv2
import os
import numpy as np
from facenet_pytorch impo…
In short :
import json
def YourFunction():
YourList = [1, 2, 3]
return json.dumps(YourList)
Call you YourFunction in UiPath. Desearlize the json string to access the Jsonarray.
1 Like