Closed sejun2 closed 1 year ago
SizedBox( height: 500, child: CameraAwesome( ///Image_stream function imagesStreamBuilder: (imageStream) { imageStream!.listen((data) async { if (streamMutex) { print('imageStream working...'); streamMutex = false; //logic here... //await writeImageFile(data); //add image data to stream previewDataStreamController.add(data); await Future.delayed(const Duration(milliseconds: 500), () { streamMutex = true; }); //await time - 700 milliseconds } }); }, photoSize: _size, sensor: _sensor, captureMode: _captureMode), ), .... StreamBuilder( builder: (context, snapshot) { var result = snapshot.data; //print('snapshot.data : $result'); if (!snapshot.hasData || snapshot.hasError) { return const Text('something\'s wrong'); } else { return Expanded( child: //Image.file(result as File), Image.memory( result as Uint8List, ), ); } }, stream: previewDataStream), ], )),
I expected origin quality of preview but it is not.
The image under the camerapreview is abnormal.
Android /emulator/ API 31
Is that about configs? photoSize: _size
photoSize: _size
This should be fixed with the reworked version #150
The new version will let you define the image stream definition and format.
Steps to Reproduce
Expected results
I expected origin quality of preview but it is not.
Actual results
The image under the camerapreview is abnormal.
About your device
Android /emulator/ API 31