google-mlkit

ValueError: Expect x to be a non-empty array or dataset (Tensor Flow lite model maker on Collab)

半腔热情 提交于 2020-08-06 05:03:13
问题 I am following this tutorial on creating a custom Model using TensorFlow lite Model Maker on Collab. import pathlib path = pathlib.Path('/content/employee_pics') count = len(list(path.glob('*/*.jpg'))) count data = ImageClassifierDataLoader.from_folder(path) train_data, test_data = data.split(0.5) I have an issue with step 2: model = image_classifier.create(train_data) I get an error: ValueError: Expect x to be a non-empty array or dataset. Am I doing something wrong? The data set provided in

MLKit Object Detection isn't not detecting objects

喜夏-厌秋 提交于 2020-06-29 03:53:46
问题 MLKit by Google (without Firebase) is new, so I'm having trouble. I'm trying to follow this example here: https://developers.google.com/ml-kit/vision/object-detection/custom-models/android The app opens fine, & the camera works (As in, I can see things). But the actual detection doesn't seem to work. Am I missing part of the code to actually detect the object? Or is it a issue with the implementation of CameraX or ImageInput? import androidx.annotation.NonNull; import androidx.appcompat.app

How to draw labels on a screen: MLKit Object Detection

被刻印的时光 ゝ 提交于 2020-06-29 03:19:29
问题 This is an extension of a question I asked before. I'm using the recent version of MLKit Object Detection (which doesn't require firebase). I'm using a custom model, and CameraX, to detect objects and label them/get info. Right now, with the code I have, it can detect that objects are present in the area, but: No labels or bounding boxes are showing up; It is not detecting more than one object at a time; Once it detects an object, the app won't "change" (i.e when I move the phone, to try to

How to draw labels on a screen: MLKit Object Detection

孤街浪徒 提交于 2020-06-29 03:19:05
问题 This is an extension of a question I asked before. I'm using the recent version of MLKit Object Detection (which doesn't require firebase). I'm using a custom model, and CameraX, to detect objects and label them/get info. Right now, with the code I have, it can detect that objects are present in the area, but: No labels or bounding boxes are showing up; It is not detecting more than one object at a time; Once it detects an object, the app won't "change" (i.e when I move the phone, to try to

Ensuring Image Data is correctly oriented on iOS App in Swift 5

99封情书 提交于 2020-06-17 13:14:06
问题 I am using Firebase ML Kit for Face Detection, and in the documentation it says: If necessary, rotate the image so that its imageOrientation property is .up. Create a VisionImage object using the correctly-rotated UIImage. Do not specify any rotation metadata—the default value, .topLeft, must be used. I am running into the problem where photos I upload from the internet tend to work properly but when I take photos from my camera there seems to be issues. I have a feeling it is due to the way