Академический Документы
Профессиональный Документы
Культура Документы
10
Recommended
Pentium III 750MHz
512 MB of RAM
8 GB of available space on
resolution
Bootable DVD Drive
Keyboard and Mouse
Sound Card and Speakers
you can now reboot your system and follow the installation
Instructions below.
100 GB
for root
/home
100 GB
/boot
20 GB
for boot
/swap
20 GB
free space
10 GB
Who are you : You must provide a name for your computer to be
identified on your network (hostname). It is advisable to
Select the option "require my password to login" as extra
security ( this is the default option). Once you have made
your choices, click "Continue".
Ubuntu MATE Login Screen : Once your system has started, you
should see a login screen. At this screen you must enter the
password for the user you created in the earlier steps.
/* Boot-Repair */
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
/* Compiler software
*/
("Linux Driver" -
Example:
/* Install Dio card */
cd /home/sara/Downloads/ixpio/
sudo ./configure
sudo make
sudo ./ixpio.inst
Example:
/* Remove Dio card */
cd /home/sara/Downloads/ixpio/
sudo ./ixpio.remove
Install Driver for Libdc1394 Library Support for IEEE 1394 Cameras
:
Requirements :
Various libraries and modules required are:
Library: libdc13941.1.0
ieee1394, raw1394,
The menu will come up. Select Device Drivers, The Device
Drivers menu will come up. Select IEEE1394 (Firewire)
Support, Mark the following as <M> in the menu that is shown:
a. OHCI1394 support
b. OHCI1394 Video Support
c. OHCI1394 DVI/O Support
d. RAW IEEE1394 I/O Support
/* Install libraw1394-2.1.1 */
cd /home/sara/Downloads/libraw1394-2.1.1/
./configure
make -j8
sudo make install
automatically.
/* Installation of Coriander */
sudo apt-get install coriander
./camera
Note : include "cam1394.h".
Camera.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
//gettimeofday
#include <pthread.h>
#include <sched.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "cam1394.h"
#define handle_error_en(en, msg)\
do { errno = en; perror(msg); exit(EXIT_FAILURE); } while(0)
struct timeval start, finish;
double msec;
FILE* imagefile;
unsigned int width = 1024, height = 1, left = 0, top = 0;
uint32_t selected_mode = DC1394_VIDEO_MODE_FORMAT7_0; //
DC1394_VIDEO_MODE_FORMAT7_7;
- types.h
dc1394video_frame_t *frame=NULL;
dc1394camera_t *camera;
dc1394error_t err;
dc1394_t * d;
dc1394camera_list_t * list;
dc1394video_modes_t modes;
uint64_t
cur_ts = 0, prev_ts = 0;
selected_mode, width,
err=dc1394_capture_setup(camera, 4,
DC1394_CAPTURE_FLAGS_DEFAULT);
// Setup capture
while(1)
{
//frame = NULL;
err=dc1394_video_set_transmission(camera, DC1394_ON);
// Start transmission
//capture one frame
gettimeofday(&start, NULL);
err=dc1394_capture_dequeue(camera,
DC1394_CAPTURE_POLICY_WAIT, &frame); // Capture
DC1394_ERR_RTN(err,"Problem getting an image");
gettimeofday(&finish, NULL);
msec = time_diff(start,finish);
cur_ts = frame->timestamp;
//printf("\n|image_bytes = %d | loop = %d-%d | Micro_sec
= %0.0f | ts =
}
err=dc1394_video_set_transmission(camera, DC1394_OFF)
Stop transmission
err=dc1394_capture_stop(camera);
//Stop capture
dc1394_camera_free (camera);
// cleanup and exit
dc1394_free (d);
//
}
int main(int argc, char *argv[])
{
process1();
return 0;
}
Makefile
## Created by Anjuta
CC = gcc
CFLAGS = -g -Wall
OBJECTS = camera.o cam1394.o
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib
LIBS = -ldc1394 -lpthread
all: camera
camera: $(OBJECTS)
$(CC) -o camera $(OBJECTS) $(LDFLAGS) $(LIBS)
.SUFFIXES:
.SUFFIXES:
.c .cc .C .cpp .o
.c.o :
$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS)
count:
wc *.c *.cc *.C *.cpp *.h *.hpp
clean:
rm -f *.o
.PHONY: all
.PHONY: count
.PHONY: clean