Can opencv be used with apple’s coremL (Neural Engine)?

99
March 28, 2022, at 4:20 PM

I have a simple opencv script in python running on an M1 Mac to detect objects with. Is it possible to use Apple’s coreML to accelerate OpenCV? I've installed TensorFlow-metal (using https://developer.apple.com/metal/tensorflow-plugin/)and I'm using TensorFlow through OpenCV. Will OpenCV use this metal version of TensorFlow or is it just building the net defined in TensorFlow and using its own framework? Is there a way to get OpenCV to use the neural engine on an M1 Mac or to verify whether it is using it or not?

READ ALSO
Is there a way to return one specific table from a webpage that has multiple tables in Python?

Is there a way to return one specific table from a webpage that has multiple tables in Python?

I'm having trouble returning one particular table (the one titled 'BRN Substantial Shareholders') from this webpage - https://wwwintelligentinvestor

87
Replace other values with np.nan

Replace other values with np.nan

I have a pandas data frame:

86
Python, calculator class definition

Python, calculator class definition

I'm struggling with a practice problem below where I'm confused as to what the definitions would look like

98
python pydantic How to choose class based on another value

python pydantic How to choose class based on another value

some of example of schemaI have different constraints based on type

106