Skip to content

google_mlkit_pose_detection not working on Gallery images:or more specifically InputImage image=InputImage.FromFilePath(path); #770

Open
@AbdulRehman5592

Description

@AbdulRehman5592

Describe your issue. If applicable, add screenshots to help explain your problem.

the input image may not be transforming into required format needed by pose detection API.....it is returning null values from gallery but in live feed it is working fine

Steps to reproduce.

Go to example......set up pose detector view and run it also implementing Camera_view and gallery_view....return null values for gallery images

What is the expected result?

final poses = await _poseDetector.processImage(inputImage); debugPrint("Poses:$poses");
poses should not be null

Did you try our example app?

Yes

Is it reproducible in the example app?

Yes

Reproducible in which OS?

iOS and Android

Flutter/Dart Version?

Flutter (Channel stable, 3.29.2, on Microsoft Windows [Version 10.0.19045.5608], locale en-US) [466ms]
• Flutter version 3.29.2 on channel stable at C:\Users\sus\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c236373904 (3 weeks ago), 2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart version 3.7.2
• DevTools version 2.42.3

[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [1,843ms]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [4.2s]
• Android SDK at C:\Users\sus\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:/Program Files/Java/jdk-17\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: flutter config --jdk-dir="path/to/jdk".
• Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
• All Android licenses accepted.

[√] Chrome - develop for the web [32ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps [31ms]
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2024.2) [27ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] VS Code, 64-bit edition (version 1.96.4) [24ms]
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.108.0

[√] Connected device (4 available) [424ms]
• 23117RA68G (mobile) • ae8lobx4jnbq7pdq • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.5608]
• Chrome (web) • chrome • web-javascript • Google Chrome 134.0.6998.178
• Edge (web) • edge • web-javascript • Microsoft Edge 134.0.3124.83

[√] Network resources [1,480ms]
• All expected network resources are available.

Plugin Version?

0.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pose DetectionIssues corresponding to Pose Detection API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions