Comments (4)
This may because that if targetSdkVersion
is >= Android 6.0(API level 23), developer need to add some code for request related permissions from the user at the runtime.
If you still want to implement the "Take Picture" function, you should request the permisson of CAMERA
for take pictures and storage related permisson
for saving pictures at the runtime
. And maybe FileProvider
can be used to store pictures.
You can refer to https://developer.android.com/training/permissions/requesting and https://developer.android.com/reference/android/support/v4/content/FileProvider
Hope this could help you.
from cognitive-face-android.
Thanks Lin for the PR #54 to fix this issue. @hunny12993 please have a try with it and let me know if you still face the problem by any chance.
from cognitive-face-android.
This may because that if
targetSdkVersion
is >= Android 6.0(API level 23), developer need to add some code for request related permissions from the user at the runtime.If you still want to implement the "Take Picture" function, you should request the permisson of
CAMERA
for take pictures andstorage related permisson
for saving pictures at theruntime
. And maybeFileProvider
can be used to store pictures.You can refer to https://developer.android.com/training/permissions/requesting and https://developer.android.com/reference/android/support/v4/content/FileProvider
Hope this could help you.
I tried implement the tutorial but still it doesnt work. it gives me a lot of error and take photo function still crashes. Is there a way I could use sdk 28 for this function? Im compiling this project with other library so as for now only target sdk28 allow my whole app to run fine. except this take photo function crashes.
from cognitive-face-android.
Thanks Lin for the PR #54 to fix this issue. @hunny12993 please have a try with it and let me know if you still face the problem by any chance.
I'm having a big problem on this matter although I've tried the tutorial. I need to use this function at target sdk 28. Developer please add some code for request related permissions from the user at the runtime. Thanks a lot.
from cognitive-face-android.
Related Issues (20)
- about HOT 7
- 我。。又来了,关于两张人脸对比那个activity的字符编码问题 HOT 4
- Confidence HOT 1
- Microsoft-Cognitive add new person with chinese name HOT 5
- Actual API Level Requirement HOT 2
- Disappointing Results HOT 1
- Build fail with Android Studio 5.0
- Sample app crashes on Android 9 HOT 2
- HttpClient is deprecated on Android 6.0 HOT 3
- open camera error HOT 2
- hostname in certificate didn't match: <westus.api.cognitive.microsoft.com> != <*.cognitiveservices.azure.com> OR <*.cognitiveservices.azure.com> HOT 4
- Basic Question HOT 1
- Usage in SDK > 22
- FaceServiceClient.detect returns faceid = null HOT 1
- The detect method in FaceServiceRestClient doesn't support change recognition model
- Did they change the reference and documentation ?
- Take a photo is not working
- Large person group not trained
- Detect() not working in Android 11, return 0 values in array
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 cognitive-face-android.