omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. longjie0723

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    longjie0723

    @longjie0723

    0
    Reputation
    516
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    longjie0723 Unfollow Follow

    Latest posts made by longjie0723

    • RE: How can I set options for CIDetector?

      As you advised, I've tried CIDetectorMinFeatureSize. It works as expected. Dict of parameters seems correct way to set the parameters.

          opt = {'CIDetectorAccuracy': 'CIDetectorAccuracyHigh',
                 'CIDetectorMinFeatureSize': 0.2}
          d = CIDetector.detectorOfType_context_options_('CIDetectorTypeFace', None, opt)
          rects = d.featuresInImage_(ci_img)
      

      The face can be detected when the param is small (0.1), not be detected when the param is large (>0.3). (Somehow larger parameters kill pythonista to home screen.)

      I cannot still find the way to read the set option from CIDetector. If you know which API to use, could you show me?

      Thank you so much.

      posted in Pythonista
      longjie0723
      longjie0723
    • RE: How can I set options for CIDetector?

      Thanks,

      I have no idea to read back the options from CIDetecotor (or maybe faceCoreDetector in this class), could you tell me how can I read the option after setting?

      And I'll try to set CIDetectorMinFeatureSize later, sounds good to check it!

      My code is in progress, here: https://www.dropbox.com/s/4jdeohur37kzflk/MaskFace.py?dl=0

      Thank you,

      posted in Pythonista
      longjie0723
      longjie0723
    • How can I set options for CIDetector?

      Hi,

      I want to specify options to CIDetector. Which is the correct way? (or both incorrect?)

      options = {'CIDetectorAccuracy': 'CIDetectorAccuracyHigh'}
      d = CIDetector.detectorOfType_context_options_('CIDetectorTypeFace', None, options)
      

      or do I need to write as:

      options = NSDictionary.dictionaryWithDictionary_({'CIDetectorAccuracy': 'CIDetectorAccuracyHigh'})
      d = CIDetector.detectorOfType_context_options_('CIDetectorTypeFace', None, options)
      

      Actually both looks working fine, but I cannot know whether the options is actually effective. I cannot tell the detection accuracy is better or not, from the result.

      I'm new to iOS and pythonista, I'm very grad to be advised by experts.

      Thanks,

      posted in Pythonista
      longjie0723
      longjie0723