pyobjc-framework-Vision 11.1__tar.gz → 12.0__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.
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/Vision/_metadata.py +12 -68
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/pyobjc_framework_Vision.egg-info/PKG-INFO +7 -5
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/pyobjc_framework_Vision.egg-info/SOURCES.txt +2 -10
- pyobjc_framework_vision-12.0/Lib/pyobjc_framework_Vision.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_vision-12.0/Lib/pyobjc_framework_Vision.egg-info/requires.txt +4 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Modules/_Vision.m +24 -24
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Modules/_Vision_protocols.m +2 -1
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Modules/pyobjc-api.h +6 -3
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Modules/pyobjc-compat.h +32 -48
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PKG-INFO +7 -5
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecttrajectoriesrequest.py +18 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnstatefulrequest.py +6 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/metadata/Vision.fwinfo +29 -0
- pyobjc_framework_vision-11.1/metadata/raw/arm64-15.0.fwinfo → pyobjc_framework_vision-12.0/metadata/raw/arm64-26.0.fwinfo +15 -15
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-15.0.fwinfo → pyobjc_framework_vision-12.0/metadata/raw/x86_64-26.0.fwinfo +15 -15
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/pyobjc_setup.py +2 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/setup.py +1 -1
- pyobjc_framework_vision-11.1/Lib/pyobjc_framework_Vision.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_vision-11.1/Lib/pyobjc_framework_Vision.egg-info/requires.txt +0 -4
- pyobjc_framework_vision-11.1/metadata/raw/arm64-12.3.fwinfo +0 -8822
- pyobjc_framework_vision-11.1/metadata/raw/arm64-13.0.fwinfo +0 -9133
- pyobjc_framework_vision-11.1/metadata/raw/arm64-14.5.fwinfo +0 -10943
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-10.15.fwinfo +0 -4473
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-10.16.fwinfo +0 -8085
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-12.3.fwinfo +0 -8822
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-13.0.fwinfo +0 -9133
- pyobjc_framework_vision-11.1/metadata/raw/x86_64-14.5.fwinfo +0 -10943
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/Vision/__init__.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/pyobjc_framework_Vision.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/pyobjc_framework_Vision.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/Lib/pyobjc_framework_Vision.egg-info/top_level.txt +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/License.txt +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/MANIFEST.in +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vision.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vncalculateimageaestheticsscoresrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnclassifyimagerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vncoremlrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectanimalbodyposerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectbarcodesrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectcontoursrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectdocumentsegmentationrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectfacecapturequalityrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectfacelandmarks.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectfacelandmarksrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectfacerectanglesrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecthorizonrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecthumanbodypose3drequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecthumanbodyposerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecthumanhandposerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecthumanrectanglesrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectpoint.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetectrectanglesrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vndetecttextrectanglesrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnerror.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnfacelandmarks.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnfaceobservationaccepting.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngenerateattentionbasedsaliencyimagerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngenerateforegroundinstanceMaskrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngenerateimagefeatureprintrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngenerateobjectnessbasedsaliencyimagerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngenerateopticalflowrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngeneratepersoninstancemaskrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngeneratepersonsegmentationrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngeometry.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vngeometryutils.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnimageregistrationrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnobservation.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnrecognizeanimalsrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnrecognizetextrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnrequesthandler.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnrequestrevisionproviding.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntargetedimagerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntrackhomographicimageregistrationrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntrackingrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntrackobjectrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntrackopticalflowrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntrackrectanglerequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntracktranslationalimageregistrationrequest.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vntypes.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnutils.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/PyObjCTest/test_vnvideoprocessor.py +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/metadata/metadata.ini +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/pyproject.toml +0 -0
- {pyobjc_framework_vision-11.1 → pyobjc_framework_vision-12.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Thu
|
|
3
|
+
# Last update: Thu Jul 24 11:32:47 2025
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ else:
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
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$
|
|
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$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
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
|
{
|
|
@@ -357,16 +357,6 @@ try:
|
|
|
357
357
|
b"supportedJointsGroupNamesAndReturnError:",
|
|
358
358
|
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
359
359
|
)
|
|
360
|
-
r(
|
|
361
|
-
b"VNDetectHumanBodyPoseRequest",
|
|
362
|
-
b"supportedIdentifiedPointGroupKeysForRevision:error:",
|
|
363
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
364
|
-
)
|
|
365
|
-
r(
|
|
366
|
-
b"VNDetectHumanBodyPoseRequest",
|
|
367
|
-
b"supportedIdentifiedPointKeysForRevision:error:",
|
|
368
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
369
|
-
)
|
|
370
360
|
r(
|
|
371
361
|
b"VNDetectHumanBodyPoseRequest",
|
|
372
362
|
b"supportedJointNamesAndReturnError:",
|
|
@@ -387,26 +377,6 @@ try:
|
|
|
387
377
|
b"supportedJointsGroupNamesForRevision:error:",
|
|
388
378
|
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
389
379
|
)
|
|
390
|
-
r(
|
|
391
|
-
b"VNDetectHumanBodyPoseRequest",
|
|
392
|
-
b"supportedRecognizedPointGroupKeysForRevision:error:",
|
|
393
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
394
|
-
)
|
|
395
|
-
r(
|
|
396
|
-
b"VNDetectHumanBodyPoseRequest",
|
|
397
|
-
b"supportedRecognizedPointKeysForRevision:error:",
|
|
398
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
399
|
-
)
|
|
400
|
-
r(
|
|
401
|
-
b"VNDetectHumanHandPoseRequest",
|
|
402
|
-
b"supportedIdentifiedPointGroupKeysForRevision:error:",
|
|
403
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
404
|
-
)
|
|
405
|
-
r(
|
|
406
|
-
b"VNDetectHumanHandPoseRequest",
|
|
407
|
-
b"supportedIdentifiedPointKeysForRevision:error:",
|
|
408
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
409
|
-
)
|
|
410
380
|
r(
|
|
411
381
|
b"VNDetectHumanHandPoseRequest",
|
|
412
382
|
b"supportedJointNamesAndReturnError:",
|
|
@@ -427,16 +397,6 @@ try:
|
|
|
427
397
|
b"supportedJointsGroupNamesForRevision:error:",
|
|
428
398
|
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
429
399
|
)
|
|
430
|
-
r(
|
|
431
|
-
b"VNDetectHumanHandPoseRequest",
|
|
432
|
-
b"supportedRecognizedPointGroupKeysForRevision:error:",
|
|
433
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
434
|
-
)
|
|
435
|
-
r(
|
|
436
|
-
b"VNDetectHumanHandPoseRequest",
|
|
437
|
-
b"supportedRecognizedPointKeysForRevision:error:",
|
|
438
|
-
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
439
|
-
)
|
|
440
400
|
r(
|
|
441
401
|
b"VNDetectHumanRectanglesRequest",
|
|
442
402
|
b"setUpperBodyOnly:",
|
|
@@ -458,7 +418,7 @@ try:
|
|
|
458
418
|
b"initWithFrameAnalysisSpacing:completionHandler:",
|
|
459
419
|
{
|
|
460
420
|
"arguments": {
|
|
461
|
-
2: {"type": b"{
|
|
421
|
+
2: {"type": b"{CMTime=qiIq}"},
|
|
462
422
|
3: {
|
|
463
423
|
"callable": {
|
|
464
424
|
"retval": {"type": b"v"},
|
|
@@ -477,7 +437,7 @@ try:
|
|
|
477
437
|
b"initWithFrameAnalysisSpacing:trajectoryLength:completionHandler:",
|
|
478
438
|
{
|
|
479
439
|
"arguments": {
|
|
480
|
-
2: {"type": b"{
|
|
440
|
+
2: {"type": b"{CMTime=qiIq}"},
|
|
481
441
|
4: {
|
|
482
442
|
"callable": {
|
|
483
443
|
"retval": {"type": b"v"},
|
|
@@ -494,12 +454,12 @@ try:
|
|
|
494
454
|
r(
|
|
495
455
|
b"VNDetectTrajectoriesRequest",
|
|
496
456
|
b"setTargetFrameTime:",
|
|
497
|
-
{"arguments": {2: {"type":
|
|
457
|
+
{"arguments": {2: {"type": "{CMTime=qiIq}"}}},
|
|
498
458
|
)
|
|
499
459
|
r(
|
|
500
460
|
b"VNDetectTrajectoriesRequest",
|
|
501
461
|
b"targetFrameTime",
|
|
502
|
-
{"retval": {"type":
|
|
462
|
+
{"retval": {"type": "{CMTime=qiIq}"}},
|
|
503
463
|
)
|
|
504
464
|
r(
|
|
505
465
|
b"VNFaceLandmarkRegion2D",
|
|
@@ -545,7 +505,7 @@ try:
|
|
|
545
505
|
b"initWithFrameAnalysisSpacing:completionHandler:",
|
|
546
506
|
{
|
|
547
507
|
"arguments": {
|
|
548
|
-
2: {"type": b"{
|
|
508
|
+
2: {"type": b"{CMTime=qiIq}"},
|
|
549
509
|
3: {
|
|
550
510
|
"callable": {
|
|
551
511
|
"retval": {"type": b"v"},
|
|
@@ -679,14 +639,6 @@ try:
|
|
|
679
639
|
)
|
|
680
640
|
r(b"VNHumanObservation", b"upperBodyOnly", {"retval": {"type": b"Z"}})
|
|
681
641
|
r(b"VNImageAestheticsScoresObservation", b"isUtility", {"retval": {"type": b"Z"}})
|
|
682
|
-
r(
|
|
683
|
-
b"VNImageHomographicAlignmentObservation",
|
|
684
|
-
b"setWarpTransform:",
|
|
685
|
-
{
|
|
686
|
-
"full_signature": b"v@:{simd_float3x3=[3<3f>]}",
|
|
687
|
-
"arguments": {2: {"type": b"{simd_float3x3=[3<3f>]}"}},
|
|
688
|
-
},
|
|
689
|
-
)
|
|
690
642
|
r(
|
|
691
643
|
b"VNImageHomographicAlignmentObservation",
|
|
692
644
|
b"warpTransform",
|
|
@@ -718,7 +670,7 @@ try:
|
|
|
718
670
|
r(
|
|
719
671
|
b"VNObservation",
|
|
720
672
|
b"timeRange",
|
|
721
|
-
{"retval": {"type": b"{
|
|
673
|
+
{"retval": {"type": b"{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"}},
|
|
722
674
|
)
|
|
723
675
|
r(
|
|
724
676
|
b"VNPoint3D",
|
|
@@ -917,7 +869,7 @@ try:
|
|
|
917
869
|
r(
|
|
918
870
|
b"VNStatefulRequest",
|
|
919
871
|
b"frameAnalysisSpacing",
|
|
920
|
-
{"retval": {"type": b"{
|
|
872
|
+
{"retval": {"type": b"{CMTime=qiIq}"}},
|
|
921
873
|
)
|
|
922
874
|
r(
|
|
923
875
|
b"VNStatefulRequest",
|
|
@@ -942,7 +894,7 @@ try:
|
|
|
942
894
|
b"initWithFrameAnalysisSpacing:completionHandler:",
|
|
943
895
|
{
|
|
944
896
|
"arguments": {
|
|
945
|
-
2: {"type":
|
|
897
|
+
2: {"type": "{CMTime=qiIq}"},
|
|
946
898
|
3: {
|
|
947
899
|
"callable": {
|
|
948
900
|
"retval": {"type": b"v"},
|
|
@@ -956,11 +908,6 @@ try:
|
|
|
956
908
|
}
|
|
957
909
|
},
|
|
958
910
|
)
|
|
959
|
-
r(
|
|
960
|
-
b"VNStatefulRequest",
|
|
961
|
-
b"requestFrameAnalysisSpacing",
|
|
962
|
-
{"retval": {"type": b"{_CMTime=qiIq}"}},
|
|
963
|
-
)
|
|
964
911
|
r(
|
|
965
912
|
b"VNTargetedImageRequest",
|
|
966
913
|
b"initWithCompletionHandler:",
|
|
@@ -1463,7 +1410,7 @@ try:
|
|
|
1463
1410
|
{
|
|
1464
1411
|
"retval": {"type": b"Z"},
|
|
1465
1412
|
"arguments": {
|
|
1466
|
-
2: {"type": b"{
|
|
1413
|
+
2: {"type": b"{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"},
|
|
1467
1414
|
3: {"type_modifier": b"o"},
|
|
1468
1415
|
},
|
|
1469
1416
|
},
|
|
@@ -1474,7 +1421,7 @@ try:
|
|
|
1474
1421
|
{
|
|
1475
1422
|
"retval": {"type": b"Z"},
|
|
1476
1423
|
"arguments": {
|
|
1477
|
-
2: {"type": b"{
|
|
1424
|
+
2: {"type": b"{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"},
|
|
1478
1425
|
3: {"type_modifier": b"o"},
|
|
1479
1426
|
},
|
|
1480
1427
|
},
|
|
@@ -1484,9 +1431,6 @@ try:
|
|
|
1484
1431
|
b"removeRequest:error:",
|
|
1485
1432
|
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
1486
1433
|
)
|
|
1487
|
-
r(b"null", b"hasMinimumPrecision:forRecall:", {"retval": {"type": b"Z"}})
|
|
1488
|
-
r(b"null", b"hasMinimumRecall:forPrecision:", {"retval": {"type": b"Z"}})
|
|
1489
|
-
r(b"null", b"hasPrecisionRecallCurve", {"retval": {"type": b"Z"}})
|
|
1490
1434
|
finally:
|
|
1491
1435
|
objc._updatingMetadata(False)
|
|
1492
1436
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-Vision
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.0
|
|
4
4
|
Summary: Wrappers for the framework Vision on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -23,16 +23,18 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
27
29
|
Classifier: Programming Language :: Objective C
|
|
28
30
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
31
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
30
32
|
Requires-Python: >=3.9
|
|
31
33
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
32
|
-
Requires-Dist: pyobjc-core>=
|
|
33
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Quartz>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-CoreML>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=12.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.0
|
|
36
|
+
Requires-Dist: pyobjc-framework-Quartz>=12.0
|
|
37
|
+
Requires-Dist: pyobjc-framework-CoreML>=12.0
|
|
36
38
|
Dynamic: author
|
|
37
39
|
Dynamic: author-email
|
|
38
40
|
Dynamic: classifier
|
|
@@ -72,13 +72,5 @@ PyObjCTest/test_vnutils.py
|
|
|
72
72
|
PyObjCTest/test_vnvideoprocessor.py
|
|
73
73
|
metadata/Vision.fwinfo
|
|
74
74
|
metadata/metadata.ini
|
|
75
|
-
metadata/raw/arm64-
|
|
76
|
-
metadata/raw/
|
|
77
|
-
metadata/raw/arm64-14.5.fwinfo
|
|
78
|
-
metadata/raw/arm64-15.0.fwinfo
|
|
79
|
-
metadata/raw/x86_64-10.15.fwinfo
|
|
80
|
-
metadata/raw/x86_64-10.16.fwinfo
|
|
81
|
-
metadata/raw/x86_64-12.3.fwinfo
|
|
82
|
-
metadata/raw/x86_64-13.0.fwinfo
|
|
83
|
-
metadata/raw/x86_64-14.5.fwinfo
|
|
84
|
-
metadata/raw/x86_64-15.0.fwinfo
|
|
75
|
+
metadata/raw/arm64-26.0.fwinfo
|
|
76
|
+
metadata/raw/x86_64-26.0.fwinfo
|
|
@@ -41,7 +41,8 @@ static PyObject* _Nullable mod_VNNormalizedFaceBoundingBoxPointForLandmarkPoint(
|
|
|
41
41
|
"requires 4 arguments");
|
|
42
42
|
return NULL;
|
|
43
43
|
}
|
|
44
|
-
if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint)
|
|
44
|
+
if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint)
|
|
45
|
+
== -1) {
|
|
45
46
|
return NULL;
|
|
46
47
|
}
|
|
47
48
|
if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GET_ITEM(args, 1), &faceBoundingBox)
|
|
@@ -94,7 +95,8 @@ static PyObject* _Nullable mod_VNImagePointForFaceLandmarkPoint(PyObject* mod,
|
|
|
94
95
|
"Vision.VNImagePointForFaceLandmarkPoint requires 4 arguments");
|
|
95
96
|
return NULL;
|
|
96
97
|
}
|
|
97
|
-
if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint)
|
|
98
|
+
if (PyObjC_PythonToObjC("<2f>", PyTuple_GET_ITEM(args, 0), &faceLandmarkPoint)
|
|
99
|
+
== -1) {
|
|
98
100
|
return NULL;
|
|
99
101
|
}
|
|
100
102
|
if (PyObjC_PythonToObjC(@encode(CGRect), PyTuple_GET_ITEM(args, 1), &faceBoundingBox)
|
|
@@ -151,14 +153,16 @@ static PyMethodDef mod_methods[] = {
|
|
|
151
153
|
{0, 0, 0, 0} /* sentinel */
|
|
152
154
|
};
|
|
153
155
|
|
|
154
|
-
static int
|
|
156
|
+
static int
|
|
157
|
+
mod_exec_module(PyObject* m)
|
|
155
158
|
{
|
|
156
159
|
#if PyObjC_BUILD_RELEASE >= 1013
|
|
157
160
|
|
|
158
161
|
if (@available(macOS 10.13, *)) {
|
|
159
162
|
/* pass */
|
|
160
163
|
} else {
|
|
161
|
-
if (PyObject_DelAttrString(m, "VNNormalizedFaceBoundingBoxPointForLandmarkPoint")
|
|
164
|
+
if (PyObject_DelAttrString(m, "VNNormalizedFaceBoundingBoxPointForLandmarkPoint")
|
|
165
|
+
== -1) {
|
|
162
166
|
return -1;
|
|
163
167
|
}
|
|
164
168
|
if (PyObject_DelAttrString(m, "VNImagePointForFaceLandmarkPoint") == -1) {
|
|
@@ -171,44 +175,40 @@ static int mod_exec_module(PyObject* m)
|
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
static struct PyModuleDef_Slot mod_slots[] = {
|
|
174
|
-
{
|
|
175
|
-
.slot = Py_mod_exec,
|
|
176
|
-
.value = (void*)mod_exec_module
|
|
177
|
-
},
|
|
178
|
+
{.slot = Py_mod_exec, .value = (void*)mod_exec_module},
|
|
178
179
|
#if PY_VERSION_HEX >= 0x030c0000
|
|
179
180
|
{
|
|
180
|
-
.slot
|
|
181
|
+
.slot = Py_mod_multiple_interpreters,
|
|
181
182
|
.value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
|
|
182
183
|
},
|
|
183
184
|
#endif
|
|
184
185
|
#if PY_VERSION_HEX >= 0x030d0000
|
|
185
186
|
{
|
|
186
187
|
/* The code in this extension should be safe to use without the GIL */
|
|
187
|
-
.slot
|
|
188
|
+
.slot = Py_mod_gil,
|
|
188
189
|
.value = Py_MOD_GIL_NOT_USED,
|
|
189
190
|
},
|
|
190
191
|
#endif
|
|
191
|
-
{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
};
|
|
192
|
+
{/* Sentinel */
|
|
193
|
+
.slot = 0,
|
|
194
|
+
.value = 0}};
|
|
196
195
|
|
|
197
196
|
static struct PyModuleDef mod_module = {
|
|
198
|
-
.m_base
|
|
199
|
-
.m_name
|
|
200
|
-
.m_doc
|
|
201
|
-
.m_size
|
|
202
|
-
.m_methods
|
|
203
|
-
.m_slots
|
|
197
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
198
|
+
.m_name = "_Vision",
|
|
199
|
+
.m_doc = NULL,
|
|
200
|
+
.m_size = 0,
|
|
201
|
+
.m_methods = mod_methods,
|
|
202
|
+
.m_slots = mod_slots,
|
|
204
203
|
.m_traverse = NULL,
|
|
205
|
-
.m_clear
|
|
206
|
-
.m_free
|
|
204
|
+
.m_clear = NULL,
|
|
205
|
+
.m_free = NULL,
|
|
207
206
|
};
|
|
208
207
|
|
|
209
208
|
PyObject* PyInit__Vision(void);
|
|
210
209
|
|
|
211
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
210
|
+
PyObject* __attribute__((__visibility__("default")))
|
|
211
|
+
PyInit__Vision(void)
|
|
212
212
|
{
|
|
213
213
|
return PyModuleDef_Init(&mod_module);
|
|
214
214
|
}
|
|
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
53
53
|
/*
|
|
54
54
|
* Only add items to the end of this list!
|
|
55
55
|
*/
|
|
56
|
+
|
|
56
57
|
typedef int(RegisterMethodMappingFunctionType)(
|
|
57
|
-
Class, SEL,
|
|
58
|
+
Class _Nullable, SEL,
|
|
58
59
|
PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
|
|
59
60
|
PyObject* _Nonnull const* _Nonnull, size_t),
|
|
60
61
|
IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
|
|
@@ -83,7 +84,8 @@ struct pyobjc_api {
|
|
|
83
84
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
85
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
86
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
87
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
88
|
+
__attribute__((__noreturn__));
|
|
87
89
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
90
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
91
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -113,7 +115,8 @@ struct pyobjc_api {
|
|
|
113
115
|
int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
|
|
114
116
|
PyObject* _Nullable kwnames);
|
|
115
117
|
|
|
116
|
-
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
118
|
+
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
119
|
+
const char*);
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
#ifndef PYOBJC_BUILD
|
|
@@ -123,34 +123,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
123
123
|
} while (0)
|
|
124
124
|
#endif
|
|
125
125
|
|
|
126
|
-
#if PY_VERSION_HEX < 0x03090000
|
|
127
|
-
|
|
128
|
-
/* For use on Python 3.8 and earlier. PyObjC doesn't use the
|
|
129
|
-
* "flag" bit internally.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
#ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
|
|
133
|
-
#define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
|
|
134
|
-
#endif
|
|
135
|
-
|
|
136
|
-
#define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
|
|
137
|
-
|
|
138
|
-
#ifdef OBJC_VERSION
|
|
139
|
-
/* Don't use PyObject prefixed symbols in our binaries */
|
|
140
|
-
#define PyObject_Vectorcall PyObjC_Vectorcall
|
|
141
|
-
#define PyObject_VectorcallMethod PyObjC_VectorcallMethod
|
|
142
|
-
|
|
143
|
-
extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
|
|
144
|
-
PyObject* _Nonnull const* _Nonnull args,
|
|
145
|
-
size_t nargsf,
|
|
146
|
-
PyObject* _Nullable kwnames);
|
|
147
|
-
extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
148
|
-
PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
|
|
149
|
-
PyObject* _Nullable kwnames);
|
|
150
|
-
#endif
|
|
151
|
-
|
|
152
|
-
#endif /* Python < 3.9 */
|
|
153
|
-
|
|
154
126
|
/* Use CLINIC_SEP between the prototype and
|
|
155
127
|
* description in doc strings, to get clean
|
|
156
128
|
* docstrings.
|
|
@@ -198,7 +170,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
|
|
|
198
170
|
static inline PyObject*
|
|
199
171
|
_PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
200
172
|
{
|
|
201
|
-
|
|
173
|
+
/* The protocol for tuples is that they are full initialized
|
|
174
|
+
* before handing them over to other code.
|
|
175
|
+
*/
|
|
176
|
+
return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
|
|
202
177
|
}
|
|
203
178
|
#undef PyTuple_GET_ITEM
|
|
204
179
|
#define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
|
|
@@ -242,13 +217,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
242
217
|
|
|
243
218
|
#if PY_VERSION_HEX < 0x030a0000
|
|
244
219
|
|
|
245
|
-
static inline PyObject*
|
|
220
|
+
static inline PyObject*
|
|
221
|
+
Py_NewRef(PyObject* o)
|
|
246
222
|
{
|
|
247
223
|
Py_INCREF(o);
|
|
248
224
|
return o;
|
|
249
225
|
}
|
|
250
226
|
|
|
251
|
-
static inline PyObject*
|
|
227
|
+
static inline PyObject*
|
|
228
|
+
Py_XNewRef(PyObject* o)
|
|
252
229
|
{
|
|
253
230
|
Py_XINCREF(o);
|
|
254
231
|
return o;
|
|
@@ -257,11 +234,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
257
234
|
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
235
|
|
|
259
236
|
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
-
#define Py_BEGIN_CRITICAL_SECTION(value)
|
|
237
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) \
|
|
238
|
+
{ \
|
|
239
|
+
(void)(value);
|
|
261
240
|
#define Py_END_CRITICAL_SECTION() }
|
|
262
241
|
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
242
|
|
|
264
|
-
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2)
|
|
243
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
|
|
244
|
+
{ \
|
|
245
|
+
(void)(value1); \
|
|
246
|
+
(void)(value2);
|
|
265
247
|
#define Py_END_CRITICAL_SECTION2() }
|
|
266
248
|
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
249
|
|
|
@@ -282,7 +264,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
282
264
|
#endif
|
|
283
265
|
|
|
284
266
|
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
-
static inline int
|
|
267
|
+
static inline int
|
|
268
|
+
PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
|
|
286
269
|
{
|
|
287
270
|
*result = PyDict_GetItemWithError(p, key);
|
|
288
271
|
if (*result == NULL) {
|
|
@@ -306,7 +289,8 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
|
306
289
|
#endif
|
|
307
290
|
|
|
308
291
|
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
-
static inline PyObject*
|
|
292
|
+
static inline PyObject*
|
|
293
|
+
PyType_GetDict(PyTypeObject* type)
|
|
310
294
|
{
|
|
311
295
|
PyObject* result = type->tp_dict;
|
|
312
296
|
Py_INCREF(result);
|
|
@@ -319,12 +303,13 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
|
319
303
|
* These are available in 3.14 and above, the definitions below
|
|
320
304
|
* mirror the private implementation in 3.13.
|
|
321
305
|
*/
|
|
322
|
-
static inline int
|
|
306
|
+
static inline int
|
|
307
|
+
PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
|
|
323
308
|
{
|
|
324
309
|
#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);
|
|
310
|
+
return (_Py_IsOwnedByCurrentThread(ob)
|
|
311
|
+
&& _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
|
|
312
|
+
&& _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
|
|
328
313
|
#else
|
|
329
314
|
return Py_REFCNT(ob) == 1;
|
|
330
315
|
#endif
|
|
@@ -340,8 +325,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
|
|
|
340
325
|
// Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
|
|
341
326
|
return;
|
|
342
327
|
}
|
|
343
|
-
if (_Py_atomic_compare_exchange_ssize(
|
|
344
|
-
|
|
328
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
329
|
+
shared | _Py_REF_MAYBE_WEAKREF)) {
|
|
345
330
|
return;
|
|
346
331
|
}
|
|
347
332
|
}
|
|
@@ -350,7 +335,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
|
|
|
350
335
|
|
|
351
336
|
#ifdef Py_GIL_DISABLED
|
|
352
337
|
static inline int
|
|
353
|
-
_Py_TryIncrefFast(PyObject
|
|
338
|
+
_Py_TryIncrefFast(PyObject* op)
|
|
339
|
+
{
|
|
354
340
|
uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
|
|
355
341
|
local += 1;
|
|
356
342
|
if (local == 0) {
|
|
@@ -369,7 +355,7 @@ _Py_TryIncrefFast(PyObject *op) {
|
|
|
369
355
|
}
|
|
370
356
|
|
|
371
357
|
static inline int
|
|
372
|
-
_Py_TryIncRefShared(PyObject
|
|
358
|
+
_Py_TryIncRefShared(PyObject* op)
|
|
373
359
|
{
|
|
374
360
|
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
375
361
|
for (;;) {
|
|
@@ -379,10 +365,8 @@ _Py_TryIncRefShared(PyObject *op)
|
|
|
379
365
|
return 0;
|
|
380
366
|
}
|
|
381
367
|
|
|
382
|
-
if (_Py_atomic_compare_exchange_ssize(
|
|
383
|
-
|
|
384
|
-
&shared,
|
|
385
|
-
shared + (1 << _Py_REF_SHARED_SHIFT))) {
|
|
368
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
369
|
+
shared + (1 << _Py_REF_SHARED_SHIFT))) {
|
|
386
370
|
#ifdef Py_REF_DEBUG
|
|
387
371
|
_Py_IncRefTotal(_PyThreadState_GET());
|
|
388
372
|
#endif
|
|
@@ -394,7 +378,7 @@ _Py_TryIncRefShared(PyObject *op)
|
|
|
394
378
|
#endif
|
|
395
379
|
|
|
396
380
|
static inline int
|
|
397
|
-
PyUnstable_TryIncRef(PyObject
|
|
381
|
+
PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
|
|
398
382
|
{
|
|
399
383
|
#ifdef Py_GIL_DISABLED
|
|
400
384
|
return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-Vision
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.0
|
|
4
4
|
Summary: Wrappers for the framework Vision on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -23,16 +23,18 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
27
29
|
Classifier: Programming Language :: Objective C
|
|
28
30
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
31
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
30
32
|
Requires-Python: >=3.9
|
|
31
33
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
32
|
-
Requires-Dist: pyobjc-core>=
|
|
33
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Quartz>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-CoreML>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=12.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.0
|
|
36
|
+
Requires-Dist: pyobjc-framework-Quartz>=12.0
|
|
37
|
+
Requires-Dist: pyobjc-framework-CoreML>=12.0
|
|
36
38
|
Dynamic: author
|
|
37
39
|
Dynamic: author-email
|
|
38
40
|
Dynamic: classifier
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
import Vision
|
|
3
|
+
import CoreMedia
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
class TestVNDetectTrajectoriesRequest(TestCase):
|
|
@@ -19,3 +20,20 @@ class TestVNDetectTrajectoriesRequest(TestCase):
|
|
|
19
20
|
2,
|
|
20
21
|
b"v@@",
|
|
21
22
|
)
|
|
23
|
+
|
|
24
|
+
@min_os_level("12.0")
|
|
25
|
+
def test_methods12_0(self):
|
|
26
|
+
self.assertResultHasType(
|
|
27
|
+
Vision.VNDetectTrajectoriesRequest.targetFrameTime,
|
|
28
|
+
CoreMedia.CMTime.__typestr__,
|
|
29
|
+
)
|
|
30
|
+
self.assertArgHasType(
|
|
31
|
+
Vision.VNDetectTrajectoriesRequest.setTargetFrameTime_,
|
|
32
|
+
0,
|
|
33
|
+
CoreMedia.CMTime.__typestr__,
|
|
34
|
+
)
|
|
35
|
+
self.assertArgHasType(
|
|
36
|
+
Vision.VNDetectTrajectoriesRequest.initWithFrameAnalysisSpacing_completionHandler_,
|
|
37
|
+
0,
|
|
38
|
+
CoreMedia.CMTime.__typestr__,
|
|
39
|
+
)
|