tzutalin / dlib-android-app

:dragon: Android app to demo dlib-android(https://github.com/tzutalin/dlib-android). Use the prebuilt shared-lib built from dlib-android
Apache License 2.0
683 stars 246 forks source link

Wrong initialization of VisionDetRet class #12

Closed beraldofilippo closed 8 years ago

beraldofilippo commented 8 years ago

Forgot to initialize correctly ArrayList<Point> in VisionDetRet.

The default constructor should be VisionDetRet() { mLandmarkPoints = new ArrayList<>(); } insted of being completely empty.

Alternatively you can add the initialization right into the private field declaration. Sorry for that it slipped away!

tzutalin commented 8 years ago

Thx. Don't worry about it. I have initialized the private filed, you can check the source code. :)