发布时间:2017-10-13 17:41:26
import os # We'll render HTML templates and access data sent by POST # using the request object from flask. Redirect and url_for # will be used to redirect the user once the upload is done # and send_from_directory will help us to send/show on the # browser the file that the user just uploaded from .........【阅读全文】
发布时间:2017-10-09 15:50:47
python中PIL和opencv 相互转换PIL转opencv Mat:srcMat = np.array(pimg)opencv Mat 转 PIL:pimg = Image.fromarray(srcMat)......【阅读全文】
发布时间:2017-05-24 12:05:30
void rectangle(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int lineType=LINE_8, int shift=0 )void rectangle(Mat& img, Rect rec, const Scalar& color, int thickness=1, int lineType=LINE_8, int shift=0 )Parameters:img – Image.pt1 – Vertex of the re.........【阅读全文】