MCPcopy Create free account

hub / github.com/PacktPublishing/Machine-Learning-Projects-for-Mobile-Applications / functions

Functions2,845 in github.com/PacktPublishing/Machine-Learning-Projects-for-Mobile-Applications

↓ 4 callersMethodcreatePreviewBuffer
Creates one buffer for the camera preview callback. The size of the buffer is based off of the camera preview size and the format of the camera image
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:1192
↓ 4 callersMethodgetImageSizeX
Get the image size along the x axis. @return
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/Classifier.java:137
↓ 4 callersMethodgetImageSizeY
Get the image size along the y axis. @return
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/Classifier.java:144
↓ 4 callersMethodgetPackageName
Target package name. @return Return target package name.
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/InstallCallbackInterface.java:21
↓ 4 callersMethodisZero
Allow for a small tolerance in floating point values in considering whether a value is zero.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/EyePhysics.java:240
↓ 4 callersMethodlog
(Mat src, Mat dst)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1250
↓ 4 callersMethodn_setTo
(long nativeObj, double s_val0, double s_val1, double s_val2, double s_val3)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1251
↓ 4 callersMethodonPackageInstall
Callback method, called in case the package installation is needed. @param callback answer object with approve and cancel methods and the package desc
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/LoaderCallbackInterface.java:39
↓ 4 callersMethodpow
(Mat src, double power, Mat dst)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1662
↓ 4 callersMethodreleaseMediaRecorder
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:1429
↓ 4 callersMethodsetFacing
Sets the camera to use (either {@link #CAMERA_FACING_BACK} or {@link #CAMERA_FACING_FRONT}). Default: back facing.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:259
↓ 4 callersMethodsetFlashMode
Sets the flash mode. @param mode flash mode. @return {@code true} if the flash mode is set, {@code false} otherwise @see #getFlashMode()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:809
↓ 4 callersMethodsetFocusMode
Sets the focus mode. @param mode the focus mode @return {@code true} if the focus mode is set, {@code false} otherwise @see #getFocusMode()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:769
↓ 4 callersMethodshowInfoToast
Shows a toast with information why the swap failed. @param text the messages to be displayed.
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/FaceSwapperActivity.java:949
↓ 4 callersMethodstop
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSourcePreview.java:111
↓ 4 callersMethodstopCameraSource
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:362
↓ 3 callersMethodMat_to_vector_Point3
(Mat m, List<Point3> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:202
↓ 3 callersMethodMat_to_vector_vector_KeyPoint
(Mat m, List<MatOfKeyPoint> kps)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:587
↓ 3 callersMethodX
Returns the x-coordinate value. @return x value
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/PointF.java:25
↓ 3 callersMethodY
Returns the y-coordinate value. @return y value
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/PointF.java:33
↓ 3 callersFunction_is_skip_type
(op)
Chapter03/tfcoreml/_layers.py:9
↓ 3 callersMethodbitmapToMat
Converts Android Bitmap to OpenCV Mat. <p> This function converts an Android Bitmap image to the OpenCV Mat. <br>'ARGB_8888' and 'RGB_565' input Bitma
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/Utils.java:88
↓ 3 callersMethodcaptureStillPicture
Capture a still picture. This method should be called when we get a response in {@link #mCaptureCallback} from both {@link #lockFocus()}.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Camera2Source.java:1162
↓ 3 callersMethodcheckPermissions
Controls if an app has permission to use the camera and internal storage. @return true if permissions are ok otherwise false.
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/FaceSwapperActivity.java:1029
↓ 3 callersMethodclear
Removes all graphics from the overlay.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/GraphicOverlay.java:115
↓ 3 callersFunctionensure_dir_exists
Makes sure the folder exists on disk. Args: dir_name: Path string to the folder we want to create.
Chapter08/retrain.py:342
↓ 3 callersFunctionffwd
(data_in, paths_out, checkpoint_dir, device_t='/gpu:0', batch_size=4)
Chapter03/fast_style_transfer/evaluate.py:129
↓ 3 callersMethodfromNativeAddr
(long addr)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat.java:22
↓ 3 callersMethodgetEulerZ
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/FaceData.java:110
↓ 3 callersMethodgetFacialLandmarks
Returns the facial landmarks of found faces in the input image. @param bitmap input image to get landmarks from. @return the facial landmarks if foun
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/FaceSwap.java:261
↓ 3 callersMethodgetIdForRequestedCamera
Gets the id for the camera specified by the direction it is facing. Returns -1 if no such camera was found. @param facing the desired camera (front-
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:981
↓ 3 callersMethodgetNativeObjAddr
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1094
↓ 3 callersMethodgetScreenHeight
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:19
↓ 3 callersMethodgetScreenRatio
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:35
↓ 3 callersMethodgetScreenWidth
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:27
↓ 3 callersFunctionget_or_create_bottleneck
Retrieves or calculates bottleneck values for an image. If a cached version of the bottleneck data exists on-disk, return that, otherwise cal
Chapter08/retrain.py:378
↓ 3 callersFunctionget_random_cached_bottlenecks
Retrieves bottleneck values for cached images. If no distortions are being applied, this function can retrieve the cached bottleneck values d
Chapter08/retrain.py:483
↓ 3 callersMethodinsert
(Point pt)
Chapter07/openCVLibrary310/src/main/java/org/opencv/imgproc/Subdiv2D.java:89
↓ 3 callersMethodmakeBitmap
Returns a bitmap of right size proportions. @param path is the path to the image. @return a bitmap from path.
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/ImageUtils.java:78
↓ 3 callersMethodmakeEqualProps
Adjusts the input images for equal size, but does not change image scaling. It pads the images with zeros to get equal size. @param bitmap1 first ima
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/ImageUtils.java:91
↓ 3 callersMethodmatToBitmap
Converts OpenCV Mat to Android Bitmap. <p> <br>This function converts an image in the OpenCV Mat representation to the Android Bitmap. <br>The input M
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/Utils.java:118
↓ 3 callersMethodn_checkVector
(long nativeObj, int elemChannels, int depth, boolean requireContinuous)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1131
↓ 3 callersMethodn_convertTo
(long nativeObj, long m_nativeObj, int rtype, double alpha, double beta)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1154
↓ 3 callersMethodn_diag
(long nativeObj, int d)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1182
↓ 3 callersMethodonAutoFocus
Called when the camera auto focus completes. If the camera does not support auto-focus and autoFocus is called, onAutoFocus will be called immediatel
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:403
↓ 3 callersMethodonCameraFrame
This method is invoked when delivery of the frame needs to be done. The returned values - is a modified frame which needs to be displayed on the scree
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/CameraBridgeViewBase.java:114
↓ 3 callersMethodrequestPermissionThenOpenCamera
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:243
↓ 3 callersMethodrotatedExifBitmap
(String path, Bitmap bitmap)
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/ImageUtils.java:368
↓ 3 callersMethodscaleX
Adjusts a horizontal value of the supplied value from the preview scale to the view scale.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/GraphicOverlay.java:68
↓ 3 callersMethodsetRotation
Calculates the correct rotation for the given camera id and sets the rotation in the parameters. It also sets the camera's display orientation and ro
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:1146
↓ 3 callersMethodsetSaturation
(float saturation)
Chapter07/openCVLibrary310/src/main/java/org/opencv/photo/TonemapDrago.java:35
↓ 3 callersMethodsetStrokeWidth
(int brushThickness)
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/FreeHandView.java:142
↓ 3 callersMethodstop
Closes the camera and stops sending frames to the underlying frame detector. <p/> This camera source may be restarted again by calling {@link #start(S
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:536
↓ 3 callersMethodsubtract
(Mat src1, Mat src2, Mat dst, Mat mask, int dtype)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:202
↓ 3 callersMethodvector_Point3_to_Mat
(List<Point3> pts, int typeDepth)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:96
↓ 2 callersMethodInstallService
(final Context AppContext, final LoaderCallbackInterface Callback)
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/AsyncServiceHelper.java:71
↓ 2 callersMethodInstallServiceQuiet
(Context context)
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/AsyncServiceHelper.java:54
↓ 2 callersMethodMat_to_vector_Point
(Mat m, List<Point> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:157
↓ 2 callersMethodMat_to_vector_vector_Point
(Mat m, List<MatOfPoint> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:492
↓ 2 callersFunction_broadcast_axis
(ref_shape4, shape)
Chapter03/tfcoreml/_layers.py:435
↓ 2 callersFunction_conv_init_vars
(net, out_channels, filter_size, transpose=False)
Chapter03/fast_style_transfer/src/transform.py:59
↓ 2 callersFunction_conv_tranpose_layer
(net, num_filters, filter_size, strides)
Chapter03/fast_style_transfer/src/transform.py:30
↓ 2 callersFunction_get_broadcasted_shape4
(shapes)
Chapter03/tfcoreml/_layers.py:426
↓ 2 callersFunction_instance_norm
(net, train=True)
Chapter03/fast_style_transfer/src/transform.py:49
↓ 2 callersFunction_labeled_dims_to_rank_4_shape
(blob_name, context)
Chapter03/tfcoreml/_interpret_shapes.py:16
↓ 2 callersFunction_push_stack
(stack, node, in_stack)
Chapter03/tfcoreml/_topological_sort.py:30
↓ 2 callersFunction_remove_beginning_unit_dimensions
(in_tuple)
Chapter03/tfcoreml/_shape_sensitive_layers.py:6
↓ 2 callersFunction_remove_disconnected_load_constants
(nn_layers)
Chapter03/tfcoreml/optimizations/_optimize.py:156
↓ 2 callersFunctionadd_tensor_sub
(builder, name, x_name, y_name, output_name)
Chapter03/tfcoreml/_layers.py:23
↓ 2 callersMethodapplyBounce
Update velocity in response to bouncing off the sides of the eye (i.e., when iris hits the bottom or the eye moves quickly). This is the only way to
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/EyePhysics.java:198
↓ 2 callersMethodapplyFriction
Friction slows velocity in the opposite direction of motion, until zero velocity is reached.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/EyePhysics.java:140
↓ 2 callersMethodautoFocus
Starts camera auto-focus and registers a callback function to run when the camera is focused. This method is only valid when preview is active (betwe
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:846
↓ 2 callersMethodclassifierType
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:137
↓ 2 callersMethodclone
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/RotatedRect.java:79
↓ 2 callersMethodclosePreviewSession
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Camera2Source.java:1198
↓ 2 callersFunctionconnect_skipped_ops
(context)
Chapter03/tfcoreml/_ops_to_layers.py:90
↓ 2 callersMethodcreateCameraPreviewSession
Creates a new {@link CameraCaptureSession} for camera preview.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Camera2Source.java:1208
↓ 2 callersMethodcreateCameraSourceBack
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:298
↓ 2 callersFunctioncreate_bottleneck_file
Create a single bottleneck file.
Chapter08/retrain.py:355
↓ 2 callersMethoddpToPx
(int dp)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:15
↓ 2 callersMethodfetchImage
Takes care of a single image that is shared to the app. @param intent used intent
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/FaceSwapperActivity.java:291
↓ 2 callersMethodfetchMultipleImages
Takes care of multiple shared images. Can only take two images of course. @param intent used intent
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/FaceSwapperActivity.java:322
↓ 2 callersMethodfromArray
(byte...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfByte.java:43
↓ 2 callersMethodfromArray
(int...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfInt4.java:44
↓ 2 callersMethodfromArray
(DMatch...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfDMatch.java:46
↓ 2 callersMethodfromArray
(Rect...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfRect.java:44
↓ 2 callersMethodfromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat4.java:43
↓ 2 callersMethodfromArray
(Point3...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint3.java:43
↓ 2 callersMethodfromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat.java:43
↓ 2 callersMethodfromArray
(Point...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint2f.java:43
↓ 2 callersMethodfromArray
(Point3...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint3f.java:43
↓ 2 callersMethodfromArray
(int...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfInt.java:44
↓ 2 callersMethodfromArray
(double...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfDouble.java:43
↓ 2 callersMethodfromArray
(KeyPoint...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfKeyPoint.java:45
↓ 2 callersMethodfromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat6.java:43
↓ 2 callersMethodfromArray
(Point...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint.java:43
↓ 2 callersMethodgetBuildInformation
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1222
↓ 2 callersMethodgetCameraFacing
Returns the selected camera; one of {@link #CAMERA_FACING_BACK} or {@link #CAMERA_FACING_FRONT}.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:609
↓ 2 callersMethodgetClassifier
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:149
↓ 2 callersMethodgetEulerY
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/FaceData.java:102
← previousnext →101–200 of 2,845, ranked by callers