Help. I need to do application with camera background


#1

The application needs to have the camera background to implement real-time masks help me. thanks


#2

Do you have any code of what you have so far?
It would help if you were to try it first so that you can learn the parts you need.


#3

this is the code

js:

ejemApp.controller("ejemController", function($scope, $cordovaCamera) {
 
    $scope.takePicture = function() {
        var options = { 
            quality : 75, 
            destinationType : Camera.DestinationType.DATA_URL, 
            sourceType : Camera.PictureSourceType.CAMERA, 
            allowEdit : true,
            encodingType: Camera.EncodingType.JPEG,
            targetWidth: 300,
            targetHeight: 300,
            popoverOptions: CameraPopoverOptions,
            saveToPhotoAlbum: false
        };
 
        $cordovaCamera.getPicture(options).then(function(imageData) {
            $scope.imgURI = "data:image/jpeg;base64," + imageData;
        }, function(err) {
            // An error occured. Show a message to the user
        });
    }
 
});

but what I need: the camera will automatically run and background left to start the application (as instawather) (I do not know what method can be implemented without creating a picture taking button) and masks can be applied in real time.

Thank you


#4

Hi Ipac, I want to do the same thing …have you found something to do this?