glamdring / easycamera Goto Github PK
View Code? Open in Web Editor NEWWrapper around the android Camera class that simplifies its usage
License: Apache License 2.0
Wrapper around the android Camera class that simplifies its usage
License: Apache License 2.0
hi there, can you please make an example for your looks like awesome api please.
sincerely,
A guy that can't get it to work.
Hello! when I call startPreview on the onCreate method of an activity or a fragment, the surface becomes black (but my webcam turns on the led indicating it's on)
it only works when i call startPreview on a click of a button or something that will happen on a later time..
How can I fix that?
A release of version 0.0.1 is to be made to Maven Central. Steps:
Thanks you
Everything is in the title building this lib as a Gradle dependency could be a great fit to help everybody with android camera nightmare ๐
After i open easycamera class, i get preview of the camera but camera is freezing.
public class MakePhotoActivity extends Activity {
SurfaceHolder previewHolder;
SurfaceView mSurfaceView;
private boolean previewIsRunning;
private EasyCamera camera;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSurfaceView = (SurfaceView) findViewById(R.id.surface);
previewHolder = mSurfaceView.getHolder();
previewHolder.addCallback(new SurfaceHolder.Callback() {
public void surfaceChanged(SurfaceHolder holder, int format,
int width, int height) {
if (!previewIsRunning && (camera != null)) {
try {
camera.startPreview(holder);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
previewIsRunning = true;
}
}
public void surfaceCreated(SurfaceHolder holder) {
camera = DefaultEasyCamera.open(CameraInfo.CAMERA_FACING_FRONT);
}
public void surfaceDestroyed(SurfaceHolder holder) {
camera.close();
camera = null;
}
});
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.