All4Gis/QGISFMV

[BUG] Frame capture tools returns a blank image

emiliobruno opened this issue · 5 comments

Describe the bug
All capture frame tools returns a blank image, except the mosaic tool, with or without draws,pausing or running the videos.
Even the metadata pdf report returns a blank image.Tested with all sample videos.
Cheynne_frame_report.pdf

Thanks,
EB

Does the mosaic tool work? Strange. You have opencv installed, right?
Ubuntu and QGIS version?

Hello,
This is my configuration:

Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
kernel : 5.4.0-37-generic

QGIS:
image

In file QgsFvmPlayer.py the function
def SaveAllFrames(self, task, fileName, directory): ''' Extract and save all video frames into directory ''' vidcap = cv2.VideoCapture(fileName)

uses cv2 . This function is working perfectly.

The function :
def ExtractCurrentFrame(self): """ Extract Current Frame Task The drawings are saved by default """ # image = self.videoWidget.currentFrame() # without drawings image = BurnDrawingsImage(self.videoWidget.currentFrame(), self.videoWidget.grab(self.videoWidget.surface.videoRect()).toImage())

uses BurnDrawingsImage function that is in file QgsFmvUtils.py:
defined by
p = QPainter() p.setRenderHint(QPainter.HighQualityAntialiasing) p.begin(base) p.setCompositionMode(QPainter.CompositionMode_SourceOut) p.drawImage(0, 0, overlay) p.end()

I observed that this funcion does not uses cv2 lib

I hope helped you to help me.
Thanks
EB

Any opinion ?

I'm sorry, but I don't have time right now. When I can look at this.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.