[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-383813-105":53,"doc-detail-383813-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","generalised-object-detection-and-semantic-analysis-casino-example-using-matlab","Generalised Object Detection and Semantic Analysis - Casino Example - Using Matlab","","Matlab 7.1 is used to detect playing cards on a casino table and to identify each card’s suit and rank. The approach illustrates a computer-vision pipeline for detecting rectangular objects and extracting their information content. Image processing runs in two passes: Pass 1 locates card rectangles and performs template matching on left/right edges, while Pass 2 recognizes rank and suit by matching the top-left region against stored templates using if-then logic.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/generalised-object-detection-and-semantic-analysis-casino-example-using-matlab/383813/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/generalised-object-detection-and-semantic-analysis-casino-example-using-matlab/383813.png","ImageObject",442,249,{"name":88,"@type":89},"Connor ","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-19","2026-09-24",true,{"@type":98,"interactionType":99,"userInteractionCount":76},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"What does the Matlab system detect and output from a casino image?","Question",{"text":108,"@type":109},"It detects playing cards on a casino table and outputs the suit and rank for each detected card. The extracted information comes from image regions matched against stored templates.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How does the system process images in two passes?",{"text":113,"@type":109},"Pass 1 detects rectangular card shapes and performs template matching for the left and right edges. Pass 2 extracts suit and rank by matching the top-left area containing both values to stored templates using if-then statements.",{"name":115,"@type":106,"acceptedAnswer":116},"Why does the paper prefer simpler algorithms over neural networks?",{"text":117,"@type":109},"It follows Occam’s razor by using simpler methods, specifically cross-correlation for template matching rather than neural networks. It also restricts routines to those available in Matlab.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},383813,1792162816,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":76,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":135,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":73},687207022233,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Generalised Object Detection and Semantic Analysis: Casino Example using  \nMatlab  \nOthman Ahmad  \nUniversiti Malaysia Sabah  \nAbstract  \nMatlab version 7.1 had been used to detect playing cards on a Casino table and the suits and ranks of these cards had been identified. The process gives an example of an application of computer vision to a problem where rectangular objects are to be detected and the information content of the objects are extracted out. In the case of playing cards, it is the suit and rank of each card. The image processing system is done in two passes. Pass 1 detects rectangular shapes and template matched with a template of the left and right edges of the cards. Pass 2 extracts the suit and rank of the cards by matching the top left portion of the card that contains both rank and suit information, with stored templates of ranks and suits of the playing cards using a series of if-then statements.  \n1. Introduction  \nA Casino table had used to illustrate the techniques widely described in internet tutorials and textbooks to detect objects. The textbooks are listed in the references but the internet tutorials, which are not listed in the references, are just as important in order to implement the system for the recognition and semantic analysis of playing cards.  \n1.1. Software  \nThe choice of development software is crucial. For this project, Mathlab version 7 was chosen. There are other alternatives such as Mathematica and Maple. The open software Octave is compatible with some versions of Matlab but it should be able to use Matlab Image Processing toolbox, which is used when this system was developed.  \n1.2. Casino Environment  \nThis system is developed with a Casino environment in mind. It means that the images should be very clear because of the excellent lighting in Casinos. The playing cards are also well known because they are supplied by the  \nCasinos. The number of samples taken is also limited to detection of playing cards but there is no reason why the system cannot be extended to include more samples in order to improve detection accuracy.  \n1.3. Occam’s razor  \nIn accordance with the principle of Occam‟s razor, the simplest algorithms had been used. For template matching, cross-correlation technique had been used instead of the more exotic neural networks, despite the many references in this paper, which refer to neural networks. In addition to that, only routines and techniques that are available in Matlab were used.  \n1.4. Modifications for other Objects  \nDespite the title of this paper, subsequent methodologies, which will be discussed, will refer to the detection of playing cards. In order to modify the system for other types of objects, the potential developer must master the writing of codes in Matlab first.  \nIn order to learn about Matlab, the help and demo functions in Matlab are most useful. Just type “help” in the command prompt area of Matlab. Start by studying the functions used in this paper or the internet tutorials listed in the Appendix. Proceed with developing a more thorough understanding by reading through the textbooks on image processing as given by the references below[7][8][9][10] .  \n2. Literature Review  \n2.1. Wen-Yuan Chen, Chin-Ho Chung  \nWen-Yuan Chen, Chin-Ho Chung [1] claimed to have achieved “high veracity and highly robust recognition under a variety of conditions”, for detecting playing cards. Experimental results show that this proposed scheme can exactly identify ranks and suits of the poker images 100% of the time, even when 40% noise is added, or when intensity level is increased or decreased 40% . It may be good for noisy environment but not necessary in typical casino environment. The method tests the entire card for playing card recognition requiring much processing and  \ndatabase storage.  \n2.2. Chunhui (Brenda) Zheng  \nIn Chunhui (Brenda) Zheng [3], a rotational invariant template matching method is proposed in this paper to enable accurate playing card","cbCaiiR7EeCIJKSB","https://ap.wps.com/l/cbCaiiR7EeCIJKSB","pdf",302622,6,"English","# Abstract\n# Introduction\n## Software\n## Casino Environment\n## Occam’s razor\n## Modifications for other Objects\n# Literature Review\n## Wen-Yuan Chen, Chin-Ho Chung\n## Chunhui (Brenda) Zheng\n# Implementation","[{\"question\":\"What does the Matlab system detect and output from a casino image?\",\"answer\":\"It detects playing cards on a casino table and outputs the suit and rank for each detected card. The extracted information comes from image regions matched against stored templates.\"},{\"question\":\"How does the system process images in two passes?\",\"answer\":\"Pass 1 detects rectangular card shapes and performs template matching for the left and right edges. Pass 2 extracts suit and rank by matching the top-left area containing both values to stored templates using if-then statements.\"},{\"question\":\"Why does the paper prefer simpler algorithms over neural networks?\",\"answer\":\"It follows Occam’s razor by using simpler methods, specifically cross-correlation for template matching rather than neural networks. It also restricts routines to those available in Matlab.\"}]","Generalised Object Detection and Semantic Analysis - Casino Example - Using Matlab | PDF",1790259380]