Comments (6)
Hi,
camerakit:ckMethod="still"
is a nice way to solve the problem as the preview is returned but is there any other way so that i can use the flash which works only in standard mode when image is taken from camera ?
from camerakit-android.
I had the same issue, but solved it by using a different method of taking a picture by calling this function in the code:
cameraView.setMethod(CameraKit.Constants.METHOD_STILL);
Or this in you layout file:
camerakit:ckMethod="still"
from camerakit-android.
Dewinster, that's an amazingly helpful tip.
Thank you so much - I wish I could send money! :)
cameraView.setMethod(CameraKit.Constants.METHOD_STILL);
from camerakit-android.
I have the same issue =(
from camerakit-android.
you have to get exif images then rotate image with this code. after save bitmap on taken picture. This is the best solution of rotated images.
switch(orientation) {
case ExifInterface.ORIENTATION_ROTATE_90:
selectedBitmap =rotateImage(selectedBitmap, 90);
break;
case ExifInterface.ORIENTATION_ROTATE_180:
selectedBitmap = rotateImage(selectedBitmap, 180);
break;
case ExifInterface.ORIENTATION_ROTATE_270:
selectedBitmap = rotateImage(selectedBitmap, 270);
break;
case ExifInterface.ORIENTATION_NORMAL:
selectedBitmap = rotateImage(selectedBitmap, 0);
default:
break;
}
from camerakit-android.
Has this issue been resolved? I'm still getting this problem with an samsung galaxy 10.1 (SM-T580) android 7.0
The output file is just randomly rotated 90 degree, i've fixed the screen orientation so the capture and preview screen are always correct
if (jpeg != null) {
imageView.setVisibility(View.VISIBLE);
Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length);
if (bitmap == null) {
finish();
return;
}
imageView.setImageBitmap(bitmap);
actualResolution.setText(bitmap.getWidth() + " x " + bitmap.getHeight());
approxUncompressedSize.setText(getApproximateFileMegabytes(bitmap) + "MB");
captureLatency.setText(ResultHolder.getTimeToCallback() + " milliseconds");
File savedPhoto = new File(Environment.getExternalStorageDirectory(), "photo.jpg");
try {
FileOutputStream outputStream = new FileOutputStream(savedPhoto.getPath());
outputStream.write(jpeg);
outputStream.close();
} catch (java.io.IOException e) {
e.printStackTrace();
}
}
from camerakit-android.
Related Issues (20)
- Activity open from screenlock won't show viewfinder
- Android Layout change issue
- Android 11
- Error: Failed to resolve: com.flurgle:camerakit:0.9.17
- JCenter is shutting down HOT 2
- how can i zoom in and zoom out with CameraKit?
- is this sdk deprecated HOT 2
- Capture Image Callback is not call
- Video recording not getting store with android 11
- Camera
- 11
- 1
- Can't use CameraKit HOT 2
- Integrate into camera app HOT 1
- video can compressed?
- Could not resolve com.camerakit:camerakit:1.0.0-beta3.10 HOT 34
- Could not resolve com.wonderkiln:camerakit:0.13.0. HOT 1
- Failed to resolve: com.wonderkiln:camerakit:0.13.5 HOT 8
- ModuleVersionNotFoundException
- CapmerapKit/camerakit-android HOT 1
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 camerakit-android.