-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopencv_data.jl
More file actions
executable file
·27 lines (22 loc) · 851 Bytes
/
Copy pathopencv_data.jl
File metadata and controls
executable file
·27 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# println("\033[1;34m===>\033[0;38m\033[1;38m\tLoading required libraries (it will take a moment to precompile if it is your first time doing this)...\033[0;38m")
@info "Loading required libraries (it will take a moment to precompile if it is your first time doing this)..."
using FaceDetection
const FD = FaceDetection
using Images: imresize
using LightXML
@info("...done")
function main()
xml_data = parse_file(joinpath(
dirname(dirname(@__FILE__)),
"data",
"haarcascades",
"haarcascade_frontalface_default.xml",
),) # ../data/haarcascades/haarcascade_frontalface_default.xml
for c in child_nodes(root(xml_data)) # c is an instance of XMLNode
if is_elementnode(c)
e = XMLElement(c) # this makes an XMLElement instance
println(name(e))
end
end
end
main()