File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
articles/cognitive-services/Custom-Vision-Service Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ The steps above use the following helper functions:
126
126
``` Python
127
127
def convert_to_opencv (image ):
128
128
# RGB -> BGR conversion is performed as well.
129
+ image = image.convert(' RGB' )
129
130
r,g,b = np.array(image).T
130
131
opencv_image = np.array([b,g,r]).transpose()
131
132
return opencv_image
@@ -208,4 +209,4 @@ The results of running the image tensor through the model will then need to be m
208
209
Next, learn how to wrap your model into a mobile application:
209
210
* [ Use your exported Tensorflow model in an Android application] ( https://github.com/Azure-Samples/cognitive-services-android-customvision-sample )
210
211
* [ Use your exported CoreML model in an Swift iOS application] ( https://go.microsoft.com/fwlink/?linkid=857726 )
211
- * [ Use your exported CoreML model in an iOS application with Xamarin] ( https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel )
212
+ * [ Use your exported CoreML model in an iOS application with Xamarin] ( https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel )
You can’t perform that action at this time.
0 commit comments