Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure getScore and getVote have strict parameter typing #17

Closed
jakewilliami opened this issue Aug 28, 2020 · 1 comment
Closed

Ensure getScore and getVote have strict parameter typing #17

jakewilliami opened this issue Aug 28, 2020 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@jakewilliami
Copy link
Owner

I had to remove it because I was getting the error

ERROR: LoadError: MethodError: no method matching getVote(::Main.FaceDetection.Adaboost.HaarLikeFeature.HaarLikeObject, ::Array{Float64,2})
Closest candidates are:
  getVote(::Main.FaceDetection.Utils.HaarLikeFeature.HaarLikeObject, ::AbstractArray) at /Users/jakeireland/FaceDetection.jl/src/HaarLikeFeature.jl:97
Stacktrace:
 [1] (::Main.FaceDetection.Utils.var"#1#2"{Array{Float64,2}})(::Main.FaceDetection.Adaboost.HaarLikeFeature.HaarLikeObject) at ./none:0
 [2] iterate at ./generator.jl:47 [inlined]
 [3] collect(::Base.Generator{Array{Any,1},Main.FaceDetection.Utils.var"#1#2"{Array{Float64,2}}}) at ./array.jl:686
 [4] ensembleVote(::Array{Float64,2}, ::Array{Any,1}) at /Users/jakeireland/FaceDetection.jl/src/Utils.jl:87
 [5] #3 at /Users/jakeireland/FaceDetection.jl/src/Utils.jl:115 [inlined]
 [6] iterate at ./generator.jl:47 [inlined]
 [7] _collect(::Array{Array{Float64,2},1}, ::Base.Generator{Array{Array{Float64,2},1},Main.FaceDetection.Utils.var"#3#4"{Array{Any,1}}}, ::Base.EltypeUnknown, ::Base.HasShape{1}) at ./array.jl:699
 [8] collect_similar at ./array.jl:628 [inlined]
 [9] map at ./abstractarray.jl:2162 [inlined]
 [10] ensembleVoteAll(::Array{Array{Float64,2},1}, ::Array{Any,1}) at /Users/jakeireland/FaceDetection.jl/src/Utils.jl:115
 [11] main(::Bool, ::Bool) at /Users/jakeireland/FaceDetection.jl/src/FDA.jl:76
 [12] top-level scope at ./timing.jl:174
 [13] include(::Function, ::Module, ::String) at ./Base.jl:380
 [14] include(::Module, ::String) at ./Base.jl:368
 [15] exec_options(::Base.JLOptions) at ./client.jl:296
 [16] _start() at ./client.jl:506
in expression starting at /Users/jakeireland/FaceDetection.jl/src/FDA.jl:106

as of commit fa4352c

@jakewilliami jakewilliami added bug Something isn't working enhancement New feature or request labels Aug 28, 2020
@jakewilliami
Copy link
Owner Author

Not just these functions; anything that takes feature as a parameter and expects a HaarLikeObject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants