Skip to content

Commit

Permalink
chore: typo, close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 31, 2023
1 parent be1352a commit 922ac2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ video.play()

async function scanFrame() {
const canvas = document.createElement('canvas')
canvas.width = video.value.videoWidth
canvas.height = video.value.videoHeight
canvas.width = video.videoWidth
canvas.height = video.videoHeight
const ctx = canvas.getContext('2d')
ctx.drawImage(videoEl.value!, 0, 0, canvas.width, canvas.height)
ctx.drawImage(video, 0, 0, canvas.width, canvas.height)
const result = await scan(canvas)

if (result?.text)
Expand Down

0 comments on commit 922ac2c

Please sign in to comment.