Hello there,
I am using google computer vision pallete for image recognition. It outputs an array at msg.details.faceAnnotations depending upon the number of person in the picture. The objects in the array is equal to the number of person in the image.
Is there a way i can count the number of objects in the array because that will give me the count of the person in my image.
This is my code:
[{"id":"15396718.b8e8a9","type":"debug","z":"9b29502e.1d316","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"details.faceAnnotations","targetType":"msg","x":520,"y":660,"wires":[]},{"id":"d22dd99e.e963c8","type":"cloud-vision-api","z":"9b29502e.1d316","method":"annotate","annotate_body":"","annotate_bodyType":"str","annotate_type":"FACE_DETECTION","annotate_typeType":"str","annotate_keyType":"str","name":"photo","x":430,"y":560,"wires":[["15396718.b8e8a9"]]},{"id":"68dab558.2d454c","type":"file in","z":"9b29502e.1d316","name":"photo","filename":"F:\\Laptop old Windows\\@ img\\bHUPINDER\\IMG-20150208-WA0056.jpg","format":"","chunk":false,"sendError":false,"encoding":"none","x":250,"y":560,"wires":[["d22dd99e.e963c8"]]},{"id":"a6c76d6c.33764","type":"inject","z":"9b29502e.1d316","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":560,"wires":[["68dab558.2d454c"]]}]
the output i get is:
Cheers!!