You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I install .net core in that machine?
And by the way:
I try to use ctype, I made a C funciton which return Hobject* as the output, while another function use Hobject* as input, and I make the dll for the functions.
When I use python to call the functions by ctype, I just can not get the right result, I want to get the wisth of the image ,but I always get '1' as output
I have only attempted to access Halcon from Python via the .NET interface. ctypes and/or CFFI binding should work, but I have not attempted this. If you are calling the get_image_size function, the signature is Herror get_image_size(const Hobject Image, Hlong* Width, Hlong* Height) and it returns the value 2 if successful. Otherwise it raises an exception.
I have only attempted to access Halcon from Python via the .NET interface. ctypes and/or CFFI binding should work, but I have not attempted this. If you are calling the get_image_size function, the signature is Herror get_image_size(const Hobject Image, Hlong* Width, Hlong* Height) and it returns the value 2 if successful. Otherwise it raises an exception.
Thanks for your reply!
Can ctype return halcon variables like Hobject,htuple or deeplearning handle ?
Activity
rtigithub commentedon Apr 29, 2020
I have only attempted to access Halcon from Python via the .NET interface. ctypes and/or CFFI binding should work, but I have not attempted this. If you are calling the get_image_size function, the signature is
Herror get_image_size(const Hobject Image, Hlong* Width, Hlong* Height)and it returns the value 2 if successful. Otherwise it raises an exception.rtigithub commentedon Apr 29, 2020
You might also consider using Boost.Python or SWIG to create your bindings.
JimXu1989 commentedon Apr 30, 2020
Thank you!
JimXu1989 commentedon Apr 30, 2020