On Saturday 06 February 2016 14:38:48 Fox Mulder wrote: > Am 06.02.2016 um 15:39 schrieb Gene Heskett: > > On Saturday 06 February 2016 06:44:24 Fox Mulder wrote: > >> Am 06.02.2016 um 02:40 schrieb Gene Heskett: > >>> On Friday 05 February 2016 13:30:54 Fox Mulder wrote: > >>>> Am 05.02.2016 um 17:42 schrieb Gene Heskett: > >>>>> On Friday 05 February 2016 08:15:32 Dr. Nikolaus Klepp wrote: > >>>>>> Am Freitag, 5. Februar 2016 schrieb Gene Heskett: > >> > >> I updated my script at http://pastebin.com/YaCqLNzz to implement > >> optional image cropping to the center 200x200, 300x300 or 400x400 > >> pixels of the image (look in the "Resolution" menu of the tk window > >> for possible options). > > > > Which works, but the crosshairs move when cropping, so the crop > > displayed isn't the center of the captured image. Even in 640x480 > > mode. I did convert it back to 1280x720 in mode 3, so that works in > > wide screen mode. > > Maybe i should test my code a bit more before i upload it to pastebin.
Chuckle, don't apologize, I've not kept a record how how many times I had to wash the egg off my face, but its a bunch. > I had a little typo in the x and y calculations. Now the center is > also the center in the cropped view. And i also calculate the center > circle now on the original picture before cropping to be sure that it > doesn't get shifted in the cropped view. See my attached two pictures > how it looks for me with the latest version (same pastebin link). > > > Then I commented out the toolbar buttons as that horizontal space > > used was preventing Tkinter from shrinking the window properly when > > cropped. Thats all available in the pulldowns & the idea is to get a > > window small enough it can co-exist alongside the LCNC window. In > > 1280 x, its using about 2/3rds of the screen width and that doesn't > > leave enough room for the LCNC window beside it. > > The buttons are only examples to show what can be done. Feel free to > change what you like. :) > > > I need to turn on the lights and get it focused on a ruler to > > quantify the crosshairs jump. There is only 1 small window and the > > lights in the back door for light to get in when the overheads are > > off. It looks to be in excess of an inch but is out of focus too. > > When in 400x400 crop, when parent is 1280x720, its enough offcenter > > down to have a white bottom as its cropping below the scaned area > > that far. > > > > When cropped, the target crosshairs shouldn't move on the displayed > > image. Even 1 pixel would be an error in how the rest of the axis > > buttons work. > > Should be fixed now. > > Ciao, > Rainer Looking at those two images, I'd say you've got it. I'll go try it with my camera. 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 <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users