添加新功能:获取当前帧图片bitmap #14
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了一个新的 JNI 方法
getCurrentFrame
,允许应用程序获取当前相机捕获的图像帧作为 Android Bitmap 对象。这使得开发者可以:使用示例
在 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();