Comments (5)
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.
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.
I'm using the same code from your repository.. without any modifications..
from object_detection_flutter.
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.
Thanks! It's working now
from object_detection_flutter.
Related Issues (20)
- when i try to run on ios the line _sendPort = await _receivePort.first; never executes HOT 1
- Execution failed for task ':app:compileFlutterBuildDebug'. HOT 1
- Work with Yolov4-tiny.tflite HOT 1
- Input and Output Tensors
- Object detection with specific image HOT 1
- Null safety update HOT 3
- Null safety update, when? HOT 1
- error solution : - after cloning the git
- IndexError (RangeError (index): Index out of range: index should be less than 76800: 21) HOT 2
- Model returns no predictions HOT 2
- Shrunken Image after Migrating TFLite packages HOT 3
- Detection for single image
- YoloV3 conversion for the current model HOT 6
- train and deploy my custom model
- support for yolo v3 or v4 HOT 3
- null safety
- Build failed due to use of deprecated Android v1 embedding. HOT 2
- While running it in debugging, I gave him permission but it crash
- Ran Successfully 3/2/2023 - Null Safety Repo HOT 1
- Unable to build in simulator & physical device.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from object_detection_flutter.