File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66module OpenCV.Example
77 ( createCapture
88 , createCaptureArg
9- , withEmbededFile
9+ , withEmbeddedFile
1010 ) where
1111
1212import "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"
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ white = CV.toScalar (V4 255 255 255 255 :: V4 Double)
3131main :: IO ()
3232main = 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)
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ ccCommon :: ((FilePath -> IO (Maybe CV.CascadeClassifier)) -> IO (Maybe a)) -> a
4141ccCommon f = unsafePerformIO $ fromJust <$> f CV. newCascadeClassifier
4242
4343ccFrontal :: CV. CascadeClassifier
44- ccFrontal = ccCommon $ (withEmbededFile " data/haarcascade_frontalface_default.xml" )
44+ ccFrontal = ccCommon $ (withEmbeddedFile " data/haarcascade_frontalface_default.xml" )
4545
4646main :: IO ()
4747main = do
You can’t perform that action at this time.
0 commit comments