matteomedioli / AndroidObjectDetection

Real time object detection Android application using OpenCV 4.1 and YOLOv3.
MIT License
38 stars 15 forks source link

can it be converted to face/age/gender detection? #1

Open juniel03 opened 5 years ago

juniel03 commented 5 years ago

hey there great application thanks for the idea! i was wondering if it can be converted to face detection? i tried to change the weight and config files but I just got errors

matteomedioli commented 5 years ago

Hey. Thanks :) Can you post your error and config file? I think conversion it is possible with a right training. Without see error, first idea is that you have to check fame size. It must be equal to [288, 608] with all possible size between adding 32 (288, 320, 352, 384, 416...) both in the top of cfg file and in CameraActivity

    Size frame_size = new Size(416, 416);
    Mat blob = Dnn.blobFromImage(frame, 1.0 / 255.0, frame_size, mean, true, false);
chauhansunil792 commented 4 years ago

when i trained my own yolov3 readdnnfromdarknet gives null into net variable. do you have solution for this then please share how to load custom trained model?