Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to draw the points in camera? #30

Open
letien91 opened this issue Oct 27, 2017 · 0 comments
Open

[Question] How to draw the points in camera? #30

letien91 opened this issue Oct 27, 2017 · 0 comments

Comments

@letien91
Copy link

Hi. My project is targeted for iOS 8 and above. So I can't use Vision framework.
Currently, I'm using the Dlib to get the points. And I think I can get that points.
I saw your code in the demo_ios_11. And I found that you do something with the vector.

CGE::Vec2f v;
                    v = landmarks.normalizedPoints[i];
                    v = v * CGE::Vec2f(boundingBox.size.width, boundingBox.size.height) + CGE::Vec2f(boundingBox.origin.x, boundingBox.origin.y);

But I'm not good at C/C++, so It is quite confuse for me. Can you help?
Here is the data I got from the Dlib

width: 480 - height: 640
bounding box: {{494.79999, 120.68001}, {134.39999, 136.64}}
num_parts: 68
point: (504, 162)
point: (504, 178)
point: (505, 194)
point: (509, 209)
point: (515, 224)
point: (524, 237)
point: (535, 248)
point: (547, 257)
point: (562, 259)
point: (576, 257)
point: (588, 249)
point: (599, 237)
point: (608, 223)
point: (614, 208)
point: (618, 193)
point: (619, 177)
point: (620, 161)
point: (517, 149)
point: (524, 144)
point: (534, 144)
point: (544, 146)
point: (553, 151)
point: (568, 150)
point: (577, 146)
point: (587, 144)
point: (597, 144)
point: (605, 148)
point: (560, 160)
point: (560, 171)
point: (560, 181)
point: (560, 192)
point: (548, 200)
point: (554, 202)
point: (560, 203)
point: (567, 202)
point: (573, 200)
point: (526, 161)
point: (533, 158)
point: (540, 158)
point: (546, 162)
point: (539, 163)
point: (533, 163)
point: (575, 162)
point: (581, 157)
point: (589, 158)
point: (595, 160)
point: (589, 163)
point: (582, 163)
point: (538, 221)
point: (546, 217)
point: (555, 216)
point: (561, 217)
point: (566, 216)
point: (575, 217)
point: (584, 220)
point: (576, 228)
point: (567, 231)
point: (561, 232)
point: (555, 232)
point: (546, 228)
point: (542, 221)
point: (555, 221)
point: (561, 221)
point: (566, 220)
point: (580, 220)
point: (567, 223)
point: (561, 224)
point: (555, 223)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant