swehner / foos

Instant replay system for foosball table
GNU General Public License v3.0
169 stars 34 forks source link

Portrait mode #73

Open asindl opened 4 years ago

asindl commented 4 years ago

Is portrait mode supported out of the box or does that require some more tweaks?

asindl commented 4 years ago

Ok, found the solution:

  1. Rotate the raspberry screen sudo nano /boot/config.txt add display_rotate=1 //3 for 270 degrees

  2. Foos settings in config_base.py video_size(720,1280) camera_preview = "-p 0,0,72,128" camera_extra_params = "--ev 7 -rot 90"

swehner commented 4 years ago

great! good to know that that works for you! i'll add something to the documentation!

On Fri, Dec 13, 2019, 12:07 asindl notifications@github.com wrote:

Ok, found the solution:

1.

Rotate the raspberry screen sudo nano /boot/config.txt add display_rotate=1 //3 for 270 degrees 2.

Foos settings in config_base.py video_size(720,1280) camera_preview = "-p 0,0,72,128" camera_extra_params = "--ev 7 -rot 90"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/swehner/foos/issues/73?email_source=notifications&email_token=AACCWVAZULP6MTGXHZP3XGDQYNUFJA5CNFSM4JZ442IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZVPNQ#issuecomment-565401526, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACCWVHBIFYEKRYVHPNGKWLQYNUFJANCNFSM4JZ442IA .

asindl commented 4 years ago

The background images are a bit tricky. I didn't find a quick and easy way to use portrait images. As a workaround, I used landscape ones with the actual image at the left and whitespace to fill the rest.