Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~10K People Reached
Favorite Tags
Member Avatar for kedarm

Hi! I'm trying to use the opencv bindings of Python. I tried the following code: [CODE]from opencv.highgui import * from opencv.cv import * cam = 'cam' cvNamedWindow(cam) cap = cvCreateCameraCapture(0) while cvWaitKey(1) != 27: img=cvQueryFrame(cap) cvShowImage(cam,img)[/CODE] Although the window seems to open fine, I cannot see any image. I just …

Member Avatar for Ratzian
0
306
Member Avatar for mfierro

I am having trouble when trying to send information through the PC parallel port. I am using the following code to try to send data: #include <stdio.h> #include <asm/io.h> #include <unistd.h> int main(void){ ioperm( 0x378, 1, 1 ); outb( 0x378, 0xAA ); sleep( 2000 ); outb( 0x378, 0x55 ); sleep( …

Member Avatar for kedarm
0
1K
Member Avatar for kedarm

Hi! I'm trying to use the nanosleep and sleep functions in a program I am trying to write. I first tried this - [CODE] fprintf(stdout,"Hey guys.."); struct timespec t_req, t_rem; t_req.tv_sec = 1; t_req.tv_nsec = 500; if (nanosleep(&t_req, &t_rem) < 0) return 0; fprintf(stdout,"...What's up?");[/CODE] Since the function nanosleep did …

Member Avatar for mitrmkar
0
940
Member Avatar for uday.rnsit

Hii friends.. this is [B]uday[/B] here.. i'm new to Daniweb.. [B]I want to learn programming in C .. Pls can u guide me hw cud i b a good programmer?.... [/B]

Member Avatar for jephthah
-2
123
Member Avatar for kedarm

Hi! I am trying to convert my c/c++ code into a python module. The code captures an image which it then runs some algorithms upon. For a start, I am trying to write a code that just captures an image. I am using opencv for the image capture (in the …

0
101
Member Avatar for kedarm

Hi! My problems are more of porting a code to Windows, than the code itself. I need to download a file from a URL ( http://127.0.0.1/img.jpg ) and store it in a local file. I think I've screwed up the setting up of the libcurl libraries. I am using Visual …

Member Avatar for Salem
0
1K
Member Avatar for idreu2go4it

Boy, am I really confused about this!!! I have an assignment that is wanting me to create a python statement that will produce f(x) for: f(x) = 2xcubed - 8xsquared + x +16. Then, using the same function, write a python program that will find the extrema (both high and …

Member Avatar for vegaseat
0
403
Member Avatar for kedarm

Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file …

Member Avatar for kedarm
0
5K