-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ux): update get ready page with new preview screen (#78)
* add preview/hair check screen * chore(ux): add error log message * chore(ux): update handling of camera permissions * chore: reset integration test * fix build error * fix build error * chore: misc ux updates * chore: update sample and integration app results screen * chore: update UX * chore: minor UX tweak on oval dimension * chore: remove camera permission title * chore: update UX * chore: update per review feedback * chore: update localization strings * update readme
- Loading branch information
1 parent
615ccd8
commit 471ac56
Showing
34 changed files
with
477 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
.../FaceLiveness/Resources/Assets.xcassets/illustration_face_good_fit.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-3.65 KB
...ets.xcassets/illustration_face_good_fit.imageset/illustration_face_good_fit.png
Binary file not shown.
21 changes: 0 additions & 21 deletions
21
...FaceLiveness/Resources/Assets.xcassets/illustration_face_too_close.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-2.38 KB
...s.xcassets/illustration_face_too_close.imageset/illustration_face_too_close.png
Binary file not shown.
21 changes: 0 additions & 21 deletions
21
...s/FaceLiveness/Resources/Assets.xcassets/illustration_face_too_far.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-6 KB
...ssets.xcassets/illustration_face_too_far.imageset/illustration_face_too_far.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
import CoreGraphics | ||
import VideoToolbox | ||
|
||
extension CGImage { | ||
static func convert(from cvPixelBuffer: CVPixelBuffer?) -> CGImage? { | ||
guard let pixelBuffer = cvPixelBuffer else { | ||
return nil | ||
} | ||
|
||
var image: CGImage? | ||
VTCreateCGImageFromCVPixelBuffer( | ||
pixelBuffer, | ||
options: nil, | ||
imageOut: &image | ||
) | ||
|
||
return image | ||
} | ||
} |
Oops, something went wrong.