完成第二个题目

This commit is contained in:
2024-09-10 14:43:08 +08:00
parent 0ce985ccdb
commit b60dda21ea
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="jdk" jdkName="D:\Anaconda\envs\openCV_study" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+1 -1
View File
@@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="OpenCV_Study" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="OpenCV_Study" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="D:\Anaconda\envs\openCV_study" project-jdk-type="Python SDK" />
</project>
Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

+2
View File
@@ -14,3 +14,5 @@ img_rgba=cv.merge((blue,green,red,alpha))
cv.imshow("changed",img_rgba)
cv.waitKey(0)
cv.destroyAllWindows()
# save
cv.imwrite("img.png",img_rgba)