dear all, working on image processing using raspberry pi, have installed intex usb web camera on raspberry pi. have used basic python script of image processing https://www.cl.cam.ac.uk/projects/raspb ... first.html required libraries installed on raspberry pi. script code: import imgproc imgproc import * # open webcam take pictures camera = camera(160, 120) # open viewer window display images viewer = viewer(160, 120, "the first step") # take picture camera img = camera.grabimage() # display image in viewer viewer.displayimage(img) # iterate on each pixel in image x in range(0, img.width): for y in range(0, img.height): # value @ xth column , yth row, place intensities variables red, green, blue = img[x, y] # test find colour dominant if red > green , red > blue: # red dominant, set pixel red img[x, y] = 255, 0, 0 elif green > red , green > blue: img[x, y] = 0, 255, 0 else: # if red or gr...
i have laptop dead motherboard . can remove components laptop , in anyway possible connect raspberry pi inbuilt display , keyboard on laptop ? (and touchpad if possible). (i figured remove components inside , fix pie inside , use extended usb cable , connect available usb ports respective holes in laptop skeleton, same headphone out ) . i'm noob when comes pi . on topic appreciated if screen lvds type may possible use screen installing converter board. this: http://www.ebay.com/itm/hdmi-dvi-vga-dr ... 3027&rt=nc need model number of screen , ask seller if work. or search ebay using brand , model number. assuming screen in working order..... back-light not burnt out etc.. other devices...... can used if have usb interface not part of motherboard. have make connector. raspberrypi
hi, i want limit number of characters in intro text (bots?) on frontpage as well section / category blog layouts. i need insert " . . . " make obvious there more story items. read more link isn't enough to prompt readers click on story title yet want intro text there. obviously, hack or whatever needs sure show formatted story on next page. i know can done - done in several extensions simple code, don't know place , more where. any apprectiated. jonathan hi jonathan, where put it, quite easy, although script looks bit scary @ first: \components\content\content.php, under function blogoutput. ready healthy hacking, , document did, i.e. put beginning , ending marker around code changed or inserted, because otherwise updating joomla hell of job. you'll find if ($z code: select all <?php $posintrolength = strpos($rows[$i]->attribs, "introlength="); if ($posintrolength === false) { $lengthofintro = 300; } else { $somechunk = substr($rows[$i]->a...
Comments
Post a Comment