Skip to content

[ WARN:0] Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoFormat_RGB24(unsupported media type) #7

@MananGupta00

Description

@MananGupta00

On pressing start-->
[ WARN:0] Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoFormat_RGB24(unsupported media type)

Then Repeatedly error is traced by catch statement
Error!!
java.lang.Exception: unknown exception
at org.opencv.videoio.VideoCapture.retrieve_1(Native Method)
at org.opencv.videoio.VideoCapture.retrieve(VideoCapture.java:317)
at gui.FaceDetection$DaemonThread.run(FaceDetection.java:44) ///////// code at 44th line is 'webSource.retrieve(frame);'
at java.lang.Thread.run(Thread.java:745)

Using OpenCV 3413
Netbeans IDE 8.2
Changed 2 lines and imports for cv2 to cv3 conversion : Imgproc.rectangle.....; Imgcodecs.imencode......;

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