pyobjc-framework-Vision 10.3.2__tar.gz → 11.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/Vision/_metadata.py +8 -2
  2. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/pyobjc_framework_Vision.egg-info/PKG-INFO +21 -10
  3. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/pyobjc_framework_Vision.egg-info/SOURCES.txt +5 -1
  4. pyobjc_framework_vision-11.1/Lib/pyobjc_framework_Vision.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_vision-11.1/Lib/pyobjc_framework_Vision.egg-info/requires.txt +4 -0
  6. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/License.txt +1 -1
  7. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Modules/_Vision.m +58 -37
  8. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Modules/pyobjc-api.h +1 -1
  9. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Modules/pyobjc-compat.h +175 -7
  10. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PKG-INFO +21 -10
  11. pyobjc_framework_vision-11.1/PyObjCTest/__init__.py +1 -0
  12. pyobjc_framework_vision-11.1/PyObjCTest/test_vncalculateimageaestheticsscoresrequest.py +7 -0
  13. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngeneratepersonsegmentationrequest.py +7 -0
  14. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnobservation.py +4 -0
  15. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/Vision.fwinfo +1 -0
  16. pyobjc_framework_vision-11.1/metadata/raw/arm64-15.0.fwinfo +11049 -0
  17. pyobjc_framework_vision-11.1/metadata/raw/x86_64-15.0.fwinfo +11049 -0
  18. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/pyobjc_setup.py +73 -53
  19. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/setup.py +1 -3
  20. pyobjc_framework_vision-10.3.2/Lib/pyobjc_framework_Vision.egg-info/requires.txt +0 -4
  21. pyobjc_framework_vision-10.3.2/PyObjCTest/__init__.py +0 -1
  22. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/Vision/__init__.py +0 -0
  23. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/pyobjc_framework_Vision.egg-info/dependency_links.txt +0 -0
  24. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/pyobjc_framework_Vision.egg-info/not-zip-safe +0 -0
  25. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Lib/pyobjc_framework_Vision.egg-info/top_level.txt +0 -0
  26. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/MANIFEST.in +0 -0
  27. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/Modules/_Vision_protocols.m +0 -0
  28. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vision.py +0 -0
  29. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnclassifyimagerequest.py +0 -0
  30. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vncoremlrequest.py +0 -0
  31. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectanimalbodyposerequest.py +0 -0
  32. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectbarcodesrequest.py +0 -0
  33. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectcontoursrequest.py +0 -0
  34. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectdocumentsegmentationrequest.py +0 -0
  35. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectfacecapturequalityrequest.py +0 -0
  36. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectfacelandmarks.py +0 -0
  37. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectfacelandmarksrequest.py +0 -0
  38. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectfacerectanglesrequest.py +0 -0
  39. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecthorizonrequest.py +0 -0
  40. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecthumanbodypose3drequest.py +0 -0
  41. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecthumanbodyposerequest.py +0 -0
  42. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecthumanhandposerequest.py +0 -0
  43. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecthumanrectanglesrequest.py +0 -0
  44. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectpoint.py +0 -0
  45. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetectrectanglesrequest.py +0 -0
  46. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecttextrectanglesrequest.py +0 -0
  47. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vndetecttrajectoriesrequest.py +0 -0
  48. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnerror.py +0 -0
  49. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnfacelandmarks.py +0 -0
  50. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnfaceobservationaccepting.py +0 -0
  51. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngenerateattentionbasedsaliencyimagerequest.py +0 -0
  52. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngenerateforegroundinstanceMaskrequest.py +0 -0
  53. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngenerateimagefeatureprintrequest.py +0 -0
  54. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngenerateobjectnessbasedsaliencyimagerequest.py +0 -0
  55. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngenerateopticalflowrequest.py +0 -0
  56. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngeneratepersoninstancemaskrequest.py +0 -0
  57. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngeometry.py +0 -0
  58. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vngeometryutils.py +0 -0
  59. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnimageregistrationrequest.py +0 -0
  60. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnrecognizeanimalsrequest.py +0 -0
  61. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnrecognizetextrequest.py +0 -0
  62. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnrequest.py +0 -0
  63. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnrequesthandler.py +0 -0
  64. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnrequestrevisionproviding.py +0 -0
  65. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnstatefulrequest.py +0 -0
  66. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntargetedimagerequest.py +0 -0
  67. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntrackhomographicimageregistrationrequest.py +0 -0
  68. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntrackingrequest.py +0 -0
  69. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntrackobjectrequest.py +0 -0
  70. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntrackopticalflowrequest.py +0 -0
  71. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntrackrectanglerequest.py +0 -0
  72. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntracktranslationalimageregistrationrequest.py +0 -0
  73. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vntypes.py +0 -0
  74. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnutils.py +0 -0
  75. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/PyObjCTest/test_vnvideoprocessor.py +0 -0
  76. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/metadata.ini +0 -0
  77. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/arm64-12.3.fwinfo +0 -0
  78. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/arm64-13.0.fwinfo +0 -0
  79. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/arm64-14.5.fwinfo +0 -0
  80. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/x86_64-10.15.fwinfo +0 -0
  81. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  82. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  83. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/x86_64-13.0.fwinfo +0 -0
  84. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/metadata/raw/x86_64-14.5.fwinfo +0 -0
  85. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/pyproject.toml +0 -0
  86. {pyobjc_framework_vision-10.3.2 → pyobjc_framework_vision-11.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat May 18 09:38:38 2024
3
+ # Last update: Thu Jun 20 21:38:33 2024
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -31,7 +31,7 @@ else:
31
31
 
32
32
  misc = {}
33
33
  constants = """$VNAnimalBodyPoseObservationJointNameLeftBackElbow$VNAnimalBodyPoseObservationJointNameLeftBackKnee$VNAnimalBodyPoseObservationJointNameLeftBackPaw$VNAnimalBodyPoseObservationJointNameLeftEarBottom$VNAnimalBodyPoseObservationJointNameLeftEarMiddle$VNAnimalBodyPoseObservationJointNameLeftEarTop$VNAnimalBodyPoseObservationJointNameLeftEye$VNAnimalBodyPoseObservationJointNameLeftFrontElbow$VNAnimalBodyPoseObservationJointNameLeftFrontKnee$VNAnimalBodyPoseObservationJointNameLeftFrontPaw$VNAnimalBodyPoseObservationJointNameNeck$VNAnimalBodyPoseObservationJointNameNose$VNAnimalBodyPoseObservationJointNameRightBackElbow$VNAnimalBodyPoseObservationJointNameRightBackKnee$VNAnimalBodyPoseObservationJointNameRightBackPaw$VNAnimalBodyPoseObservationJointNameRightEarBottom$VNAnimalBodyPoseObservationJointNameRightEarMiddle$VNAnimalBodyPoseObservationJointNameRightEarTop$VNAnimalBodyPoseObservationJointNameRightEye$VNAnimalBodyPoseObservationJointNameRightFrontElbow$VNAnimalBodyPoseObservationJointNameRightFrontKnee$VNAnimalBodyPoseObservationJointNameRightFrontPaw$VNAnimalBodyPoseObservationJointNameTailBottom$VNAnimalBodyPoseObservationJointNameTailMiddle$VNAnimalBodyPoseObservationJointNameTailTop$VNAnimalBodyPoseObservationJointsGroupNameAll$VNAnimalBodyPoseObservationJointsGroupNameForelegs$VNAnimalBodyPoseObservationJointsGroupNameHead$VNAnimalBodyPoseObservationJointsGroupNameHindlegs$VNAnimalBodyPoseObservationJointsGroupNameTail$VNAnimalBodyPoseObservationJointsGroupNameTrunk$VNAnimalDetectorCat$VNAnimalDetectorDog$VNAnimalIdentifierCat$VNAnimalIdentifierDog$VNBarcodeSymbologyAztec$VNBarcodeSymbologyCodabar$VNBarcodeSymbologyCode128$VNBarcodeSymbologyCode39$VNBarcodeSymbologyCode39Checksum$VNBarcodeSymbologyCode39FullASCII$VNBarcodeSymbologyCode39FullASCIIChecksum$VNBarcodeSymbologyCode93$VNBarcodeSymbologyCode93i$VNBarcodeSymbologyDataMatrix$VNBarcodeSymbologyEAN13$VNBarcodeSymbologyEAN8$VNBarcodeSymbologyGS1DataBar$VNBarcodeSymbologyGS1DataBarExpanded$VNBarcodeSymbologyGS1DataBarLimited$VNBarcodeSymbologyI2of5$VNBarcodeSymbologyI2of5Checksum$VNBarcodeSymbologyITF14$VNBarcodeSymbologyMSIPlessey$VNBarcodeSymbologyMicroPDF417$VNBarcodeSymbologyMicroQR$VNBarcodeSymbologyPDF417$VNBarcodeSymbologyQR$VNBarcodeSymbologyUPCE$VNBodyLandmarkKeyLeftAnkle$VNBodyLandmarkKeyLeftEar$VNBodyLandmarkKeyLeftElbow$VNBodyLandmarkKeyLeftEye$VNBodyLandmarkKeyLeftHip$VNBodyLandmarkKeyLeftKnee$VNBodyLandmarkKeyLeftShoulder$VNBodyLandmarkKeyLeftWrist$VNBodyLandmarkKeyNeck$VNBodyLandmarkKeyNose$VNBodyLandmarkKeyRightAnkle$VNBodyLandmarkKeyRightEar$VNBodyLandmarkKeyRightElbow$VNBodyLandmarkKeyRightEye$VNBodyLandmarkKeyRightHip$VNBodyLandmarkKeyRightKnee$VNBodyLandmarkKeyRightShoulder$VNBodyLandmarkKeyRightWrist$VNBodyLandmarkKeyRoot$VNBodyLandmarkRegionKeyFace$VNBodyLandmarkRegionKeyLeftArm$VNBodyLandmarkRegionKeyLeftLeg$VNBodyLandmarkRegionKeyRightArm$VNBodyLandmarkRegionKeyRightLeg$VNBodyLandmarkRegionKeyTorso$VNComputeStageMain$VNComputeStagePostProcessing$VNErrorDomain$VNHandLandmarkKeyIndexDIP$VNHandLandmarkKeyIndexMCP$VNHandLandmarkKeyIndexPIP$VNHandLandmarkKeyIndexTIP$VNHandLandmarkKeyLittleDIP$VNHandLandmarkKeyLittleMCP$VNHandLandmarkKeyLittlePIP$VNHandLandmarkKeyLittleTIP$VNHandLandmarkKeyMiddleDIP$VNHandLandmarkKeyMiddleMCP$VNHandLandmarkKeyMiddlePIP$VNHandLandmarkKeyMiddleTIP$VNHandLandmarkKeyRingDIP$VNHandLandmarkKeyRingMCP$VNHandLandmarkKeyRingPIP$VNHandLandmarkKeyRingTIP$VNHandLandmarkKeyThumbCMC$VNHandLandmarkKeyThumbIP$VNHandLandmarkKeyThumbMP$VNHandLandmarkKeyThumbTIP$VNHandLandmarkKeyWrist$VNHandLandmarkRegionKeyIndexFinger$VNHandLandmarkRegionKeyLittleFinger$VNHandLandmarkRegionKeyMiddleFinger$VNHandLandmarkRegionKeyRingFinger$VNHandLandmarkRegionKeyThumb$VNHumanBodyPose3DObservationJointNameCenterHead$VNHumanBodyPose3DObservationJointNameCenterShoulder$VNHumanBodyPose3DObservationJointNameLeftAnkle$VNHumanBodyPose3DObservationJointNameLeftElbow$VNHumanBodyPose3DObservationJointNameLeftHip$VNHumanBodyPose3DObservationJointNameLeftKnee$VNHumanBodyPose3DObservationJointNameLeftShoulder$VNHumanBodyPose3DObservationJointNameLeftWrist$VNHumanBodyPose3DObservationJointNameRightAnkle$VNHumanBodyPose3DObservationJointNameRightElbow$VNHumanBodyPose3DObservationJointNameRightHip$VNHumanBodyPose3DObservationJointNameRightKnee$VNHumanBodyPose3DObservationJointNameRightShoulder$VNHumanBodyPose3DObservationJointNameRightWrist$VNHumanBodyPose3DObservationJointNameRoot$VNHumanBodyPose3DObservationJointNameSpine$VNHumanBodyPose3DObservationJointNameTopHead$VNHumanBodyPose3DObservationJointsGroupNameAll$VNHumanBodyPose3DObservationJointsGroupNameHead$VNHumanBodyPose3DObservationJointsGroupNameLeftArm$VNHumanBodyPose3DObservationJointsGroupNameLeftLeg$VNHumanBodyPose3DObservationJointsGroupNameRightArm$VNHumanBodyPose3DObservationJointsGroupNameRightLeg$VNHumanBodyPose3DObservationJointsGroupNameTorso$VNHumanBodyPoseObservationJointNameLeftAnkle$VNHumanBodyPoseObservationJointNameLeftEar$VNHumanBodyPoseObservationJointNameLeftElbow$VNHumanBodyPoseObservationJointNameLeftEye$VNHumanBodyPoseObservationJointNameLeftHip$VNHumanBodyPoseObservationJointNameLeftKnee$VNHumanBodyPoseObservationJointNameLeftShoulder$VNHumanBodyPoseObservationJointNameLeftWrist$VNHumanBodyPoseObservationJointNameNeck$VNHumanBodyPoseObservationJointNameNose$VNHumanBodyPoseObservationJointNameRightAnkle$VNHumanBodyPoseObservationJointNameRightEar$VNHumanBodyPoseObservationJointNameRightElbow$VNHumanBodyPoseObservationJointNameRightEye$VNHumanBodyPoseObservationJointNameRightHip$VNHumanBodyPoseObservationJointNameRightKnee$VNHumanBodyPoseObservationJointNameRightShoulder$VNHumanBodyPoseObservationJointNameRightWrist$VNHumanBodyPoseObservationJointNameRoot$VNHumanBodyPoseObservationJointsGroupNameAll$VNHumanBodyPoseObservationJointsGroupNameFace$VNHumanBodyPoseObservationJointsGroupNameLeftArm$VNHumanBodyPoseObservationJointsGroupNameLeftLeg$VNHumanBodyPoseObservationJointsGroupNameRightArm$VNHumanBodyPoseObservationJointsGroupNameRightLeg$VNHumanBodyPoseObservationJointsGroupNameTorso$VNHumanHandPoseObservationJointNameIndexDIP$VNHumanHandPoseObservationJointNameIndexMCP$VNHumanHandPoseObservationJointNameIndexPIP$VNHumanHandPoseObservationJointNameIndexTip$VNHumanHandPoseObservationJointNameLittleDIP$VNHumanHandPoseObservationJointNameLittleMCP$VNHumanHandPoseObservationJointNameLittlePIP$VNHumanHandPoseObservationJointNameLittleTip$VNHumanHandPoseObservationJointNameMiddleDIP$VNHumanHandPoseObservationJointNameMiddleMCP$VNHumanHandPoseObservationJointNameMiddlePIP$VNHumanHandPoseObservationJointNameMiddleTip$VNHumanHandPoseObservationJointNameRingDIP$VNHumanHandPoseObservationJointNameRingMCP$VNHumanHandPoseObservationJointNameRingPIP$VNHumanHandPoseObservationJointNameRingTip$VNHumanHandPoseObservationJointNameThumbCMC$VNHumanHandPoseObservationJointNameThumbIP$VNHumanHandPoseObservationJointNameThumbMP$VNHumanHandPoseObservationJointNameThumbTip$VNHumanHandPoseObservationJointNameWrist$VNHumanHandPoseObservationJointsGroupNameAll$VNHumanHandPoseObservationJointsGroupNameIndexFinger$VNHumanHandPoseObservationJointsGroupNameLittleFinger$VNHumanHandPoseObservationJointsGroupNameMiddleFinger$VNHumanHandPoseObservationJointsGroupNameRingFinger$VNHumanHandPoseObservationJointsGroupNameThumb$VNImageOptionCIContext$VNImageOptionCameraIntrinsics$VNImageOptionProperties$VNNormalizedIdentityRect@{CGRect={CGPoint=dd}{CGSize=dd}}$VNRecognizedPoint3DGroupKeyAll$VNRecognizedPointGroupKeyAll$VNVideoProcessingOptionFrameCadence$VNVideoProcessingOptionTimeInterval$VNVisionVersionNumber@d$"""
34
- enums = """$VNBarcodeCompositeTypeGS1TypeA@2$VNBarcodeCompositeTypeGS1TypeB@3$VNBarcodeCompositeTypeGS1TypeC@4$VNBarcodeCompositeTypeLinked@1$VNBarcodeCompositeTypeNone@0$VNChiralityLeft@-1$VNChiralityRight@1$VNChiralityUnknown@0$VNClassifyImageRequestRevision1@1$VNClassifyImageRequestRevision2@2$VNCoreMLRequestRevision1@1$VNDetectAnimalBodyPoseRequestRevision1@1$VNDetectAnimalRectanglesRequestRevision1@1$VNDetectBarcodesRequestRevision1@1$VNDetectBarcodesRequestRevision2@2$VNDetectBarcodesRequestRevision3@3$VNDetectBarcodesRequestRevision4@4$VNDetectContourRequestRevision1@1$VNDetectDocumentSegmentationRequestRevision1@1$VNDetectFaceCaptureQualityRequestRevision1@1$VNDetectFaceCaptureQualityRequestRevision2@2$VNDetectFaceCaptureQualityRequestRevision3@3$VNDetectFaceLandmarksRequestRevision1@1$VNDetectFaceLandmarksRequestRevision2@2$VNDetectFaceLandmarksRequestRevision3@3$VNDetectFaceQualityRequestRevision1@1$VNDetectFaceRectanglesRequestRevision1@1$VNDetectFaceRectanglesRequestRevision2@2$VNDetectFaceRectanglesRequestRevision3@3$VNDetectHorizonRequestRevision1@1$VNDetectHumanBodyPose3DRequestRevision1@1$VNDetectHumanBodyPoseRequestRevision1@1$VNDetectHumanHandPoseRequestRevision1@1$VNDetectHumanRectanglesRequestRevision1@1$VNDetectHumanRectanglesRequestRevision2@2$VNDetectRectanglesRequestRevision1@1$VNDetectTextRectanglesRequestRevision1@1$VNDetectTrajectoriesRequestRevision1@1$VNElementTypeDouble@2$VNElementTypeFloat@1$VNElementTypeUnknown@0$VNErrorDataUnavailable@17$VNErrorIOError@6$VNErrorInternalError@9$VNErrorInvalidArgument@14$VNErrorInvalidFormat@2$VNErrorInvalidImage@13$VNErrorInvalidModel@15$VNErrorInvalidOperation@12$VNErrorInvalidOption@5$VNErrorMissingOption@7$VNErrorNotImplemented@8$VNErrorOK@0$VNErrorOperationFailed@3$VNErrorOutOfBoundsError@4$VNErrorOutOfMemory@10$VNErrorRequestCancelled@1$VNErrorTimeStampNotFound@18$VNErrorTimeout@20$VNErrorTuriCoreErrorCode@-1$VNErrorUnknownError@11$VNErrorUnsupportedComputeDevice@22$VNErrorUnsupportedComputeStage@21$VNErrorUnsupportedRequest@19$VNErrorUnsupportedRevision@16$VNGenerateAttentionBasedSaliencyImageRequestRevision1@1$VNGenerateAttentionBasedSaliencyImageRequestRevision2@2$VNGenerateForegroundInstanceMaskRequestRevision1@1$VNGenerateImageFeaturePrintRequestRevision1@1$VNGenerateImageFeaturePrintRequestRevision2@2$VNGenerateObjectnessBasedSaliencyImageRequestRevision1@1$VNGenerateObjectnessBasedSaliencyImageRequestRevision2@2$VNGenerateOpticalFlowRequestComputationAccuracyHigh@2$VNGenerateOpticalFlowRequestComputationAccuracyLow@0$VNGenerateOpticalFlowRequestComputationAccuracyMedium@1$VNGenerateOpticalFlowRequestComputationAccuracyVeryHigh@3$VNGenerateOpticalFlowRequestRevision1@1$VNGenerateOpticalFlowRequestRevision2@2$VNGeneratePersonInstanceMaskRequestRevision1@1$VNGeneratePersonSegmentationRequestQualityLevelAccurate@0$VNGeneratePersonSegmentationRequestQualityLevelBalanced@1$VNGeneratePersonSegmentationRequestQualityLevelFast@2$VNGeneratePersonSegmentationRequestRevision1@1$VNHomographicImageRegistrationRequestRevision1@1$VNHumanBodyPose3DObservationHeightEstimationMeasured@1$VNHumanBodyPose3DObservationHeightEstimationReference@0$VNImageCropAndScaleOptionCenterCrop@0$VNImageCropAndScaleOptionScaleFill@2$VNImageCropAndScaleOptionScaleFillRotate90CCW@258$VNImageCropAndScaleOptionScaleFit@1$VNImageCropAndScaleOptionScaleFitRotate90CCW@257$VNPointsClassificationClosedPath@2$VNPointsClassificationDisconnected@0$VNPointsClassificationOpenPath@1$VNRecognizeAnimalsRequestRevision1@1$VNRecognizeAnimalsRequestRevision2@2$VNRecognizeTextRequestRevision1@1$VNRecognizeTextRequestRevision2@2$VNRecognizeTextRequestRevision3@3$VNRequestFaceLandmarksConstellation65Points@1$VNRequestFaceLandmarksConstellation76Points@2$VNRequestFaceLandmarksConstellationNotDefined@0$VNRequestRevisionUnspecified@0$VNRequestTextRecognitionLevelAccurate@0$VNRequestTextRecognitionLevelFast@1$VNRequestTrackingLevelAccurate@0$VNRequestTrackingLevelFast@1$VNTrackHomographicImageRegistrationRequestRevision1@1$VNTrackObjectRequestRevision1@1$VNTrackObjectRequestRevision2@2$VNTrackOpticalFlowRequestComputationAccuracyHigh@2$VNTrackOpticalFlowRequestComputationAccuracyLow@0$VNTrackOpticalFlowRequestComputationAccuracyMedium@1$VNTrackOpticalFlowRequestComputationAccuracyVeryHigh@3$VNTrackOpticalFlowRequestRevision1@1$VNTrackRectangleRequestRevision1@1$VNTrackTranslationalImageRegistrationRequestRevision1@1$VNTranslationalImageRegistrationRequestRevision1@1$"""
34
+ enums = """$VNBarcodeCompositeTypeGS1TypeA@2$VNBarcodeCompositeTypeGS1TypeB@3$VNBarcodeCompositeTypeGS1TypeC@4$VNBarcodeCompositeTypeLinked@1$VNBarcodeCompositeTypeNone@0$VNCalculateImageAestheticsScoresRequestRevision1@1$VNChiralityLeft@-1$VNChiralityRight@1$VNChiralityUnknown@0$VNClassifyImageRequestRevision1@1$VNClassifyImageRequestRevision2@2$VNCoreMLRequestRevision1@1$VNDetectAnimalBodyPoseRequestRevision1@1$VNDetectAnimalRectanglesRequestRevision1@1$VNDetectBarcodesRequestRevision1@1$VNDetectBarcodesRequestRevision2@2$VNDetectBarcodesRequestRevision3@3$VNDetectBarcodesRequestRevision4@4$VNDetectContourRequestRevision1@1$VNDetectDocumentSegmentationRequestRevision1@1$VNDetectFaceCaptureQualityRequestRevision1@1$VNDetectFaceCaptureQualityRequestRevision2@2$VNDetectFaceCaptureQualityRequestRevision3@3$VNDetectFaceLandmarksRequestRevision1@1$VNDetectFaceLandmarksRequestRevision2@2$VNDetectFaceLandmarksRequestRevision3@3$VNDetectFaceQualityRequestRevision1@1$VNDetectFaceRectanglesRequestRevision1@1$VNDetectFaceRectanglesRequestRevision2@2$VNDetectFaceRectanglesRequestRevision3@3$VNDetectHorizonRequestRevision1@1$VNDetectHumanBodyPose3DRequestRevision1@1$VNDetectHumanBodyPoseRequestRevision1@1$VNDetectHumanHandPoseRequestRevision1@1$VNDetectHumanRectanglesRequestRevision1@1$VNDetectHumanRectanglesRequestRevision2@2$VNDetectRectanglesRequestRevision1@1$VNDetectTextRectanglesRequestRevision1@1$VNDetectTrajectoriesRequestRevision1@1$VNElementTypeDouble@2$VNElementTypeFloat@1$VNElementTypeUnknown@0$VNErrorDataUnavailable@17$VNErrorIOError@6$VNErrorInternalError@9$VNErrorInvalidArgument@14$VNErrorInvalidFormat@2$VNErrorInvalidImage@13$VNErrorInvalidModel@15$VNErrorInvalidOperation@12$VNErrorInvalidOption@5$VNErrorMissingOption@7$VNErrorNotImplemented@8$VNErrorOK@0$VNErrorOperationFailed@3$VNErrorOutOfBoundsError@4$VNErrorOutOfMemory@10$VNErrorRequestCancelled@1$VNErrorTimeStampNotFound@18$VNErrorTimeout@20$VNErrorTuriCoreErrorCode@-1$VNErrorUnknownError@11$VNErrorUnsupportedComputeDevice@22$VNErrorUnsupportedComputeStage@21$VNErrorUnsupportedRequest@19$VNErrorUnsupportedRevision@16$VNGenerateAttentionBasedSaliencyImageRequestRevision1@1$VNGenerateAttentionBasedSaliencyImageRequestRevision2@2$VNGenerateForegroundInstanceMaskRequestRevision1@1$VNGenerateImageFeaturePrintRequestRevision1@1$VNGenerateImageFeaturePrintRequestRevision2@2$VNGenerateObjectnessBasedSaliencyImageRequestRevision1@1$VNGenerateObjectnessBasedSaliencyImageRequestRevision2@2$VNGenerateOpticalFlowRequestComputationAccuracyHigh@2$VNGenerateOpticalFlowRequestComputationAccuracyLow@0$VNGenerateOpticalFlowRequestComputationAccuracyMedium@1$VNGenerateOpticalFlowRequestComputationAccuracyVeryHigh@3$VNGenerateOpticalFlowRequestRevision1@1$VNGenerateOpticalFlowRequestRevision2@2$VNGeneratePersonInstanceMaskRequestRevision1@1$VNGeneratePersonSegmentationRequestQualityLevelAccurate@0$VNGeneratePersonSegmentationRequestQualityLevelBalanced@1$VNGeneratePersonSegmentationRequestQualityLevelFast@2$VNGeneratePersonSegmentationRequestRevision1@1$VNHomographicImageRegistrationRequestRevision1@1$VNHumanBodyPose3DObservationHeightEstimationMeasured@1$VNHumanBodyPose3DObservationHeightEstimationReference@0$VNImageCropAndScaleOptionCenterCrop@0$VNImageCropAndScaleOptionScaleFill@2$VNImageCropAndScaleOptionScaleFillRotate90CCW@258$VNImageCropAndScaleOptionScaleFit@1$VNImageCropAndScaleOptionScaleFitRotate90CCW@257$VNPointsClassificationClosedPath@2$VNPointsClassificationDisconnected@0$VNPointsClassificationOpenPath@1$VNRecognizeAnimalsRequestRevision1@1$VNRecognizeAnimalsRequestRevision2@2$VNRecognizeTextRequestRevision1@1$VNRecognizeTextRequestRevision2@2$VNRecognizeTextRequestRevision3@3$VNRequestFaceLandmarksConstellation65Points@1$VNRequestFaceLandmarksConstellation76Points@2$VNRequestFaceLandmarksConstellationNotDefined@0$VNRequestRevisionUnspecified@0$VNRequestTextRecognitionLevelAccurate@0$VNRequestTextRecognitionLevelFast@1$VNRequestTrackingLevelAccurate@0$VNRequestTrackingLevelFast@1$VNTrackHomographicImageRegistrationRequestRevision1@1$VNTrackObjectRequestRevision1@1$VNTrackObjectRequestRevision2@2$VNTrackOpticalFlowRequestComputationAccuracyHigh@2$VNTrackOpticalFlowRequestComputationAccuracyLow@0$VNTrackOpticalFlowRequestComputationAccuracyMedium@1$VNTrackOpticalFlowRequestComputationAccuracyVeryHigh@3$VNTrackOpticalFlowRequestRevision1@1$VNTrackRectangleRequestRevision1@1$VNTrackTranslationalImageRegistrationRequestRevision1@1$VNTranslationalImageRegistrationRequestRevision1@1$"""
35
35
  misc.update(
36
36
  {
37
37
  "VNImageCropAndScaleOption": NewType("VNImageCropAndScaleOption", int),
@@ -559,6 +559,11 @@ try:
559
559
  }
560
560
  },
561
561
  )
562
+ r(
563
+ b"VNGeneratePersonSegmentationRequest",
564
+ b"supportedOutputPixelFormatsAndReturnError:",
565
+ {"arguments": {2: {"type_modifier": b"o"}}},
566
+ )
562
567
  r(
563
568
  b"VNGeometryUtils",
564
569
  b"boundingCircleForContour:error:",
@@ -673,6 +678,7 @@ try:
673
678
  {"arguments": {3: {"type_modifier": b"o"}}},
674
679
  )
675
680
  r(b"VNHumanObservation", b"upperBodyOnly", {"retval": {"type": b"Z"}})
681
+ r(b"VNImageAestheticsScoresObservation", b"isUtility", {"retval": {"type": b"Z"}})
676
682
  r(
677
683
  b"VNImageHomographicAlignmentObservation",
678
684
  b"setWarpTransform:",
@@ -1,39 +1,50 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Vision
3
- Version: 10.3.2
3
+ Version: 11.1
4
4
  Summary: Wrappers for the framework Vision on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
7
7
  Author-email: pyobjc-dev@lists.sourceforge.net
8
- License: MIT License
8
+ License: MIT
9
9
  Keywords: PyObjC,Vision
10
10
  Platform: MacOS X (>=10.13)
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Environment :: MacOS X :: Cocoa
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: MacOS :: MacOS X
18
17
  Classifier: Programming Language :: Python
19
18
  Classifier: Programming Language :: Python :: 3
20
19
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
20
  Classifier: Programming Language :: Python :: 3.9
23
21
  Classifier: Programming Language :: Python :: 3.10
24
22
  Classifier: Programming Language :: Python :: 3.11
25
23
  Classifier: Programming Language :: Python :: 3.12
26
24
  Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
27
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
27
  Classifier: Programming Language :: Objective C
29
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
29
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.8
30
+ Requires-Python: >=3.9
32
31
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.3.2
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.3.2
35
- Requires-Dist: pyobjc-framework-Quartz>=10.3.2
36
- Requires-Dist: pyobjc-framework-CoreML>=10.3.2
32
+ Requires-Dist: pyobjc-core>=11.1
33
+ Requires-Dist: pyobjc-framework-Cocoa>=11.1
34
+ Requires-Dist: pyobjc-framework-Quartz>=11.1
35
+ Requires-Dist: pyobjc-framework-CoreML>=11.1
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
37
48
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
38
49
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
39
50
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_Vision.egg-info/PKG-INFO
9
9
  Lib/pyobjc_framework_Vision.egg-info/SOURCES.txt
10
10
  Lib/pyobjc_framework_Vision.egg-info/dependency_links.txt
11
11
  Lib/pyobjc_framework_Vision.egg-info/not-zip-safe
12
+ Lib/pyobjc_framework_Vision.egg-info/pyobjc-build-info.txt
12
13
  Lib/pyobjc_framework_Vision.egg-info/requires.txt
13
14
  Lib/pyobjc_framework_Vision.egg-info/top_level.txt
14
15
  Modules/_Vision.m
@@ -17,6 +18,7 @@ Modules/pyobjc-api.h
17
18
  Modules/pyobjc-compat.h
18
19
  PyObjCTest/__init__.py
19
20
  PyObjCTest/test_vision.py
21
+ PyObjCTest/test_vncalculateimageaestheticsscoresrequest.py
20
22
  PyObjCTest/test_vnclassifyimagerequest.py
21
23
  PyObjCTest/test_vncoremlrequest.py
22
24
  PyObjCTest/test_vndetectanimalbodyposerequest.py
@@ -73,8 +75,10 @@ metadata/metadata.ini
73
75
  metadata/raw/arm64-12.3.fwinfo
74
76
  metadata/raw/arm64-13.0.fwinfo
75
77
  metadata/raw/arm64-14.5.fwinfo
78
+ metadata/raw/arm64-15.0.fwinfo
76
79
  metadata/raw/x86_64-10.15.fwinfo
77
80
  metadata/raw/x86_64-10.16.fwinfo
78
81
  metadata/raw/x86_64-12.3.fwinfo
79
82
  metadata/raw/x86_64-13.0.fwinfo
80
- metadata/raw/x86_64-14.5.fwinfo
83
+ metadata/raw/x86_64-14.5.fwinfo
84
+ metadata/raw/x86_64-15.0.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 15.5 (24F74)
2
+ Apple clang version 17.0.0 (clang-1700.0.13.5)
3
+ SDK: macOS 15.5
@@ -0,0 +1,4 @@
1
+ pyobjc-core>=11.1
2
+ pyobjc-framework-Cocoa>=11.1
3
+ pyobjc-framework-Quartz>=11.1
4
+ pyobjc-framework-CoreML>=11.1
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2024 - Ronald Oussoren
4
+ Copyright 2003-2025 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -1,6 +1,3 @@
1
- #ifndef PyObjC_GIL_DISABLED
2
- #define Py_LIMITED_API 0x03060000
3
- #endif
4
1
  #define PY_SSIZE_T_CLEAN
5
2
  #include "Python.h"
6
3
  #include "pyobjc-api.h"
@@ -38,24 +35,24 @@ static PyObject* _Nullable mod_VNNormalizedFaceBoundingBoxPointForLandmarkPoint(
38
35
  size_t imageWidth;
39
36
  size_t imageHeight;
40
37
 
41
- if (args == NULL || !PyTuple_Check(args) || PyTuple_Size(args) != 4) {
38
+ if (args == NULL || !PyTuple_Check(args) || PyTuple_GET_SIZE(args) != 4) {
42
39
  PyErr_SetString(PyExc_TypeError,
43
40
  "Vision.VNNormalizedFaceBoundingBoxPointForLandmarkPoint "
44
41
  "requires 4 arguments");
45
42
  return NULL;
46
43
  }
47
- if (PyObjC_PythonToObjC("<2f>", PyTuple_GetItem(args, 0), &faceLandmarkPoint) == -1) {
44
+ if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint) == -1) {
48
45
  return NULL;
49
46
  }
50
- if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GetItem(args, 1), &faceBoundingBox)
47
+ if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GET_ITEM(args, 1), &faceBoundingBox)
51
48
  == -1) {
52
49
  return NULL;
53
50
  }
54
- if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GetItem(args, 2), &imageWidth)
51
+ if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GET_ITEM(args, 2), &imageWidth)
55
52
  == -1) {
56
53
  return NULL;
57
54
  }
58
- if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GetItem(args, 3), &imageHeight)
55
+ if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GET_ITEM(args, 3), &imageHeight)
59
56
  == -1) {
60
57
  return NULL;
61
58
  }
@@ -92,23 +89,23 @@ static PyObject* _Nullable mod_VNImagePointForFaceLandmarkPoint(PyObject* mod,
92
89
  size_t imageWidth;
93
90
  size_t imageHeight;
94
91
 
95
- if (args == NULL || !PyTuple_Check(args) || PyTuple_Size(args) != 4) {
92
+ if (args == NULL || !PyTuple_Check(args) || PyTuple_GET_SIZE(args) != 4) {
96
93
  PyErr_SetString(PyExc_TypeError,
97
94
  "Vision.VNImagePointForFaceLandmarkPoint requires 4 arguments");
98
95
  return NULL;
99
96
  }
100
- if (PyObjC_PythonToObjC("<2f>", PyTuple_GetItem(args, 0), &faceLandmarkPoint) == -1) {
97
+ if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint) == -1) {
101
98
  return NULL;
102
99
  }
103
- if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GetItem(args, 1), &faceBoundingBox)
100
+ if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GET_ITEM(args, 1), &faceBoundingBox)
104
101
  == -1) {
105
102
  return NULL;
106
103
  }
107
- if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GetItem(args, 2), &imageWidth)
104
+ if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GET_ITEM(args, 2), &imageWidth)
108
105
  == -1) {
109
106
  return NULL;
110
107
  }
111
- if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GetItem(args, 3), &imageHeight)
108
+ if (PyObjC_PythonToObjC(@encode(size_t), PyTuple_GET_ITEM(args, 3), &imageHeight)
112
109
  == -1) {
113
110
  return NULL;
114
111
  }
@@ -154,40 +151,64 @@ static PyMethodDef mod_methods[] = {
154
151
  {0, 0, 0, 0} /* sentinel */
155
152
  };
156
153
 
157
- /* Python glue */
158
- static struct PyModuleDef mod_module = {
159
- PyModuleDef_HEAD_INIT, "_Vision", NULL, 0, mod_methods, NULL, NULL, NULL, NULL};
160
-
161
- PyObject* PyInit__Vision(void);
162
-
163
- PyObject* __attribute__((__visibility__("default"))) PyInit__Vision(void)
154
+ static int mod_exec_module(PyObject* m)
164
155
  {
165
- PyObject* m;
166
- m = PyModule_Create(&mod_module);
167
- if (!m) {
168
- return NULL;
169
- }
170
-
171
- if (PyObjC_ImportAPI(m) == -1)
172
- return NULL;
173
-
174
156
  #if PyObjC_BUILD_RELEASE >= 1013
175
157
 
176
158
  if (@available(macOS 10.13, *)) {
177
159
  /* pass */
178
160
  } else {
179
- if (PyDict_DelItemString(PyModule_GetDict(m),
180
- "VNNormalizedFaceBoundingBoxPointForLandmarkPoint")
181
- == -1) {
182
- return NULL;
161
+ if (PyObject_DelAttrString(m, "VNNormalizedFaceBoundingBoxPointForLandmarkPoint") == -1) {
162
+ return -1;
183
163
  }
184
- if (PyDict_DelItemString(PyModule_GetDict(m), "VNImagePointForFaceLandmarkPoint")
185
- == -1) {
186
- return NULL;
164
+ if (PyObject_DelAttrString(m, "VNImagePointForFaceLandmarkPoint") == -1) {
165
+ return -1;
187
166
  }
188
167
  }
189
168
 
190
169
  #endif
170
+ return 0;
171
+ }
172
+
173
+ static struct PyModuleDef_Slot mod_slots[] = {
174
+ {
175
+ .slot = Py_mod_exec,
176
+ .value = (void*)mod_exec_module
177
+ },
178
+ #if PY_VERSION_HEX >= 0x030c0000
179
+ {
180
+ .slot = Py_mod_multiple_interpreters,
181
+ .value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
182
+ },
183
+ #endif
184
+ #if PY_VERSION_HEX >= 0x030d0000
185
+ {
186
+ /* The code in this extension should be safe to use without the GIL */
187
+ .slot = Py_mod_gil,
188
+ .value = Py_MOD_GIL_NOT_USED,
189
+ },
190
+ #endif
191
+ { /* Sentinel */
192
+ .slot = 0,
193
+ .value = 0
194
+ }
195
+ };
191
196
 
192
- return m;
197
+ static struct PyModuleDef mod_module = {
198
+ .m_base = PyModuleDef_HEAD_INIT,
199
+ .m_name = "_Vision",
200
+ .m_doc = NULL,
201
+ .m_size = 0,
202
+ .m_methods = mod_methods,
203
+ .m_slots = mod_slots,
204
+ .m_traverse = NULL,
205
+ .m_clear = NULL,
206
+ .m_free = NULL,
207
+ };
208
+
209
+ PyObject* PyInit__Vision(void);
210
+
211
+ PyObject* __attribute__((__visibility__("default"))) PyInit__Vision(void)
212
+ {
213
+ return PyModuleDef_Init(&mod_module);
193
214
  }
@@ -83,7 +83,7 @@ struct pyobjc_api {
83
83
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
84
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
85
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
86
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
87
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
88
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
89
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -11,6 +11,12 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ #ifdef USE_STATIC_ANALYZER
15
+ #define CLANG_SUPPRESS [[clang::suppress]]
16
+ #else
17
+ #define CLANG_SUPPRESS
18
+ #endif
19
+
14
20
  /*
15
21
  *
16
22
  * Start of compiler definitions
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
153
159
 
154
160
  extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
155
161
 
156
- extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
157
- extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
158
- Py_ssize_t l);
159
-
160
162
  /*
161
163
  * A micro optimization: when using Python 3.3 or later it
162
164
  * is possible to access a 'char*' with an ASCII representation
@@ -177,7 +179,7 @@ extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
177
179
 
178
180
  static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
179
181
  {
180
- return &PyTuple_GET_ITEM(tuple, 0);
182
+ return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
181
183
  }
182
184
 
183
185
  /* This is a crude hack to disable a otherwise useful warning in the context of
@@ -196,7 +198,7 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
196
198
  static inline PyObject*
197
199
  _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
198
200
  {
199
- return PyTuple_GET_ITEM(tuple, idx);
201
+ return PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
200
202
  }
201
203
  #undef PyTuple_GET_ITEM
202
204
  #define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
@@ -238,7 +240,173 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
238
240
  PyGILState_Release(_GILState); \
239
241
  } while (0)
240
242
 
241
- extern PyObject* _Nullable PyObjC_get_tp_dict(PyTypeObject* _Nonnull tp);
243
+ #if PY_VERSION_HEX < 0x030a0000
244
+
245
+ static inline PyObject* Py_NewRef(PyObject* o)
246
+ {
247
+ Py_INCREF(o);
248
+ return o;
249
+ }
250
+
251
+ static inline PyObject* Py_XNewRef(PyObject* o)
252
+ {
253
+ Py_XINCREF(o);
254
+ return o;
255
+ }
256
+
257
+ #endif /* PY_VERSION_HEX < 0x030a0000 */
258
+
259
+ #if PY_VERSION_HEX < 0x030d0000
260
+ #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
261
+ #define Py_END_CRITICAL_SECTION() }
262
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
+
264
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
265
+ #define Py_END_CRITICAL_SECTION2() }
266
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
+
268
+ #define PyObjC_ATOMIC
269
+
270
+ #else
271
+
272
+ #ifdef Py_GIL_DISABLED
273
+ #define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
274
+ #define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
275
+ #define PyObjC_ATOMIC _Atomic
276
+ #else
277
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
278
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
279
+ #define PyObjC_ATOMIC
280
+ #endif
281
+
282
+ #endif
283
+
284
+ #if PY_VERSION_HEX < 0x030d0000
285
+ static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
286
+ {
287
+ *result = PyDict_GetItemWithError(p, key);
288
+ if (*result == NULL) {
289
+ if (PyErr_Occurred()) {
290
+ return -1;
291
+ } else {
292
+ return 0;
293
+ }
294
+ } else {
295
+ Py_INCREF(*result);
296
+ return 1;
297
+ }
298
+ }
299
+
300
+ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
301
+ {
302
+ PyObject* result = PyList_GetItem(l, i);
303
+ Py_XINCREF(result);
304
+ return result;
305
+ }
306
+ #endif
307
+
308
+ #if PY_VERSION_HEX < 0x030c0000
309
+ static inline PyObject* PyType_GetDict(PyTypeObject* type)
310
+ {
311
+ PyObject* result = type->tp_dict;
312
+ Py_INCREF(result);
313
+ return result;
314
+ }
315
+ #endif
316
+
317
+ #if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
318
+ /*
319
+ * These are available in 3.14 and above, the definitions below
320
+ * mirror the private implementation in 3.13.
321
+ */
322
+ static inline int PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
323
+ {
324
+ #ifdef Py_GIL_DISABLED
325
+ return (_Py_IsOwnedByCurrentThread(ob) &&
326
+ _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1 &&
327
+ _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
328
+ #else
329
+ return Py_REFCNT(ob) == 1;
330
+ #endif
331
+ }
332
+
333
+ static inline void
334
+ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
335
+ {
336
+ #ifdef Py_GIL_DISABLED
337
+ for (;;) {
338
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
339
+ if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
340
+ // Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
341
+ return;
342
+ }
343
+ if (_Py_atomic_compare_exchange_ssize(
344
+ &op->ob_ref_shared, &shared, shared | _Py_REF_MAYBE_WEAKREF)) {
345
+ return;
346
+ }
347
+ }
348
+ #endif
349
+ }
350
+
351
+ #ifdef Py_GIL_DISABLED
352
+ static inline int
353
+ _Py_TryIncrefFast(PyObject *op) {
354
+ uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
355
+ local += 1;
356
+ if (local == 0) {
357
+ // immortal
358
+ return 1;
359
+ }
360
+ if (_Py_IsOwnedByCurrentThread(op)) {
361
+ _Py_INCREF_STAT_INC();
362
+ _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
363
+ #ifdef Py_REF_DEBUG
364
+ _Py_IncRefTotal(_PyThreadState_GET());
365
+ #endif
366
+ return 1;
367
+ }
368
+ return 0;
369
+ }
370
+
371
+ static inline int
372
+ _Py_TryIncRefShared(PyObject *op)
373
+ {
374
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
375
+ for (;;) {
376
+ // If the shared refcount is zero and the object is either merged
377
+ // or may not have weak references, then we cannot incref it.
378
+ if (shared == 0 || shared == _Py_REF_MERGED) {
379
+ return 0;
380
+ }
381
+
382
+ if (_Py_atomic_compare_exchange_ssize(
383
+ &op->ob_ref_shared,
384
+ &shared,
385
+ shared + (1 << _Py_REF_SHARED_SHIFT))) {
386
+ #ifdef Py_REF_DEBUG
387
+ _Py_IncRefTotal(_PyThreadState_GET());
388
+ #endif
389
+ _Py_INCREF_STAT_INC();
390
+ return 1;
391
+ }
392
+ }
393
+ }
394
+ #endif
395
+
396
+ static inline int
397
+ PyUnstable_TryIncRef(PyObject *op __attribute__((__unused__)))
398
+ {
399
+ #ifdef Py_GIL_DISABLED
400
+ return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
401
+ #else
402
+ if (Py_REFCNT(op) > 0) {
403
+ Py_INCREF(op);
404
+ return 1;
405
+ }
406
+ return 0;
407
+ #endif
408
+ }
409
+ #endif
242
410
 
243
411
  NS_ASSUME_NONNULL_END
244
412
 
@@ -1,39 +1,50 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Vision
3
- Version: 10.3.2
3
+ Version: 11.1
4
4
  Summary: Wrappers for the framework Vision on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
7
7
  Author-email: pyobjc-dev@lists.sourceforge.net
8
- License: MIT License
8
+ License: MIT
9
9
  Keywords: PyObjC,Vision
10
10
  Platform: MacOS X (>=10.13)
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Environment :: MacOS X :: Cocoa
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: MacOS :: MacOS X
18
17
  Classifier: Programming Language :: Python
19
18
  Classifier: Programming Language :: Python :: 3
20
19
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
20
  Classifier: Programming Language :: Python :: 3.9
23
21
  Classifier: Programming Language :: Python :: 3.10
24
22
  Classifier: Programming Language :: Python :: 3.11
25
23
  Classifier: Programming Language :: Python :: 3.12
26
24
  Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
27
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
27
  Classifier: Programming Language :: Objective C
29
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
29
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.8
30
+ Requires-Python: >=3.9
32
31
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.3.2
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.3.2
35
- Requires-Dist: pyobjc-framework-Quartz>=10.3.2
36
- Requires-Dist: pyobjc-framework-CoreML>=10.3.2
32
+ Requires-Dist: pyobjc-core>=11.1
33
+ Requires-Dist: pyobjc-framework-Cocoa>=11.1
34
+ Requires-Dist: pyobjc-framework-Quartz>=11.1
35
+ Requires-Dist: pyobjc-framework-CoreML>=11.1
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
37
48
 
38
49
 
39
50
  Wrappers for the "Vision" framework on macOS.
@@ -0,0 +1 @@
1
+ """Testsuite"""
@@ -0,0 +1,7 @@
1
+ from PyObjCTools.TestSupport import TestCase
2
+ import Vision
3
+
4
+
5
+ class TestVNCalculateImageAestheticsScoresRequest(TestCase):
6
+ def test_constants(self):
7
+ self.assertEqual(Vision.VNCalculateImageAestheticsScoresRequestRevision1, 1)
@@ -29,3 +29,10 @@ class TestVNGeneratePersonSegmentationRequest(TestCase):
29
29
  1,
30
30
  b"v@@",
31
31
  )
32
+
33
+ @min_os_level("15.0")
34
+ def test_methods15_0(self):
35
+ self.assertArgIsOut(
36
+ Vision.VNGeneratePersonSegmentationRequest.supportedOutputPixelFormatsAndReturnError_,
37
+ 0,
38
+ )
@@ -122,3 +122,7 @@ class TestVNObservation(TestCase):
122
122
  Vision.VNHumanBodyPose3DObservation.getCameraRelativePosition_forJointName_error_,
123
123
  2,
124
124
  )
125
+
126
+ @min_os_level("15.0")
127
+ def test_methods15_0(self):
128
+ self.assertResultIsBOOL(Vision.VNImageAestheticsScoresObservation.isUtility)
@@ -43,6 +43,7 @@
43
43
  "VNImageOptionCameraIntrinsics": { "typestr": "@" }
44
44
  },
45
45
  "enum": {
46
+ "VNCalculateImageAestheticsScoresRequestRevision1": { "value": 1 },
46
47
  "VNDetectBarcodesRequestRevision2": { "value": 2 },
47
48
  "VNGenerateOpticalFlowRequestRevision2": { "value": 2 },
48
49
  "VNDetectBarcodesRequestRevision3": { "value": 3 },