Navigation

    VisionAppster.com

    VisionAppster Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Python API – request for comments

    Tools
    2
    2
    309
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Topi
      Topi last edited by

      We are welcoming all feedback related to the upcoming Python API. What kind of an API would you want to see? Which libraries should be included? NumPy and OpenCV will be included, but which other libraries would you like to have?

      Here's a sneak peek of what is coming out:

      import visionappster as va
      
      class Binarize:
          """Binarizes an image using a static gray-level threshold.
          """
      
          def level_min(self):
              return 0
      
          def process(self,
                      inputs: {'image': va.int32,
                               'level': {'type': va.int32,
                                         'min': lambda: self.level_min(),
                                         'max': 255,
                                         'default': 127}},
                      outputs: {'image': {'type': va.Image,
                                          'imageType': 'raw'}}) -> va.int32:
              # Implementation here: read inputs and write to outputs
              return va.SUCCESS
      
      tools = [Binarize]
      
      1 Reply Last reply Reply Quote 1
      • ?
        A Former User last edited by

        It was a wonderful chance to visit this kind of site and I am happy to know all about it.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Forum Terms of Use and Privacy Policy