TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Twitter bot that tweets bad ball and strike calls in MLB baseball games

11 点作者 chaddeshon超过 10 年前
@MajorLeagueUmp or @[TeamNickname]Ump<p>You&#x27;re watching a baseball game. The pitcher throws a pitch right down the middle of the plate, but the umpire calls it a ball. Was it really a bad call or did you just have a bad angle.<p>@MajorLeagueUmp or @[TeamNickname]Ump tweets bad ball and strike calls in realtime and includes:<p><pre><code> - A picture of the pitch location - Percentage of the time a pitch in that location is called a strike - How far the pitch was from the edge of the *real life* strike zone </code></pre> On TV, FoxTrax will show you where the pitch went relative to the rulebook strike zone, but it won&#x27;t tell you if pitches in that location are typically called strikes. I found this frustrating because any baseball fan knows that the real strike zone is different than the rule book zone.<p>To find the actual zone I:<p><pre><code> 1. Downloaded Pitch F&#x2F;X data from the last four years. 2. Built a fine-grain heat-map of called-strike percentages. 3. Applied some gaussian filters. 4. Converted the heat-map into perimeters (inside this line it is a strike 78% of the time, etc). Polar coordinates finally turned out to be good for something. </code></pre> The tweets are updated by:<p><pre><code> 1. Nodejs server on heroku that monitors Pitch F&#x2F;X data in real-time. 2. Each pitch is stored in Firebase. 3. Compare the pitches to the actual zone from above. 4. If the call was really bad, generate an SVG and tweet. </code></pre> I&#x27;ve been researching the strike zone on and off for the last 5 years. At first, I wanted to answer two questions.<p><pre><code> 1. Where are balls and strikes actually called? 2. How consistent are umpires in making those calls? </code></pre> Some quick answers:<p><pre><code> 1. They widen the plate a tad. 2. They really round off the corners. The strike zone is closer to a circle than a square. 3. Left handed hitters face a much larger strike zone that extends well off the outside of the plate. 4. They are actually pretty consistent, but not perfect.</code></pre>

3 条评论

chaddeshon超过 10 年前
Clickable:<p><a href="https://twitter.com/MajorLeagueUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;MajorLeagueUmp</a><p><a href="https://twitter.com/RedSoxUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RedSoxUmp</a><p><a href="https://twitter.com/YankeesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;YankeesUmp</a><p><a href="https://twitter.com/DiamondbacksUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;DiamondbacksUmp</a><p><a href="https://twitter.com/BravesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;BravesUmp</a><p><a href="https://twitter.com/OriolesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;OriolesUmp</a><p><a href="https://twitter.com/CubsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;CubsUmp</a><p><a href="https://twitter.com/WhiteSoxUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;WhiteSoxUmp</a><p><a href="https://twitter.com/RedsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RedsUmp</a><p><a href="https://twitter.com/IndiansUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;IndiansUmp</a><p><a href="https://twitter.com/RockiesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RockiesUmp</a><p><a href="https://twitter.com/TigersUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;TigersUmp</a><p><a href="https://twitter.com/MarlinsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;MarlinsUmp</a><p><a href="https://twitter.com/AstrosUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;AstrosUmp</a><p><a href="https://twitter.com/RoyalsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RoyalsUmp</a><p><a href="https://twitter.com/AngelsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;AngelsUmp</a><p><a href="https://twitter.com/DodgersUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;DodgersUmp</a><p><a href="https://twitter.com/BrewersUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;BrewersUmp</a><p><a href="https://twitter.com/TwinsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;TwinsUmp</a><p><a href="https://twitter.com/MetsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;MetsUmp</a><p><a href="https://twitter.com/AthleticsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;AthleticsUmp</a><p><a href="https://twitter.com/PhilliesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;PhilliesUmp</a><p><a href="https://twitter.com/PiratesUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;PiratesUmp</a><p><a href="https://twitter.com/PadresUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;PadresUmp</a><p><a href="https://twitter.com/GiantsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;GiantsUmp</a><p><a href="https://twitter.com/MarinersUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;MarinersUmp</a><p><a href="https://twitter.com/CardinalsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;CardinalsUmp</a><p><a href="https://twitter.com/RaysUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RaysUmp</a><p><a href="https://twitter.com/RangersUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;RangersUmp</a><p><a href="https://twitter.com/BlueJaysUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;BlueJaysUmp</a><p><a href="https://twitter.com/NationalsUmp" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;NationalsUmp</a>
mjhea0超过 10 年前
Do you have a github repo for these?
评论 #8274469 未加载
tvhiggins超过 10 年前
is the 3-d strike zone incorporated into these calculations? i know the strike zone has width, in addition to length,height. so when you say the strike zone is more of a circle, i would contend it&#x27;s a horizontal cylinder.