如何将两个矩阵连接成一个矩阵?得到的矩阵应该具有与两个输入矩阵相同的高度,并且其宽度将等于两个输入矩阵的宽度之和.
我正在寻找一个预先存在的方法,将执行相当于此代码:
def concatenate(mat0, mat1):
# Assume that mat0 and mat1 have the same height
res = cv.CreateMat(mat0.height, mat0.width + mat1.width, mat0.type)
for x in xrange(res.height):
for y in xrange(mat0.width):
cv.Set2D(res, x, y, mat0[x, y])
for y in xrange(mat1.width):
cv.Set2D(res, x, y + mat0.width, mat1[x, y])
return res
Run Code Online (Sandbox Code Playgroud) 我想找到一种方法在Face Api中减少api调用,我想知道,如果只能在一个Face Detect调用中提交多个图片?
例如,在同一个电话中发送了10张图片.
如果面部检测呼叫无法实现,这里有一种方法可以在同一个面部添加面部呼叫中添加多个面部吗?
非常感谢
拉斐!