Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
565 stars 112 forks source link

10 windows #85

Closed wifispray closed 3 years ago

wifispray commented 3 years ago

Hi All,

As per this thread, can seem to get 10 window version working. What is the logic to getting the x coordinates?

https://github.com/Anonymousdog/displaycameras/issues/60

I want to have large upper left, 4 small upper right, lower left large and 4 small lower right.

So far I have this: window_positions=(

First Row

upper_left

"0 0 960 540"

upper_right

"960 0 1440 270" "1440 0 1920 270" "960 270 1440 540" "1440 270 1920 540" \

Second Row

lower_left

"0 540 960 1080"

lower_right

Cant work out the lower_right piece. any help would be great

Anonymousdog commented 3 years ago

X coordinates are just like upper right. Y coordinates just like that but shifted down 540 pixels.

0 0 959 539 (for 1st window), btw since 0,0 is the 1st pixel (not 1,1). Otherwise, your windows are too big by one pixel in each direction and overlap that same amount.

On Wed, Dec 2, 2020, 3:08 PM wifispray notifications@github.com wrote:

Hi All,

As per this thread, can seem to get 10 window version working. What is the logic to getting the x coordinates?

60 https://github.com/Anonymousdog/displaycameras/issues/60

I want to have large upper left, 4 small upper right, lower left large and 4 small lower right.

So far I have this: window_positions=(

First Row

upper_left

"0 0 960 540"

upper_right

"960 0 1440 270" "1440 0 1920 270" "960 270 1440 540" "1440 270 1920 540" \

Second Row

lower_left

"0 540 960 1080"

lower_right

Cant work out the lower_right piece. any help would be great

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKJDISMJC3OAB26ELGDSS2NC5ANCNFSM4UK7NHTQ .

wifispray commented 3 years ago

Thanks dude. So for the #lower_right (4 windows), what would that look like?

wifispray commented 3 years ago

Can you help?

wifispray commented 3 years ago

X coordinates are just like upper right. Y coordinates just like that but shifted down 540 pixels. 0 0 959 539 (for 1st window), btw since 0,0 is the 1st pixel (not 1,1). Otherwise, your windows are too big by one pixel in each direction and overlap that same amount. On Wed, Dec 2, 2020, 3:08 PM wifispray @.***> wrote: Hi All, As per this thread, can seem to get 10 window version working. What is the logic to getting the x coordinates? #60 <#60> I want to have large upper left, 4 small upper right, lower left large and 4 small lower right. So far I have this: window_positions=( #First Row #upper_left "0 0 960 540" #upper_right "960 0 1440 270" "1440 0 1920 270" "960 270 1440 540" "1440 270 1920 540" \ #Second Row #lower_left "0 540 960 1080" #lower_right Cant work out the lower_right piece. any help would be great — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#85>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKJDISMJC3OAB26ELGDSS2NC5ANCNFSM4UK7NHTQ .

Can you help?