1 | initial version |

Starting from the NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

Test whether any array element along a given axis evaluates to True.

Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

2 | No.2 Revision |

Starting from the NumPy official documentation, the behavior of the function is the following:

`numpy.any(a, axis=None, out=None,`

~~keepdims=novalue)~~keepdims=novalue)Test whether any array element along a given axis evaluates to

~~True.~~

```
True.
```

Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

3 | No.3 Revision |

~~Starting from the ~~From NumPy official documentation, the behavior of the function is the following:

```
numpy.any(a, axis=None, out=None, keepdims=novalue)
Test whether any array element along a given axis evaluates to True.
```

Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

4 | No.4 Revision |

From NumPy official documentation, the behavior of the function is the following:

```
numpy.any(a, axis=None, out=None, keepdims=novalue)
Test whether any array element along a given axis evaluates to True.
```

Also, in that case, you ~~gave ~~give to ~~this ~~thie function just the input array, so in Python the function is called with some default ~~parameters, so ~~parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return ~~true, ~~true: you have just to check each element of the array/Mat

5 | No.5 Revision |

From NumPy official documentation, the behavior of the function is the following:

```
numpy.any(a, axis=None, out=None, keepdims=novalue)
Test whether any array element along a given axis evaluates to True.
```

Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the ~~array/Mat~~array/Mat to find if at least one element is positive, so it return true, otherwise false.

6 | No.6 Revision |

From NumPy official documentation, the behavior of the function is the following:

```
numpy.any(a, axis=None, out=None, keepdims=novalue)
Test whether any array element along a given axis evaluates to True.
```

Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the array/Mat to find if at least one element is positive, so it return true, otherwise false.

7 | No.7 Revision |

From NumPy official documentation, the behavior of the function is the following:

```
numpy.any(a, axis=None, out=None, keepdims=novalue)
Test whether any array element along a given axis evaluates to True.
```

Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the array/Mat to find if at least one element is ~~positive, ~~positive (greter than 0, because 0 is false), so it return true, otherwise false.

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.