Giter Site home page Giter Site logo

Comments (14)

MapleNoise avatar MapleNoise commented on July 20, 2024 2

Correction :
On MMCameraPickerController.m -> capturePhoto() -> handler of captureStillImageAsynchronouslyFromConnection add :

if(!CMSampleBufferIsValid(imageSampleBuffer)){
             isCapturingImage = NO;
             [self capturePhoto];
             return;
}

EDIT 8NOV2017

         if(!CMSampleBufferIsValid(imageSampleBuffer))
         {
             isCapturingImage = NO;
             [self capturePhoto];
             return;
         }
         
         [_mySesh stopRunning];

And remove [_mySesh stopRunning]; on the -(IBAction)capturePhoto:(id)sender method

from mmcamscanner.

MapleNoise avatar MapleNoise commented on July 20, 2024

Same error since iOS 10...
captureStillImageAsynchronouslyFromConnection:videoConnection works randomly for me

from mmcamscanner.

mukyasa avatar mukyasa commented on July 20, 2024

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

@MapleNoise this is not fixing my issue still my camera works randomly!
if u have another suggestion regarding this issue please let me know...Thanx

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

@mukyasa tell me something to fix it please it's urgent

from mmcamscanner.

mukyasa avatar mukyasa commented on July 20, 2024

@AzimJavaidKhan It's Camera library issue you can change it with diff camera library and problem solved, It will take time from my end to update the camera library code. You dont have to touch OpenCV code

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

ok thanx!
1 more favour please can u tell me diff libraries for camera?

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

where to add this line?

from mmcamscanner.

MapleNoise avatar MapleNoise commented on July 20, 2024

@AzimJavaidKhan if you add :

         if(!CMSampleBufferIsValid(imageSampleBuffer))
         {
             isCapturingImage = NO;
             [self capturePhoto];
             return;
         }
         
         [_mySesh stopRunning];

And remove [_mySesh stopRunning]; on the - (IBAction)capturePhoto:(id)sender method ?

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

now the retake button also captures, the black screen and sends black screen for cropping!

from mmcamscanner.

MapleNoise avatar MapleNoise commented on July 20, 2024

Oh... Sorry That's the only thing I changed to worked for me...

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

[self.capturePhoto]....is it important to write this?

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

@MapleNoise but after your answer i m now able to take 7/10 pictures thanks. But still missing 3 times don't know why? i haven't changed anything except what u suggested!

from mmcamscanner.

AzimJavaidKhan avatar AzimJavaidKhan commented on July 20, 2024

@mukyasa if u have excess time can you please fix it. It's very important for me and i have short time period for this task!
please

from mmcamscanner.

Related Issues (20)

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.