Main > Lightguns

Quick prototype demo for possible Sinden light gun improvement

<< < (2/4) > >>

RandyT:

--- Quote from: TapeWormInYourGut on September 27, 2022, 09:38:02 pm ---The player doesn't wear any glasses... He's saying that you have 2 cameras mounted in your gun. One will have the polarization filter, and the other won't. The software can identify the area of the display using those 2 images in his example. Once we have the area of the display, a border can be calculated to perform something like Sinden, or instead, the midpoints of edges can be found to do something like GUN4IR. The border doesn't actually get rendered. It doesn't need to because the software calculates it using those 2 images.

The problem is that processing the 2 images would be slow. Or at least too slow for a gun game.

--- End quote ---

Either you're missing something or I am.  If the system can identify the border of the visible screen well enough to subtract it from the other, what possible benefit is the dark screen?  The tracking system for the purposes of aiming doesn't give a whit about the physical frame of the TV, only the image generated on it, and then only the edges.  And if the edges of the displayed images just happened to be black, it would look like the blocked image.  Then what?

IOW, if it can see the edges of the lit display well enough to compare it with the blocked one, you already have the data you need.  The image he presented is not a real case scenario, being fully illuminated and blooming all over the place.  The gain adjustment in the camera will properly define the screen without these gymnastics.  The "dead" monitor image is extraneous.

TapeWormInYourGut:
The system would need both images to identify the border of the screen. Let me word it another way; If you layered those 2 images on top of each other, the screen can be identified by finding all pixels where the black and white overlap. All other overlapping pixels in the image will be the same color, or only slightly off. So you'd know those are not a part of the screen. Only the extreme differences, white overlapping black, would be the screen.

From there it's like you said in the second paragraph. You'd have all the data you'd need to perform location calculations.

RandyT:

I know what you are saying, I disagree with the value proposition.  If you want to know the value of A, and to get that value you want to subtract the value of A from B, or B from A, don't you already have or need to have the value of A to begin with? And if you do, you don't need to be concerned with B.

TapeWormInYourGut:
You don't have the value of A or B already though. You have to go through each coordinate/pixel in images to find them. I.e., you need to compare position 0,0 in the first and second image. You'll only know if it's a part of the display's screen when one pixel has black and the other has white. If that's not the case, then it isn't the screen. So you need to search for it... After you found them all, then you have everything you need to work towards Sinden or GUN4IR calculations.

You can't search 1 image alone because like you said, you'd just have a black screen along with a dozen other black areas in the image. It doesn't help. You need to compare it to another image that has the polar opposite color for the screen area. That overlap is how you find the display's screen and also rule out any outliers.

RandyT:

--- Quote from: TapeWormInYourGut on September 28, 2022, 02:45:15 pm ---You can't search 1 image alone because like you said, you'd just have a black screen along with a dozen other black areas in the image. It doesn't help. You need to compare it to another image that has the polar opposite color for the screen area. That overlap is how you find the display's screen and also rule out any outliers.

--- End quote ---

But the polarization of the blank screen not only never changes, it is physically impossible to do so, thanks to the polarizer in the monitor.  The blank screen is literally and permanently just that.  There is no way to make those comparisons.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version