Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need advice - where to start to show game in continue #61

Open
jeanmichelbouchard opened this issue Jan 30, 2019 · 1 comment
Open

Need advice - where to start to show game in continue #61

jeanmichelbouchard opened this issue Jan 30, 2019 · 1 comment

Comments

@jeanmichelbouchard
Copy link
Contributor

Hi,
My camera is above the table. I'd like the game to show all the time on the screen and have the scores at the top of the screen, instead of showing a photo in background of the score. Do you have an advice about where to start looking in the code or how you would do it? Have you tried it already and dropped the idea because of performance issues?
Thanks,
Jean-Michel

@swehner
Copy link
Owner

swehner commented Jan 31, 2019

There shouldn't be any performance issue - I think the chip will handle the video preview without issue.
You'd have to do the following at least:
Change the preview size by adding this to your conifg.py file (adjusted to your resolution)
camera_preview = "-p 0,0,1920,1080"
That should show the preview fullscreen.

The problem is that the screen layout for scores is not really confgurable, and has two modes: normal and overlay_mode (small counters top right). You can modify the counter size and position in normal mode here:
https://github.com/swehner/foos/blob/master/foos/ui/ui.py#L324-L333

There are some other components that would have to be changed, but that shuld be a start...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants