CamView for Wheesy and Jessie

More
8 years 4 months ago #113150 by Happymacer
Hi all, this is just in case it helps someone. I'm running 2.8.0-pre1-3747 (july 2018). Thanks for all the work folks!

I followed the instructions in camPY by bogie6040, and it worked once. Couldn't get it working again (in LinuxCNC, it worked fine in v4l2). Eventually I substituted the original camPY.py file from newbynobi, reran the setup script, and it works! I dont understand the code, so no idea whats different!

I also found bogie6040's Wiki file and I will attempt to update that.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #113191 by Gene1934
I am in that same leaky rowboat. Runing master on wheezy, I could get it to work once, until I tried to upsize the axis screen to a backplot size that matched the camera, 640x480, but at that point the video disappeared until the next reboot of the machine.

I have quite a bit of cruft here, and I would appreciate a repost of the camPY.py file you are referring to as it may also solve my problem.

Thank you very much.

Cheers, gene1934

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #113226 by Happymacer
Hi Gene I'm attaching a new zip file that should have all the files. I tried it again this evening,and worked first time. Ive changed cameras too, tried a cheap sonix, and a Logitech HD camera, with success.

However, when using the sonix camera running from terminal (ie: python camview.py) I get a frame rate of about 8FPS, and about half that when running inside LCNC. The HD camera gets a much higher frame rate but inside LCNC it drops about half.

I am running on a eMachines EL1600 with 2MB memory (freebie!!) and the latest LCNC update. Am using Axis Gui.

In regards the video size, I'm having success with starting LCNC, change to Camera tab in Axis, then click maximise window button, then autosize - results in a nice big image.

Good luck, hope it works for you!
Cheers Happy

File Attachment:

File Name: CamPY_Happy.tar.gz
File Size:16.23 KB

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #113232 by Gene1934
Thanks, I'll give it a shot later today. And let you know how it works.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #113262 by Gene1934
I copied it over to that machine, butn its already been a long day for me.

My camera is mounted on the spindle lock which I took off yesterday because it was limiting the depth to which I could drive a small tap. I won't remount it till the job I'm in the middle of is done, likely 3 maybe 4 days. At 83, I don't push myself as hard as I did years ago. I'm making tap hats for all the taps I own that are small enough a 1.5 hp pmdc motor can turn them in a souped up G0704 with its plastic backgears. 90 volt 10 amp OEM motor, getting 16 amps from a 125 volt dc supply if it gets heavily loaded.

But when I do try this stuff, I'll sure report the results. Thank you for the prompt sending of the file.

Cheers, gene1934

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #113660 by Happymacer
Hi Gene, well, if I make it, I really hope to be doing what you’re doing at your age! What an achievement!

Just thought I’d mention, I also tried some really old cameras, and they didn’t work! I suspect the driver was missing but not sure.

My camera isn’t mounted, I’m just experimenting with cameras. Now it seems to work ok I must make sure that the USB joystick works too, and I’ll mount my camera.

The slow FPS is a bit of an issue but slow moves will get work ok. Might be my computer!

Cheers
Happy

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.369 seconds
Powered by Kunena Forum