Open Andrew2798 opened 4 years ago
wondering how to solve this problem to, I checked the VideoObjectDetection class, there is a line on 1221 to convert BGR to RGB, but not sure why it is not working though.
wondering how to solve this problem to, I checked the VideoObjectDetection class, there is a line on 1221 to convert BGR to RGB, but not sure why it is not working though.
Hi
I dumped the image by "cv2.imwrite( )" before and after line 1221. The results are that, before 1221: got the correct image after 1221: got the blue shades image
Besides, the BGR2RGB converting had been used in line 1203 "self.__detector.detectObjectsFromImage( )".
I'm not sure why the BGR2RGB are operated twice (1203 and 1221). I also checked the "detectObjectsFromVideo" of "CustomVideoObjectDetection". (NOT"detectCustomObjectsFromVideo" of "VideoObjectDetection"), the BGR2RGB converting is used only once.
When I run the code below, I get the video in blue shades. I believe that this is due to the fact that opencv works in the BGR space, is it possible to save the video in ImageAI in the BGR space?