How to build face recognition app using kivy ?

426 views
Skip to first unread message

sabayke bremso

unread,
Apr 27, 2022, 11:25:12 AM4/27/22
to Kivy users support
Hello everyone, i'm tryin to  convert  a simple python program to an android app my goal is to build the apk file.
This is my first time to with kivy, when i execute my code nothing happen.
can anyone help with my project please ?
kivycv.py

Elliot Garbus

unread,
Apr 27, 2022, 11:38:43 AM4/27/22
to kivy-...@googlegroups.com

Just looking at the code, the problem is the infinite while loop in the update() method.

 

Kivy runs an event loop.  The methods called must return, so kivy can return to the event loop where it does, rendering, scheduling and event processing. 

Rather than having an infinite loop, structure your code to be scheduled with Clock.schedule_interval()

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c68ffdad-b51a-4560-b548-ee526b453f12n%40googlegroups.com.

 

Robert

unread,
Apr 27, 2022, 1:24:12 PM4/27/22
to Kivy users support
Here is an example of using opencv on a video stream https://github.com/Android-for-Python/c4k_opencv_example

That example uses opencv to modify the image and this is then displayed, presumably your requirement is instead to annotate the displayed image.

This is an example that uses mlkit (android only) to do face detect, and the data is used to do image annotation.

beladdad walid

unread,
Apr 28, 2022, 6:50:20 AM4/28/22
to Kivy users support
brahime can u contact me our projects are kinda similar , i need ur help that's my email walidb...@gmail.com , maybe we can work together
Reply all
Reply to author
Forward
0 new messages