# HDR tutorial result is different from the code running

**URL:** <https://forum.opencv.org/t/hdr-tutorial-result-is-different-from-the-code-running/9367>\
**Category:** Python\
**Tags:** photo\
**Created:** [June 30, 2022, 3:01am UTC](https://forum.opencv.org/t/hdr-tutorial-result-is-different-from-the-code-running/9367 "2022-06-30T03:01:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoXXXX](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@DoXXXX](https://forum.opencv.org/u/DoXXXX)\
**Post date:** [June 30, 2022, 3:01am UTC](https://forum.opencv.org/t/hdr-tutorial-result-is-different-from-the-code-running/9367/1 "2022-06-30T03:01:44Z")

</div>

I study the HDR functions in OpenCV with the [tutorial](https://docs.opencv.org/4.5.5/d2/df0/tutorial_py_hdr.html). And then, I try the same code with same parameters in pycharm and visual studio. However, the results are not same like the result shown in the tutorial. The following figure are the result run by my code.  
Debevec:

 ![hdr](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/a/a1c70d10e9aa38aa484455c96cacb78753d9e319.jpeg)  
Robertson:  
 ![hdrr](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/9/9deb88a4397bf213ec3e2891f703362cf488935a.jpeg)  
Mertenes Fusion:  
 ![fusion](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/6/6618ae34cc0a49ed72ee1bfc81f9a30805381be6.jpeg)  
Are there any mistakes in my application? Hope someone bring me some assistance.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 30, 2022, 10:54am UTC](https://forum.opencv.org/t/hdr-tutorial-result-is-different-from-the-code-running/9367/2 "2022-06-30T10:54:14Z")

</div>

I ran the code myself and can reproduce your results.

appears to be a bug/regression and you should submit a bug report on [Issues · opencv/opencv · GitHub](https://github.com/opencv/opencv/issues?q=label%3A%22category%3A+photo%22+)

---

<div class="post-metadata">

**Author:** ![DoXXXX](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@DoXXXX](https://forum.opencv.org/u/DoXXXX)\
**Post date:** [July 9, 2022, 12:32am UTC](https://forum.opencv.org/t/hdr-tutorial-result-is-different-from-the-code-running/9367/3 "2022-07-09T00:32:00Z")

</div>

Thanks to your replay. I will submit a bug report on GitHub. I really appreciate it.
