SlideShare a Scribd company logo
1 of 20
Download to read offline
Oriol Pla Álvarez
B1E








You have to download and install Processing 1.5.1.
Then you have to install some things:
Quicktime 7 (Apple video software).
WinVDIG1.0.5.exe, it’s Video digitalizer for
Quicktime.
GSVideo-1.00windows.zip, this is a library.
NyAR4psg, this is a library.


This is an introduction of the code. The markers are
patt.hiro and patt.kanji.
These are where necessary libraries are imported.
This several lines declare some specialized variables.
The two lines following the colormode() function call
create the fonts that will be used for text.
Print a line in the console with the version of
multimaker.


Next, a new GSCapture object is created and
assigned to the variable that has already been
declared for that purpose.
Now that these values have been set, these variables
are used as arguments for the NyARMultiBoard
constructor to create the new NyARMultiBoard object
nya.


The next chunk of code is for drawing the little
labeled dots that indicate the corner positions.


To define this function, first the font, stroke color,
and the stroke weight.


Here we can see the coordinates of the line and the
text font.


Now begins the draw() function. As usual, this
contains the main repeating functionality of the
sketch.


The read() method is called for the cam object. This
tells cam to read the camera data into an image.


The next few lines draw down objects. Fill is the
color of the box. Translate is the movement. And we
can see that the box is of 40x40x40 pixels.


It is the same that the other box because it is the
green box, only change the color.
Augmented reality with processing. Oriol Pla
Augmented reality with processing. Oriol Pla

More Related Content

Viewers also liked

Restructure sales process
Restructure sales processRestructure sales process
Restructure sales processSudip Samaddar
 
What capabilities alliance gamification software has
What capabilities alliance gamification software hasWhat capabilities alliance gamification software has
What capabilities alliance gamification software hasSudip Samaddar
 
Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Sudip Samaddar
 
Is the team sticking to their follow ups
Is the team sticking to their follow upsIs the team sticking to their follow ups
Is the team sticking to their follow upsSudip Samaddar
 
Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Sudip Samaddar
 
How to motivate sales force
How to motivate sales forceHow to motivate sales force
How to motivate sales forceSudip Samaddar
 
Icfes estructura de pruebas saber
Icfes estructura de pruebas saberIcfes estructura de pruebas saber
Icfes estructura de pruebas sabermarlosa75
 
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...Pino Ciampolillo
 
Pli leadership ppt
Pli leadership pptPli leadership ppt
Pli leadership pptcatdeer
 
DIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIADIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIAjhonatanm96
 
Serie la agonia sobre la cruz by eliud gamez rev1 preview
Serie  la agonia sobre la cruz by eliud gamez rev1 previewSerie  la agonia sobre la cruz by eliud gamez rev1 preview
Serie la agonia sobre la cruz by eliud gamez rev1 previewEliud Gamez Gomez
 
newsletter_example of work
newsletter_example of worknewsletter_example of work
newsletter_example of workScott Johnston
 

Viewers also liked (20)

Our Travel Ireland
Our Travel IrelandOur Travel Ireland
Our Travel Ireland
 
Restructure sales process
Restructure sales processRestructure sales process
Restructure sales process
 
What capabilities alliance gamification software has
What capabilities alliance gamification software hasWhat capabilities alliance gamification software has
What capabilities alliance gamification software has
 
Ways to improve lead to admission part 2
Ways to improve lead to admission part 2Ways to improve lead to admission part 2
Ways to improve lead to admission part 2
 
Is the team sticking to their follow ups
Is the team sticking to their follow upsIs the team sticking to their follow ups
Is the team sticking to their follow ups
 
Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1Ways to improve lead to admission ratio 1
Ways to improve lead to admission ratio 1
 
How to motivate sales force
How to motivate sales forceHow to motivate sales force
How to motivate sales force
 
Bel2
Bel2Bel2
Bel2
 
IR-3
IR-3IR-3
IR-3
 
Icfes estructura de pruebas saber
Icfes estructura de pruebas saberIcfes estructura de pruebas saber
Icfes estructura de pruebas saber
 
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...Piano aria sicilia glossario da pag 237 a pag 239  piano veneto da pag 233 a ...
Piano aria sicilia glossario da pag 237 a pag 239 piano veneto da pag 233 a ...
 
Uso redes sociales
Uso redes socialesUso redes sociales
Uso redes sociales
 
Pli leadership ppt
Pli leadership pptPli leadership ppt
Pli leadership ppt
 
DIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIADIFRACCIÓN E INTERFERENCIA
DIFRACCIÓN E INTERFERENCIA
 
Serie la agonia sobre la cruz by eliud gamez rev1 preview
Serie  la agonia sobre la cruz by eliud gamez rev1 previewSerie  la agonia sobre la cruz by eliud gamez rev1 preview
Serie la agonia sobre la cruz by eliud gamez rev1 preview
 
Tutorial bidi unam 2
Tutorial bidi unam 2Tutorial bidi unam 2
Tutorial bidi unam 2
 
Bel2
Bel2Bel2
Bel2
 
newsletter_example of work
newsletter_example of worknewsletter_example of work
newsletter_example of work
 
2013 2 dntm
2013 2 dntm2013 2 dntm
2013 2 dntm
 
Mecánica:)
Mecánica:)Mecánica:)
Mecánica:)
 

Similar to Augmented reality with processing. Oriol Pla

Viva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsViva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsPVS-Studio
 
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerThe Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerJoxean Koret
 
Porting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPorting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPVS-Studio
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCIS321
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladoresCarlos Molina
 
Vladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleVladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleZabbix
 
Beyond the Loadable Module
Beyond the Loadable ModuleBeyond the Loadable Module
Beyond the Loadable ModuleVladimir Ulogov
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonCodeOps Technologies LLP
 
A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...Concetto Labs
 
Parallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studioParallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studiopraveench1888
 
Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoKlaraOrban
 
The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210Mahmoud Samir Fayed
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioAndrey Karpov
 
How the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodeHow the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodePVS-Studio
 
Hot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikHot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikElixir Club
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsjody zoll
 

Similar to Augmented reality with processing. Oriol Pla (20)

Viva64: working up of 64-bit applications
Viva64: working up of 64-bit applicationsViva64: working up of 64-bit applications
Viva64: working up of 64-bit applications
 
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage FuzzerThe Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
The Nightmare Fuzzing Suite and Blind Code Coverage Fuzzer
 
Porting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under LinuxPorting is a Delicate Matter: Checking Far Manager under Linux
Porting is a Delicate Matter: Checking Far Manager under Linux
 
final paper
final paperfinal paper
final paper
 
Vhdl design flow
Vhdl design flowVhdl design flow
Vhdl design flow
 
ai
aiai
ai
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladores
 
Vladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable ModuleVladimir Ulogov - Beyond the Loadable Module
Vladimir Ulogov - Beyond the Loadable Module
 
Beyond the Loadable Module
Beyond the Loadable ModuleBeyond the Loadable Module
Beyond the Loadable Module
 
OpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in PythonOpenWhisk by Example - Auto Retweeting Example in Python
OpenWhisk by Example - Auto Retweeting Example in Python
 
A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...A guide to building a handwriting number recognition app using flutter and te...
A guide to building a handwriting number recognition app using flutter and te...
 
Android native gl
Android native glAndroid native gl
Android native gl
 
Parallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studioParallel programming c++ win10 msmpi visual studio
Parallel programming c++ win10 msmpi visual studio
 
Encode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in MotokoEncode x ICH: Intro to Building on the IC in Motoko
Encode x ICH: Intro to Building on the IC in Motoko
 
The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210The Ring programming language version 1.9 book - Part 58 of 210
The Ring programming language version 1.9 book - Part 58 of 210
 
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-StudioArcheology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
 
How the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's CodeHow the PVS-Studio Team Improved Unreal Engine's Code
How the PVS-Studio Team Improved Unreal Engine's Code
 
Hot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei SholikHot Code Replacement - Alexei Sholik
Hot Code Replacement - Alexei Sholik
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 

Recently uploaded

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sectoritnewsafrica
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...amber724300
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 

Recently uploaded (20)

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 

Augmented reality with processing. Oriol Pla

  • 2.       You have to download and install Processing 1.5.1. Then you have to install some things: Quicktime 7 (Apple video software). WinVDIG1.0.5.exe, it’s Video digitalizer for Quicktime. GSVideo-1.00windows.zip, this is a library. NyAR4psg, this is a library.
  • 3.
  • 4.
  • 5.
  • 6.  This is an introduction of the code. The markers are patt.hiro and patt.kanji.
  • 7. These are where necessary libraries are imported.
  • 8. This several lines declare some specialized variables.
  • 9. The two lines following the colormode() function call create the fonts that will be used for text. Print a line in the console with the version of multimaker.
  • 10.  Next, a new GSCapture object is created and assigned to the variable that has already been declared for that purpose.
  • 11. Now that these values have been set, these variables are used as arguments for the NyARMultiBoard constructor to create the new NyARMultiBoard object nya.
  • 12.  The next chunk of code is for drawing the little labeled dots that indicate the corner positions.
  • 13.  To define this function, first the font, stroke color, and the stroke weight.
  • 14.  Here we can see the coordinates of the line and the text font.
  • 15.  Now begins the draw() function. As usual, this contains the main repeating functionality of the sketch.
  • 16.  The read() method is called for the cam object. This tells cam to read the camera data into an image.
  • 17.  The next few lines draw down objects. Fill is the color of the box. Translate is the movement. And we can see that the box is of 40x40x40 pixels.
  • 18.  It is the same that the other box because it is the green box, only change the color.