{"id":1794,"date":"2020-08-09T09:44:43","date_gmt":"2020-08-09T09:44:43","guid":{"rendered":"https:\/\/genial-code.com\/?p=1794"},"modified":"2023-10-30T00:53:50","modified_gmt":"2023-10-29T19:53:50","slug":"game-control-using-opencv-and-numpy-python","status":"publish","type":"post","link":"https:\/\/genial-code.com\/ru\/game-control-using-opencv-and-numpy-python\/","title":{"rendered":"Game Control Using OpenCV and Numpy Python"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><span style=\"font-size: 12pt;\">Download Free Source Code of Game Control Using OpenCV and <a href=\"https:\/\/numpy.org\/\">Numpy<\/a> with Complete Tutorial. Use the Python openCV and Numpy libraries to monitor a steering wheel racing game. It offers you the feeling of futuristic driving.<\/span> <span style=\"font-size: 12pt;\">The panel is split in 4 sections, logically. When a certain color (in my case Blue) is observed in certain pieces it is considered a main click. Suppose Blue color has been identified at the top left of the panel, so a &#8220;A&#8221; key press is begun and the car turns left. The color boundaries were established using color.py, in which we defined Blue color range of HSV values. Directkeys.py file using key press and unlock function.<\/span> <span style=\"font-size: 12pt;\">To manage my project I use a MacOS and a Spyder. This application is compatible on every MacOS app. If you are using WindowsOS then the directkeys.py file could have been changed. You can download Source code &amp; Tutorial Link given\u00a0<\/span><\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><strong>Features:<\/strong><\/span><\/p>\r\n<ul style=\"text-align: justify;\">\r\n<li><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">This system will track Your Real-Time Face movement<\/span><\/li>\r\n<li><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">This system work on your face moment like Right, Left, Up, Down<\/span><\/li>\r\n<li><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Easy to Use<\/span><\/li>\r\n<li><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">easy to Understand<\/span><\/li>\r\n<\/ul>\r\n<div class=\"group w-full text-token-text-primary border-b border-black\/10 gizmo:border-0 dark:border-gray-900\/50 gizmo:dark:border-0 bg-gray-50 gizmo:bg-transparent dark:bg-[#444654] gizmo:dark:bg-transparent\" data-testid=\"conversation-turn-9\">\r\n<div class=\"p-4 gizmo:py-2 justify-center text-base md:gap-6 md:py-6 m-auto\">\r\n<div class=\"flex flex-1 gap-4 text-base mx-auto md:gap-6 gizmo:gap-3 gizmo:md:px-5 gizmo:lg:px-1 gizmo:xl:px-5 md:max-w-2xl lg:max-w-[38rem] gizmo:md:max-w-3xl gizmo:lg:max-w-[40rem] gizmo:xl:max-w-[48rem] xl:max-w-3xl }\">\r\n<div class=\"relative flex w-[calc(100%-50px)] flex-col gizmo:w-full lg:w-[calc(100%-115px)] agent-turn\">\r\n<div class=\"flex-col gap-1 md:gap-3\">\r\n<div class=\"flex flex-grow flex-col gap-3 max-w-full\">\r\n<div class=\"min-h-[20px] flex flex-col items-start gap-3 whitespace-pre-wrap break-words overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"0782dc42-9832-4dd3-8b30-50673252092f\">\r\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\r\n<div class=\"group w-full text-token-text-primary border-b border-black\/10 gizmo:border-0 dark:border-gray-900\/50 gizmo:dark:border-0 bg-gray-50 gizmo:bg-transparent dark:bg-[#444654] gizmo:dark:bg-transparent\" data-testid=\"conversation-turn-11\">\r\n<div class=\"p-4 gizmo:py-2 justify-center text-base md:gap-6 md:py-6 m-auto\">\r\n<div class=\"flex flex-1 gap-4 text-base mx-auto md:gap-6 gizmo:gap-3 gizmo:md:px-5 gizmo:lg:px-1 gizmo:xl:px-5 md:max-w-2xl lg:max-w-[38rem] gizmo:md:max-w-3xl gizmo:lg:max-w-[40rem] gizmo:xl:max-w-[48rem] xl:max-w-3xl }\">\r\n<div class=\"relative flex w-[calc(100%-50px)] flex-col gizmo:w-full lg:w-[calc(100%-115px)] agent-turn\">\r\n<div class=\"flex-col gap-1 md:gap-3\">\r\n<div class=\"flex flex-grow flex-col gap-3 max-w-full\">\r\n<div class=\"min-h-[20px] flex flex-col items-start gap-3 whitespace-pre-wrap break-words overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"61886f35-0940-4ad6-b15a-5baa6579b555\">\r\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\r\n<p style=\"text-align: justify;\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">The Game Control Using OpenCV structure seamlessly integrates OpenCV, allowing real-time computer vision for game interaction. Therefore, the use of image processing algorithms, it interprets gestures, facial expressions, and motions, thereby revolutionizing gaming experiences. Consequently, this system translates visual inputs into game controls, fostering immersive and responsive gameplay.<\/span><\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<p style=\"text-align: justify;\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">Game Control Using OpenCV<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><a href=\"https:\/\/genial-code.com\/download-code-game-control-using-opencv-and-numpy-python\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2430\" src=\"https:\/\/genial-code.com\/wp-content\/uploads\/2019\/10\/Download-removebg-preview.png\" alt=\"\" width=\"139\" height=\"34\" \/><\/a><\/span><\/p>\r\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Download Free Source Code of Game Control Using OpenCV and Numpy with Complete Tutorial. Use the Python openCV and Numpy libraries to monitor a steering wheel racing game. It offers you the feeling of futuristic driving. The panel is split in 4 sections, logically. When a certain color (in my case Blue) is observed in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[104,668],"tags":[1134,1140,1138,1136,1139,1137,443,1135],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"ru","enabled_languages":["en","es","de","fr","ru"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"es":{"title":false,"content":false,"excerpt":false},"de":{"title":false,"content":false,"excerpt":false},"fr":{"title":false,"content":false,"excerpt":false},"ru":{"title":false,"content":false,"excerpt":false}}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Game Control Using OpenCV and Numpy Python - Genial Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Game Control Using OpenCV and Numpy Python - Genial Code\" \/>\n<meta property=\"og:url\" content=\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Genial Code\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-09T09:44:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-29T19:53:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"211\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"genialcode\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"genialcode\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/\",\"url\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/\",\"name\":\"Game Control Using OpenCV and Numpy Python - Genial Code\",\"isPartOf\":{\"@id\":\"https:\/\/genial-code.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png\",\"datePublished\":\"2020-08-09T09:44:43+00:00\",\"dateModified\":\"2023-10-29T19:53:50+00:00\",\"author\":{\"@id\":\"https:\/\/genial-code.com\/#\/schema\/person\/9180609fb3eeb1144d23e2be1b52d30a\"},\"description\":\"Source Code of a game control using python, OpenCV and Numpy with Complete Tutorial. Use the Python openCV and Numpy libraries\",\"breadcrumb\":{\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage\",\"url\":\"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png\",\"contentUrl\":\"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png\",\"width\":400,\"height\":211},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/genial-code.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Game Control Using OpenCV and Numpy Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/genial-code.com\/#website\",\"url\":\"https:\/\/genial-code.com\/\",\"name\":\"Genial Code\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/genial-code.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/genial-code.com\/#\/schema\/person\/9180609fb3eeb1144d23e2be1b52d30a\",\"name\":\"genialcode\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/genial-code.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c579ab454febc79194016741931b2bc1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c579ab454febc79194016741931b2bc1?s=96&d=mm&r=g\",\"caption\":\"genialcode\"},\"url\":\"https:\/\/genial-code.com\/ru\/author\/genialcode\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Game Control Using OpenCV and Numpy Python - Genial Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/","og_locale":"ru_RU","og_type":"article","og_title":"Game Control Using OpenCV and Numpy Python - Genial Code","og_url":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/","og_site_name":"Genial Code","article_published_time":"2020-08-09T09:44:43+00:00","article_modified_time":"2023-10-29T19:53:50+00:00","og_image":[{"width":400,"height":211,"url":"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png","type":"image\/png"}],"author":"genialcode","twitter_card":"summary_large_image","twitter_misc":{"Written by":"genialcode","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/","url":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/","name":"Game Control Using OpenCV and Numpy Python - Genial Code","isPartOf":{"@id":"https:\/\/genial-code.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage"},"image":{"@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage"},"thumbnailUrl":"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png","datePublished":"2020-08-09T09:44:43+00:00","dateModified":"2023-10-29T19:53:50+00:00","author":{"@id":"https:\/\/genial-code.com\/#\/schema\/person\/9180609fb3eeb1144d23e2be1b52d30a"},"description":"Source Code of a game control using python, OpenCV and Numpy with Complete Tutorial. Use the Python openCV and Numpy libraries","breadcrumb":{"@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#primaryimage","url":"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png","contentUrl":"https:\/\/genial-code.com\/wp-content\/uploads\/2020\/08\/GameC.png","width":400,"height":211},{"@type":"BreadcrumbList","@id":"https:\/\/genial-code.com\/game-control-using-opencv-and-numpy-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/genial-code.com\/"},{"@type":"ListItem","position":2,"name":"Game Control Using OpenCV and Numpy Python"}]},{"@type":"WebSite","@id":"https:\/\/genial-code.com\/#website","url":"https:\/\/genial-code.com\/","name":"Genial Code","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/genial-code.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/genial-code.com\/#\/schema\/person\/9180609fb3eeb1144d23e2be1b52d30a","name":"genialcode","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/genial-code.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c579ab454febc79194016741931b2bc1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c579ab454febc79194016741931b2bc1?s=96&d=mm&r=g","caption":"genialcode"},"url":"https:\/\/genial-code.com\/ru\/author\/genialcode\/"}]}},"_links":{"self":[{"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/posts\/1794"}],"collection":[{"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/comments?post=1794"}],"version-history":[{"count":10,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/posts\/1794\/revisions"}],"predecessor-version":[{"id":2671,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/posts\/1794\/revisions\/2671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/media\/2670"}],"wp:attachment":[{"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/media?parent=1794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/categories?post=1794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/genial-code.com\/ru\/wp-json\/wp\/v2\/tags?post=1794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}