Comments (6)
Any update on this? @saturngod
from face-landmarking-ios.
There is a function in Dlib called draw_solid_convex_polygon
. This might work for your needs.
You would use this with all points from the detector I guess instead of this code:
// and draw them into the image (samplebuffer)
for (unsigned long k = 0; k < shape.num_parts(); k++) {
dlib::point p = shape.part(k);
draw_solid_circle(img, p, 3, dlib::rgb_pixel(0, 255, 255));
}
from face-landmarking-ios.
I found a fork for this: https://github.com/stanchiang/face-landmarking-ios
He use SpriteKit to draw from swift, it's faster than draw it with uibezierpath and use it as sublayer, maybe you need to modify some of the code at:
GameScene.swift
and also you need to modify which node you need to draw at:
https://github.com/stanchiang/face-landmarking-ios/blob/master/DisplayLiveSamples/DlibWrapper.mm#L110
because in his case, he only extract inside mouth part
Note:
you need to fix the center part, maybe there's miscalculation for this part:
var center
from face-landmarking-ios.
@zweigraf draw_solid_convex_polygon
doesn't support in mobile version. It's under gui library.
@seebeb we cannot use that code because the point is missing base on the phone. Example not working well iPhone 7 and iPad.
from face-landmarking-ios.
@saturngod Have you found a way to draw a polygon using the facial landmark points? I am also looking for a way to accomplish this. I'll let you know if I find anything as well.
from face-landmarking-ios.
@saturngod can you help out with this?
from face-landmarking-ios.
Related Issues (20)
- Ignoring enqueueSampleBuffer HOT 2
- question about Dlib library HOT 1
- How to do this face landmarking with image HOT 1
- X11/Xlib.h not found
- Open on iphone7, landmark undetectable? HOT 3
- Can i put mask on face? HOT 1
- Enhance dlib::deserialize time HOT 2
- Reduce fps HOT 1
- Doesn't recognize faces on iphone6s back and iphone7 back and front portrait camera HOT 2
- 'vector' file not found HOT 2
- Help using Dlib coordinates HOT 7
- Sending UIImage to DlibWrapper.mm HOT 1
- 'vector' file not found HOT 2
- get specific part points or location like eye or mouth
- Get head pose estimation using dlib
- Get landmarks without using bgra
- Apple Mach-O Linker (ld) Error Group HOT 3
- How can I draw correct circle for face landmark at Portrait mode? HOT 2
- can you update it ? i try use new versions of dlib but it doesn't work
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 face-landmarking-ios.