WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 4 votes, 4.75 average. Display Modes
Prev Previous Post   Next Post Next
  #19  
Old 03-10-2010, 06:40 AM
sircedric4 sircedric4 is offline
Member
 
Join Date: Aug 2009
Posts: 22
Quote:
Originally Posted by nige777 View Post
Thanks you very much that worked perfectly.

Now I, like the original poster, just need to sort a method for converting frame buffer images to IPLImage!!

Came across this -

http://www.depthfirstsearch.net/blog...cv-and-python/

- which seems to address this prob however I am unable to utilize this at the moment due to my severe lack of C or C++ know-how. Any windows/C++ wizards out there who could help?
I am still trying to find a better way to do the conversion myself, but in the meantime I was able to get something to "work" using the actual screen capture and file save capability in Vizard.

I used the viztask schedule capability and basically saved each image to a bitmap and then loaded the bitmaps into the squares example. It is slow, only average 2 -3 frames per second which doesn't work for me, but might work for your application. I am attaching the code I used in squares for you to look at. Maybe it'll help you.

Like, you I found that same link that might address the problem but I couldn't figure out how to do anything with it. I do know C++, but only as a language. Getting all the plugins, modules, and runtime environments setup is beyond my capability. I'd kill for some sort of class to attend that would cover all the setup stuff that people assume you know just because you know a language.

Code:
def SquareIt():
	global img, storage

	while True:
		name = 'C:/DK Files/OpenCV Learn/test1.bmp'
		yield viz.window.screenCapture(name)
#
		# create memory storage that will contain all the dynamic data
		storage = cvCreateMemStorage(0);
		img0 = cvLoadImage( name, 1 );
		if not img0:
			print "Couldn't load %s" % name
		img = cvCloneImage( img0 );
		# force the image processing
		on_trackbar(0);
		# Also the function cvWaitKey takes care of event processing
		cvWaitKey(5);
			# clear memory storage - reset free space position
		cvClearMemStorage( storage );

t = viztask.schedule( SquareIt() )
vizact.onkeyup('s',t.kill)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Native WorldViz support for character animation luakt Vizard 10 09-15-2008 11:39 PM
Incampatible CAL3D files luakt Vizard 4 09-14-2008 11:28 PM
WorldViz support of callada luakt Vizard 2 09-14-2008 10:59 PM


All times are GMT -7. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC