justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.53k stars 3.68k forks source link

Question : Is it possible to modify this to be a "vehicle-api.js"? #671

Open moeiscool opened 4 years ago

moeiscool commented 4 years ago

I want to start off by saying I am a real fan of your (justadudewhohacks) work here and if you find the time to answer I thank you but I am just as happy with community input.

On to the details : I want to use the premise that face-api.js follows where it finds faces then you can save those faces somewhere and even label them with names of your own choosing. Quite quickly in fact.

I am very much willing to do all the work necessary to make it happen. In essence I would like to know if this is a reasonable place to begin.

  1. Fork face-api.js
  2. Read https://github.com/justadudewhohacks/face-api.js/blob/master/src/faceRecognitionNet/FaceRecognitionNet.ts
  3. Make a basic model set? (this I don't know how to do, do I just make a vehicle detector model? like the kind used for object detection?)
  4. replace model loaded in file mentioned in .2

I am seeing coco stuff in the src folder as well. Does that mean I can sort of just swap it? Or is that an over-simplification?

Thank you to anyone who answers.

And Thanks again to justadudewhohacks.

josiahbryan commented 3 years ago

@moeiscool I know opencv.js has some haarcascades for licence plate detection, and some great object tracking features. Also, there are tons of other tensorflow models, I would google for TF models specific to vehicle tracking...ymmv, but yeah, I'm with you on how awesome this project is!