Opencv read different image versions of python and c ++ results

problem:

When reading the same image, and c ++ Results python read read quite different, the maximum error of the test image 16.

the reason:

The python opencv used is 4.1.1, c ++ 3.1.0 is used in the parsing of JPEG time, the use of different decoding library, we can :: getBuildInformation () by cv2.getBuildInformation () and cv to see corresponding information

c++

python

 solve:

In order to facilitate before you can reinstall the version of python, while unloading, including libraries contribute

conda uninstall opencv
Uninstall OpenCV pip -contrib-Python # I used pip installed 
conda install opencv3

 

Note: After ver90 other users to test opencv 3.0.0 opencv3.4.1 are used, consistent with other versions of JPEG decoder, not pro-test too, to be safe, to ensure consistent python and c ++ version

User Links: https://www.cnblogs.com/zjutzz/p/10543935.html

Guess you like

Origin www.cnblogs.com/haiyang21/p/11655404.html