Skip to content

AttributeError: 'module' object has no attribute 'CAP_PROP_FRAME_WIDTH' #2

@kenkroft

Description

@kenkroft

Hello,

First of all thanks for this amazing piece of code.

I got this problem though :

Traceback (most recent call last):
File "webcam-pix2pix.py", line 74, in
capture = init_capture(capture, output_shape=predictor.input_shape)
File "webcam-pix2pix.py", line 63, in init_capture
output_shape = output_shape
File "/home/corepan/Desktop/webcam-pix2pix-tensorflow-master/msa/capturer.py", line 31, in init
self.cvcap.set(cv2.CAP_PROP_FRAME_WIDTH, capture_shape[1])
AttributeError: 'module' object has no attribute 'CAP_PROP_FRAME_WIDTH'

Would you have an idea of what this could be ?

Thank so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions