Friday 2 September 2016

How to run Frame Grabber for OV7670



Как запустить FrameGrabber для OV7670
В одной из своих статей я приводил пример, как работать с камерой OV760. Для облегчения понимая, клиентская программа была реализована на Java, который проще в использовании, чем C++. Но это вызвало трудности у новичков. Ниже будет описано, как правильно запускать программку FrameGrabber из примера.
In one of the articles I cited the example of how to work with the camera OV760. For ease of understanding, the client program has been implemented in Java, which is easier to use than C ++. But this has caused difficulties for beginners. The following briefly describes how to run the program from FrameGrabber of example.
Для начала нужно скачать и установить 32-bit версию Java SDK. Это можно сделать, если погуглить фразу “java sdk download”. Первой же ссылкой будет сайт oracle с инсталлерами.
First you need to download and install the 32-bit version of the Java SDK. This can be done by Googling the phrase "java sdk download". The first link is a site with oracle installer.


Далее необходимо установить IDE для разработки. Я использую Eclipse. Набираете в google “eclipse download” и скачиваете «Eclipse IDE for Java Developers” 32-bit.
Next, you need to install an IDE for development. I use Eclipse. Typed in google "eclipse download" and download the «Eclipse IDE for Java Developers" 32-bit.

После установки Eclipse, запускаем его и выбираем рабочую папку. Здесь будут располагаться ваши проекты.
After you install Eclipse, run it and choose the working folder. There will be located your projects.

Далее вы должны увидеть что-то похожее на картинку ниже:
Next, you should see something like the image below:


Выбираете File->New->Projects….->Java Projects и вводите название нового проекта.
Choose File-> New-> Projects ... .-> Java Projects and enter a name for the new project.
и жмём “Finish”.


File->Import->File System и выбираем, папку с уже скачанным FrameGrabber.
После этого файлы оказываются в проекте, теперь остаётся только настроить проект, чтоб избавиться от ошибок
After that, the files are in the project, and now we can only set up a project to get rid of bugs


Project->Properties->Libraries->Add jars и выбираете comm.jar.
После этого у вас должны исчезнуть все ошибки в проекте. Далее выбираете в дереве файлов класс SimpleRead и Run->Run. Не забудьте, что порт для чтения данных с камеры задан прямо в коде и его надо заменить на ваше значение.
After that, you have to disappear all errors in a project. Next, you select the file in the tree class SimpleRead and Run-> Run. Be sure that the port to read the data from the camera is set directly in the code and it must be replaced by your value.
Приложение ожидает маркер *RDY* от Arduino, сохраняет данные в массив и записывает в BMP формате.
The application expects the RDY * * token from Arduino, stores the data in an array and writes BMP format.

No comments:

Post a Comment