{"id":923,"date":"2018-02-26T16:30:28","date_gmt":"2018-02-26T16:30:28","guid":{"rendered":"http:\/\/sezeromer.com\/?p=923"},"modified":"2023-02-26T13:03:03","modified_gmt":"2023-02-26T10:03:03","slug":"xamarin-ve-cognitive-service-bolum-1","status":"publish","type":"post","link":"https:\/\/sezeromer.com\/en\/xamarin-ve-cognitive-service-bolum-1\/","title":{"rendered":"Xamarin and Cognitive Service (Part 1)"},"content":{"rendered":"<p>In this article I will try to explain how to incorporate <strong>Cognitive Services<\/strong> in <strong>Azure<\/strong> into my <strong>Xamarin Forms<\/strong> project. First we open our project. We need to install packages in the project and we do not have to install them. After clicking on <strong>Manage Nuget Package Manager<\/strong> in the portable layer, we need to install <strong>NewtonSoft<\/strong> and <strong>System.Net<\/strong> packages on the browse tab. After we&#8217;ve done these things, it&#8217;s just creating our project.<\/p>\n<p>I will use the <strong>Image Processing API<\/strong> from <strong>Cognitive Services<\/strong> in this project. In a photo you upload with the <strong>image processing API,<\/strong> you tag many things about what is the main theme, what is the main theme, which is the dominant color, and whether it is a sexual content item. To use this API, we first need to get a key. Almost every article I see and read is doing it through Azure, so we do not have the right to use Cognitive Service over <strong>Azure<\/strong>. Nevertheless, if we have a <strong>Github<\/strong> or <strong>Microsoft<\/strong> account, <strong>Microsoft<\/strong> gives us a 30-day entitlement to use this key. A recognized right for each service is 30 days for each of them individually. When you enter <a href=\"https:\/\/azure.microsoft.com\/tr-tr\/services\/cognitive-services\/computer-vision\/\">this site<\/a>, we see an option like try the Image Processing API. When we click on this button, we want to get an API key from us.<\/p>\n<p><a href=\"http:\/\/sezeromer.com\/xamarin-ve-cognitive-service-bolum-1\/cognitive-1\/\" rel=\"attachment wp-att-924\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-924\" src=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-1-1024x526.png\" alt=\"\" width=\"640\" height=\"329\" srcset=\"https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-1-1024x526.png 1024w, https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-1-300x154.png 300w, https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-1-768x394.png 768w, https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-1.png 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>When we click on API key, there are 4 different options. It gives 30 days for each option separately. So we have a little more time. You can see these options below. You can get it with any calculator.<\/p>\n<p><a href=\"http:\/\/sezeromer.com\/xamarin-ve-cognitive-service-bolum-1\/cognitive-2\/\" rel=\"attachment wp-att-925\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-925\" src=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-2.png\" alt=\"\" width=\"592\" height=\"351\" srcset=\"https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-2.png 592w, https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-2-300x178.png 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/a><\/p>\n<p>Later, we need an End Point to communicate with these APIs, ie send and receive data. This URL is assigned as an endpoint when we receive the API key.<\/p>\n<p><a href=\"http:\/\/sezeromer.com\/xamarin-ve-cognitive-service-bolum-1\/cognitive-3\/\" rel=\"attachment wp-att-926\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-926\" src=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-3.png\" alt=\"\" width=\"488\" height=\"214\" srcset=\"https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-3.png 488w, https:\/\/sezeromer.com\/wp-content\/uploads\/2018\/02\/cognitive-3-300x132.png 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>Then you can use the quick start guide to learn how to use and experiment in more detail. You can also access the site from <a href=\"https:\/\/westcentralus.dev.cognitive.microsoft.com\/docs\/services\/56f91f2d778daf23d8ec6739\/operations\/56f91f2e778daf14a499e1fa\/console\">here<\/a>. I will tell you how to integrate my project into the next chapter. If you want to learn more in detail, you can look at <strong>Yi\u011fit \u00d6zaks\u00fct<\/strong>&#8216;s educational videos.<\/p>\n<p>If you have any questions, you can reach us by comment or mail.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this article I will try to explain how to incorporate Cognitive Services in Azure into my Xamarin Forms project. First we open our project. We need to install packages in the project and we do not have to install them. After clicking on Manage Nuget Package Manager in the portable layer, we need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":929,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[289,299,288,3],"tags":[42,301,310,309,5,308,297,311,22,119],"class_list":["post-923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-azure","category-ios","category-xamarin-ile-yapilmis-projeler","tag-azure","tag-cognitive-service","tag-end-point","tag-goruntu-isleme","tag-microsoft","tag-newtonsoft","tag-nuget","tag-url","tag-xamarin","tag-xamarin-forms"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/923"}],"collection":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/comments?post=923"}],"version-history":[{"count":4,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/923\/revisions"}],"predecessor-version":[{"id":1009,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/923\/revisions\/1009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media\/929"}],"wp:attachment":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/categories?post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/tags?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}