We can't see any part of your code, so we can only guess.
Based on the error message, you are trying to call a function called
drawKeyPoints
, but that function either doesn't exist, or is not available in the scope where you're trying to call it.
Scope - MDN Web Docs Glossary: Definitions of Web-related terms | MDN[
^]
If you want more specific advice, you'll need to edit your question to show the relevant parts of your code.