{"id":24098492,"url":"https://github.com/matlab-deep-learning/deep_learning_poker_player_using_matlab_and_raspberry_pi","last_synced_at":"2025-07-15T01:16:21.746Z","repository":{"id":118344119,"uuid":"263816822","full_name":"matlab-deep-learning/Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi","owner":"matlab-deep-learning","description":"This example shows how to use automatic code generation to deploy a deep learning model from MATLAB to Raspberry Pi","archived":false,"fork":false,"pushed_at":"2020-05-14T04:42:46.000Z","size":331,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T19:47:40.386Z","etag":null,"topics":["code-generation","deep-learning","deployment","example","matlab","matlab-deep-learning","neural-networks","raspberry-pi"],"latest_commit_sha":null,"homepage":"https://www.mathworks.com/videos/how-to-build-your-own-poker-player-using-matlab-deep-learning-and-raspberry-pi-1578482540720.html","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab-deep-learning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-14T04:42:34.000Z","updated_at":"2024-09-15T02:30:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"80541595-7e8a-4cf6-b3b3-343c2cd027a6","html_url":"https://github.com/matlab-deep-learning/Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matlab-deep-learning/Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FDeep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FDeep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FDeep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FDeep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab-deep-learning","download_url":"https://codeload.github.com/matlab-deep-learning/Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FDeep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265384450,"owners_count":23756716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","deep-learning","deployment","example","matlab","matlab-deep-learning","neural-networks","raspberry-pi"],"created_at":"2025-01-10T14:46:15.194Z","updated_at":"2025-07-15T01:16:21.730Z","avatar_url":"https://github.com/matlab-deep-learning.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![View Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/75018-deep_learning_poker_player_using_matlab_and_raspberry_pi)\n\n# Deep_Learning_Poker_Player_using_MATLAB_and_Raspberry_Pi\nThis package includes MATLAB scripts that help you design a poker player using MATLAB, Deep Learning, and Raspberry Pi. \nThe poker-playing algorithm consists of a deep learning network that predicts the cards, and a custom MATLAB algorithm that\nidentifies ranked hands from the predictions and then makes bets like an actual player would. The algorithm can finally be \ndeployed to a Raspberry Pi hardware.\n\n# Prerequisite\nConfigure the Raspberry Pi network, using the hardware-setup screen. During the this process, ensure that you download the MathWorks Raspbian image for deep learning.\n\n# Poker_Setup:\nThis folder contains all the required files to generate a new dataset and train the classifier.\n\nTo generate datasets for training, connect a webcam to your PC and run the script \"generateCardData.m\"\nOnce card datasets are ready, run \"transferLearnedCardset.m\" for transferlearning.\nThis will create \"identifyCards.mat\" where all DNN info are stored.\n\n# Poker_MATLAB_App:\nSource code for the MATLAB App version of the poker player\n\nCopy \"identifyCards.mat\" generated from Poker_Setup to this directory.\nRun the MATLAB App.\n\n# Poker_Codegen:\nCodegen capable MATLAB function that can be deployed to Raspberry Pi\n\nCopy \"identifyCards.mat\" generated from Poker_Setup to this directory.\nDeploy the MATLAB function \"raspi_poker_player\" to Raspberry using the following commands:\n\n\n\u003e\u003e t = targetHardware('Raspberry Pi')  \n\u003e\u003e t.CoderConfig.TargetLang = 'C++'  \n\u003e\u003e dlcfg = coder.DeepLearningConfig('arm-compute')  \n\u003e\u003e dlcfg.ArmArchitecture = 'armv7'  \n\u003e\u003e t.CoderConfig.DeepLearningConfig = dlcfg  \n\u003e\u003e deploy(t,'raspi_poker_player')  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fdeep_learning_poker_player_using_matlab_and_raspberry_pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab-deep-learning%2Fdeep_learning_poker_player_using_matlab_and_raspberry_pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fdeep_learning_poker_player_using_matlab_and_raspberry_pi/lists"}