Contacts Photos in NAV as Cognitive Service

I’ve just wrote a post about Image Analyzer in NAV as Cognitive Service and recognizing attributes for Item, but now I’ll write about second part of using cognitive services in NAV and D365 for Financials. Now I’ll show you how it works with people photos. This feature works on the Contact Card.

When you create new contact and upload contact’s photo, you will notice notification that you can see result of the image analysis on the Profile Questionnaire Fast tab.

csc1.PNG

I tried it with one of my photos and you can see result. System recognized my gender, but ages… 😊 System thinks I am 50 (just for the record, I’m 45 😊). I tried with a few different photos and unfortunately, system found my ages between 48 and 51. I don’t know if this is problem with system or with me 😊.

csc2

OK, I tried with some other people and for example, my 25 years old sun has mostly 29, based on Image Analyzer (gender was OK again). My wife is female (thanks god 😊) and 7-8 years younger…

OK, I can conclude that gender recognition is 100% correct, but with ages – so, so. If we can accept 5-6 year more or less, it is OK. But mostly, we can use this age recognizer just as some nice funny reminder. And yes, I’ve tried with picture of my dog 😊… system took a time, but it could find anything (no gender, no ages 😊).

And, just not to forget… if you already have some photos of your contacts, you can run action Analyze Picture from Action tab every time when you need it.

csc3

And if you want to know how it added technically to currently D365 BE, you can go to Extension Management and recognize Image Analyzer App. That means, this is made as an Extension and it can give you some new ideas how you can create maybe something similar.

imageanalyzer.PNG

And of course, I hope we will have this Extension on Dynamics NAV installation DVD.

Advertisements

Image Analyzer in NAV as Cognitive Service

It really sounds amazing. But if you were been at Microsoft Ignite and attended NAV/D365FOBE sessions, you already seen this service as something what we will have in the future. When I say future, I think on the future NAV version, but if we speak about D365 for Financials, you can test in now.

Now, just small introduction how it works. I’ll show this feature on Items and you will see it works fine. When you run Item Card page, you will see Analyze Picture on a Actions tab as on the following picture.

ml1

When you start this action for the first time, you will get similar notifications as on the following screen and you just need to enable it (of course) if you want to use:

ml2

Then, system will lead through enabling wizard. First you will see a small description about how system uses the Computer Vision API from Microsoft Cognitive Service, where you can find links with more information bout API and services… You just need to click on Next, then confirm that you understand terms of conditions and on the end – Finish (if you want to analyze this current picture, you need to check one field).

ml345.PNG

And if you check this checkmark field, system will start with analyzing this picture. This is how it works for the first time. But you can click this Analyze Picture on each Item Card where you already have a picture.

But what if you don’t have picture? As soon as you finish with inserting picture, system will by default run this feature, and system will automatically analyze new picture. When system finish with analyzing of this picture, you will find what system recognize with confidence better then 80%.

ml6.PNG

But you can find all detected attributes if you click on a View All Attributes. All attributes with not so good confidence will be painted in red.

ml7

From this point, you can do a few things. First, you will see that system sometimes offer some specific option in Action to Perform. By default, system will mostly offer Ignore as option, but sometimes it is “Use as category” or “Use as attribute”. I think I don’t need to describe what it means :). Of course, you can change this option as you wish and it probably depends of what system recognized. You can also use “Add to the Item Description” for each of attributes and to create specific Item Description based on discovered attributes.

When you finish with everything you can confirm and than you need to finish with attributes. System will add as attributes and as category all attributes you decided.

ml9.1

Now, I’ve showed how you can start with this feature and how to test it. But I wanted to test it little bit more. OK, it worked mostly nice with images we have in Cronus database (not with all, because you need to have clear enough pictures).

But what we will get in some production environment? I made a few tests taking the pictures for the same items from catalogue (ideal pictures) and made from my own (natural pictures). You can find 5 tests in the following charts:

chart1

chart2

Now, you can compare these results. First, I didn’t expect good results from realistic photos, but I was really surprised. Sometimes, ideal pictures got better percentage on the most important attributes (but not so big difference), but system very often recognized better attributes on realistic photos and that means system can understand context of photos. And I got more attributes from natural photos, but of course I got a more noses in attributes list, and this is something I could expect because in real picture you don’t have only one thing on the photo.

But I can conclude that this feature is really powerful. Of course this is just first edition of this feature and this is not unmistakable tool, but it can be very helpful in the future.

Easy Deployment of the Latest NAV 2015 Version

Today, Microsoft has published new article about easy deployment of the latest version of Microsoft Dynamics NAV on their blog. It is important to know that Microsoft always publishes the latest cumulative update (currently it is NAV 2015 with cumulative update 7). You can use this image to test the newest NAV 2015 version or to use as efficiency demo environment on Microsoft Azure.

I have also wrote about this image in my older posts and I can remind you about them:

I will prepare few more articles about this image, very soon.

Multitenancy on NAV2015 Image on Microsoft Azure

When we speak about NAV on Azure, we expect Multitenancy as main strength. This is because, we expect an easy repeatability. Now, I will explain how to achieve this goal using NAV 2015 image deployed on Microsoft Azure.

We have excellent tolls, but we also have some rules. First, if you already run “O365 Integration pack” and “ClickOnce Deployment pack” scripts, unfortunately you cannot use this tools. You will get message similar as on following picture:

Multi0

You need to have a clean image deployment with running only “Initialize the VM pack” (must run it). Then, you need to run install.ps1 file from C:\DEMO\Multitenancy folder. You can find it, when you click on Enable Repeatability from NAV on Azure Welcome Screen. You can run this PowerShell file using PowerShell ISE.

When you open this script, you have to replace “vmadmin” in path with your user name on all places you can find. You can see one of the examples on following picture:

Multi0-1

You could also rename tenant ID, if you want it. It has name “Default”, by default.

After that, you can save and run your script. When script is finished, you will get URLs file with your new links with tenants.

Multi1

Now, you can use these new links to run your NAV 2015 with tenant. If you want to add new tenant or remove existed, you can do it running Multitenancy Demo Admin Shell from your VM desktop. You can also use it tool to add users to tenant or remove existed from tenant.

Multi2

Changing Credential Type at NAV2015 Image on Microsoft Azure

Now, I have to continue my previous article about new Microsoft Dynamics NAV 2015 image in Gallery Image on Microsoft Azure. I said that system is configured with Windows credential type. Now, I want to describe, how you can change it very easy with prepared scripts in DEMO folder.

On ‘Welcome to Microsoft Dynamics NAV on Microsoft Azure’ page, you can find Initialize the Virtual Machine link and with it, you can open DEMO\Initialize folder with PowerShell scripts.

azure1

When you open and run install.ps1 script, you will configure Microsoft Dynamics NAV 2015 with NavUserPassword credential type with all necessary configurations. Script is pretty smart and when you run it, it will ask you all necessary configuration questions:

  • NAV language
  • NAV administrator username
  • NAV administrator password
  • Your Cloud-Service name
  • Certificate Pfx File

System always give you possibility to choose default values or to change with your own. For Certificate Pfx File, system ask you to fill your certificate file or choose self-signed certificate. When script finish all necessary tasks, you will get as result all information (URLs and credentials).

ađazure2

Also, you will get all shortcuts (Windows, Web and Tablet Client, Development Environment, Administration and Development Shells…) on your desktop.

Thanks to Microsoft. I really like this script, because everything is so easy. I will continue with other features on this Microsoft Dynamics NAV 2015 Gallery Image in few following days.

New NAV2015 Image on Microsoft Azure

Finally, we got a new NAV release as image on Microsoft Azure Gallery. This is Microsoft Dynamics NAV 2015 CU3. I expected it earlier, because GP 2015 has already existed. But, OK this is not so late. blog-1 Now, all of you who want to test Microsoft Dynamics NAV 2015, can do it on Microsoft Azure VM. And, I am really happy, because it is with the last CU with great features. You can install it easy as you only need to follow instructions and wait few minutes for deploying. You can use Connect icon to make connection with new Azure VM. When you are signed on VM, you have all necessary links and you can run new NAV. You can run Windows, Web and Tablet clients or Development Environment. You also can run Administration and Development Shells. But I am little disappointed, because again as for NAV2013R2, we have configured Windows credential type, not NavUserPassword. With Windows credential type, you can use this NAV only on this VM. You cannot have really Azure experience. You also have only two endpoints, but you can add additional. blog-2 To make Azure experience with logging from your computer, you have to change credential type with new tools (I will post about it). But regardless of it, it image has excellent tools. You can find all important location for NAV on VM easy and you can add your language, as well and do other great things. Some of features are not installed by default, but you can easy find installation DVD (using link on home page) and finish it if you need. You also can find a lot of cool demos. In any case, thanks to Microsoft for this image. I will have a lot of information for few days, after I make a few demos.