{"id":1880,"date":"2018-10-22T11:59:12","date_gmt":"2018-10-22T09:59:12","guid":{"rendered":"http:\/\/eyesofthings.eu\/?page_id=1880"},"modified":"2018-10-29T13:15:33","modified_gmt":"2018-10-29T12:15:33","slug":"development-3","status":"publish","type":"page","link":"http:\/\/eyesofthings.eu\/?page_id=1880","title":{"rendered":"Museum Guide &#8211; Development"},"content":{"rendered":"<p>The application software for the museum audio tour demonstrator consists of two individual applications. The first one is running on the EoT device and the second one on a mobile companion device, like a smartphone or tablet, supported by a web CMS.<\/p>\n<p>This demonstrator uses the following EoT libraries, developed in the workpackage_3: Audio, LEDs, MQTT Client, Wi-Fi functions, JSON parser, SDCardIO, HistogramMatching and Quirc.<\/p>\n<p>These libraries have been used to build four modules: c<span style=\"font-size: 14px;\">amera and ISP, p<\/span><span style=\"font-size: 14px;\">ainting recognition, n<\/span><span style=\"font-size: 14px;\">etwork communication and a<\/span><span style=\"font-size: 14px;\">pplication logic.<\/span><\/p>\n<p>The painting recognition module is called for each incoming camera frame when the device is in \u00abpainting recognition\u00bb mode.\u00a0This module take a camera image as input and provide a painting ID as an output. If no painting has been identified in the current frame, a specific ID \u201cNo painting\u201d is returned.<\/p>\n<p>To this aim, the following functionalities have been implemented:<\/p>\n<ul>\n<li><strong>Keypoint extraction:<\/strong> This functionality takes the camera image as input and extract FAST keypoints from the image. Each keypoint is identified through its position (x, y) in the image.<\/li>\n<li><strong>Keypoint classification:<\/strong> The classification is based on a Random Forest consisting of a number of trees. This functionality\u00a0takes a keypoint position and an image as input. Each single tree takes the keypoint position as input. A tree node consist in a binary brightness test between two specific pixels in the direct neighborhood of the keypoint. According to the result of this test, the point is passed to the next node in the tree. The tree leaves consist in a probability distribution of possible keypoints as learnt in the learning phase. Thus, each keypoint will generate a probability distribution among the possible reference keypoints for each tree. The distributions of all the trees are averaged in order to provide the global probability distribution, from which the maximum is taken. If this maximum is above a threshold, the keypoint is classified as a known keypoint. Repeating this process for all the keypoints in the current frame allows for counting the number of keypoints in the current frame that correspond to a given painting.<\/li>\n<li><strong>Geometric refinement:<\/strong>\u00a0In order to avoid false positive, the found keypoints are tested for a correct geometric alignment. To this aim, the function attempts to recover a homography between the seen image and the reference painting, using a robust method based on the RANSAC paradigm.<\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/HBig6NOct_g?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><\/p>\n<p>The software to train the painting recognition consists of two separate applications. The first one analyses an image of a painting and extracts suitable keypoint locations. The suitability of a keypoint is defined by how reliably it can be detected in different perspectives. The program determines a stochastic approximation to that value by rendering the image in 1,000 random perspectives and counting in how many of those a given keypoint can be detected. The keypoints which have been found and scored this way are ordered by their quality and stored in a file.<\/p>\n<p><a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2012\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke1.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke1.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke1-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a>\u00a0<a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2013\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke2.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke2.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke2-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a> <a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2014\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke3.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke3.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke3-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a> <a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2015\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke4.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke4.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/ke4-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p>The second application reads that keypoint file as well as the image and trains a random forest to recognize the keypoints of that painting. Training is also performed in a stochastic manner by again rendering the painting in random perspectives. For a given keypoint a sample of the keypoints appearance is drawn from each random view and fed to the training process of the random forest. The resulting forest is then serialized into a file, which can be read by the EoT museum guide software running on the EoT board.<\/p>\n<p><a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2016\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes1.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes1.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes1-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2017\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes2.jpg\" alt=\"\" width=\"291\" height=\"250\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes2.jpg 472w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/kes2-300x257.jpg 300w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p>The EoT Museum App is implemented as a mobile web-application using the standard web technologies, like JavaScript, HTML5 and CSS3. The app can be accessed using any mobile browser, which makes it highly accessible and allows for easy distribution, including a regular desktop browser.<\/p>\n<p>Persisting data (e.g. for storing favorite exhibits) is stored in the user\u2019s browser using localStorage.<\/p>\n<p>Audio playback is implemented using HTML5 Audio elements that can be controlled by the user via UI elements for play\/pause\/seeking.<\/p>\n<p>The Museum App is ready to be packaged as a native mobile app using Apache Cordova. This enables additional distribution through Apple App Store as well as Google Play Store.<\/p>\n<p><a data-flickr-embed=\"true\" href=\"https:\/\/www.flickr.com\/photos\/132007111@N03\/36589813923\/\" title=\"MuseumGuide-Demo2 by eyesofthings_eot, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm5.staticflickr.com\/4391\/36589813923_ddc4bccd24_z.jpg\" width=\"640\" height=\"360\" alt=\"MuseumGuide-Demo2\"><\/a><script async src=\"https:\/\/embedr.flickr.com\/assets\/client-code.js\" charset=\"utf-8\"><\/script><\/p>\n<p>In addition to these functionalities, the EoT museum app supports two configuration features:<\/p>\n<ol>\n<li>EoT-Camera Snapshot: Requesting and displaying a snapshot of the camera image. This will control the EoT-Camera and allow a Camera-preview inside the mobile app.<\/li>\n<li>Pairing of devices: Pairing of an EoT headset device and a mobile device. This is done with the camera and a dynamic QR-display.<\/li>\n<\/ol>\n<p>Finally, Fluxguide developed a complete EoT Museum Guide content management system which allows the operator of the system to add, edit and delete content of the EoT visitor App. This component completes the system with a web-based, easy-to-use front end for the EoT Museum Guiding services.<\/p>\n<p><a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2020\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent.jpg\" alt=\"\" width=\"2048\" height=\"1365\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent.jpg 2048w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent-300x200.jpg 300w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent-768x512.jpg 768w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/exhibitcontent-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/p>\n<p>During using the EoT device and the mobile app, the system will collect user data for further analysis. This data is non-personal data and collected anonymously. The users are informed about this data collection in the Terms of Service of the application. Inside the CMS there is a statistics tool for visualization of the collected data. Following information can be analysed:<\/p>\n<ul>\n<li>Full tracking of user activities.<\/li>\n<li>Daily, weekly, monthly statistics.<\/li>\n<li>Ranking list of most accessed exhibits.<\/li>\n<\/ul>\n<p><a href=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021\" src=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics.jpg\" alt=\"\" width=\"2048\" height=\"1240\" srcset=\"http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics.jpg 2048w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics-300x182.jpg 300w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics-768x465.jpg 768w, http:\/\/eyesofthings.eu\/wp-content\/uploads\/2018\/10\/statistics-1024x620.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/p>\n<hr \/>\n<p>Museum Guide \u2013 Concept <a href=\"http:\/\/eyesofthings.eu\/?page_id=1879\">http:\/\/eyesofthings.eu\/?page_id=1879<\/a><br \/>\nMuseum Guide \u2013 Results <a href=\"http:\/\/eyesofthings.eu\/?page_id=1881\">http:\/\/eyesofthings.eu\/?page_id=1881<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The application software for the museum audio tour demonstrator consists of two individual applications. The first one is running on the EoT device and the second one on a mobile companion device, like a smartphone or tablet, supported by a&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1880","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/pages\/1880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1880"}],"version-history":[{"count":15,"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/pages\/1880\/revisions"}],"predecessor-version":[{"id":2164,"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=\/wp\/v2\/pages\/1880\/revisions\/2164"}],"wp:attachment":[{"href":"http:\/\/eyesofthings.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}