Comments (6)
Hi @diego3g
It's don't good idea, because I tested in low configuration computer (low memory) and the computer stay lagged.
If creating with the option to use or not to use, it is a good idea.
Yeah, i think this one can be a plug in option.
Also, we don't need to use Face API itself, maybe we can find another solution that has an improved performance.
from mini-video-me.
Guys, reliving this discussion about using an approach to face detection, I leave here my contribution on how this feature could be made and detect not only faces but also eyes, mouths and any objects in the image.
Hugs.
https://www.youtube.com/watch?v=ayW6y8HzSe4
from mini-video-me.
https://www.youtube.com/watch?v=CVClHLwv-4I
from mini-video-me.
Hi @diego3g
It's don't good idea, because I tested in low configuration computer (low memory) and the computer stay lagged.
If creating with the option to use or not to use, it is a good idea.
from mini-video-me.
Hi, guys! 👋
So, I've searched for some API's for face detection and I got to know MediaPipe Face Detection:
You can test it here
It's working really well in the codepen example, and I also tested it in a new electron project. However, for some reason it's not working well in this project, the CPU consumption stay high basically all the time:
Anyway, I don't have a solution for this problem yet. But if someone have any idea of what to do to solve this, I think this feature would be more lightweight with MediaPipe Face Detection than with face-api.js:
You can test it here
Code that I wrote to implement MediaPipe (src/index.ts)
// Import these.
import { FaceDetection } from '@mediapipe/face_detection'
import { Camera } from '@mediapipe/camera_utils'
const faceDetection = new FaceDetection({
locateFile: file => {
return `https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/${file}`
},
})
faceDetection.setOptions({ minDetectionConfidence: 0.5, model: 'short' })
// Here is where the data about the detected face will be returned.
faceDetection.onResults(results => {
console.log(results)
})
// Important to constantly check where is the person's face.
// And it has a better perfomance than calling the setInterval function.
const camera = new Camera(cameraController.videoElement, {
onFrame: async () => {
faceDetection.send({ image: cameraController.videoElement })
},
})
camera.start()
from mini-video-me.
Hi, guys! I saw both videos in this thread here. However, I didn't get the point on using face detection in the app. A suggestion would have having the Mini Video Me tracking face to zoom in automatically or if there is no face at all the app would close the camera.
from mini-video-me.
Related Issues (20)
- Fullscreen covers the camera HOT 4
- it would be interesting if the mini video worked for me on mobile
- MacOS: Could not start video source HOT 20
- Shortcuts v3.3.2 HOT 5
- Broken Link on Readme.md HOT 1
- When the .deb is executed, the icon did not appear in the taskbar to access the settings HOT 2
- Some shortcuts are not working in Windows HOT 1
- Missing tray menu on Linux HOT 1
- Cannot select camera propertly HOT 25
- Camera not found with only one camera on notebook HOT 2
- It doesn't show camera image after installation on Mac HOT 1
- Integration with Raycast
- Camera not found error HOT 5
- Cant open HOT 2
- FIRST PLAN
- Set blur background
- "Close cam" option
- Avoid Mini Video Me being overlapped by Windows taskbar
- Feature request: camera pass-through
- Camera não encontrada HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-video-me.