Face-Recognition-Flutter icon indicating copy to clipboard operation
Face-Recognition-Flutter copied to clipboard

Need help to implement the system.

Open nasirdev74 opened this issue 4 years ago • 2 comments

Hi, one of our project need face recognition. I'm trying all the resources. This repository seems to complete that. But I couldn't run the app on linux & windows. I followed all the instructions, still.... I desperately request you @Rajatkalsotra to look after it. We need some solution as soon as possible.

../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/delegates/gpu_delegate.dart:58:10: Error: The getter 'addressOf' isn't defined for the class 'TfLiteGpuDelegateOptionsV2'.

  • 'TfLiteGpuDelegateOptionsV2' is from 'package:tflite_flutter/src/bindings/types.dart' ('../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. .addressOf); ^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/delegates/metal_delegate.dart:42:70: Error: The getter 'addressOf' isn't defined for the class 'TFLGpuDelegateOptions'.
  • 'TFLGpuDelegateOptions' is from 'package:tflite_flutter/src/bindings/types.dart' ('../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. TFLGpuDelegateOptions.allocate(allowPrecisionLoss, waitType).addressOf); ^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'.
  • 'Utf8' is from 'package:ffi/src/utf8.dart' ('../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String toString() => fromUtf8(addressOf); ^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs and unions are undefined behavior. class Utf16 extends Struct { ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs and unions are undefined behavior. class Utf8 extends Struct { ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart:18:7: Error: Struct 'TfLiteDelegate' is empty. Empty structs and unions are undefined behavior. class TfLiteDelegate extends Struct {} ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart:15:7: Error: Struct 'TfLiteTensor' is empty. Empty structs and unions are undefined behavior. class TfLiteTensor extends Struct {} ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart:12:7: Error: Struct 'TfLiteModel' is empty. Empty structs and unions are undefined behavior. class TfLiteModel extends Struct {} ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart:9:7: Error: Struct 'TfLiteInterpreterOptions' is empty. Empty structs and unions are undefined behavior. class TfLiteInterpreterOptions extends Struct {} ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/tflite_flutter-0.4.2/lib/src/bindings/types.dart:6:7: Error: Struct 'TfLiteInterpreter' is empty. Empty structs and unions are undefined behavior. class TfLiteInterpreter extends Struct {} ^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'. final int totalSize = count * sizeOf<T>(); ^ ********************************************************* WARNING: This version of firebase_ml_vision will break your Android build if it or its dependencies aren't compatible with AndroidX. See https://goo.gl/CP92wY for more information on the problem and how to fix it. This warning prints for all Android build failures. The real root cause of the error may be unrelated. *********************************************************

nasirdev74 avatar Oct 16 '21 12:10 nasirdev74

please update firebase_ml_vision: ^0.6.0 to firebase_ml_vision: ^0.12.0+3

saadsafda avatar Nov 23 '21 08:11 saadsafda

firebase ml vision is depreceated, migrated to ml kit https://github.com/rjvysakh/Face-Recognition-Flutter

rjvysakh avatar Nov 24 '21 07:11 rjvysakh