Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Machine-Learning-Projects-for-Mobile-Applications
/ functions
Functions
2,845 in github.com/PacktPublishing/Machine-Learning-Projects-for-Mobile-Applications
⨍
Functions
2,845
◇
Types & classes
166
↓ 4 callers
Method
createPreviewBuffer
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 callers
Method
getImageSizeX
Get the image size along the x axis. @return
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/Classifier.java:137
↓ 4 callers
Method
getImageSizeY
Get the image size along the y axis. @return
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/Classifier.java:144
↓ 4 callers
Method
getPackageName
Target package name. @return Return target package name.
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/InstallCallbackInterface.java:21
↓ 4 callers
Method
isZero
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 callers
Method
log
(Mat src, Mat dst)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1250
↓ 4 callers
Method
n_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 callers
Method
onPackageInstall
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 callers
Method
pow
(Mat src, double power, Mat dst)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1662
↓ 4 callers
Method
releaseMediaRecorder
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSource.java:1429
↓ 4 callers
Method
setFacing
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 callers
Method
setFlashMode
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 callers
Method
setFocusMode
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 callers
Method
showInfoToast
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 callers
Method
stop
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/CameraSourcePreview.java:111
↓ 4 callers
Method
stopCameraSource
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:362
↓ 3 callers
Method
Mat_to_vector_Point3
(Mat m, List<Point3> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:202
↓ 3 callers
Method
Mat_to_vector_vector_KeyPoint
(Mat m, List<MatOfKeyPoint> kps)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:587
↓ 3 callers
Method
X
Returns the x-coordinate value. @return x value
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/PointF.java:25
↓ 3 callers
Method
Y
Returns the y-coordinate value. @return y value
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/PointF.java:33
↓ 3 callers
Function
_is_skip_type
(op)
Chapter03/tfcoreml/_layers.py:9
↓ 3 callers
Method
bitmapToMat
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 callers
Method
captureStillPicture
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 callers
Method
checkPermissions
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 callers
Method
clear
Removes all graphics from the overlay.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/GraphicOverlay.java:115
↓ 3 callers
Function
ensure_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 callers
Function
ffwd
(data_in, paths_out, checkpoint_dir, device_t='/gpu:0', batch_size=4)
Chapter03/fast_style_transfer/evaluate.py:129
↓ 3 callers
Method
fromNativeAddr
(long addr)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat.java:22
↓ 3 callers
Method
getEulerZ
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/FaceData.java:110
↓ 3 callers
Method
getFacialLandmarks
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 callers
Method
getIdForRequestedCamera
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 callers
Method
getNativeObjAddr
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1094
↓ 3 callers
Method
getScreenHeight
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:19
↓ 3 callers
Method
getScreenRatio
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:35
↓ 3 callers
Method
getScreenWidth
(Context c)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:27
↓ 3 callers
Function
get_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 callers
Function
get_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 callers
Method
insert
(Point pt)
Chapter07/openCVLibrary310/src/main/java/org/opencv/imgproc/Subdiv2D.java:89
↓ 3 callers
Method
makeBitmap
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 callers
Method
makeEqualProps
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 callers
Method
matToBitmap
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 callers
Method
n_checkVector
(long nativeObj, int elemChannels, int depth, boolean requireContinuous)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1131
↓ 3 callers
Method
n_convertTo
(long nativeObj, long m_nativeObj, int rtype, double alpha, double beta)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1154
↓ 3 callers
Method
n_diag
(long nativeObj, int d)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Mat.java:1182
↓ 3 callers
Method
onAutoFocus
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 callers
Method
onCameraFrame
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 callers
Method
requestPermissionThenOpenCamera
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:243
↓ 3 callers
Method
rotatedExifBitmap
(String path, Bitmap bitmap)
Chapter07/app/src/main/java/com/mlmobileapps/faceswapper/ImageUtils.java:368
↓ 3 callers
Method
scaleX
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 callers
Method
setRotation
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 callers
Method
setSaturation
(float saturation)
Chapter07/openCVLibrary310/src/main/java/org/opencv/photo/TonemapDrago.java:35
↓ 3 callers
Method
setStrokeWidth
(int brushThickness)
Chapter06/NumberClassifier/app/src/main/java/com/mlmobileapps/numberclassifier/FreeHandView.java:142
↓ 3 callers
Method
stop
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 callers
Method
subtract
(Mat src1, Mat src2, Mat dst, Mat mask, int dtype)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:202
↓ 3 callers
Method
vector_Point3_to_Mat
(List<Point3> pts, int typeDepth)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:96
↓ 2 callers
Method
InstallService
(final Context AppContext, final LoaderCallbackInterface Callback)
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/AsyncServiceHelper.java:71
↓ 2 callers
Method
InstallServiceQuiet
(Context context)
Chapter07/openCVLibrary310/src/main/java/org/opencv/android/AsyncServiceHelper.java:54
↓ 2 callers
Method
Mat_to_vector_Point
(Mat m, List<Point> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:157
↓ 2 callers
Method
Mat_to_vector_vector_Point
(Mat m, List<MatOfPoint> pts)
Chapter07/openCVLibrary310/src/main/java/org/opencv/utils/Converters.java:492
↓ 2 callers
Function
_broadcast_axis
(ref_shape4, shape)
Chapter03/tfcoreml/_layers.py:435
↓ 2 callers
Function
_conv_init_vars
(net, out_channels, filter_size, transpose=False)
Chapter03/fast_style_transfer/src/transform.py:59
↓ 2 callers
Function
_conv_tranpose_layer
(net, num_filters, filter_size, strides)
Chapter03/fast_style_transfer/src/transform.py:30
↓ 2 callers
Function
_get_broadcasted_shape4
(shapes)
Chapter03/tfcoreml/_layers.py:426
↓ 2 callers
Function
_instance_norm
(net, train=True)
Chapter03/fast_style_transfer/src/transform.py:49
↓ 2 callers
Function
_labeled_dims_to_rank_4_shape
(blob_name, context)
Chapter03/tfcoreml/_interpret_shapes.py:16
↓ 2 callers
Function
_push_stack
(stack, node, in_stack)
Chapter03/tfcoreml/_topological_sort.py:30
↓ 2 callers
Function
_remove_beginning_unit_dimensions
(in_tuple)
Chapter03/tfcoreml/_shape_sensitive_layers.py:6
↓ 2 callers
Function
_remove_disconnected_load_constants
(nn_layers)
Chapter03/tfcoreml/optimizations/_optimize.py:156
↓ 2 callers
Function
add_tensor_sub
(builder, name, x_name, y_name, output_name)
Chapter03/tfcoreml/_layers.py:23
↓ 2 callers
Method
applyBounce
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 callers
Method
applyFriction
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 callers
Method
autoFocus
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 callers
Method
classifierType
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:137
↓ 2 callers
Method
clone
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/RotatedRect.java:79
↓ 2 callers
Method
closePreviewSession
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Camera2Source.java:1198
↓ 2 callers
Function
connect_skipped_ops
(context)
Chapter03/tfcoreml/_ops_to_layers.py:90
↓ 2 callers
Method
createCameraPreviewSession
Creates a new {@link CameraCaptureSession} for camera preview.
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Camera2Source.java:1208
↓ 2 callers
Method
createCameraSourceBack
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:298
↓ 2 callers
Function
create_bottleneck_file
Create a single bottleneck file.
Chapter08/retrain.py:355
↓ 2 callers
Method
dpToPx
(int dp)
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/Utils.java:15
↓ 2 callers
Method
fetchImage
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 callers
Method
fetchMultipleImages
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 callers
Method
fromArray
(byte...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfByte.java:43
↓ 2 callers
Method
fromArray
(int...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfInt4.java:44
↓ 2 callers
Method
fromArray
(DMatch...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfDMatch.java:46
↓ 2 callers
Method
fromArray
(Rect...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfRect.java:44
↓ 2 callers
Method
fromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat4.java:43
↓ 2 callers
Method
fromArray
(Point3...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint3.java:43
↓ 2 callers
Method
fromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat.java:43
↓ 2 callers
Method
fromArray
(Point...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint2f.java:43
↓ 2 callers
Method
fromArray
(Point3...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint3f.java:43
↓ 2 callers
Method
fromArray
(int...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfInt.java:44
↓ 2 callers
Method
fromArray
(double...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfDouble.java:43
↓ 2 callers
Method
fromArray
(KeyPoint...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfKeyPoint.java:45
↓ 2 callers
Method
fromArray
(float...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfFloat6.java:43
↓ 2 callers
Method
fromArray
(Point...a)
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/MatOfPoint.java:43
↓ 2 callers
Method
getBuildInformation
()
Chapter07/openCVLibrary310/src/main/java/org/opencv/core/Core.java:1222
↓ 2 callers
Method
getCameraFacing
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 callers
Method
getClassifier
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/ARFilterActivity.java:149
↓ 2 callers
Method
getEulerY
()
Chapter05/ARfilter/app/src/main/java/com/mlmobileapps/arfilter/FaceData.java:102
← previous
next →
101–200 of 2,845, ranked by callers