Ask Your Question

underscore's profile - activity

2015-02-10 16:57:39 -0500 commented question Error when running opencv_createsamples

I am still receiving the same error. I am not sure if my laptop is running out of RAM or what. 0_o Thanks for the help though jamesnzt.

2015-02-09 17:48:16 -0500 commented question Error when running opencv_createsamples

Thank-you for the hyperlink with the helpful information. Does the fact that the website pertains to the Ubuntu operating-system mean that this software will work best or work at all on Ubuntu Linux?

I experimented with the opencv_createsamples program and still received the same error shown above. However, today another window opened up that presumably would of shown a sample being created if the program had not crashed. :/

2015-02-06 23:58:35 -0500 received badge  Student (source)
2015-02-06 17:54:19 -0500 asked a question Error when running opencv_createsamples

Hello Everyone,

I receive an error when running the opencv_createsamples.exe program with the following command: opencv_createsamples -img my-image.jpg -vec hello.vec The window below shows up when running this command.

image description

Does anyone know why I am getting this error?

2015-02-05 09:54:04 -0500 received badge  Enthusiast
2015-01-28 11:13:25 -0500 asked a question OpenCV Hello World Android Questions, Confusion, and Problems

Hello All!

I am following the Hello World tutorial for OpenCV:

I followed this once before and the application did not run on the emulator. I am not sure if this is because of a problem with the emulator or the application itself. I can not test it on my phone because it runs Gingerbread, API level 10, and according to step 2 the minimum API level is Honeycomb API 11.

Although, step 2 further goes on to say that, "Minimal device API Level (for application manifest) is 8". What does this mean? I understand that there is a 'AndroidManifest.xml' and I see this in the project directory structure but I am not sure what that means in step 2.

Below is my application configuration screen. Can someone please tell me if I have this correct? Is it possible to configure this for GingerBread API level 10?

image description

Here is the configuration of my emulator:

image description

2015-01-14 22:14:28 -0500 asked a question Video Not Saving - Python Binding OpenCV

I am following along with this tutorial:

The program starts and activates the webcam but it does not write anything to disk. The file is created but the size is 0KB.

I receive the following error when trying to play the video: "Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."

My source-code is below:

import numpy as np
import cv2 

cap = cv2.VideoCapture(0)

#Define the codec and create VideoWriter object
fourcc ='D', 'I', 'V', 'X')
out = cv2.VideoWriter('output.AVI', fourcc, 20.0, (640,480), 1)

    ret, frame =
    if ret == True:
        frame = cv2.flip(frame,0)

        #write the flipped frame

        cv2.imshow('frame', frame)
        if cv2.waitKey(1) & 0xFF == ord('q'):

#Release everything if job is finished

Why are the frames not written to disk?