{"id":130,"date":"2018-03-23T19:52:19","date_gmt":"2018-03-23T18:52:19","guid":{"rendered":"http:\/\/pro.timphaus.de\/?p=130"},"modified":"2019-04-19T12:41:15","modified_gmt":"2019-04-19T11:41:15","slug":"belong-to-my-office","status":"publish","type":"post","link":"https:\/\/dynamiacs.com\/?p=130","title":{"rendered":"Belong to my office"},"content":{"rendered":"\n<p>In this post i will Show you what you can do with the AI called Custom Vision and Microsoft flow. The original idea comes from two of the Microsoft Program Managers for Microsoft Flow:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Kent Weare<\/li><li>Jon Levesque<\/li><\/ul>\n\n\n\n<p>They made a very good video called \u201eHot Dog or No Hot Dog\u201c. You can watch it on YouTube:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=Q5Oe0Yjmu-k\">Microsoft Flow Tutorial &#8211; Cognitive Services &#8211; Hot Dog, Not Hot Dog<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"580\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_07-1024x580.jpg\" alt=\"\" class=\"wp-image-133\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_07-1024x580.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_07-300x170.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_07-768x435.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_07.jpg 1120w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After watching this video I was very interesting in knowing how this works. So go on to the journey. In my solution i\u2018m not searching for a Hot Dog but i\u2018m looking on my work bag which is called \u201emy office because all the belonging I need to work are in there.<\/p>\n\n\n\n<p>For this I take pictures on some things inside of my bag and uploaded them to the Custom Vision Website after I have created there a Project. During the uploading I have to tag my pictures. All of these pictures get two tags: myoffice and work.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_06-1024x705.jpg\" alt=\"\" class=\"wp-image-134\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_06-1024x705.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_06-300x206.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_06-768x528.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_06.jpg 1943w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Finished the upload I have to train the Custom Vision.<\/p>\n\n\n\n<p>Now we can build the flow to take pictures and send it to the Custom Vision API.<\/p>\n\n\n\n<p>Here you can see an overview of the complete Flow.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"797\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_00-1-1024x797.jpg\" alt=\"\" class=\"wp-image-136\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_00-1-1024x797.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_00-1-300x234.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_00-1-768x598.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_00-1.jpg 1746w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first step is to create a trigger to take a picture or upload a file. For this I\u2019ll use the trigger Button \u201emanually trigger a flow and insert there an input called file.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"302\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_01-1024x302.jpg\" alt=\"\" class=\"wp-image-137\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_01-1024x302.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_01-300x89.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_01-768x227.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_01.jpg 1057w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The next step is to set two variables to set some conditions later in the flow.<\/p>\n\n\n\n<p>The first variable is defined as an Boolean to get true\/false and the second variable is an float to get the \u201eTrefferwahtscheinlichkeit\u201c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"630\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_02-1024x630.jpg\" alt=\"\" class=\"wp-image-138\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_02-1024x630.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_02-300x184.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_02-768x472.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_02.jpg 1057w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now we have to connect to the vision api.<\/p>\n\n\n\n<p>The next action in flow is to predict tags from image. In this action you set an image content the file content from the trigger button Andrej Project ID. For this you have to copy your project id from the Custom Vision Project you have created.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_03-1024x333.jpg\" alt=\"\" class=\"wp-image-139\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_03-1024x333.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_03-300x98.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_03-768x250.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_03.jpg 1058w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The next step is a condition to process only the items with the selected tag for you process. Here f.e. it is \u201ework\u201c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"589\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_04-1024x589.jpg\" alt=\"\" class=\"wp-image-140\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_04-1024x589.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_04-300x173.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_04-768x442.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_04.jpg 1828w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The next step is in the Yes section and there you will set the float variable with the probability from the Custom vision.<\/p>\n\n\n\n<p>Next a condition will \u201epr\u00fcfen\u201c of the probability is above f.e. 80%.<\/p>\n\n\n\n<p>If yes the Boolean variable is set to yes and a notification is send through the flow app direct to me on my device.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_05-1024x678.jpg\" alt=\"\" class=\"wp-image-141\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_05-1024x678.jpg 1024w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_05-300x199.jpg 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_05-768x508.jpg 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/Flow_CustomVision_05.jpg 1877w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this post i will Show you what you can do with the AI called Custom Vision and Microsoft flow. The original idea comes from two of the Microsoft Program Managers for Microsoft Flow: Kent Weare Jon Levesque They made a very good video called \u201eHot Dog or No Hot Dog\u201c. You can watch it&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[8],"tags":[21],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-blog","tag-cognitive-services"],"taxonomy_info":{"category":[{"value":8,"label":"Blog"}],"post_tag":[{"value":21,"label":"Cognitive Services"}]},"featured_image_src_large":false,"author_info":{"display_name":"Jan","author_link":"https:\/\/dynamiacs.com\/?author=2"},"comment_info":0,"category_info":[{"term_id":8,"name":"Blog","slug":"blog","term_group":0,"term_taxonomy_id":8,"taxonomy":"category","description":"","parent":0,"count":38,"filter":"raw","cat_ID":8,"category_count":38,"category_description":"","cat_name":"Blog","category_nicename":"blog","category_parent":0}],"tag_info":[{"term_id":21,"name":"Cognitive Services","slug":"cognitive-services","term_group":0,"term_taxonomy_id":21,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":3,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/142"}],"wp:attachment":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}