Skip to content

Hello, is the package can be used in ubuntu? #1

Open

Description

@JimXu1989

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

Thanks a lot!

Activity

  1. rtigithub commented on Apr 29, 2020

    @rtigithub
    Owner

    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.

  2. rtigithub commented on Apr 29, 2020

    @rtigithub
    Owner

    You might also consider using Boost.Python or SWIG to create your bindings.

  3. JimXu1989 commented on Apr 30, 2020

    @JimXu1989
    Author

    You might also consider using Boost.Python or SWIG to create your bindings.

    Thank you!

  4. JimXu1989 commented on Apr 30, 2020

    @JimXu1989
    Author

    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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions