Skip to content

Commit fd2779f

Browse files
committed
fix spelling mistake
1 parent 88e1d30 commit fd2779f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

opencv-examples/lib/OpenCV/Example.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module OpenCV.Example
77
( createCapture
88
, createCaptureArg
9-
, withEmbededFile
9+
, withEmbeddedFile
1010
) where
1111

1212
import "base" System.Environment
@@ -48,8 +48,8 @@ embedCallHelp ef templ f =
4848

4949
-- | Embedder for strictly used files, it allows to embed a file, and still allow
5050
-- some method to use filename
51-
withEmbededFile :: FilePath -> Q Exp
52-
withEmbededFile filePath = do
51+
withEmbeddedFile :: FilePath -> Q Exp
52+
withEmbeddedFile filePath = do
5353
templ <- [| $(lift $ takeFileName filePath) |]
5454
ef <- embedFile filePath
5555
var <- newName "f"

opencv-examples/src/face-detect.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ white = CV.toScalar (V4 255 255 255 255 :: V4 Double)
3131
main :: IO ()
3232
main = do
3333
cap <- createCaptureArg
34-
Just ccFrontal <- $(withEmbededFile "data/haarcascade_frontalface_default.xml") CV.newCascadeClassifier
35-
Just ccEyes <- $(withEmbededFile "data/haarcascade_eye.xml") CV.newCascadeClassifier
34+
Just ccFrontal <- $(withEmbeddedFile "data/haarcascade_frontalface_default.xml") CV.newCascadeClassifier
35+
Just ccEyes <- $(withEmbeddedFile "data/haarcascade_eye.xml") CV.newCascadeClassifier
3636
w <- CV.videoCaptureGetI cap VideoCapPropFrameWidth
3737
h <- CV.videoCaptureGetI cap VideoCapPropFrameHeight
3838
CV.withWindow "video" $ loop cap (ccFrontal, ccEyes, w, h)

opencv-extra-examples/src/tracker.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ccCommon :: ((FilePath -> IO (Maybe CV.CascadeClassifier)) -> IO (Maybe a)) -> a
4141
ccCommon f = unsafePerformIO $ fromJust <$> f CV.newCascadeClassifier
4242

4343
ccFrontal :: CV.CascadeClassifier
44-
ccFrontal = ccCommon $(withEmbededFile "data/haarcascade_frontalface_default.xml")
44+
ccFrontal = ccCommon $(withEmbeddedFile "data/haarcascade_frontalface_default.xml")
4545

4646
main :: IO ()
4747
main = do

0 commit comments

Comments
 (0)