Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

dependencies error #3

Open
josephh24 opened this issue Dec 8, 2018 · 15 comments
Open

dependencies error #3

josephh24 opened this issue Dec 8, 2018 · 15 comments

Comments

@josephh24
Copy link

Git error. Command: git rev-list --max-count=1 demo_all
fatal: ambiguous argument 'demo_all': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

@rai2270
Copy link

rai2270 commented Dec 8, 2018

same issue as @josephh24 noticed.
Tried to download your branch of firebase, but can't find FirebaseVisionImage.fromBytes(...

@rai2270
Copy link

rai2270 commented Dec 8, 2018

ok, so this one seems good: just need to change from demo_all -> mlkit_android_2 and demo_all -> camera_android_2 :

firebase_ml_vision:
git:
url: git://github.com/bparrishMines/plugins.git
path: packages/firebase_ml_vision
ref: mlkit_android_2

camera:
git:
url: git://github.com/bparrishMines/plugins.git
path: packages/camera
ref: camera_android_2

@rai2270
Copy link

rai2270 commented Dec 8, 2018

After adjust pubspec.yaml above. Some tiny compile issue:
Compiler message:
lib/face_expression_reader.dart:44:35: Error: The argument type '(dart.typed_data::Uint8List) → dart.core::Null' can't be assigned to the parameter type '(#lib1::CameraImage) → void'.
Try changing the type of the parameter, or casting the argument to '(#lib1::CameraImage) → void'.
_controller.startByteStream((Uint8List bytes) {

@josephh24
Copy link
Author

i see the error but i'm not sure how to fix it

@rai2270
Copy link

rai2270 commented Dec 8, 2018

Maybe this:

_controller = new CameraController(frontCamera, ResolutionPreset.medium);
_controller.initialize().then((_) {
  _controller.startByteStream((CameraImage image) {

not sure yet how you convert image to Uint8List for _runDetection

@josephh24
Copy link
Author

it works the only thing is that the interface is just white

@rai2270
Copy link

rai2270 commented Dec 8, 2018

CameraImage -> Uint8List bytes -> _runDetection : you are able to convert the CameraImage to bytes?

CameraImage has planes, and each got Uint8List bytes , but not sure how that conversion supposed to happened.

@josephh24
Copy link
Author

It does not work, it does not change the state of the emoji, I think something is wrong

@rai2270
Copy link

rai2270 commented Dec 8, 2018

_controller = new CameraController(frontCamera, ResolutionPreset.medium);
_controller.initialize().then((_) {
  _controller.startByteStream((CameraImage image) {
    if (!_isDetecting) {
      _isDetecting = true;
      _runDetection(image.planes.single.bytes);
    }
  });
});

I tried the above. not working , but still debugging :)

@josephh24
Copy link
Author

i can't make it work, but it is debugging

@rai2270
Copy link

rai2270 commented Dec 9, 2018

there is exception coming from firebase making this : _isDetecting = false to never execute

@rai2270
Copy link

rai2270 commented Dec 9, 2018

@josephh24 I've put the reason why it's not building/running in the open issue. hopefully we'll get the conversion from CameraImage to bytes and then the demo can work.

@josephh24
Copy link
Author

I hope someone finds a way to fix it

@rai2270
Copy link

rai2270 commented Dec 11, 2018

@josephh24 see issue #4. issue resolved.

@josephh24
Copy link
Author

@rai2270 thank you it is working :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants