TypeError calling python function using chaquopy
问题 I have a python file which has many 'def' values in it. When I try to integrate the python file with android studio, I get a type error. The input is a image file and I want the lowerRange and upperRange to be based on that image, so I cannot define a value to them, since image size can vary everytime. import numpy as np import cv2 import os import matplotlib.pyplot as plt from PIL import Image def host(croppedImage,lowerRange, upperRange): mask_yellow = cv2.inRange(croppedImage,lowerRange