上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页
摘要: https://blog.csdn.net/u013084616/article/details/79064408 阅读全文
posted @ 2022-04-03 16:01 星涅爱别离 阅读(117) 评论(0) 推荐(0) 编辑
摘要: def make_print_to_file(path='./'): ''' path, it is a path for save your log about fuction print example: use make_print_to_file() and the all the info 阅读全文
posted @ 2022-04-03 15:57 星涅爱别离 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 实际上,有一种方法可以通过向ExcelWriter传递参数来强制使用utf8编码 ew = pandas.ExcelWriter('test.xlsx',options={'encoding':'utf-8'}) sampleList = ['Miño', '1', '2', 'señora'] d 阅读全文
posted @ 2022-04-03 08:22 星涅爱别离 阅读(936) 评论(0) 推荐(0) 编辑
摘要: h, w, c = img.shapetry: for index, landmarks in enumerate(results.pose_landmarks.landmark): cx = int(results.pose_landmarks.landmark[index].x * w) cy 阅读全文
posted @ 2022-03-29 17:17 星涅爱别离 阅读(394) 评论(0) 推荐(0) 编辑
摘要: print(‘Original dataset shape %s’ % Counter(pd.DataFrame(y_train)))由于不可hash,所以用pd.DataFrame加上索引即可 阅读全文
posted @ 2022-03-29 07:13 星涅爱别离 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 类方法的第一个参数一般都是 self ,所以在调用类中的方法时,需要将实例化的类对象传入到方法中作为第一个参数 class Car: def shop(self, name, price): print(name + "价格为:", price) if __name__ == '__main__': 阅读全文
posted @ 2022-03-28 21:03 星涅爱别离 阅读(1500) 评论(0) 推荐(0) 编辑
摘要: 参数是数字赋值,所以程序正常运行。 在linux环境下,传递参数给python文件,传入是字符串形式,所以无法正常加减运算。 dtype('<U32')是字符串格式。 纠正: maxv=int(args[3]) # 通过int()函数,将字符串强制转化为数字。 阅读全文
posted @ 2022-03-28 20:57 星涅爱别离 阅读(319) 评论(0) 推荐(0) 编辑
摘要: # print(help(mp.python.solutions.holistic))使用此命令查看包含的函数 错误部分# body_connections = mp.solutions.holistic.UPPER_BODY_POSE_CONNECTIONS \# if self.up_body_ 阅读全文
posted @ 2022-03-28 09:51 星涅爱别离 阅读(567) 评论(0) 推荐(0) 编辑
摘要: Yes, FACE_CONNECTIONS is renamed to FACE_CONTOURS. Please see the new drawing example code at https://github.com/google/mediapipe/blob/master/docs/sol 阅读全文
posted @ 2022-03-28 09:14 星涅爱别离 阅读(2101) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ai-coodinator/mediapipe-python/issues/1 Because you use Pose in your example, remove the line corresponding to the parameter upper_ 阅读全文
posted @ 2022-03-28 09:07 星涅爱别离 阅读(688) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页