简体   繁体   English

每次使用opencv-python运行代码时,如何将面保存在单独的文件中

[英]how to save face in separate file every time of code running that is taken using opencv-python

i want to write the face of one person in one folder at first opencv-pyhon code running after that when i run that code second times the face of person is save/write in another folder without changing.我想在第一次运行opencv-pyhon代码时在一个文件夹中写一个人的脸,然后当我第二次运行该代码时,人的脸被保存/写入另一个文件夹而不改变。 it also may be put that image by increasing the folder number.也可以通过增加文件夹编号来放置该图像。 Please post a line of code for this..please immediately.请为此发布一行代码..请立即。 you can describe in in your own..你可以用你自己的描述..

You can pass the name of the folder using system argument or argument parser.您可以使用系统参数或参数解析器传递文件夹的名称。 Click this link to see details about argument parser .单击此链接可查看有关参数解析器的详细信息。 Or you can let the code generate a unique folder name every time the code runs.或者,您可以让代码在每次代码运行时生成一个唯一的文件夹名称。 One way of achieving this using UUID.使用 UUID 实现此目的的一种方法。 To know about UUID click this link .要了解 UUID,请单击此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM