Skip to content

添加新功能:获取当前帧图片bitmap #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lemou-Memo
Copy link

添加了一个新的 JNI 方法 getCurrentFrame,允许应用程序获取当前相机捕获的图像帧作为 Android Bitmap 对象。这使得开发者可以:

  • 获取实时相机预览中的帧数据
  • 存储或处理检测到对象的图像
  • 在 Android 应用中进一步处理图像数据
    使用示例
    在 Java 代码中,开发者现在可以调用:
    Bitmap currentFrame = yolov8Ncnn.getCurrentFrame();

English:
Added a new JNI method getCurrentFrame that allows applications to retrieve the current camera frame as an Android Bitmap object. This enables developers to:

Access real-time camera preview frame data
Save or process images with detected objects
Further process image data in Android applications

Usage Example
In Java code, developers can now call:
Bitmap currentFrame = yolov8Ncnn.getCurrentFrame();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant