Skip to content

Error: Getter not found: 'RGB' #4

@putraxor

Description

@putraxor

Running code from example got these errors:

➜  bin dart mlp_main.dart 
../../../.pub-cache/hosted/pub.dartlang.org/ai-0.1.10/lib/src/network/cnn.dart:20:65: Error: Getter not found: 'RGB'.
        imageRGB.toList().map((v) => v.toInt()).toList(), Image.RGB);
                                                                ^^^
../../../.pub-cache/hosted/pub.dartlang.org/ai-0.1.10/lib/src/network/cnn.dart:19:37: Error: Too many positional arguments: 3 allowed, but 4 found.
Try removing the extra positional arguments.
    final newImage = Image.fromBytes(originalImage.width, originalImage.height,
                                    ^
../../../.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/src/image.dart:150:3: Context: Found this candidate, but the arguments don't match.
  Image.fromBytes(int width, int height, List<int> bytes,
  ^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions