Skip to content
This repo is used to upload opencv complex object detection with latent SVM in android.
C++ Java C CMake Makefile Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gradle/2.14.1
.idea
.settings
build
gradle/wrapper
jni
openCVLibrary2411
openCVSamplefacedetection
res
sdk/native
src/org/opencv/samples/facedetect
.classpath
.cproject
.project
AndroidManifest.xml
README.md
bike-detection.iml
build.gradle
face-detection.iml
gradlew
gradlew.bat
import-summary.txt
local.properties
project.properties
settings.gradle

README.md

OpenCvComplexObjectDectection

This repo is used to upload opencv complex object detection with latent SVM in android. For complex object detection like bicycle, car etc. in android phone this example may be helpful. Clone or download the code from here. Then open it with android studio. This example using opencv version 2.4.11. It can be replaced by 3.1.0 version. This example initially used to detect bicycle but you can use it to detect car, bus and many other complex objects. For car detection you need to change the following code of BdActivity line 64.

mXmlFile = BikeDetectionUtils.getSourceFile(BdActivity.this, R.raw.bicycle, "bicycle.xml", "model");

There are many files for object detection. Suppose, if you want to detect car you can use the following code instead of the above code.

mXmlFile = BikeDetectionUtils.getSourceFile(BdActivity.this, R.raw.car, "car.xml", "model");

alt tag alt tag

The detection time can be various upon some factors like camera quality, background, angle etc. For object detection here latent SVM has been implemented. It is bit slow process. It will take around 5 - 12 sec to detect the object. This is the android implementation of this xmls.

References

You can’t perform that action at this time.