This commit is contained in:
2024-09-14 21:50:09 +08:00
parent 6e7c39ed51
commit 8643747599
3 changed files with 4 additions and 4 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="jdk" jdkName="D:\Anaconda\envs\openCV_study" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="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="D:\Anaconda\envs\openCV_study" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="OpenCV_Study" project-jdk-type="Python SDK" />
</project>
+2 -2
View File
@@ -14,5 +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)
# compress and save
cv.imwrite("img.png",img_rgba,[cv.IMWRITE_PNG_COMPRESSION,9])