Scoreboard "OCR"

#1
Hello CasparCG community.

I discovered Caspar only a month ago and it was love at first sight.

I have been streaming from basketball games from my local team for some years now, and until recently we have been on 0 budget. Borrowed camera there, and borrowed old laptop there. You know the drill.

Now we have BMD TVS and few cameras of our own, and I have been searching for ways to do a professional looking graphics without the score cam.
But I am all out of luck regarding data for the graphics. There is no data port on the old scoreboard, and the statistic program that is in use by the basketball federation has a 40-120 sec delay in data delivery. So my only option is score cam or scoreboard ocr. Only ocr solution I have found is ScoreOCR and that costs arm and a leg, and it seemed that I was stuck with score cam.

But I didn't give up. I started a mockup of a program using OpenCV library and I wanted some input from you guys, before I dive completely into codeland.

The idea is not to do character recognition but reading the segments, as marked on the picture

Have you seen something simular to this?


Image

Re: Scoreboard "OCR"

#3
You have a good idea using a target area. Even clamping a camera down you will have movement from
stadium bleachers moving with traffic.

Allow color to be removed and contrast adjustment. You will likely look for a threshold value of
light over dark to detect segment on/off. If needed blur the image if old fashion "bulbs" are used
for the segments.

Re: Scoreboard "OCR"

#5
rcourtney wrote:You have a good idea using a target area. Even clamping a camera down you will have movement from
stadium bleachers moving with traffic.

Allow color to be removed and contrast adjustment. You will likely look for a threshold value of
light over dark to detect segment on/off. If needed blur the image if old fashion "bulbs" are used
for the segments.
If you to a self calibration process on a fixed position on the scoreboard the camera can move as long as it has the scoreboard in the frame.

Little logic :)
Broadcast Live streaming | Video production
www.agatin.hr

Re: Scoreboard "OCR"

#8
Interesting subject aroused my interest and this is also a good project to learn visual basic programming. I've done a few of the program c ++ programming language. Practical tests I have not been able to make since my Mac does not have a video interface.
Attachments
ocr2.jpg
ocr2.jpg (87.15 KiB) Viewed 9186 times
scoreboard.jpg
scoreboard.jpg (79.67 KiB) Viewed 9186 times

Re: Scoreboard "OCR"

#12
I made a version of this OCR that works with flash AS3. Basically made a separate flash file for the Scoreboard interface and sent the time to a score but template with LocalConnection in flash. It worked really well. I haven't had time to work on it much for a while.

Re: Scoreboard "OCR"

#13
If anyone is interested, I have an flash based OCR that can work with 2 webcams or even black magic video inputs, which show up as webcams. It can read the time and a shot clock/play clock and write it to a text file for use with live text in a Tricaster or it can send to a flash template for CasperCG via local connection.

I haven't worked on this project in quite a while. But I used it for professional sports broadcasts a few times and it worked pretty well.

I'm not a professional coder and the code is all in-line with no classes, just a bunch of functions. It's all in AS3 for flash but if anyone want to work on something like this I'd be willing to share.

My email is sethz763@gmail.com, I don't have the permission to respond to messages from the forum.