市值: $2.1622T -0.84%
體積(24小時): $50.0999B -16.65%
  • 市值: $2.1622T -0.84%
  • 體積(24小時): $50.0999B -16.65%
  • 恐懼與貪婪指數:
  • 市值: $2.1622T -0.84%
加密
主題
加密植物
資訊
加密術
影片
頭號新聞
加密
主題
加密植物
資訊
加密術
影片
bitcoin
bitcoin

$87959.907984 USD

1.34%

ethereum
ethereum

$2920.497338 USD

3.04%

tether
tether

$0.999775 USD

0.00%

xrp
xrp

$2.237324 USD

8.12%

bnb
bnb

$860.243768 USD

0.90%

solana
solana

$138.089498 USD

5.43%

usd-coin
usd-coin

$0.999807 USD

0.01%

tron
tron

$0.272801 USD

-1.53%

dogecoin
dogecoin

$0.150904 USD

2.96%

cardano
cardano

$0.421635 USD

1.97%

hyperliquid
hyperliquid

$32.152445 USD

2.23%

bitcoin-cash
bitcoin-cash

$533.301069 USD

-1.94%

chainlink
chainlink

$12.953417 USD

2.68%

unus-sed-leo
unus-sed-leo

$9.535951 USD

0.73%

zcash
zcash

$521.483386 USD

-2.87%

加密貨幣新聞文章

這個機器人根據 Twitch 聊天命令拋硬幣

2024/08/13 06:02

做出決定是困難的,這就是為什麼人類想出了各種愚蠢的方法來減輕一些精神負擔。例如,優點/缺點清單應該盡可能增加決策過程的客觀性

這個機器人根據 Twitch 聊天命令拋硬幣

This internet-connected robot will flip a coin for you at the drop of a chat comment.

這個連接網路的機器人會在您發表聊天評論時為您擲硬幣。

Making decisions is hard, which is why humanity has come up with all sorts of goofy ways to alleviate some of the mental burden. Pros/cons lists, for example, are supposed to add as much objectivity as possible to the decision-making process — or at least to give you clarity about the choice you’re subconsciously rooting for. But the ultimate decision maker is obviously the good ol’ fashioned coin flip. You get 50:50 odds and the entertainment of watching something shiny tumble through the air.

做出決定是困難的,這就是為什麼人類想出了各種愚蠢的方法來減輕一些精神負擔。例如,優點/缺點清單應該為決策過程增加盡可能多的客觀性,或至少讓你清楚地了解你潛意識支持的選擇。但最終的決策者顯然是傳統的拋硬幣。您將獲得 50:50 的賠率,並享受觀看閃亮物體在空中翻滾的樂趣。

To make coin flips accessible to his chat over the internet, Terence Grover built this robot.

為了讓他可以透過網路聊天進行拋硬幣,特倫斯·格羅弗(Terence Grover)建造了這個機器人。

This robot lets anyone flip Grover’s very special coin via a simple command in a live stream chat. Commenting “!heads” flips the coin with heads as the prediction, and commenting “!tails” does the opposite. After receiving the command, the robot flips the coin. It then snaps a photo and analyzes that to determine which face is up. Finally, it displays the results and repositions the coin for the next flip. Grover also created a nifty graphic to display some basic statistics on the previous flips, including the heads:tails ratio and the percentage of correct predictions.

這個機器人可以讓任何人透過即時串流聊天中的簡單命令來翻轉格羅弗非常特別的硬幣。評論“!heads”會以正面作為預測,而評論“!tails”則相反。機器人收到命令後,拋硬幣。然後它會拍攝一張照片並對其進行分析以確定哪張臉朝上。最後,它顯示結果並重新定位硬幣以進行下一次拋擲。格羅佛還創建了一個漂亮的圖形來顯示之前翻轉的一些基本統計數據,包括正面:反面比率和正確預測的百分比。

The heart of the machine is a small solenoid that provides the flipping actuation. If we have one criticism, it is that the solenoid seems weak and unable to give the coin a vigorous flip — though we’ll let the statisticians debate whether or not that affects the odds. A Raspberry Pi single-board computer controls that solenoid via a relay. It also controls a servo motor that opens and closes a 3D-printed iris mechanism, which is a clever way to recenter the coin over the solenoid after each flip.

該機器的核心是一個提供翻轉驅動的小螺線管。如果我們有一個批評,那就是螺線管似乎很弱,無法使硬幣有力地翻轉——儘管我們會讓統計學家爭論這是否會影響賠率。 Raspberry Pi 單板電腦透過繼電器控制此電磁閥。它還控制打開和關閉 3D 列印虹膜機構的伺服電機,這是每次翻轉後將硬幣重新置於螺線管上方的巧妙方法。

The Raspberry Pi runs a simple server that uses the GPIO pins to toggle the relay in response to a command received over the network, which is how it is able to integrate with the chat comments. It detects the coin face using a computer vision machine learning model trained on this specific coin in this machine, using images from a connected Raspberry Pi Camera. To speed up that process, it first crops most of the photo by detecting a circle of the approximate diameter of the coin. That makes the image very small and easy to process.

Raspberry Pi 運行一個簡單的伺服器,該伺服器使用 GPIO 引腳來切換繼電器以響應透過網路接收到的命令,這就是它能夠與聊天評論整合的方式。它使用電腦視覺機器學習模型來檢測硬幣的正面,該模型是在該機器中針對該特定硬幣進行訓練的,並使用來自連接的 Raspberry Pi 相機的圖像。為了加快這一過程,它首先通過檢測大約硬幣直徑的圓圈來裁剪大部分照片。這使得圖像非常小且易於處理。

A separate webcam watches the robot in action and streams the video to online viewers. That camera has a delay of a few seconds, but that matches up well with the computer vision processing time and so viewers see the detected results at about the same time as they see the corresponding flip in the video.

一個單獨的網路攝影機監視機器人的動作,並將影片傳輸給線上觀眾。該相機有幾秒鐘的延遲,但這與電腦視覺處理時間很好地匹配,因此觀看者在看到影片中相應翻轉的同時幾乎可以同時看到檢測到的結果。

And to introduce a little extra drama, Grover gave the robot a special €2 coin celebrating some Monégasque prince. According to Grover, that is worth €1,000 and that raises the stakes of the coin flips.

為了引入一點額外的戲劇性,格羅佛給了機器人一枚特殊的 2 歐元硬幣,以紀念摩納加王子。據 Grover 稱,這價值 1,000 歐元,這增加了拋硬幣的賭注。

原始來源:hackster

免責聲明:info@kdj.com

所提供的資訊並非交易建議。 kDJ.com對任何基於本文提供的資訊進行的投資不承擔任何責任。加密貨幣波動性較大,建議您充分研究後謹慎投資!

如果您認為本網站使用的內容侵犯了您的版權,請立即聯絡我們(info@kdj.com),我們將及時刪除。

2026年08月02日 其他文章發表於