Code Monkey home page Code Monkey logo

simpleframegrabber's Introduction

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.

simpleframegrabber's People

Contributors

computernerd avatar mykeels avatar

Stargazers

Teymur Aghayev avatar Cruise(Jerry) Chen avatar foyo23 avatar JaiJaiTHub avatar aum pattyy avatar  avatar Calvin Cao avatar Won avatar Lars Englund avatar Andrew R avatar

Watchers

James Cloos avatar David Elias avatar  avatar Eddy avatar wang avatar Mandeep avatar  avatar

simpleframegrabber's Issues

<linux/serial.h> AND <SDL/SDL.h> Missing on Mac

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!

No output with .grab

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

Stuck

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.

Raspberry Pi / Python usage

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.