[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-510175-105":59,"doc-detail-510175-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","simplifying-pathfinder-automatically-calculating-the-sum-of-rolled-dice","Simplifying Pathfinder - Automatically Calculating the Sum of Rolled Dice","","Pathfinder RPG and many tabletop games require rolling and summing large numbers of dice during play, which can slow down decision making and burden players who struggle with mental arithmetic. This work builds a vision system that takes smartphone photos of multiple rolled dice, segments individual dice using object detection and localization, and then uses a CNN with multi-class classification to recognize the value on each die. Results reach 42.39% accuracy on unseen test images, with stronger performance for particular classes and die types.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/simplifying-pathfinder-automatically-calculating-the-sum-of-rolled-dice/510175/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/simplifying-pathfinder-automatically-calculating-the-sum-of-rolled-dice/510175.png","ImageObject",300,407,{"name":92,"@type":93},"Valentina","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-06","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"How does the system compute the total value of rolled dice?","Question",{"text":113,"@type":114},"It first segments individual dice from a smartphone photo using object detection and localization, then classifies the value shown on each die with a CNN. Finally, it sums the predicted values to obtain the total.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What dataset and dice types are used in the project?",{"text":118,"@type":114},"The initial dataset contains 266 dice-rolling images, covering eight die types: d4, d6, d8, d10, d12, d20, and d100. After segmentation, the dataset contains 1855 dice and is split into 85% training, 10% cross-validation, and 5% test.",{"name":120,"@type":111,"acceptedAnswer":121},"What accuracy does the CNN achieve on unseen test examples?",{"text":122,"@type":114},"The CNN reaches 42.39% accuracy on a test set of unseen examples, with noticeably higher accuracy for some die classes and die types than others.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},510175,1791358559,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":46,"preview_page_count":19,"preview_urls":145},13056703020460,"https://ap-avatar.wpscdn.com/avatar/be000253dac470eee5d?_k=1778207105932848923","# Simplifying Pathfinder:Automatically Calculatingthe Sum of Rolled Dice\n\nHana LeeDepartment of Computer ScienceStanford Universityleehana@stanford.edu  \n## Abstract\n\nPathfinder RPG and many other tabletop games rely on rolling dice,which canbecome difficult and slow to add together in large quantities.I design a systemcapable of deciphering a picture of multiple rolled dice and calculating the sum ofthe values shown on the dice.Using a CNN to predict the value shown on a dieusing multi-class classification,I achieve 42.39%accuracy on a test set of unseenexamples,with considerably higher accuracy for some classes and die types thanothers.  \n## 1 Introduction\n\nPathfinder RPG is a tabletop roleplaying game,similar to Dungeons and Dragons,that relies ondice-rolling for many of its core mechanics,such as combat,social interactions,and skill checks.When the player characters reach high levels,the amount of dice they must roll and add up duringeach round of combat quickly becomes unwieldy.As the Game Master for my group,I often need toroll more than 20 six-or eight-sided dice simultaneously and quickly total them in my head,dozensof times per game session.This task can be particularly challenging for players who struggle withcounting pips or keeping track of sums in their heads.  \nIn an effort to tackle this problem,I design a system that can decipher a 2D picture of multiple rolleddice and calculate the sum of the numbers displayed on the dice.The inputs to the system are picturestaken using a cell phone camera.These images are segmented into individual pictures of dice usingan object detection and localization algorithm,and the values on the dice in the individual picturesare classified using a CNN.  \nThe object detection and localization portion of this project was done for CS231A:Computer Vision.The CNN classification portion was done for CS230:Deep Learning.The dataset,as well as someprocessing and utility code,were shared between the two classes.  \n## 2 Related work\n\nThe problem of automatically detecting dice and computing their value using computer vision appearsrelatively unexplored.Some attempts have been made to automatically detect dice in the context ofcasino gambling,but the systems produced by these attempts were extremely rigid(i.e.relying on theuser to input the number of dice rolled,and relying on a certain uniform type of die such as a whitesix-sided die with black pips)[1].Such systems are for the most part designed to mitigate the needfor human supervision in very specific applications,such as a game at a casino.They do not possessthe speed and flexibility required to handle different types and quantities of dice.  \nFigure 1:Lefi:a picture from the initial dataset,containing 7 d8s.Right:7 training examples croppedfrom the picture.  \n\n| Train   | Dev   | Test   | Class   | Train   | Dev   |\n| --- | --- | --- | --- | --- | --- |\n| 12.74%  \u003Cbr>12.42%  \u003Cbr>11.54%  \u003Cbr>11.98%  \u003Cbr>9.26%  \u003Cbr>9.77%  \u003Cbr>6.72%  \u003Cbr>6.79%  \u003Cbr>5.77%  \u003Cbr>6.15%   | 12.43%  \u003Cbr>15.14%  \u003Cbr>12.97%  \u003Cbr>9.73%  \u003Cbr>14.59%  \u003Cbr>5.41%  \u003Cbr>3.78%  \u003Cbr>5.95%  \u003Cbr>5.95%  \u003Cbr>7.57%   | 14.13%  \u003Cbr>14.13%  \u003Cbr>11.96%  \u003Cbr>10.87%  \u003Cbr>10.87%  \u003Cbr>9.78%  \u003Cbr>5.43%  \u003Cbr>9.78%  \u003Cbr>3.26%  \u003Cbr>4.35%   | 10  \u003Cbr>11  \u003Cbr>12  \u003Cbr>13  \u003Cbr>14  \u003Cbr>15  \u003Cbr>16  \u003Cbr>17  \u003Cbr>18  \u003Cbr>19   | 1.59%  \u003Cbr>1.90%  \u003Cbr>0.51%  \u003Cbr>0.19%  \u003Cbr>0.63%  \u003Cbr>0.44%  \u003Cbr>0.44%  \u003Cbr>0.38%  \u003Cbr>0.25%  \u003Cbr>0.51%   | 1.62%  \u003Cbr>2.16%  \u003Cbr>0.0%  \u003Cbr>0.54%  \u003Cbr>0.0%  \u003Cbr>0.0%  \u003Cbr>0.0%  \u003Cbr>0.0%  \u003Cbr>1.08%  \u003Cbr>1.08%   |\n\nTest  \nClass  \n0.0%  \n0  \n工  \n4.34%  \n2  \n0.0%  \n3  \n0.0%  \n4  \n0.0%  \n5  \n0.0%  \n6  \n0.0%  \n7  \n0.0%  \n8  \n0.0%  \n9  \n1.09%  \nFigure 2:Breakdown of dataset by class.For each example,the class k is equal to the value shownon the die minus 1.For d100s,a 10-sided die which displays multiples of 10,the value is interpretedas10.  \nGenerally speaking,there are several promising techniques in the field of machine learning thatcan be applied to this relatively novel task.YO","cbCaig6ayPB19iqh","https://ap.wps.com/l/cbCaig6ayPB19iqh","pdf",3881283,"English","# Abstract\n# 1 Introduction\n## Pathfinder RPG dice-summing problem\n## Proposed image-based pipeline\n# 2 Related work\n## Prior casino-focused detection approaches\n# 3 Dataset and Features\n## Dataset collection and split\n## Dice types and segmentation\n## Model input and preprocessing\n## Data augmentation","[{\"question\":\"How does the system compute the total value of rolled dice?\",\"answer\":\"It first segments individual dice from a smartphone photo using object detection and localization, then classifies the value shown on each die with a CNN. Finally, it sums the predicted values to obtain the total.\"},{\"question\":\"What dataset and dice types are used in the project?\",\"answer\":\"The initial dataset contains 266 dice-rolling images, covering eight die types: d4, d6, d8, d10, d12, d20, and d100. After segmentation, the dataset contains 1855 dice and is split into 85% training, 10% cross-validation, and 5% test.\"},{\"question\":\"What accuracy does the CNN achieve on unseen test examples?\",\"answer\":\"The CNN reaches 42.39% accuracy on a test set of unseen examples, with noticeably higher accuracy for some die classes and die types than others.\"}]","Simplifying Pathfinder - Automatically Calculating the Sum of Rolled Dice | PDF",1791239547,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5957f0c1254568159e15b0f859c8965e.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1a78f352ee7df9e090738a3bebc28513.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1ffe2b3a47bd83e669e894aae44abf89.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a671479b29294790c6e230c67e07ca5e.webp",980,1268]