How to integrate java + OpenCv. Please help me!!!
Hi all.
I am researching OpenCV and how to integrate OpenCV with java.
If you have any experience with this problem please help me.
OpenCV + Java . Can i control PTZ of logitech Usb webcam ?
Thanks in advance.
Diego
Edited by: ThuCT on Jun 30, 2009 9:34 PM
A recursive function is simply a function that calls itself sometimes. You have to be careful, because if it always calls itself, you have an "infinite regression" where it never stops calling itself and you get stack overflow. I don't know what recursion has to do with traversing result sets, but I can give you a simple example of a recursive function (statements can't be recursive):
public class ArithmeticFunctions
static int GreatestDivisor(int i, int j)
if (j = 0) return i
else return GreatestDivisor(j, i%j); // this is the recursive part
}This code will use Euclid's algorithm to quickly find the greatest common divisor of two numbers, i.e. GCD(27, 9) = 9; GCD(9, 6) = 3; GCD(25, 15) = 5
Doug
Similar Messages
-
Displaying Picture in a Java APPLICATION please help!!
I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class PictureIt{
public void makeImage() {
//***Image Output Stream
String imgFile
= "d:\\temp\\TestImage.jpeg";
out = new FileOutputStream(imgFile);
BufferedImage image = null;
image = (BufferedImage)createImage
(panelJpeg.size.width, panelJpeg.size.height);
Graphics g = image.getGraphics();
panelJpeg.paintAll(g);
}Displaying Picture in a Java APPLICATION please help!!
Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
here it is
import javax.swing.*;
import java.awt.*;
public class draww extends JPanel {
Image ball;
int width1 = 100;
int height1 = 100;
public draww() {
super();
Toolkit kit = Toolkit.getDefaultToolkit();
ball = kit.getImage("pic1.gif");
public void paintComponent(Graphics comp) {
Graphics2D comp2D = (Graphics2D) comp;
comp2D.drawImage(ball, 20, 20, width1, height1, this);
sound class is the container JFrame here it is
import javax.swing.*;
import java.awt.*;
public class drawing extends JFrame {
public drawing() {
super("draw");
setSize(400,400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container pane = getContentPane();
draww d = new draww();
pane.add(d);
setContentPane(pane);
setVisible(true);
public static void main(String[] args) {
drawing drawing1 = new drawing();
PS Hope this helps and see you around -
Sir, We have around 500 items as Insurance Spares in the stores. These spares are checked once in 6 months for their healthiness, storage, etc with a special checklist. We want this checklist an schedule in SAP ( MM). How to do it? Please help.We are presently doing it as similar to PM schedule ( PM module) but want it in MM module.
Hi Prerna
Please refer the this doc ...it might help you
http://www.erptips.com/Samples/ERPtips-SAP-Training-Manual-SAMPLE-CHAPTER-from-Basic-Quality-Management.pdf
and kindly update the status if it works or not
Regards
Partha -
I can't forcequit firefox and shutdown my computer, nor can I open up any other programs or applications. Does anyone know how to fix this? please help this poor soul.
You can force quit applications
>Force quit
if that does not work you can force quit a computer shut down by hold the power button for an extended period. -
After upgrading my iPhone 5 to iOS 7 iTunes will not stay open once the app launches...does anyone know how to fix this? Please Help :)
I have exactly the same problem. I too have tried everything that's been suggested, but still not working. Don't really what to do next? I have an iPhone 4S.
-
I recently moved and I got a new sim but I still use my old sim. I want to use both numbers for iMessage and FaceTime but i have absolutely no idea how to do it! please help me! I have a macbook pro and iphone 5
lewbobber wrote:
Basically i need to either take it to a shop that can unlock i.e. £40.00
Be aware, you go that route & every time you try to update or restore, it will error out, leaving your phone unusable. Not to mention, you void all warranty/support.
Sell it & use the proceeds towards an officially unlocked iPhone bought directly from Apple.
Good luck. -
i forgot my icloud account and my email how can i recover it please help me icloud maker and icloud password and username holder
If you don't know your ID, you can try to find it as explained here: http://support.apple.com/kb/HT5625. Then you can reset the password as explained here: http://support.apple.com/kb/PH2617. Of course, you can only do this if it's your ID.
-
Hello! I was on my Mac and then I clicked on iTunes. Then I clicked on Account, and accidentally removed my device from my Mac, how can I get it back? Also when I plug my iPod into the computer, it downloads everything that is on my computer, how can I stop this. please help! please help!!!!!!thank you
Is the iPod still singed into the account isn Settings>iTunes and App Stores and SettingsZ>iCloudl? If it is then I would not be concerned.
Also see:
iTunes Store: Associating a device or computer to your Apple ID
since you may have started the 90 day window.
For the other "problem", go to iTunes>Preferences>Devices and check the box that says Prevent iPod....automatically syncing. -
this device is not longer eligible for creating a free i cloud accounting on my Iphone 5s , my old not working now cannot opened again just when i try make a free email this Message showed up how i can fix it
please help me
iPhone 5s, iOS 8.3Create a new AppleID on a different iOS device or on a computer. You will
then be able to use that newly created AppleID on your iPhone. -
My 'clear history button is not working. When I click on it it doesn't do anything and the letters are gray instead of blue like usual. I've gone to every type of settings I can think of but I don't know how to fix it. Please help .
T
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device. -
A previous and unrelated text always appears when I need to send a new text. This prevens forwarding texts also, which I need to do all the time for my businss. How can I fix? Please help?
Hi,
This sounds like it is about Window positions.
iChat has Default places for Incoming Invites.
Video is always top Center of your Screen
Audio and Text chats are Upper right with the Audio slightly lower than Text Chats.
Secondary invites are sort of Stacked like when you open multiple files from the same App.
Your outgoing Windows are "Remembered" as to where the last one was when you used it.
This can be an issue if you use your Mac with a second display and turn Off Mirroring.
You windows can get "left" on the other screen.
Go to System Preferences > Displays and turn On Mirroring and the windows should come back to one Screen/display.
If this does not help go to your Home Folder/Library/Preferences and delete (Drag to Trash) com.apple.ichat.plist and restart iChat.
Unfortunately you will need to reset any iChat Preferences you have changed from defaults.
10:42 PM Tuesday; April 26, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb( 10.6.7)
, Mac OS X (10.6.7),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
i have my i phone 5c but i can`t activate it cus every time try to activate it i have a message that the SIM card is not valid although this i phone now is open international so how can i activate it ,, please help
i`m sorry but i contact to apple support and told me that the mobile still locked on AT&T and i can`t know this issue ,, Thanks for Reply
-
my iphone 3gs is in recovery mode how do i activate it please help. it shows the message your iphone couldnot be activated because the activation server is temporarily deactivated.
This usually happens if the phone has been Hacked / Jailbroken / Modified...
Is this the case...? -
How to integrate java into coldfusion MX7
I am beginner and taking training in coldfusion since 2
months.I want to know how to integrate java into coldfusion
MX7.You might take a look at this doc -
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001557.htm
HTH,
Anne Sandstrom
Senior Technical Writer
ColdFusion
Adobe Systems, Inc. -
I forgot my password for Encrypt my Backup how can I reset that please help I really need it Urgently?
If you do not know the passcode then you cannot use the backup
Sorry
Maybe you are looking for
-
Updated iphone 3gs to ios5 now I can't open contacts or make phone calls
This afternoon I decided to update my iphone 3GS to ios5 and now I find that I can not open the contacts app or the phone app which told me I had missed calls and a voicemail they just both immediately close. I tried opening the settings > mail, cont
-
Get CMdetails based on Reference Number
Hi, I am developing Credit Memo Details report, here user wants all the details including Acct Docu Number based on Reference number. The report is working fine if the Credit memo has account docu number, but now user wants this report to work if Cme
-
Wallaby, HTML 5 and browser detection
I have a web site that runs a simple flash move that changes pictures and text. I have used Wallaby to successfully convert the fla file to html5 code and i have the code working in Safari. The html5 code won't work in Firefox or IE so i need to put
-
Hi Friends, I want to access data from database, User will enter Start Date and end date , based on that , data will be get retried. Is it possible to write a SQL Query, Where A SQL Query will take care user start and end date. Start date and end d
-
Windows 7 32-bit. Firefox 21