Coder Social home page Coder Social logo

Comments (5)

bqubique avatar bqubique commented on September 26, 2024 1

For anyone still dealing with an issue like this one, checking whether the CameraController was initialised helped me 🙃.

if(cameraController.value.isInitialized){
    //do stuff with cameraController here
}

P.S. My issue was not related to this package, but rather it was related to processing camera stream for pose detection.

from object_detection_flutter.

am15h avatar am15h commented on September 26, 2024

Hi @RakhimyanTim, Sorry I missed this. Can you elaborate a little more? Are you using the exact same code from this repository or any modifications have been made?

from object_detection_flutter.

rakhimian avatar rakhimian commented on September 26, 2024

I'm using the same code from your repository.. without any modifications..

from object_detection_flutter.

sahalshajim avatar sahalshajim commented on September 26, 2024

Screen Shot 2020-10-03 at 8 58 34 PM
I was able to solve this issue by initializing camera before calling main function like this :
Check Screen Shot
/////////////////////////////////////////////////
List cameras;
Future main() async {
WidgetsFlutterBinding.ensureInitialized();
try {
cameras = await availableCameras();
} on CameraException catch (e) {
print('Error: $e.code\nError Message: $e.message');
}
runApp(new MyApp());
}
////////////////////////////////////////////////
Pass the cameras list to Home View and then to Camera View and use it there instead of the initializing cameras in Camera View Page which causes the error

from object_detection_flutter.

rakhimian avatar rakhimian commented on September 26, 2024

Thanks! It's working now

from object_detection_flutter.

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.