computernerd / simpleframegrabber Goto Github PK
View Code? Open in Web Editor NEWUses SDL to display frames sent via serial. POSIX systems only.
License: GNU General Public License v3.0
Uses SDL to display frames sent via serial. POSIX systems only.
License: GNU General Public License v3.0
To compile run the bash file build. To see an example of how to run the program run the bash file qqvga. To find out how to use the program run it; it will display the usage.
Could you please comment on how to make this code compile on Mac OS X? It seems you use two platform dependent header files (I think this code is would compile on Linux no problem) and I'm having trouble figuring out how to get it to compile on Max OS X.
Thanks!
Hello!
I am trying to use Arduino IDE because I am not a guru of C code. I have already compiled your ov7670 code using this link:
https://github.com/eranws/ov7670-no-ram-arduino-uno
The program compiled successfully in Arduino. However, I still need to receive the image data from serial to my PC for other image processing. Is there any way to make simpleFrameGrabber work in Arduino IDE as well? Thank you!
Hi,
I set up everything and run the qqvga, but it opens a window which is always black, no picture!
Any idea?
When I build the code, I get these warnings, is it normal?!
main.c: In function ‘getJpeg’:
main.c:220:9: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
printf("Size: %u\n",sz);
^
main.c: In function ‘main’:
main.c:342:11: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
printf("Jpeg grabbed size: %u\n",sz);
^
main.c:372:4: warning: passing argument 1 of ‘jpeg_CreateCompress’ from incompatible pointer type [-Wincompatible-pointer-types]
jpeg_create_compress(&cinfo);
^
In file included from main.c:27:0:
/usr/include/jpeglib.h:904:14: note: expected ‘j_compress_ptr {aka struct jpeg_compress_struct *}’ but argument is of type ‘struct jpeg_decompress_struct *’
EXTERN(void) jpeg_CreateCompress (j_compress_ptr cinfo, int version,
^
main.c:418:13: warning: unused variable ‘row_pointer’ [-Wunused-variable]
JSAMPROW row_pointer[1];
^
main.c:474:7: warning: enumeration value ‘JPEG’ not handled in switch [-Wswitch]
switch(colspace){
^
main.c:495:6: warning: enumeration value ‘JPEG’ not handled in switch [-Wswitch]
switch(colspace){
Thanks
I am new to micro controllers and programming. So can you please suggest me how to use this code and in which IDE. I have OV7670 without fifo as I am newbie to arduino I know coding only in Arduino IDE. For this frame grabber I have used minGW but still not able to find any solution.
Hello,
I'm trying to adapt your ov7670 code to python 3 to run on raspberry pi b. I'm almost done, though i fear python will not be fast enough. I dont know if you're familiar with RPi but do you think it would be more efficient to use your C code as is with WiringPi or if i should keep using Python (i already have the libraries i'll need)? Also, will your frame grabber compile/build successfully in Raspbian, considering that its based on Linux? Any changes i need to make?
From your code, it seems the grabber reads bytes from the serial port and uses SDL (which i know nothing about) to create and display the final jpegs. How complicated would it be to adapt the program to accept the bytes from, say, pipes instead? I'd like a python program running on the RPi to read the pixel bytes from the camera and send them somehow to the frame grabber (also on RPi) to display the images, ultimately displaying images at a rate of maybe 10 fps. I'm reluctant to use UART like you did since there's only one port among the GPIO pins and i may need it for something else.
Lastly, how much change has to be made to the pixel data received in order to draw them in their raw format to, say, a TFT screen? Or to write them to a file that an average image viewer can display?
I hope i'm not asking too much. I dont have much C/C++ experience or about image processing, for that matter, so i'd appreciate any pointers/advice you can give me. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.