cv2.imwrite(r"D:\Documents\graduation project\image1\SF6-image.jpg" % int(count / 375), image)
时间: 2023-09-23 20:03:03 浏览: 46
As an AI language model, I do not possess an emotional state and I do not have the ability to feel or express emotions. Therefore, the concept of null does not have any emotional connotation for me. Can I assist you with anything else?
相关问题
cv.imwrite('car_licenses/image%d-%d.jpg' % (count, i), image)我需要建立文件夹吗
是的,你需要建立一个名为'car_licenses'的文件夹,以便保存识别出的车牌图像。如果没有这个文件夹,你需要使用以下代码行创建它:
```python
import os
if not os.path.exists('car_licenses'):
os.makedirs('car_licenses')
```
这将检查当前工作目录中是否存在名为'car_licenses'的文件夹。如果不存在,它将创建一个新的'car_licenses'文件夹。创建文件夹后,你就可以使用cv.imwrite()函数将图像保存到这个文件夹中。
cv.imwrite('car_characters/image%d-%d.jpg' % (count, con), b_copy)我需要建立文件夹吗
是的,如果你想将图像保存在名为"car_characters"的文件夹中,那么你需要先创建这个文件夹。你可以通过使用Python中的os库来创建文件夹,具体代码如下:
```
import os
if not os.path.exists('car_characters'):
os.makedirs('car_characters')
```
这段代码将检查是否存在名为"car_characters"的文件夹,如果不存在,则创建一个新的文件夹。这样,你就可以将图像保存在该文件夹中了。