Giter VIP home page Giter VIP logo

easycam's People

Contributors

balakrishnanpt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

easycam's Issues

Done Button Background

Hi BalakrishnanPT,

Thanks for your effort for this amazing library .
I am facing a issue while setting done button background, Its not working could u please check and fix.

setDoneButtonDrawable()

Thanks in advance
Vikas

How can I call front camera from intent to start this camera?

I need to take selfie only. Please guide which extra parameter which needs to be added with below intent call to open front camera?

Intent intent = new Intent(this, CameraControllerActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("inputData", new CameraBundleBuilder()
.setFullscreenMode(false)
.setDoneButtonString("Add")
.setSinglePhotoMode(false)
.setMax_photo(3)
.setManualFocus(true)
.setBucketName(getClass().getName())
.setPreviewEnableCount(true)
.setPreviewIconVisiblity(true)
.setPreviewPageRedirection(true)
.setEnableDone(false)
.setClearBucket(true)
.createCameraBundle());
startActivityForResult(intent, 214);

Photo inverted vertically when use front camera

The problem
When I'm take a photo using front camera, the resulting image is flipped vertically.

How to reproduce the problem
Steps to reproduce the behavior:

  1. Using the version easycam:0.0.3-rc5
  2. Setup new intent with this setup
CameraBundleBuilder()
       .setClearBucket(true)
       .setDoneButtonDrawable(R.drawable.ic_material_check)
       .setDoneButtonString("")
       .setManualFocus(false)
       .createCameraBundle())

  1. Start CameraControllerActivity
  2. Take some pictures using front camera
  3. Images taked with front camera are inverted vertically

Expected behavior
Images in the correct orientation

Additional
I'm thinking that the possible solution would be in the private method setupOrientationListener at CameraControllerActivity, considerate change the orientation value depending of selected camera.

Shutter lag

Describe the bug
A shutter lag about 3 to 10 seconds after take picture on single photo mode.

To Reproduce
I'm using setting :

cameraIntent.putExtra("inputData", new CameraBundleBuilder()
.setFullscreenMode(false)
.setSinglePhotoMode(true)
.setManualFocus(false)
.setBucketName(getClass().getName())
.setCaptureButtonDrawable(R.drawable.ic_camera)
.setPreviewPageRedirection(false)
.setPreviewIconVisiblity(false)
.setPreviewEnableCount(false)
.setPreLoaded(false)
.setEnableDone(false)
.setClearBucket(true)
.setManualFocus(false)
.createCameraBundle());

After take image, cameracontrolActivity not close immediately, but give a delay about 3 to 10 second before camera activity closed

nokia 5.1 phone device

java.lang.NullPointerException: Attempt to invoke virtual method 'com.hello.ashish.camera_demo.capture.CameraSelection com.hello.ashish.camera_demo.CameraControllerViewModel.getCameraSelection()' on a null object reference
at com.hello.ashish.camera_demo.capture.CaptureFragment.onViewCreated(CaptureFragment.java:687)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:892)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:439)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2663)
at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManagerImpl.java:2613)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:246)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:542)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391)
at android.app.Activity.performStart(Activity.java:7157)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2970)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1838)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6715)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.