<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Image Processing in Vuforia Studio</title>
    <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771582#M10483</link>
    <description>&lt;P&gt;&amp;nbsp;Hi Brian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at "&lt;STRONG&gt;Images &amp;amp; Objects&lt;/STRONG&gt;" section in "&lt;STRONG&gt;Vuforia Developer Library&lt;/STRONG&gt;": &lt;A href="https://library.vuforia.com/objects/image-targets" target="_blank"&gt;https://library.vuforia.com/objects/image-targets&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 12:03:56 GMT</pubDate>
    <dc:creator>VladimirN</dc:creator>
    <dc:date>2022-01-07T12:03:56Z</dc:date>
    <item>
      <title>Image Processing</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771438#M10481</link>
      <description>&lt;P&gt;I am currently taking an image using the mobile device camera widget in one experience, sending it to ThingWorx as the base64 text. Then in a different experience, calling a service to retrieve that text. I am running into a road block of figuring out how to take that text and then process it to be able to insert it to an image widget on demand. By on demand, I mean if i were to have a list of image texts, to be able to have one image widget and change the image source programmatically with UI functions by the experience user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 23:16:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771438#M10481</guid>
      <dc:creator>BAR3887</dc:creator>
      <dc:date>2022-01-06T23:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Image Processing</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771582#M10483</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Brian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at "&lt;STRONG&gt;Images &amp;amp; Objects&lt;/STRONG&gt;" section in "&lt;STRONG&gt;Vuforia Developer Library&lt;/STRONG&gt;": &lt;A href="https://library.vuforia.com/objects/image-targets" target="_blank"&gt;https://library.vuforia.com/objects/image-targets&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 12:03:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771582#M10483</guid>
      <dc:creator>VladimirN</dc:creator>
      <dc:date>2022-01-07T12:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Image Processing</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771696#M10487</link>
      <description>&lt;P&gt;Brian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have already worked through this so apologies if you already know this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thingworx has a Repository thing and has a service&amp;nbsp;SaveImage and&amp;nbsp;LoadImage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SaveImage&amp;nbsp; used inside the method UploadPhoto accepts the content as base64 shown below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the image is loaded you can use LoadImage to get the url from the&amp;nbsp;Repository thing by using the LoadImage service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are already doing this and its not working for you please provide more info on your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Method&amp;nbsp;UploadPhoto&amp;nbsp;&lt;/P&gt;
&lt;P&gt;===========================================&lt;/P&gt;
&lt;P&gt;logger.debug("Entering UploadPhoto" );&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if (fileName === undefined || fileName === "") {&lt;BR /&gt;var d = new Date();&lt;BR /&gt;fileName = "Photo-" + d.getTime();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// result: STRING&lt;BR /&gt;var usename = Resources["CurrentSessionInfo"].GetCurrentUser();&lt;/P&gt;
&lt;P&gt;//Create Folder in doesn't exist&lt;BR /&gt;try {&lt;BR /&gt;me.CreateFolder({&lt;BR /&gt;path: '/photos/'+ usename /* STRING */&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;} catch (ex) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;me.SaveImage({&lt;BR /&gt;path: '/photos/'+ usename + '/'+fileName /* STRING */,&lt;BR /&gt;content: imageContent /* IMAGE */&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;==========================================&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 17:27:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771696#M10487</guid>
      <dc:creator>sgreywilson</dc:creator>
      <dc:date>2022-01-08T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Image Processing</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771851#M10489</link>
      <description>&lt;P&gt;I am currently storing the pictures (base64 strings) in an array that is field of a data table in TW already. As well as have built services for sending/receiving this data associated to these images. I was attempting to accomplish this inside Vuforia since the camera widget is the item generating the base64 string. I figured there was a simple manner in which that text could be used inside Vuforia that I just couldn't seem to locate.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:14:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771851#M10489</guid>
      <dc:creator>BAR3887</dc:creator>
      <dc:date>2022-01-10T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Image Processing</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771854#M10490</link>
      <description>&lt;P&gt;Below is a piece of code that may help you explore (which you may already know)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$scope.BuildList = function() {&lt;BR /&gt;&lt;BR /&gt;var imagesData = $scope.view.wdg["dataGridImages"].data; // this is from a grid that is populated via service &lt;BR /&gt;&lt;BR /&gt;try {&lt;/P&gt;
&lt;P&gt;if (imagesData &amp;gt; 0 ) {&lt;BR /&gt;var index = 1;&lt;BR /&gt;Object.keys(imagesData).forEach(function(item){ &lt;BR /&gt;&lt;BR /&gt;if (index &amp;lt; 6 ) {&lt;/P&gt;
&lt;P&gt;console.log ("Name =" +imagesData[item].name);&lt;BR /&gt;//console.log ("Content =" +imagesData[item].content);&lt;BR /&gt;&lt;BR /&gt;$scope.view.wdg['image' +index].imgsrc='data&amp;amp;colon;image/png;base64,' + imagesData[item].content; // imagesData[item].downloadLink; //&lt;BR /&gt;index++;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;}); &lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;} catch(ex) {&lt;BR /&gt;console.log ("Possible Error: When trying to work through images Data data passed from IOT service there Exception:"+ex);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:22:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/Image-Processing/m-p/771854#M10490</guid>
      <dc:creator>sgreywilson</dc:creator>
      <dc:date>2022-01-10T14:22:57Z</dc:date>
    </item>
  </channel>
</rss>

