<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:video_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:v2:video_api [2018/09/21 17:34]
pixycam
wiki:v2:video_api [2018/10/10 20:06]
jfrench added protocol reference link
Line 9: Line 9:
 pixy.video.getRGB(50,​ 75, &r, &g, &​b); ​ // get red, green, blue values at location x=50, y=75 pixy.video.getRGB(50,​ 75, &r, &g, &​b); ​ // get red, green, blue values at location x=50, y=75
 </​code>​ </​code>​
 +
 +See also the [[wiki:​v2:​general_api|Pixy2 General API]], [[wiki:​v2:​ccc_api|Color Connected Components API]], and [[wiki:​v2:​line_api|Line tracking API]] for other functionality.
 +
 +For a byte-level reference to the protocol, check out the new [[wiki:​v2:​protocol_reference|Pixy2 Serial Protocol - Packet Reference]]
  
  
Line 17: Line 21:
  
  
-Note, full frame-grabs are only supported through the USB interface and [[wiki:​v2:​building_the_libpixyusb_example_on_linux|libpixyusb]],​ not through the SPI, I2C or UART serial interfaces (i.e. Arduino). ​ [[wiki:​v2:​building_the_libpixyusb_example_on_linux|Libpixyusb]] includes a frame-grab example called [[https://​github.com/​charmedlabs/​pixy2/​tree/​master/​src/​host/​libpixyusb2_examples/​get_raw_frame|get_raw_frame]]. ​ It uses a special function called getRawFrame() that isn't part of the video API. :(  We could add this, but where would a 65K-byte raw frame fit in Arduino memory?+Note, full frame-grabs are only supported through the USB interface and [[wiki:​v2:​building_the_libpixyusb_example_on_linux|libpixyusb]],​ not through the SPI, I2C or UART serial interfaces (i.e. Arduino). ​ [[wiki:​v2:​building_the_libpixyusb_example_on_linux|Libpixyusb]] includes a frame-grab example called [[https://​github.com/​charmedlabs/​pixy2/​tree/​master/​src/​host/​libpixyusb2_examples/​get_raw_frame|get_raw_frame]]. ​ It uses a special function called getRawFrame() that isn't part of the video API.  We could add this, but where would a 65K-byte raw frame fit in Arduino memory? ​:(
  
  
wiki/v2/video_api.txt ยท Last modified: 2018/10/10 20:06 by jfrench