Open Feiko opened 5 years ago
I just tried loading the original frontal.cascade file from flash. image.HaarCascade('/flash/frontalface.cascade')
throws the same core dump. So the issue is not the cascade file.
actually this func is not full tested, it's better to use model to find face https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/demo_find_face.py
I agree, for finding faces using the KPU would make more sense. However my haarcascade can identify license plates and I don't have a suitable license plate database to train a new kmodel. Also I want to use the KPU to read the license plate. Hopefully this bug will be resolved soon, this project has been on hold for more than 6 months.
I'm facing the same issue. Any updates on this?
Any updates on when we can expect a fix? It would be very nice if we could use the Haarcascade.
I am facing the same issue as well, on the M5StickV.
Firmware version M5StickV_v5.1.2
Micropython prompt: MicroPython v0.5.0-98-g7ec09ea22-dirty on 2020-07-21; Sipeed_M1 with kendryte-k210
However, loading a built-in model does work, so the issue is only if I want to use my own HaarCascade.
>>> import image
>>> image.HaarCascade("eye")
{"width":20, "height":20, "n_stages":24, "n_features":1066, "n_rectangles":2299}
>>> image.HaarCascade("flash/haarcascade_eye.cascade")
V (13037270160) SYSCALL: misaligned load recovered at 8000f474. len:08,addr:736163726161682f,reg:06,data:0000000000000000,signed:1,float:0
core dump: illegal instruction
Cause 0x0000000000000002, EPC 0x0000000000000000
I've build a Haar Cascade and converted the cascade to a .cascade file using cascade_convert.py. When I try to load the cascade from sd or flash I get a core dump. I tried the default haarcascade_frontalface_default.xml. I get the same problem. The default script where the haarcascade is loaded from memory does work
image.HaarCascade("frontalface", stages=25)
I can't find any prebuild .cascade file for testing.I'm using the following firmware version
MicroPython v0.4.0-82-gc3327b5 on 2019-10-25; Sipeed_M1 with kendryte-k210