Updated supported pixel formats in iOS image classifier Documentation

This commit is contained in:
Prianka Liz Kariat 2023-10-19 19:24:40 +05:30
parent 7dca7ad24e
commit 0fe677b78f

View File

@ -82,10 +82,9 @@ NS_SWIFT_NAME(ImageClassifier)
* `.image`. * `.image`.
* *
* This method supports classification of RGBA images. If your `MPImage` has a source type * This method supports classification of RGBA images. If your `MPImage` has a source type
* ofm`.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * of `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha * If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha
* channel. * channel.
@ -108,7 +107,6 @@ NS_SWIFT_NAME(ImageClassifier)
* `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha * If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha
* channel. * channel.
@ -137,7 +135,6 @@ NS_SWIFT_NAME(ImageClassifier)
* `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha * If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha
* channel. * channel.
@ -165,7 +162,6 @@ NS_SWIFT_NAME(ImageClassifier)
* `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha * If your `MPImage` has a source type of `.image` ensure that the color space is RGB with an Alpha
* channel. * channel.
@ -203,7 +199,6 @@ NS_SWIFT_NAME(ImageClassifier)
* .pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * .pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If the input `MPImage` has a source type of `.image` ensure that the color space is RGB with an * If the input `MPImage` has a source type of `.image` ensure that the color space is RGB with an
* Alpha channel. * Alpha channel.
@ -242,13 +237,12 @@ NS_SWIFT_NAME(ImageClassifier)
* `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following * `.pixelBuffer` or `.sampleBuffer`, the underlying pixel buffer must have one of the following
* pixel format types: * pixel format types:
* 1. kCVPixelFormatType_32BGRA * 1. kCVPixelFormatType_32BGRA
* 2. kCVPixelFormatType_32RGBA
* *
* If the input `MPImage` has a source type of `.image` ensure that the color space is RGB with an * If the input `MPImage` has a source type of `.image` ensure that the color space is RGB with an
* Alpha channel. * Alpha channel.
* *
* If this method is used for classifying live camera frames using `AVFoundation`, ensure that you * If this method is used for classifying live camera frames using `AVFoundation`, ensure that you
* request `AVCaptureVideoDataOutput` to output frames in `kCMPixelFormat_32RGBA` using its * request `AVCaptureVideoDataOutput` to output frames in `kCMPixelFormat_32BGRA` using its
* `videoSettings` property. * `videoSettings` property.
* *
* @param image A live stream image data of type `MPImage` on which image classification is to be * @param image A live stream image data of type `MPImage` on which image classification is to be