It is currently 28 Jun 2017, 02:47



Scoreboard "OCR"

Videos, graphics, Flash templates – how to create and play them using CasparCG

Moderators: Macey, Jonas Hummelstrand, didikunz

Scoreboard "OCR"

Postby einzi » 18 Sep 2014, 11:09

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
einzi
 
Posts: 1
Joined: 12 Apr 2014, 15:05
Location: Ísafjörður, Iceland

Re: Scoreboard "OCR"

Postby didikunz » 18 Sep 2014, 11:16

Nice idea, I normally key in the scores by hand...
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3479
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Scoreboard "OCR"

Postby rcourtney » 03 Oct 2014, 04:15

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.
rcourtney
 
Posts: 5
Joined: 23 Dec 2011, 04:13

Re: Scoreboard "OCR"

Postby umek » 03 Oct 2014, 09:39

Thats quite simple.

Here's a link to get started.

http://diga.me.uk/sevenSegDecode.html
Broadcast Live streaming | Video production
www.agatin.hr
User avatar
umek
 
Posts: 161
Joined: 01 Sep 2012, 10:50
Location: Zagreb, Croatia

Re: Scoreboard "OCR"

Postby umek » 03 Oct 2014, 09:50

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
User avatar
umek
 
Posts: 161
Joined: 01 Sep 2012, 10:50
Location: Zagreb, Croatia

Re: Scoreboard "OCR"

Postby rcourtney » 03 Oct 2014, 22:07

Agreed, add a target window, say 4 to 8 surrounding pixels. Locate the edge (preferably a corner) and adjust
the points by this offset. Save the new edge position for the next pass.
rcourtney
 
Posts: 5
Joined: 23 Dec 2011, 04:13

Re: Scoreboard "OCR"

Postby TheYouth » 22 Dec 2014, 17:13

Do you think it´s even possible with clocks? They´re changing faster than a score :)

Does anyone have it working with Caspar?
TheYouth
 
Posts: 126
Joined: 01 Jul 2013, 09:23

Re: Scoreboard "OCR"

Postby Aston » 06 Jan 2015, 09:26

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 6056 times
scoreboard.jpg
scoreboard.jpg (79.67 KiB) Viewed 6056 times
User avatar
Aston
 
Posts: 59
Joined: 25 Feb 2014, 08:49
Location: Rautjärvi 60.928374, 27.105396

Re: Scoreboard "OCR"

Postby thos-berlin » 06 Jan 2015, 10:11

Hi Aston,

does your OCR recognizes changes ? Does it already runs in a Caspar-Client ? I would be very interested in trying ....
User avatar
thos-berlin
 
Posts: 314
Joined: 13 Apr 2013, 14:50

Re: Scoreboard "OCR"

Postby TheYouth » 06 Jan 2015, 17:18

I'm interested in testing too. :-)
Looks pretty well programmed.
TheYouth
 
Posts: 126
Joined: 01 Jul 2013, 09:23

Re: Scoreboard "OCR"

Postby maitilupas » 23 Apr 2015, 08:06

please let us know if you are open to share
User avatar
maitilupas
 
Posts: 17
Joined: 30 Oct 2013, 21:18
Location: Rotterdam, Netherlands

Re: Scoreboard "OCR"

Postby sethz763 » 20 Sep 2015, 22:51

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.
sethz763
 
Posts: 6
Joined: 03 Dec 2012, 10:20
Location: USA - New York

Re: Scoreboard "OCR"

Postby sethz763 » 23 Sep 2015, 21:47

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.
sethz763
 
Posts: 6
Joined: 03 Dec 2012, 10:20
Location: USA - New York

Re: Scoreboard "OCR"

Postby TheYouth » 05 Mar 2016, 23:56

Hi! Send you an email some days ago, but no answer so far? :-)
TheYouth
 
Posts: 126
Joined: 01 Jul 2013, 09:23

Re: Scoreboard "OCR"

Postby Ultravibe » 23 Dec 2016, 22:16

Guyz!
Has anyone a protocol of scoreboards to intercept timing & scoring data?
User avatar
Ultravibe
 
Posts: 286
Joined: 11 Jan 2015, 09:05

Re: Scoreboard "OCR"

Postby thos-berlin » 23 Dec 2016, 22:39

When I remember correctly, there was the Daktronics protocoll published here in forum. Unfortunately, the different manufactors have different protocols....
User avatar
thos-berlin
 
Posts: 314
Joined: 13 Apr 2013, 14:50

Re: Scoreboard "OCR"

Postby didikunz » 23 Dec 2016, 23:13

Ultravibe wrote:Guyz!
Has anyone a protocol of scoreboards to intercept timing & scoring data?


Normally you can ask the manufacturer of the scoreboard for the documentation of their protocol.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3479
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland


Return to Content

Who is online

Users browsing this forum: No registered users and 4 guests