Shape Detection

  1. 2 weeks ago

    Chris H

    Mar 21 Pre-Release Testers, Xojo Pro Grand Rapids Michigan

    Anyone know of a plugin or Xojo code to detect shapes within a picture?
    Needs to be compatible on Windows and Mac.

    Really I'm only looking for rectangles.

  2. Bob K

    Mar 21 Pre-Release Testers, Xojo Pro Kansas City

    Hm...sounds suspiciously like Machine Learning. You might want to check out Jim Meyer's Xojo session from XDC 2019. You need an internet connection to use the cloud AI.

    Apple has some ML classes but no idea what MS is offering, if anything.

  3. Chris H

    Mar 21 Pre-Release Testers, Xojo Pro Grand Rapids Michigan

    @Bob K I don't think that would work for this specific application. I'm thinking it's almost an extension of OCR. Should not be overly complex, I just don't want to reinvent the wheel.

  4. What do you want exactly?
    Detect rectangle in what kind of picture?

  5. Chris H

    Mar 21 Pre-Release Testers, Xojo Pro Grand Rapids Michigan

    Eric, I will have a grid of rectangles, mostly the same size. I just need to determine their coordinates.
    It will be photographic, so I cannot count on perfect pixel matching color in each rectangle, nor perfectly straight edges. But both should be close.

  6. Christian S

    Mar 21 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Check CIDetectorMBS and CIRectangleFeatureMBS classes for MacOS.

  7. Julen I

    Mar 21 Europe
    Edited 2 weeks ago

    Chris, could you post a sample picture and the result for that picture?

or Sign Up to reply!