Posts

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 

Alexa to the help

Image
I wanted to help my daughter with the maths multiplication tables, but it gets painful when you repeat it again & again :( I was thinking of creating something with Bot Framework or Cortana skills, but those does not seems to be fit for purpose due to my previous experiences. Then comes Amazon Echo, and Alexa seems more promising. Decided to create an Alexa skill so that daughter can invoke it and ask for the maths table by herself. First thing we need is Amazon Alexa skill developer account. Head to below url & register for your account. https://developer.amazon.com/ Once registered, we can create a new Alexa skill. Creating skill is a step by step process. 1. Skill Information In skill info, we need to select Languages to support. Also the Name & Invocation Name for the skill. 2. Interaction Model Next is the Interaction model. Here we have to configure our intent & sample utterances. These are the sentences which we are suppose to s...

Fastest way to create a Question/Answer bot using QnA Maker & Microsoft Bot Framework

Image
Microsoft has provided an easy to use QnA Maker service which gives ability to build, train and publish a simple question and answer bot based on FAQ URLs, structured documents or editorial content in minutes. Just register on below url. https://qnamaker.ai/ Once registered it gives option to create new service. After creating the new service, it gives option to input a FAQ page url or upload FAQ files (formats - .tsv, .pdf, .doc, .docx, .xlsx) or start with blank data & enter your own questions and answers. For the article I choose FAQ url, once the url is entered, service scans the content from the page & creates the Knowledge Base. The knowledge base can be trained & saved and can be published to be used in the bot or any other application. Service also provide a very handy interface to Test the request response. Just use the "Test" option on the left hand side. Now as our QnA service is published, we can go to Azure portal & cre...

How to build a simple conversation bot with Microsoft Bot Framework

Image
Lets build a simple conversation bot who will decode our emotions & will try to cheer us. Basic Idea is to get, how the user is feeling now, then pass the feelings to Cognitive services & get the sentiment score. If the sentiment score is high or neutral then pop a joke to the user. If the sentiment score is low, try to show a motivational message. Hope everyone has the environment setup for the bot app, else just check my earlier blog post First we need to create a new bot project. Choose Bot Application Give it a name & lets start exploring. The project will create a controller - MessagesController.cs which is the starting point for our bot. Controller consists of a task Post which handles the messages received by the bot. It should look like below. I am just trying to pass the flow to a RootDialog which is bot framework dialog. The RootDialog looks like this RootDialog welcomes the user & asks about how he/she is feeling now. Those fee...

How to Get started with Microsoft Bot Framework

Bots are the talk of the town now a days and Microsoft Bot Framework is one of the leading Bot framework. After creating few bot with help from the internet, thinking of collating some of the good resources to start creating bots using Microsoft Bot Framework. So here are few really good resources to start with. 1. First thing to check is https://dev.botframework.com/ This is the site one need to visit for registering the account & creating new bots. It also have lots of resources on how to create one. 2. Once the account is setup, have a look at the youtube channel of James Mann. The videos are very informative & helps build the different stuff with bots. https://www.youtube.com/watch?v=zLcFx6qcMQE&list=PLgF-CyaX1p3FE55OTRNH-kOb16zqeBZCo 3. You will need to download the dev environment and you will need VS 2015 or VS 2017. VS for Mac currently not supported. https://www.visualstudio.com/vs/ 4. Once the dev environment is setup, you will need the d...

How to get Sentiment Score from Microsoft Text Analytics API

Microsoft Cognitive services provides lots of APIs. One that caught my attention recently is Text Analytics API. Below is a snippet for using the Text Analytics features to find the Sentiment score of the user input. There are endless possibilities to use it. Happy Coding Parshuram

Export MS Access report to Excel..Font Problem

I was working on a small assignment on access and trying to export an Access report to Excel. Everything worked when until i opened the exported Excel, to my surprise font colour of all the lines in the excel was very light. I tried to change the field color, font weight and all possible properties, nothing seems to be working. But finally i got the solution. The trick was 1. Make the back style of the the fields to "Transparent" which was default "Normal" 2. Make the Fore Color as Automatic black from the eclipse next to the property. Spent few hours trying to make things work so sharing it for the people. Happy Coding, Parshuram

Control State in ASP.Net 2.0

After long gap & some poem posting i have finally decided to get back to business. So while surfing the net for Control State in ASP .Net i have come across some good articles for Control state. Control state is a new construct within ASP.NET 2.0, and it is really nothing more than view state; however, it is view state with a significant advantage; that advantage is that other developers using your control cannot disable control state as they can view state. Control state survives even if the developer using the custom control disables view state. The advantage is pretty obvious; in prior versions of Visual Studio, the consumer of a custom control could disable view state; if the control relied on view state to maintain state information, the control would cease to function or at least misbehave. Creating control state removed the ability of a control consumer to disable view state based state management within the control; naturally, the control designer may still opt to not use e...

Good One

Really Good Marathi Poem....

First Post after joining SYSTIME

After a very hard days i joined SYSTIME & enjoying new challenges here. Working good projects & with complicated names...:)

work done on 28th Sep 05

Installed new site. Developed create & view page of Rental Assistance service.

First Post

This is the First Post on the Blog.