OAID / TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
Other
2.38k stars 318 forks source link

isProcessingFrame value is on the wrong location! #35

Closed krsad closed 3 years ago

krsad commented 3 years ago

On the android samples for face, the variable isProcessingFrame on line 115 in the CameraActivity.java, located wrong. It must be set to false after processImage() on line 116. Because when the image processing, the OnPreviewFrame function must be locked. With that correction, fps rate gets a little lower, however, works properly. You can simply change the places of these two lines.

Crusoekid commented 3 years ago

Thanks for your suggestion