RxPhoto class
Returns a photo as a JPEG image from Frame. Note: The camera sensor on Frame is rotated 90 degrees clockwise, so raw images are rotated, but by default RxPhoto will correct this by rotating -90 degrees. If you want to save the cost of copyRotate here you can specify upright=false in the constructor since some ML packages allow for specifying the orientation of the image when passing it in. Pairs with frame.camera.read_raw(), that is, jpeg header and footer are not sent from Frame - only the content, using non-final and final message types Jpeg header and footer are added in here on the client, so a quality level must be provided to select the correct header. Returns a Stream with exactly one jpeg as bytes, then is Done
Constructors
Properties
- finalChunkFlag → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonFinalChunkFlag → int
-
final
- qualityLevel → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upright → bool
-
final
Methods
-
attach(
Stream< List< dataResponse) → Stream<int> >Uint8List> - Attach this RxPhoto to the Frame's dataResponse characteristic stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited