Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why OpenCV4Android VideoCapture cannot open filename in android

I am new to Opencv4Android, now I want to use android to open a file from android device by filename, but once i use

VideoCapture cap; cap.open("/mnt/sdcard/DCIM/Camera/demo.mp4");

the app crash. Code cannot get through cap.open(""). Does anyone has ever try this, please help ! Thanks !

Why OpenCV4Android VideoCapture cannot open filename in android

I am new to Opencv4Android, now I want to use android to open a file from android device by filename, but once i use The codes are like below:

VideoCapture cap; cap.open("/mnt/sdcard/DCIM/Camera/demo.mp4");

the app crash. Code cannot get through cap.open(""). I found it always be empty, and always read an empty Mat by cap.read(); Does anyone has ever try this, please help ! Thanks !