With covid everyone is locked in their homes at this time I thought of learning new skills and making some fun projects. I worked on a concept I called “Reality Gaming” . Show It is simply controlling games with our movements. I used object tracking using OpenCV for this Project and PyAutoGUI for the keypress. THE BELAMYSign up for your weekly dose of what's up in emerging technology.This can be used to control any game with a set of keys we want to use for control. First, we mark the object we want to track then in code we divide our screen area into left, right, up, down and neutral for the specific keypress we want. Now whenever our tracking object moves to the left with the help of PyAutoGUI, the left key is pressed. Similarly for other keys. ALSO READIn the later session I will explain everything with code. There are various trackers available in opencv to track the movement .
The main tradeoff between all these trackers is speed and accuracy, i.e. the frame rate it can provide and accuracy it can track objects with. The one I used was MOSSE which provided a very high frame rate it can support upto 450fps and the second one is CSRT which has comparatively lower fps (25 fps) but gives higher accuracy for object tracking. What libraries did I use?
How to run Reality Gaming?
Do you want to implement the same? Follow these steps below! Step-1: Choose the area of image to be tracked from the image captured by webcam and initialize the tracker. cap=cv2.VideoCapture(0) Step-2: Set the rules for the game that is the coordinate and area selection for different controls in the game. count =0 Step-3: Draw boundary lines over the video to partition the area of controls. while True: Step-4: Updation of the tracker by calling the drawbox function as the object moves in video and print the frame rate and tracking details. if success: Step-5: Exit the program by pressing ‘q’. cv2.imshow("video",img) Step-6: Wohla! Now Run the program and enjoy your games with reality gaming experience. For improving the program you can change the tracker and even switch to haar cascade that would provide a more better experience. Game is available at :
For checking out the game in action do visit: https://www.linkedin.com/posts/abhinav-jain-8b4bab62_opencv-python-computervision-activity-6693661684986454016-NLV0 For code checkout this GitHub link https://github.com/lucky31044/RealityGaming Why can't I connect to Facebook on Subway Surfers?Uninstall the Facebook app, restart the phone and login on Subway surfer. It was given as a solution to the same problem on Android.
How do I restore facebook progress from Subway Surfers?🤔 If you have played Subway Surfers before May 2020 you may have progress stored on our Legacy Server. Tap the "Check for Progress" button under Cloud Save in settings to get your old progress and connect to online save to store your progress again. Thanks for running with us and thank YOU for your endless support.
How can I recover my subway surfer data?Open Titanium Backup Pro.. Search for "Subway".. Click/tap on "Subway Surfers v1. nn. ... . Click on "Backup". ... . Uninstall Subway Surfers. ... . Go to Play Store and reinstall Subway Surfers.. Complete tutorial and close Subway Surfers.. Close Titanium Backup Pro and reopen it.. |