Posts

Showing posts from 2018

Custom object detection with Customvision.ai and using trained model on Android device

Image
Computer Vision from the Cognitive service is the way to find meaning in the image, but what to do when we have to find our own custom object? How to create our own model to find our custom object? If you are looking for a simplest way, then Microsoft customvision.ai is the one to look for. Just head over to below link & register yourself. https://customvision.ai/ The Custom Vision Service is an Azure Cognitive Service that lets you build custom image classifiers. It makes it easy and fast to build, deploy, and improve an image classifier. Once you are registered with custom vision, you can create 2 projects for free. Create a new project. Use "Classification" as Project Type, "MultiClass (Single tag per image)" as Classification type (I am using images with only single object in it) and "General (Compact)" as Domain for leaner model for Mobile device use. Refer below image for reference. Now upload the images & provide a t...

Calling Lambda Function from another Lambda Function synchronously - Node.js

Image
AWS Lambda functions are very useful when you work with Alexa or SageMaker or for any serverless applications. But if you have multiple Lambdas & wanted to call one from another, how to do it? Lets find out. AWS sdk provides a way to invoke Lambda, so we first need to import AWS sdk. Here region is the region where the lambda to call resides. Now lets add a function to call our second lambda Here Function name is the name of function to call, InvocationType is RequestResponse for synchronous call and Payload is the data which we need to send. We now have sdk & function ready, lets call the lambda now, This will successfully return the result. One important point is, the Role which the calling Lambda function use, must have InvokeAsync & invokeFunction rights. Go to IAM dashboard & add these Lambda actions. Hope this helps. Happy Coding, Parshuram