xamarin / GooglePlayServicesComponents

Other
313 stars 145 forks source link

ImageProcessor.Builder.Build() method is missing from TensorFlow.Lite.Support library #754

Open v-hogood opened 1 year ago

matmork commented 11 months ago

Try this

var imageProcessorBuilder = new ImageProcessor.Builder();

var imageProcessor = GetObject<ImageProcessor>
(imageProcessorBuilder.JniPeerMembers.InstanceMethods.InvokeVirtualObjectMethod("build.()Lorg/tensorflow/lite/support/common/SequentialProcessor;", imageProcessorBuilder, null).Handle, JniHandleOwnership.TransferLocalRef);
wollac11 commented 7 months ago

This is still a problem even with the very latest versions and it seems to affect not just the ImageProccessor.Builder but other Builders too (like TensorProcessor.Builder)