When try train my face in recogTest, the screen show me this

Recognition available, not activated.
(recogTest) [M]->app(msg) { type: ‘app-message’, eventName: ‘train’ }

(recogTest) [M]->app(msg) { type: ‘app-message’, eventName: ‘train’ }
[M]->app(msg) { type: ‘app-message’, eventName: ‘train’ }

(recogTest) training started>>>>> { type: ‘app-message’, eventName: ‘train’ }

(recogTest) service> { engine: ‘recognition’, type: ‘face’ }
matrix.service:: recognition : recognition > face

(recogTest) setup service listener
[M]->app(msg) { type: ‘app-message’, eventName: ‘train’ }

Saved Tags: [ ‘test’ ]
hb: sen> [] svc> []
hb: sen> [] svc> []
Trained: 1
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 2
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 3
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 4
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 5
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 6
(recogTest) trained! { type: ‘app-message’, eventName: ‘train’ }

Trained: 7
Uncaught exception: Error: Illegal value for feature_descriptorsvalue element of type message: function (object expected)
at Error (native)
at fail (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1817:23)
at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1913:25)
at T.ProtoBuf.Reflect.FieldPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:3480:43)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2493:59)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2483:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2411:34)
at serialize (/home/pi/matrix-os/node_modules/grpc/src/node/src/common.js:87:23)
at Client.makeUnaryRequest [as storeFeatureDescriptors] (/home/pi/matrix-os/node_modules/grpc/src/node/src/client.js:395:19)
at /home/pi/matrix-os/lib/device/drivers/recognition.js:309:34 Error: Illegal value for feature_descriptorsvalue element of type message: function (object expected)
at Error (native)
at fail (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1817:23)
at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1913:25)
at T.ProtoBuf.Reflect.FieldPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:3480:43)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2493:59)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2483:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2411:34)
at serialize (/home/pi/matrix-os/node_modules/grpc/src/node/src/common.js:87:23)
at Client.makeUnaryRequest [as storeFeatureDescriptors] (/home/pi/matrix-os/node_modules/grpc/src/node/src/client.js:395:19)
at /home/pi/matrix-os/lib/device/drivers/recognition.js:309:34
UNKNOWN ERROR! Error: Illegal value for feature_descriptorsvalue element of type message: function (object expected)
at Error (native)
at fail (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1817:23)
at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:1913:25)
at T.ProtoBuf.Reflect.FieldPrototype.verifyValue (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:3480:43)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2493:59)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2483:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2411:34)
at serialize (/home/pi/matrix-os/node_modules/grpc/src/node/src/common.js:87:23)
at Client.makeUnaryRequest [as storeFeatureDescriptors] (/home/pi/matrix-os/node_modules/grpc/src/node/src/client.js:395:19)
at /home/pi/matrix-os/lib/device/drivers/recognition.js:309:34
Unable to clean, exitting…
pi@raspberrypi:~/matrix-os$

Hi @vincetrujillo. What MOS version are you running? When this error happens? When trying to recognize or training events are triggered?

hi @lucas
When I try to recognize or when I try to train, with either of 2 ways

Please confirm you are using the latest matrix-os software, should be 0.13

yes, I use matrix-os v.0.13.0

I’m seeing the same with v0.14.1.

Another question, after “matrix trigger train”, should there be another command to specify a name to associate with the training data?

Hi guys, for now this is fixed on dev branch, we gonna merge it to master soon on our next release, but for now you can see it on dev branch. Sorry it take so long to give it a proper answer.

@TheOtherNeo the matrix trigger command triggers an event. If you look at recogTest source code here https://github.com/matrix-io/matrix-srcjs-apps
you gonna see it matrix.on('train' listening to the train event. On this function a little below there will be matrix.service('recognition').train('test').then(function(d) { thats the tag associated to the data.
As you can see it should show it this Saved Tags: [ 'test' ] when face is trained.