diff --git a/entry/src/main/java/org/boofcv/video/slice/GradientSlice.java b/entry/src/main/java/org/boofcv/video/slice/GradientSlice.java index aab03b16a33b6e6ab54d4de3a89f1e4a171dd5a1..7af12676282c31935006c712b2ba88b049841bab 100644 --- a/entry/src/main/java/org/boofcv/video/slice/GradientSlice.java +++ b/entry/src/main/java/org/boofcv/video/slice/GradientSlice.java @@ -2,13 +2,12 @@ package org.boofcv.video.slice; import boofcv.abst.filter.derivative.ImageGradient; import boofcv.factory.filter.derivative.FactoryDerivative; +import boofcv.ohos.VisualizeImageData; +import boofcv.ohos.camera.VisualizeCameraSlice; import boofcv.struct.image.GrayS16; import boofcv.struct.image.GrayU8; import boofcv.struct.image.ImageBase; import boofcv.struct.image.ImageType; -import boofcv.ohos.VisualizeImageData; -import boofcv.ohos.camera.VisualizeCameraSlice; -import org.boofcv.video.ResourceTable; import ohos.aafwk.content.Intent; import ohos.agp.components.AttrHelper; import ohos.agp.components.StackLayout; @@ -22,6 +21,7 @@ import ohos.media.camera.device.CameraAbility; import ohos.media.camera.device.FrameConfig; import ohos.media.camera.params.Metadata; import ohos.media.image.PixelMap; +import org.boofcv.video.ResourceTable; import java.util.Locale; @@ -73,7 +73,9 @@ public class GradientSlice extends VisualizeCameraSlice { * This is where you specify custom camera settings. See {@link boofcv.ohos.camera.SimpleCameraSlice}'s * JavaDoc for more functions which you can override. * - * @param captureRequestBuilder Used to configure the camera. + * @param device The camera being configured + * @param characteristics Used to get information on the device + * @param captureRequestBuilder used to configure the camera */ @Override protected void configureCamera(Camera device, CameraAbility characteristics, FrameConfig.Builder captureRequestBuilder) { @@ -85,6 +87,10 @@ public class GradientSlice extends VisualizeCameraSlice { * During camera initialization this function is called once after the resolution is known. * This is a good function to override and predeclare data structres which are dependent * on the video feeds resolution. + * + * @param width + * @param height + * @param sensorOrientation */ @Override protected void onCameraResolutionChange(int width, int height, int sensorOrientation) { @@ -96,6 +102,9 @@ public class GradientSlice extends VisualizeCameraSlice { /** * This function is invoked in its own thread and can take as long as you want. + * + * @param image The image which is to be processed. The image is owned by this function until + * it returns. After that the image and all it's data will be recycled. DO NOT */ @Override protected void processImage(ImageBase image) { @@ -107,6 +116,9 @@ public class GradientSlice extends VisualizeCameraSlice { /** * Override the default behavior and colorize gradient instead of converting input image. + * + * @param mode + * @param image */ @Override protected void renderBitmapImage(BitmapMode mode, ImageBase image) { @@ -135,6 +147,9 @@ public class GradientSlice extends VisualizeCameraSlice { /** * Demonstrates how to draw visuals + * + * @param view + * @param canvas */ @Override protected void onDrawFrame(SurfaceProvider view, Canvas canvas) { diff --git a/entry/src/main/java/org/boofcv/video/slice/QrCodeSlice.java b/entry/src/main/java/org/boofcv/video/slice/QrCodeSlice.java index f335793f829d16b328bc7aab9b054b84b66a0d15..2477cc4c8b68735e045acd13069f8c5cbc4e61a4 100644 --- a/entry/src/main/java/org/boofcv/video/slice/QrCodeSlice.java +++ b/entry/src/main/java/org/boofcv/video/slice/QrCodeSlice.java @@ -4,11 +4,10 @@ import boofcv.abst.fiducial.QrCodeDetector; import boofcv.alg.fiducial.qrcode.QrCode; import boofcv.factory.fiducial.FactoryFiducial; import boofcv.misc.MovingAverage; +import boofcv.ohos.camera.VisualizeCameraSlice; import boofcv.struct.image.GrayU8; import boofcv.struct.image.ImageBase; import boofcv.struct.image.ImageType; -import boofcv.ohos.camera.VisualizeCameraSlice; -import org.boofcv.video.ResourceTable; import georegression.struct.point.Point2D_F64; import georegression.struct.shapes.Polygon2D_F64; import ohos.aafwk.content.Intent; @@ -21,6 +20,7 @@ import ohos.agp.render.Paint; import ohos.agp.render.Path; import ohos.agp.utils.Color; import ohos.agp.utils.TextAlignment; +import org.boofcv.video.ResourceTable; import org.ddogleg.struct.DogArray; import java.util.List; @@ -85,6 +85,9 @@ public class QrCodeSlice extends VisualizeCameraSlice { /** * This function is invoked in its own thread and can take as long as you want. + * + * @param image The image which is to be processed. The image is owned by this function until + * it returns. After that the image and all it's data will be recycled. DO NOT */ @Override protected void processImage(ImageBase image) { @@ -110,6 +113,9 @@ public class QrCodeSlice extends VisualizeCameraSlice { /** * Demonstrates how to draw visuals + * + * @param view + * @param canvas */ @Override protected void onDrawFrame(SurfaceProvider view, Canvas canvas) {