Skip to content

No way to initialize the Animation class in the Java wrapper. #26808

@utibenkei

Description

@utibenkei

System Information

OpenCV version: 4.11.0
Operating System / Platform: Windows 10 22H2
Compiler & compiler version: 3.18.1

Detailed description

In the Java wrapper of OpenCV, there is currently no way to initialize the Animation class. While the class is exposed in the Java bindings, no constructor or factory method is implemented, making it impossible to create an instance.

Specifically, the following method in the Imgcodecs module of the Imgcodecs class requires an instance of the Animation class, but since there is no way to initialize Animation, this functionality is unusable:

public static boolean imwriteanimation(String filename, Animation animation)

As a result, even though the Animation class is supported in the native C++ implementation, it cannot be used in Java applications.

Steps to reproduce

Build with the BUILD_opencv_java_bindings_generator flag ON.

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions